PHP script to read my FTP file...

Ask questions, request features, or just complement us about our software and services.
Post Reply
DJGtronic
Posts: 9
Joined: Mon Jan 09, 2006 7:55 pm
Contact:

PHP script to read my FTP file...

Post by DJGtronic »

I am currently FTPing my homepage using RTB. My homepage has all my stats displayed. To update this page I have a refresh every 120 secs using the following code:

<META HTTP-EQUIV="refresh" CONTENT="120; URL=http://www.gtronicradio.com">

For a number of reasons this page doesn't always load; Trying to refresh right as the page is being FTPed is the #1 reason.

Can you think of a better way of doing this? Can I FTP a text file with all info from RTB and write a PHP script to read this text file? Would I still have the refresh problem? In the end I want a page that updates without the user having to do anything...is this even possible.

I want to continue to use ftp since an automation software package I am looking at uses FTP. Of course I would continue to use RTB also...this software rocks. Thanks Jay.

Any help would be great. Thanks in advance
User avatar
Jay
Will work for food (Administrator)
Posts: 3020
Joined: Mon Jan 14, 2002 12:48 am
Location: Next Door
Contact:

Post by Jay »

yea with ftp you are likely going to have file lock problems that cannot be avoided. You could always use the PHP scripting feature and that will help.
- Jay
Post Reply