PHP:COM to open .php file

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
imyizzati
Forum Newbie
Posts: 2
Joined: Sun Dec 13, 2009 8:23 pm

PHP:COM to open .php file

Post 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?
User avatar
AbraCadaver
DevNet Master
Posts: 2572
Joined: Mon Feb 24, 2003 10:12 am
Location: The Republic of Texas
Contact:

Re: PHP:COM to open .php file

Post 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.
mysql_function(): WARNING: This extension is deprecated as of PHP 5.5.0, and will be removed in the future. Instead, the MySQLi or PDO_MySQLextension should be used. See also MySQL: choosing an API guide and related FAQ for more information.
imyizzati
Forum Newbie
Posts: 2
Joined: Sun Dec 13, 2009 8:23 pm

Re: PHP:COM to open .php file

Post 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
Post Reply