popen will allow you to read/write data to a file but not execute the php code.

i am assuming that you want to execute the php script like
include/require does.. if that is the case system() will serve your
purpose....but this requires php to be installed as a CLI
$res = system("path/to/php.exe /path/to/second/file.php");

but as Nathan suggested it would be best for you if you considered
alternative options. for example you can make an AJAX  request to the
second file.

PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to