Looking for more information on how to do PHP the right way? Check out PHP: The Right Way

Matthew Turland's Blog:
Gotcha on Scraping .NET Applications with PHP and cURL
Jul 01, 2010 @ 13:51:36

New on his blog today Matthew Turland has posted about a "gotcha" he came across when working with cURL to pull down information (scrape content) from a remote .NET application.

I recently wrote a PHP script to scrape data from a .NET application. In the process of developing this script, I noticed something interesting that I thought I’d share. In this case, I was using the cURL extension, but the tip isn’t necessarily specific to that. One thing my script did was submit a POST request to simulate a form submission. [...] The issue I ran into had to do with a behavior of the CURLOPT_POSTFIELDS setting that’s easy to overlook.

The problem was something cURL does automatically - change the header for the content type because you're sending an array. Thankfully, with the help of a call to http_build_query to encode it correctly, the request will use the right headers.

tagged: net application scrape content gotcha curl

Link:

An Phillips' Blog:
COM/.NET Interop in Zero PHP
Jan 29, 2009 @ 21:03:25

Ant Phillips looks a bit at some interoperability between the PHP and Project Zero when to comes to using the COM/.NET extension.

Zero doesn't currently support the COM/.NET extension in PHP. No matter though, there is a handy open source project called JACOB that bridges between Java and COM/.NET. In fact, there is an easier way to do this using a Groovy library called Scriptom. This is really just a friendly wrapper around JACOB to provide a better syntax for calling methods and accessing properties.

He also includes a quick introduction and howto on getting the functionality up and working in a Windows environment - download, add the JAR to your path, edit your php.ini and copy and paste some example code in to see it in action.

tagged: com net interoperability zero extension jacob scriptom

Link:

DeveloperTutorials.com:
PHP 6 now with .net: Visual Studio integration available already
Apr 01, 2008 @ 19:57:08

On the Developer Tutorials site, there's an article talking about the integration that can be made with PHP6 and .NET Visual Studio:

PHP, .net and Silverlight will be integrated out of the box, along with Visual Studio 2008. The project has long been in the works, but our sources have informed us of an impending announcement that PHP 6 will ship with .net.

The glue between them is a part of the phlanger project.

tagged: php6 net microsoft visualstudio integrate

Link:

Community News:
PHP on .NET Dynamic Language Runtime
Oct 23, 2007 @ 22:03:00

A new post to the php.evangelism mailing list has started up a great discussion on something that a lot of users seem to be in favor of - trying to get PHP accepted by Microsoft to be included in its Dynamic Language Runtime environment.

From the inital post:

I am wondering why there isn't any effort in the PHP community to get PHP into the DLR. If nothing, DLR is yet another platform, and for a php programmer it gives one more playground to showcase his skillset. Anyway, my question is whether there would be any community effort to get MS adopt PHP into CLR too. I am sure there is a genuine customer requirement, and enterprises have made quite a bit of investment in PHP and they would all love to be able to take it to the .NET platform.

Responses so far include the pointing out of problems, possibilities like a Zend collaboration and lots of talk on what such a project would entail.

tagged: dlr dynamic language runtime net microsoft dlr dynamic language runtime net microsoft

Link:

Community News:
PHP on .NET Dynamic Language Runtime
Oct 23, 2007 @ 22:03:00

A new post to the php.evangelism mailing list has started up a great discussion on something that a lot of users seem to be in favor of - trying to get PHP accepted by Microsoft to be included in its Dynamic Language Runtime environment.

From the inital post:

I am wondering why there isn't any effort in the PHP community to get PHP into the DLR. If nothing, DLR is yet another platform, and for a php programmer it gives one more playground to showcase his skillset. Anyway, my question is whether there would be any community effort to get MS adopt PHP into CLR too. I am sure there is a genuine customer requirement, and enterprises have made quite a bit of investment in PHP and they would all love to be able to take it to the .NET platform.

Responses so far include the pointing out of problems, possibilities like a Zend collaboration and lots of talk on what such a project would entail.

tagged: dlr dynamic language runtime net microsoft dlr dynamic language runtime net microsoft

Link:

eWeek:
Microsoft Hosts Project to Run PHP on .Net
Aug 10, 2006 @ 19:16:21

eWeek reports today that Microsoft is taking the first steps toward extending its support for other scripting languages with a new project to ry to run PHP on .NET.

Known as Phalanger, the project reached Version 2.0 Beta 2 on July 30.

The primary goal of the project, released under Microsoft Shared Source Permissive License, is to enable full functionality of existing PHP scripts on .Net without any modification, Microsoft said. Unlike the original PHP interpreter, Phalanger compiles scripts into MSIL (Microsoft Intermediate Language).

The article goes on to talk about the project, the advantages it has over previous attempts, and where it's headed in the future. You can check out the CodePlex site here.

tagged: microsoft net language project phalanger beta codeplex microsoft net language project phalanger beta codeplex

Link:

eWeek:
Microsoft Hosts Project to Run PHP on .Net
Aug 10, 2006 @ 19:16:21

eWeek reports today that Microsoft is taking the first steps toward extending its support for other scripting languages with a new project to ry to run PHP on .NET.

Known as Phalanger, the project reached Version 2.0 Beta 2 on July 30.

The primary goal of the project, released under Microsoft Shared Source Permissive License, is to enable full functionality of existing PHP scripts on .Net without any modification, Microsoft said. Unlike the original PHP interpreter, Phalanger compiles scripts into MSIL (Microsoft Intermediate Language).

The article goes on to talk about the project, the advantages it has over previous attempts, and where it's headed in the future. You can check out the CodePlex site here.

tagged: microsoft net language project phalanger beta codeplex microsoft net language project phalanger beta codeplex

Link:


Trending Topics: