-
storing images
$ext = substr("$mainimage", -3, 3);
$path = "../admin/image/";
$filename = time().".".$ext;
$image = $path.$filename;
//copy($mainimage, $image);
echo "$mainimage";
//$exec = exec("cp $mainimage $image");
When I click onto the image,
this is what appears
./image/123.gif&f
-
Not sure what's going on with that, since I don't know where you are getting the image name. I assume it's grabbing an image from upload?
I use a pretty cool image upload script found at: http://px.sklar.com/code-pretty.html?code_id=111
It uses php to determine image type (no more substr) and saves wherever you want, with whatever name. You may be able to use some of it.
Hope this helps
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
Bookmarks