Page 1 of 1

PHP:COM to open .php file

Posted: Thu Jan 07, 2010 10:50 am
by imyizzati
can someone suggest what method need to be used in PHP COM if i want to open .php file?
If to open .html file, $ie->navigate("filename.html"); will be used. But how to open .php file?

Re: PHP:COM to open .php file

Posted: Thu Jan 07, 2010 2:07 pm
by AbraCadaver
Did you try?

Code: Select all

$ie->navigate("http://www.example.com/filename.php");
Obviously the PHP file needs to be hosted on a web server with PHP installed so that the page can be parsed and executed, whereas with HTML this is not necessary because the browser understands HTML.

Re: PHP:COM to open .php file

Posted: Thu Jan 07, 2010 6:44 pm
by imyizzati
already try the code.I'm using my own machine as the localhost with apache and php installed.The exception message give this :COM exception 'com_exception' with message 'Source: Unknown