Re: Adv. photo scripts

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Thanks for all the replys. I should have warned you in advance that I am new ;)


"Casey" <heavyccasey@xxxxxxxxx> wrote in message news:1a221fe0711242319u6d784950obb8f2a587b45c710@xxxxxxxxxxxxxxxxx
On Nov 24, 2007 11:16 PM, Robert Cummings <robert@xxxxxxxxxxxxx> wrote:
On Sun, 2007-11-25 at 01:59 -0500, PHP-General wrote:
> Not sure if I'm at the right place but here goes....
>
> I'm trying to create a script that will let users upload photos. It is > a > high traffic site and I've been told its best to create a function that > will > generate a unique filename for a temp. file, put the temp file > elsewhere on > the server, and then use an (unlink???) function to delete the temp. > file
> after it gets written to the d-base.
>
> How would I do that?

PHP already does ALL that for you. You just need to save the file to
your DB. See the $_FILES global array for uploaded files.

Cheers,
Rob.
--
...........................................................
SwarmBuy.com - http://www.swarmbuy.com

    Leveraging the buying power of the masses!
...........................................................


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



See this for examples:

http://us.php.net/features.file-upload

-Casey

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


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux