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

Link to comment
Share on other sites

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=

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.