Justtechjobs.com Find a programming school near you






Online Campus Both


php-general | 2003022

Re: [PHP] Creating a file to write to? From: Adam Voigt (adam <email protected>)
Date: 02/19/03

http://www.php.net/fopen

fopen("filename","w");

On Wed, 2003-02-19 at 13:13, Beauford.2002 wrote:

    Hi,
    
    I want to be able to check to see if a file exists and if so I want
    to be
    able to overwrite it. If it doesn't exist I want to be able to
    create it and
    then make sure it is writable. A lot of this I have found in the PHP
    manual,
    but I can't find anywhere on how to just create the file or
    overwrite it if
    it exists.
    
    Thanks for any help...
    
    
    
    
    --
    PHP General Mailing List (http://www.php.net/)
    To unsubscribe, visit: http://www.php.net/unsub.php
    

-- 
Adam Voigt (adam <email protected>)
The Cryptocomm Group
My GPG Key: http://64.238.252.49:8080/adam_at_cryptocomm.asc