473,545 Members | 2,073 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 3196
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***@glassgian t.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
5380
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 maximum execution time of scripts. So, the script stops right in the middle of doing the update. On top of that, I am trying to make code that I...
2
1831
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 and (ii) a body. 2) Show the last X posts (or, better yet, just the last X titles) on a home page. 3) Show all posts on a "news" page. 4) When a...
9
15741
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 users have left the premises, but for the last couple of nights there are no users using the database and the ldb file is still visible even though...
5
2927
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 from a remote MS SQL database. The method of determining which records to append is primarily using the last date an update was carried out; I...
3
3428
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 the html file that would display the Time and Date that the .htm file was last updated? Thanks! I tried the following two things that I found...
17
4732
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 users click to get document, is there any way to display the datestamp of document.pdf? ie: the document you're about to download was updated:...
1
2171
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 directory. For example if I change something in gallery.html or feed.xml, I would like to see that date of change in index.html under last modified date....
3
1366
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 old asp. The different forms are on the same web site. None of the asp.net forms work, but all the asp forms work. There is no problem just loading...
12
1267
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 community's thoughts/comments on what I've done; improvements I can make, "don'ts" I should be avoiding, etc. I'm not so much bothered about the...
0
7405
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language...
0
7659
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. ...
1
7428
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For...
0
5975
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then...
0
4949
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert...
0
3455
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in...
0
3444
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
1887
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
1
1019
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.