Panelli Bir sitem var host tasıma işleminde bazı sorunlar olustu artık panelden ürün resmi ekleyemıyorum altakı hatayı alıyorum
Warning: mysql_free_result(): supplied argument is not a valid MySQL result resource in /vhosts/http/admin/yukle.php on line 42
Warning: move_uploaded_file(../images/<br /><b>Warning</b>: Cannot modify header information - headers already sent by (output started at /vhosts/http/.cnn/conn_inc.php:1) in <b>/vhosts//http/admin/urungetir.php</b> on line <b>3</b><br />85-1-istanbul.jpg) [function.move-uploaded-file]: failed to open stream: No such file or directory in /vhosts//http/admin/yukle.php on line 53
Warning: move_uploaded_file() [function.move-uploaded-file]: Unable to move '/vhosts/tmp/phpQ9y7gn' to '../images/<br /><b>Warning</b>: Cannot modify header information - headers already sent by (output started at /vhosts/http/.cnn/conn_inc.php:1) in <b>/vhosts//http/admin/urungetir.php</b> on line <b>3</b><br />85-1-istanbul.jpg' in /vhosts//http/admin/yukle.php on line 53
yardımlarınız ıcın tesekkurler
Yukle.php
<?php
$scr="<script>
function postIt()
{
var uzanti= document.forms[0].file.value.substring(document.forms[0].file.value.length-3)
if (uzanti.toUpperCase()!='JPG'){
alert('Lütfen 'JPG' uzantili bir dosya seçin');
}
else {
document.getElementById("mesaj").innerHTML="Dosya Gönderiliyor,Lütfen Bekleyiniz..";
document.forms[0].submit();
}
}
</script>";
$dip="";
$uyari="";
include "head_inc.php";
include "createthmbimg.php";
if($haklardizi["ima"]){
include "../.cnn/useful_inc.php";
if(@$_GET['p']=="1"){
$prodid=$_GET['prodid'];
$maxid='';
$sql="select max(id) as "maxid" from prodimages where prodid=".$prodid." limit 1";
$result=mysql_query($sql);
if (@mysql_num_rows($result)>0){
$row=mysql_fetch_array($result,MYSQL_ASSOC);
$maxid=$row["maxid"]+1;
};
mysql_free_result($result);
if ($maxid=='') $maxid='1';
$aciklama=$_POST["aciklama"];
$ftmp = $_FILES['image']['tmp_name'];
$oname = duzelt($_FILES['image']['name']);
$dir='../images/';
$fname = $prodid."-".$maxid."-".$oname;
$fields=array("prodid","path","imagename");
$data=array($prodid,$fname,$aciklama);
if(move_uploaded_file($ftmp, $dir.$fname)){
thumbimage($dir.$fname,$dir.$fname,270,270);
$id=addRecord("prodimages",$fields,$data);
echo "<script>parent.getimagelist('".$prodid."'); </script>";
} else {
echo "<script>alert('Hata, Dosya yüklenemedi')</script>";
}
}
?>
<body<?php echo $dip?> style="background-color:#FFFFFF">
<form name="iform" action="yukle.php?p=1&prodid=<?php echo $_GET['prodid'];?>" method="post" enctype="multipart/form-data">
<table>
<tr>
<td colspan="2"><strong>Resim Ekle</strong></td>
</tr>
<tr>
<td width="138">Dosya : </td>
<td width="391"><input id="file" type="file" name="image" size="50" /></td>
</tr>
<tr>
<td width="138">Açiklama : </td>
<td width="391"><input id="aciklama" type="text" name="aciklama" size="50" /></td>
</tr>
<tr>
<td height="32" colspan="2" align="center" valign="bottom"><input type="button" name="gonder" value=" Gönder " onClick="this.disabled=true;postIt();">
<input type="hidden" name="imgnum" /></td>
</tr>
</table>
</form>
<div id="mesaj"> </div>
</body>
<?php } else {
echo $erisimhata;
exit;
} ?>
</html>
Ürüngetir.php
<?php
require "application.php";
header("Content-Type: text/xml; charset=iso-8859-9");
$prodid=$_POST["prodid"];
$sql="select * from products where prodid=$prodid limit 1";
$result=mysql_query($sql);
if (@mysql_num_rows($result)>0){
$row = mysql_fetch_row($result);
$prods=implode('|*|',$row);
echo $prods;
};
mysql_free_result($result);
?>
Sorunun kaynağı siteni taşıdığın sunucudaki php.ini ayarlarından olabilir.Onları inceleyebilirsin.Eğer diğer hostta çalışıyorsa zaten mantık olarak sorun kendini belli ediyor.Ayrıca tek cvp halinde neden yazmadın sorununu?Bu şekilde yardımcı olunmasını güçleştiriyorsun.
