url - php script to access multiple web pages -
i need function/method in php access multiple web pages in loop. can manually access web page , load scripts on there. i'm not downloading information want script access php code can run on page. it's hack program i'm working on needs cron jobs running. cron job run 1 script load multiple pages eg. http:// localhost/program/script1, http:// localhost/program/script2. can dynamically add pages database time goes on.
here separate code want shared file , use
require("/path/to/filename.php");
the path instead of being url filesystem path saved file.
good starting points reference file $_server["document_root"] like.
require($_server["document_root"]."/program/script1.php");
Comments
Post a Comment