Page 1 of 1

execute external php file inside php file

Posted: Wed Aug 27, 2008 6:48 am
by geethalakshmi
I am working with the concept of threading, Here I want to execute a same php file more than one time simultaneously. Is there is any command to execute php file?
I used exec() function to execute external php file, issue here is i cannot implement threading concept here. When i call this exec() function for different files, the files are executed one after the other, it is not executed simultaneously.
Please suggest me how to implement threading concept.
Even when I am using exec() function I am not able to pass more than one arguments, ie., arguments after '&' is not passed to the remote program.

Code: Select all

exec("C:/path/wget.exe -q http://localhost/sitemapprototype/crawl.php?thread={$nam}&uurl={$urll}");
How can I solve this issue?

Thanks in advance
Geetha

Re: execute external php file inside php file

Posted: Wed Aug 27, 2008 8:02 am
by ghurtado
What is this for?

Re: execute external php file inside php file

Posted: Wed Aug 27, 2008 8:07 am
by marcth

Code: Select all

include('http://www.example.com/file.txt?foo=1&bar=2');
should work.

You should use SOAP through ;)