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

Popular posts from this blog

c# - DetailsView in ASP.Net - How to add another column on the side/add a control in each row? -

javascript - firefox memory leak -

Trying to import CSV file to a SQL Server database using asp.net and c# - can't find what I'm missing -