FreePgs.com Forum

FreePgs Related => Support Requests => Topic started by: sixthcrusifix on November 30, 2005, 04:10:59 PM

Title: rename() PROBLEMS! Delets my damn files!
Post by: sixthcrusifix on November 30, 2005, 04:10:59 PM
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!??!?!??!
Title: Re: rename() PROBLEMS! Delets my damn files!
Post by: 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
Title: Re: rename() PROBLEMS! Delets my damn files!
Post by: sixthcrusifix on November 30, 2005, 05:01:48 PM
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.