News:

Click here for Toll-Free Service for your business starting at $2.00 per month

Main Menu

rename() PROBLEMS! Delets my damn files!

Started by sixthcrusifix, November 30, 2005, 04:10:59 PM

Previous topic - Next topic

sixthcrusifix

I used rename() to rename a PNG file... and it did change the name. It also erases eveything, the file is 0 bytes. HOW can you rename something without delting it!??!?!??!
Visite me website at http://www.sixthcrusifix.com

admin

It should not erase the file.

Please provide an example filename/URL.

Be sure you do not have another file with the same name.

Thank you,
FreePgs.com Admin

sixthcrusifix

Quote from: admin on November 30, 2005, 04:18:17 PM
It should not erase the file.

Please provide an example filename/URL.

Be sure you do not have another file with the same name.

Thank you,
FreePgs.com Admin

Turns out I'm just an idiot. I was opening the file with fopen() before and I accidentlay wrote over it. The file was curropt to begin with I just thought it was rename. It works now, sorry.
Visite me website at http://www.sixthcrusifix.com