473,320 Members | 2,041 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,320 software developers and data experts.

PHP posting script, file updated but web still shows last night's file

I wrote a PHP script that allows me to post HTML entries to files on my
server without going through FTP, yadda yadda. It works fine, and last night
it updated both files properly.

Today, it updated both files perfectly again, but only one file is showing
up on the web. I checked the HTML files in my FTP folder, and both are
updated with the new post. To double check, I copied and pasted the contents
of the file as it should be and uploaded it to the correct location, which
is the failproof way to do it. When viewing the file in my FTP folder, it is
ALL THERE. However, switching over to HTTP, which simply reads that same
file in read-only mode, it only shows last night's contents. No update for
today.

I've checked on different computers, so all I can think is that file
permissions got screwed up. Anybody know what's going on?

Thanks...
Jul 16 '05 #1
3 3187
JPM III wrote:

I wrote a PHP script that allows me to post HTML entries to files on my
server without going through FTP, yadda yadda. It works fine, and last night
it updated both files properly.

Today, it updated both files perfectly again, but only one file is showing
up on the web. I checked the HTML files in my FTP folder, and both are
updated with the new post. To double check, I copied and pasted the contents
of the file as it should be and uploaded it to the correct location, which
is the failproof way to do it. When viewing the file in my FTP folder, it is
ALL THERE. However, switching over to HTTP, which simply reads that same
file in read-only mode, it only shows last night's contents. No update for
today.


So your script is making 2 copies of each file - one in your ftp directory and
one in a web-accessable directory?

Could you post some code?

You're sure the file is not being cached by your browser, right?

Shawn
--
Shawn Wilson
sh***@glassgiant.com
http://www.glassgiant.com
Jul 16 '05 #2
> So your script is making 2 copies of each file - one in your ftp directory
and
one in a web-accessable directory?

Could you post some code?

You're sure the file is not being cached by your browser, right?


The php file is on the web server. The web server is updating the files on
the web server. It's updating the files that are already on the web. I'm
trying to figure out why the web accessible file, which is updated when i
login via FTP, isn't updated when I login via HTTP.
Jul 16 '05 #3
> Could you post some code?

You're sure the file is not being cached by your browser, right?


Uhh, yeah. It's updating the files on the server, but they're not displaying
in HTTP. It's like port 80 is waiting for something.

http://crash.neotope.com/post.txt
Jul 16 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

10
by: Doug | last post by:
I have a script that does a huge database update, which takes a long time. However, the host I am running on (and I suspect most hosts) are running in "safe mode." This means I cannot change the...
2
by: Jonathan M. Rose | last post by:
I am looking for a script that I can sit on an HTML server (Linux, Apache, PHP/Perl/Python/Etc.) that will allow me to do the following things: 1) Post news articles that consists of (i) a title...
9
by: John | last post by:
Hi All, I have encountered a problem with the ldb file of a database. When making changes to the backend databases I need exclusive access to make changes. I usually do this at night when all...
5
by: m_t_hill | last post by:
Running MS Access 2000 MS Windows XP Pro This has caused me a lot of hair loss in the last few days so would appreciate any help. I am running code to append/update a local access database...
3
by: kustomguitarist | last post by:
I'm working on updating a page for a club that I'm involved in at school. It's on an apache server and I am editing the .htm file through linux. Does anyone know a script that I could include in...
17
by: Phil M | last post by:
Hi all. I have am HTML web page where I upload an updated file which is always called document.pdf. Users get there, click on the icon and download the document.pdf. Below the icon/link where...
1
by: Svetac | last post by:
Hi, I use a script that shows when the page was last modified. It works fine for just one html file. The thing I would like to do is that the script shows me of last modified file in root...
3
by: ollebollebagare | last post by:
For the last few days some of my web site users have been having problems posting asp.net forms. This problem arises everytime they try to post a form in asp.net, but never when the page is plain...
12
by: Phillip B Oldham | last post by:
I'm keen on learning python, with a heavy lean on doing things the "pythonic" way, so threw the following script together in a few hours as a first-attempt in programming python. I'd like the...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.