Jump to content

PHP redirect and random names


ben.martin

Recommended Posts

Hi there,

 

  Im fairly new to php scripting, i have learnt the basics and am able to write a script to upload a file, rename it and move it to any given directory. But what i want to do is take a file already on my server, copy and rename it, move it, and redirect to it.

 

Basically i want to create a webpage that is unique to every visitor, so the page is the same in terms of layout, but the url is unique to the person who clicked on the link. I figured the best way to do this would be to create the generic page and place it on the server, then have a php script activate when a visitor clicks on the link.

 

So the script would take that file, copy and rename it, move it to a different directory, and then redirect to that page. I can't seem to figure out how to do this with already uploaded files. Any help would be greatly appreciated.

 

Regards.

 

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.