Re: XML File does not reflect changes upon reopen - HELP

From: Date: Thu, 09 Jan 2003 14:57:04 +0000
Subject: Re: XML File does not reflect changes upon reopen - HELP
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-130958@lists.php.net to get a copy of this message
There might be couple of problems: - your php script should read from the cgi script until EOF, so it continues after the other script finishes - your cgi script should fflush the file before closing, and then close the connection - use clearstatcache() before opening the file if the php script accesses the file before Phil Powell wrote:
I am making changes to an XML file (and the only way I can, unless anyone knows how in PHP I can write TO an XML file!!! is to use a TCL CGI script to write to the XML file), once changes have been made I need to reopen the file and read its contents, however, every time I do I am getting OLD file information and NOT my changes, every single time, unless I refresh my page... Does anyone know what I can do about this? I can't redirect them, that would be horribly inefficient.. what can I do? Thanx Phil


« previous php.general (#130958) next »