Share » Forums » Developer » Run PHP5 script on eZ setup and...

Run PHP5 script on eZ setup and running on PHP4

Run PHP5 script on eZ setup and running on PHP4

Thursday 02 March 2006 6:42:24 am - 2 replies

Author Message

Mindaugas Rimgaila

Thursday 02 March 2006 7:03:48 am

One of this problem solving could be executing external command $res=exec('php5-cgi ./file_to_run.php5')
but it's not very flexible, i must form response of PHP5 file that it could be understud by operator script file

So maibe i could write my own operator parser, where could be posible to define which PHP version to use

Mindaugas Rimgaila

Saturday 04 March 2006 10:56:21 am

I found the solution:

i simply setup internal page with local IP address, which is parsed via PHP5 and downloading this page via eZ operator

in my local page result is in tags like:

<LocalPHP5Var1><?php echo $var1; ?></LocalPHP5Var1>

and in operator i wrote function getTagContent

this was necesure to use PHP5 for me because in PHP5 you can use multithreaded webpage download. If someone also is interested in multithreaded webpage crawler take a look to http://curl.haxx.se/libcurl/php/examples/multi.html

:) so it seems that i solved this problem by my own

You must be logged in to post messages in this topic!

36 542 Users on board!

Forums menu