Posted by justify, 05-21-2008, 08:34 AM | Hello,
I have a server and 8 sites using same script on the same server.
A function of the script is providing me to upload images from admin panel. But it doesn't work..
I select image and press upload button, it shows me blank page after upload completed but no file is uploaded to the folder.
I think there is a software that's resizing image but not sure. The Os is centos.
Please help
Thanks.
|
Posted by Steve_Arm, 05-21-2008, 09:08 AM | Err... with this information only a magician can help you...
- Is it a custom script?
Paste some code if you can.
|
Posted by justify, 05-21-2008, 01:22 PM | if($act=="ekle"){
if (file_exists($logo)){
if (substr($logo_name,bcsub(sizeof($logo_name),4))=="gif" OR substr($logo_name,bcsub(sizeof($logo_name),4))=$
$logo_name=md5(microtime()).".gif";
$logo_dizin="../logo_110x25/".$logo_name;
copy($logo,$logo_dizin);
mysql_query("INSERT INTO logolar (l_firma, l_logo) VALUES ('$_POST[firma]', '$logo_name')");
}
else{
print "";
}
}
}
elseif($act=="guncelle"){
$sql="SELECT * FROM logolar WHERE l_id='$yid'";
$sonuc=vericek($sql);
$veri=mysql_fetch_array($sonuc);
if (file_exists($logo)){
if (substr($logo_name,bcsub(sizeof($logo_name),4))=="gif" OR substr($logo_name,bcsub(sizeof($logo_name),4))=$
$logo_name=md5(microtime()).".gif";
$logo_dizin="../logo_110x25/".$logo_name;
unlink("../logo_110x25/$veri[l_logo]");
copy($logo,$logo_dizin);
mysql_query("UPDATE logolar SET l_firma='$_POST[firma]', l_logo='$logo_name' WHERE l_id='$yid'");
}
else{
print "";
|
Posted by justify, 05-21-2008, 01:30 PM | Here it's, I am sorry it was gif not jpeg
|
Posted by Steve_Arm, 05-21-2008, 02:00 PM | What are the permission of the folders where the copy() command does the copy?
You can add at top of the script this code:
error_reporting(E_ALL);
and see if an error is outputed.
|
Posted by justify, 05-21-2008, 03:32 PM | Hi,
can you please help me over MSN? If you want payment, no problem, I believe we can negotiate.
Thank you.
|
|
Add to Favourites
Print this Article |