how to delete

how to delete

am 19.06.2007 07:08:17 von Asim

--0-51640902-1182229697=:83298
Content-Type: text/plain; charset=iso-8859-1
Content-Transfer-Encoding: 8bit

HI

can you tell me how to delete images from HARD DISK OR WEB SPACE by using php?

i have created tumbnails of some images and they are stored on HARD DISK IN PRESCRIBED FOLDER. now i use

DESTROYIMAGE();

FUNCTION in php but it didnot delete crearted thumbnails of prescribed folder. i am doing this to save webspace.

moreover, is there any way to create THUMBNAILS WITHOUT SAVING IMAGES WITH NEW SIZE ON HARD DISK?


BYE


Asim Jamil - 0092 345 4025907, Pakistan

---------------------------------
Yahoo! oneSearch: Finally, mobile search that gives answers, not web links.
--0-51640902-1182229697=:83298--

Re: how to delete

am 19.06.2007 10:11:32 von bedul

unlink
(PHP 3, PHP 4, PHP 5)

unlink -- Deletes a file
Description
bool unlink ( string filename [, resource context] )


Deletes filename. Similar to the Unix C unlink() function.
Returns TRUE on success or FALSE on failure.

????: As of PHP 5.0.0 unlink() can also be used with some
URL wrappers. Refer to ???? M for a listing of which
wrappers support unlink().

????: Context support was added with PHP 5.0.0. For a
description of contexts, refer to ???? ???? CL, Stream
Functions.

See also rmdir() for removing directories.


tes it out...

instead using CAPITAL.. u can use "this text mean bold" (use
" ")
----- Original Message -----
From: "Asim"
To:
Sent: Tuesday, June 19, 2007 12:08 PM
Subject: [PHP-DB] how to delete


> HI
>
> can you tell me how to delete images from HARD DISK OR
WEB SPACE by using php?
>
> i have created tumbnails of some images and they are
stored on HARD DISK IN PRESCRIBED FOLDER. now i use
>
> DESTROYIMAGE();
>
> FUNCTION in php but it didnot delete crearted thumbnails
of prescribed folder. i am doing this to save webspace.
>
> moreover, is there any way to create THUMBNAILS WITHOUT
SAVING IMAGES WITH NEW SIZE ON HARD DISK?
>
>
> BYE
>
>
> Asim Jamil - 0092 345 4025907, Pakistan
>
> ---------------------------------
> Yahoo! oneSearch: Finally, mobile search that gives
answers, not web links.

--
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Re: how to delete

am 19.06.2007 10:11:32 von bedul

unlink
(PHP 3, PHP 4, PHP 5)

unlink -- Deletes a file
Description
bool unlink ( string filename [, resource context] )


Deletes filename. Similar to the Unix C unlink() function.
Returns TRUE on success or FALSE on failure.

????: As of PHP 5.0.0 unlink() can also be used with some
URL wrappers. Refer to ???? M for a listing of which
wrappers support unlink().

????: Context support was added with PHP 5.0.0. For a
description of contexts, refer to ???? ???? CL, Stream
Functions.

See also rmdir() for removing directories.


tes it out...

instead using CAPITAL.. u can use "this text mean bold" (use
" ")
----- Original Message -----
From: "Asim"
To:
Sent: Tuesday, June 19, 2007 12:08 PM
Subject: [PHP-DB] how to delete


> HI
>
> can you tell me how to delete images from HARD DISK OR
WEB SPACE by using php?
>
> i have created tumbnails of some images and they are
stored on HARD DISK IN PRESCRIBED FOLDER. now i use
>
> DESTROYIMAGE();
>
> FUNCTION in php but it didnot delete crearted thumbnails
of prescribed folder. i am doing this to save webspace.
>
> moreover, is there any way to create THUMBNAILS WITHOUT
SAVING IMAGES WITH NEW SIZE ON HARD DISK?
>
>
> BYE
>
>
> Asim Jamil - 0092 345 4025907, Pakistan
>
> ---------------------------------
> Yahoo! oneSearch: Finally, mobile search that gives
answers, not web links.

--
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Re: how to delete

am 19.06.2007 16:40:03 von Niel Archer

Hi

There is no DESTROYIMAGE() function. May be you mean imagedestroy(). If
so this does NOT erase files, it destroys in memory images created using
the Image functions.

To erase files use the unlink function. For detail look here http://uk3.php.net/unlink

Niel

--
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php