[thelist] refresh after unlink function

Max Schwanekamp lists at neptunewebworks.com
Wed Jan 17 21:11:19 CST 2007


Mark Mckee wrote:
> i am almost done creating the script to delete text files from the 
> server. i have iot working a treat, however, after i click delete, the 
> file is removed but the page still displays the file and it does not 
> refresh. i have tried using a header function to refresh but i get the 
> cannot modify headers error and the page does not refresh at all.

You can use output buffering to suppress all output until the end of the 
script.  You can issue headers at will through the script.
http://us3.php.net/ob_start

That said, you might consider changing your code so that the deletion 
script is separated from the output script.

-- 
Max Schwanekamp
NeptuneWebworks.com
541-255-2171




More information about the thelist mailing list