Ask a Question related to PHP Development, Design and Development.
-
James Brash #1
problem using unlink()
Hi,
I have a problem using unlink(); on a system using FreeBSD and Apache...
where my local system using Windows and Apache experiences no problems.
<?
unlink("test1.php");
?>
On the windows system is deletes the file, but on the FBSD system the file
does not delete and returns no error. I have tried using the full path, and
CHMODing the files but no luck. Thanks for any help/advice you can give me.
James Brash
James Brash Guest
-
Unlink and variables
Hello, I created a form to upload files. The formfield contents are stored as records in an Ascii file "data.dat"; for reasons I am not using a... -
Still need unlink help!! God help me. - Revisited
<20030808202717051099.GyazMail.neuroball@usa.net> <YW50aWdvbmU=.45ab06a65368617cf57750f9f6311818@1060402929.cotse.net> -
Still need unlink help!! God help me.
Still having problem with unlink. My original problem began with deleting files from a list. I seem to have fixed the problem reading the list but... -
Help with Unlink please
> Steve Grazzini wrote at Wed, 06 Aug 2003 23:38:00 -0400: Neither of these worked. I am beginning to think that there is something wrong with... -
unlink() in a loop???
I have a script that allows users to upload pics and enter personal info into Database (not pictures i only store filename in db). The form passes... -
Pascal Miquet #2
Re: [PHP] problem using unlink()
Hello,
I'd suggest to have a look at your php.ini and see the value of some
execute external commands. Don't remember exactly the name of this flag.
HTH
Regards
Pascal Miquet
Le mar 05/08/2003 à 13:53, James Brash a écrit :>
> Hi,
> I have a problem using unlink(); on a system using FreeBSD and Apache...
> where my local system using Windows and Apache experiences no problems.
>
> <?
> unlink("test1.php");
> ?>
>
> On the windows system is deletes the file, but on the FBSD system the file
> does not delete and returns no error. I have tried using the full path, and
> CHMODing the files but no luck. Thanks for any help/advice you can give me.
>
> James Brash
>
>
> --
> PHP General Mailing List ([url]http://www.php.net/[/url])
> To unsubscribe, visit: [url]http://www.php.net/unsub.php[/url]
>Pascal Miquet Guest
-
Curt Zirzow #3
Re: [PHP] problem using unlink()
* Thus wrote James Brash (jamesbrash@btinternet.com):
Make sure your error_reporting flag is turned on to the fullest>
> Hi,
> I have a problem using unlink(); on a system using FreeBSD and Apache...
> where my local system using Windows and Apache experiences no problems.
>
> <?
> unlink("test1.php");
> ?>
>
> On the windows system is deletes the file, but on the FBSD system the file
> does not delete and returns no error. I have tried using the full path, and
> CHMODing the files but no luck. Thanks for any help/advice you can give me.
value, I usually apply this in a script to ensure all flags are
turned on:
error_reporting(-1);
Php should output some sort of text that is causing unlink to fail.
HTH,
Curt
--
"I used to think I was indecisive, but now I'm not so sure."
Curt Zirzow Guest
-
Marek Kilimajer #4
Re: [PHP] problem using unlink()
You need to chmod or chown the directory where the file is located.
James Brash wrote:
> Hi,
> I have a problem using unlink(); on a system using FreeBSD and Apache...
> where my local system using Windows and Apache experiences no problems.
>
> <?
> unlink("test1.php");
> ?>
>
> On the windows system is deletes the file, but on the FBSD system the file
> does not delete and returns no error. I have tried using the full path, and
> CHMODing the files but no luck. Thanks for any help/advice you can give me.
>
> James Brash
>
>Marek Kilimajer Guest
-
James Brash #5
RE: [PHP] problem using unlink()
thanks for your help, I have already its 777
>You need to chmod or chown the directory where the file is located.
James Brash Guest



Reply With Quote

