Jump to content

Script must be in same folder as Image?


npsari

Recommended Posts

If I upload this script in /www/ads/insert/image/ it works fine

If I upload it in /www/ads/insert/ it does not work :( It says PHP could not open /new/ to upload image

 

<?

$target_path = 'images/new/';
$image_name = 'myself.gif';

if( imagejpeg( $tmp_img, "{$target_path}{$image_name}" ) ){
print"image uploaded!";
}

?>

 

I think because PHP only allows to upload images 1 folder deep!!!

 

Why? How do I solve this? I want to create different folders for each group of images

 

Link to comment
https://forums.phpfreaks.com/topic/250064-script-must-be-in-same-folder-as-image/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • 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.