Code: Select all
exec("cp $picture /full/path/to/joesauto/images/$picture_name");Oh, and just to be sure, the variables all have to be changed to $_POST var's, right?
Moderator: General Moderators
Code: Select all
exec("cp $picture /full/path/to/joesauto/images/$picture_name");"cp" is the unix/linux command to copy a file:Steveo31 wrote:The URL I'm lookin at is http://www.phpbuilder.com/columns/willi ... hp3?page=4 and you'll see in the code that it has the following line:I looked it up on PHP.net and it said that the exec command is for executing internal programs... but what is CP? I didn't see it defined anywhere in the phpbuilder link.Code: Select all
exec("cp $picture /full/path/to/joesauto/images/$picture_name");
Oh, and just to be sure, the variables all have to be changed to $_POST var's, right?