Jump to content

Using a cookie to save uploaded file names


phillips321

Recommended Posts

Hi guys,

 

My site www.forumpix.co.uk is a tool that can be used for user to upload images.

 

When a user uploads an image it get's stored on my server as $image_name

 

How could i check for a cookie on the user pc and if there is one read in the uploaded images. (if not then create one)

If a new image is uploaded then apend the cookie with $image_name

 

Thus, i can display the users recently uploaded pictures.

 

Cheers guys

hmm.... I think this would be easier if you did it maybe via ip and used sql.

That way when some goes to upload an image you check the ip do a search in the sql ind and other image they have upload and presto.

 

--EDIT--

 

What are the chances, I uploaded an image to you site yesterday when you posted it in the beta section part. i just revisited your site, clicked the random image button and the first image it showed me was the one i uploaded.

 

=back on topic=

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.