Jump to content

cron job to rename files


ukscotth

Recommended Posts

Hi,

 

Is it possible to create a cron job to rename 10 files on a server and then rename the refrences to those files within a php file ?

 

Can anyone help me plzz ?

 

The reason is to help stop people stealing my images.  My ideas was to convert the images into flash movies and then constantly rename them so if people link to my flash movies e.g www.mysite.com/myflashpic1.swf then the link will become useless when the next cron is run.

 

Hope that makes sense.

 

Scott.

 

 

 

Link to comment
Share on other sites

The best solution would just be to put them into a directory under public_html e.g

 

<object type="application/x-shockwave-flash" data="./fdir/155.swf" width="640" height="480" wmode="opaque"></object>

 

That would stop leaching as they have the script has to be on the host were the images are.

Link to comment
Share on other sites

thanks chris.

 

Not sure I understand though, surely people would just be able to send the links to whoever they like e.g www.mysite.com/fdir/155.swf

 

Uh how could i explain it

 

You know how people can only access your website in the public_html folder?, Well you would put your files in a file before that, so then only scripts on the server can access it

 

so when you have some flash or something you put for the directory ./flash/flash.swf that "." means the folder before the one the scripts in

Link to comment
Share on other sites


<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0" width="370" height="460">
      <param name="movie" value="./flash/aa63.swf">
      <param name="quality" value="high">
      <embed src="./flash/aa63.swf" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="370" height="460"></embed>
    </object>



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.