What I want to do is to rename a particalar file that is ftp'd to the server into a certain folder which I will call "raw" and have that file renamed to "image.jpg" in the folder "webcam" but the file uploaded by the webcam is different every time because the webcam puts the time and date in the filename. So far I have worked out this:
<?php rename("/home/a6773990/public_html/webcam/raw/"'*',"/home/a6773990/public_html/webcam/webcam/image.jpg"); ?> [/CODE=PHP][CODE=PHP]
<?php
rename("/home/a6773990/public_html/webcam/raw/"'*',"/home/a6773990/public_html/webcam/webcam/image.jpg");
?>
[/CODE=PHP]