Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Checking the status of function conitnuously in my php script

Status
Not open for further replies.

msjfc615

Programmer
Feb 26, 2004
13
US
Hello,

Here is the deal any help pointing me in the right direction would be more than greatly apprectiated.

I am writing a script that goes out and scrapes a page. I am running this in the background and when I am done I write the contents to a txt file called status.txt. My question is there a way in php to go out and check to see if the file is created. Also is there a way to this continuously without resetting the page. I was thinking about reading in the file and then keep using meta refresh until the file exists. I am just wondering if there is a better way of going about doing this.

Thanks for the help
Mark
 
Although not too sure what you wish to accomplish I would use a simple while statement checking if the file is created, if not, continue doing your thing.


JR
As a wise man once said: To build the house you need the stone.
Back to the Basics!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top