[PHP] funny unlink problem

2002-01-30 Thread sundogcurt

unlink(); help

the file I would like to delete (actual path)
/home/gruesome/public_html/nuved/clients/prestigemotors/images/55jpg

path I am feeding to unlink function
/home/gruesome/public_html/nuved/clients/prestigemotors/images/55jpg

error I get when I try to delete the file
Warning: Unlink failed (No such file or directory) in 
/home/gruesome/public_html/nuved/includes/content/addvehicle.php on line 
315

relative path to file (from script containing the unlink function)
../../clients/prestigemotors/images/55jpg

I am copying the file with the same script ($folder = 'prestigemotors' 
 $tempVID = '55')
$destination = '/home/gruesome/public_html/nuved/clients/' . $folder . 
'/images/' . $tempVID . '.jpg';
if(copy(stripslashes($ipath),$destination)) ...

Mandrake / Apache / Frustration

help?


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] funny unlink problem

2002-01-30 Thread Tony Bibbs

I see 55jpg NOT 55.jpg

--Tony

On Wed, 2002-01-30 at 12:40, sundogcurt wrote:
 unlink(); help
 
 the file I would like to delete (actual path)
 /home/gruesome/public_html/nuved/clients/prestigemotors/images/55jpg
 
 path I am feeding to unlink function
 /home/gruesome/public_html/nuved/clients/prestigemotors/images/55jpg
 
 error I get when I try to delete the file
 Warning: Unlink failed (No such file or directory) in 
 /home/gruesome/public_html/nuved/includes/content/addvehicle.php on line 
 315
 
 relative path to file (from script containing the unlink function)
 ../../clients/prestigemotors/images/55jpg
 
 I am copying the file with the same script ($folder = 'prestigemotors' 
  $tempVID = '55')
 $destination = '/home/gruesome/public_html/nuved/clients/' . $folder . 
 '/images/' . $tempVID . '.jpg';
 if(copy(stripslashes($ipath),$destination)) ...
 
 Mandrake / Apache / Frustration
 
 help?
 
 
 -- 
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 To contact the list administrators, e-mail: [EMAIL PROTECTED]
-- 
Tony Bibbs | Life is a moderately good play
[EMAIL PROTECTED] | with a bad 3rd act.
515.554.8046   | 


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] funny unlink problem

2002-01-30 Thread sundogcurt

AARHHH!!!

thank you!
(man I hate that...)

[EMAIL PROTECTED] wrote:

I see 55jpg NOT 55.jpg

--Tony

On Wed, 2002-01-30 at 12:40, sundogcurt wrote:

unlink(); help

the file I would like to delete (actual path)
/home/gruesome/public_html/nuved/clients/prestigemotors/images/55jpg

path I am feeding to unlink function
/home/gruesome/public_html/nuved/clients/prestigemotors/images/55jpg

error I get when I try to delete the file
Warning: Unlink failed (No such file or directory) in 
/home/gruesome/public_html/nuved/includes/content/addvehicle.php on line 
315

relative path to file (from script containing the unlink function)
../../clients/prestigemotors/images/55jpg

I am copying the file with the same script ($folder = 'prestigemotors' 
 $tempVID = '55')
$destination = '/home/gruesome/public_html/nuved/clients/' . $folder . 
'/images/' . $tempVID . '.jpg';
if(copy(stripslashes($ipath),$destination)) ...

Mandrake / Apache / Frustration

help?


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]