aupa lagunak,galdera bat neukan zuentzat.<br /> Gauza da php-rekin serbitzarira argazki edo fitxero batzuk igo nahi ditudala eta hurrengo errorea besteriik ez zait agertzen:<br /> <strong>Warning</strong>: copy(mail056.gif): failed to open stream: No such file or directory in <strong>/home/hugarte/public_html/subir/subir.php</strong> on line <strong>9<br /> </strong>eta 9.lerroan daukaten sententzia hurrengua da::<br /> copy($archivo,$archivo);<br /> Era ezberdinak probatu ditut move_uploaded_file() funtzioa erabilita ruta desberdin baten sartzen ahaleginduta... baina ezerrez.<br /> Baten batek arazoa zein den jakingo balu erantzun mesedez.<br /> Aldez aurretuk mila esker eta segi horrela.<br />
Iruzkinak
miel 2006-11-27 21:02 #1
<p>Egutegia euskaraz:<br /><br /><table><br /> <?PHP <br />$fontfamily = isset($fontfamily) ? $fontfamily : "Tahoma, Geneva, sans-serif"; <br />$defaultfontcolor = isset($defaultfontcolor) ? $defaultfontcolor : "#00000000"; <br />$defaultbgcolor = isset($defaultbgcolor) ? $defaultbgcolor : "#FFFFFF"; <br />$todayfontcolor = isset($todayfontcolor) ? $todayfontcolor : "#FFFFFF"; <br />$todaybgcolor = isset($todaybgcolor) ? $todaybgcolor : "#CC0000"; <br />$monthcolor = isset($monthcolor) ? $monthcolor : "#333399"; </p>
<p>$relfontsize = isset($relfontsize) ? $relfontsize : "1"; <br />$cssfontsize = isset($cssfontsize) ? $cssfontsize : "8pt"; </p>
<p>$month = (isset($month)) ? $month : date("n",time()); <br />$monthnames = array("Urtarrila", "Otsaila", "Martxoa", "Apirila", "Maiatza", "Ekaina", "Uztaila", "Abuztua", "Iraila", "Urria", "Azaroa", "Abendua"); <br />$textmonth = $monthnames[$month - 1]; <br />$year = (isset($year)) ? $year : date("Y",time()); <br />$today = (isset($today))? $today : date("j", time()); ## Make $today really big to avoid hilite <br />$today = ($month == date("n",time())) ? $today : 32; <br />if ( (($month < 8) && ($month % 2 == 1)) || (($month > 7) && ($month % 2 == 0)) ) <br />$days = 31; <br />if ( (($month < 8) && ($month % 2 == 0)) || (($month > 7) && ($month % 2 == 1)) ) <br />$days = 30; <br />if ($month == 2) <br />$days = (date("L",time())) ? 29 : 28; </p>
<p>$dayone = date("w",mktime(1,1,1,$month,1,$year)); <br />$daylast = date("w",mktime(1,1,1,$month,$days,$year)); <br />?> <br /><table width="49%" border="1" align="center" cellpadding="0" cellspacing="0" > <br /><tr> <br /><td bgcolor="#FFCC00" colspan="7" valign="middle" align="center"><font color="<?php echo $monthcolor ?>" face="Arial, Helvetica, sans-serif" size="3"><b><?PHP echo $textmonth ?></b></font></td> <br /></tr> <br /><tr> <br /><td width="7%" align="center" valign="middle" bgcolor="#FFFFFF"><span class="Estilo1"><font face="<?PHP echo $fontfamily ?>" size="1">Ig</font></span></td> <br /><td bgcolor="<?PHP echo $defaultbgcolor ?>" valign="middle" align="center" width="7%"><font face="<?PHP echo $fontfamily ?>" size="1"><b>Al</b></font></td> <br /><td bgcolor="<?PHP echo $defaultbgcolor ?>" valign="middle" align="center" width="7%"><font face="<?PHP echo $fontfamily ?>" size="1"><b>Ar</b></font></td> <br /><td bgcolor="<?PHP echo $defaultbgcolor ?>" valign="middle" align="center" width="7%"><font face="<?PHP echo $fontfamily ?>" size="1"><b>Az</b></font></td> <br /><td bgcolor="<?PHP echo $defaultbgcolor ?>" valign="middle" align="center" width="7%"><font face="<?PHP echo $fontfamily ?>" size="1"><b>Og</b></font></td> <br /><td bgcolor="<?PHP echo $defaultbgcolor ?>" valign="middle" align="center" width="7%"><font face="<?PHP echo $fontfamily ?>" size="1"><b>Or</b></font></td> <br /><td bgcolor="<?PHP echo $defaultbgcolor ?>" valign="middle" align="center" width="7%"><font face="<?PHP echo $fontfamily ?>" size="1"><b>Lb</b></font></td> <br /></tr> <br /><?PHP <br />if($dayone != 0) <br />$span1 = $dayone; <br />if(6 - $daylast != 0) <br />$span2 = 6 - $daylast; </p>
<p>for($i = 1; $i <= $days; $i++): <br />$dayofweek = date("w",mktime(1,1,1,$month,$i,$year)); <br />$width = "7%"; </p>
<p>if($dayofweek == 0 || $dayofweek == 6) <br />$width = "7%"; </p>
<p>if($i == $today): <br />$fontcolor = $todayfontcolor; <br />$bgcellcolor = $todaybgcolor; <br />endif; <br />if($i != $today): <br />$fontcolor = $defaultfontcolor; <br />$bgcellcolor = $defaultbgcolor; <br />endif; </p>
<p>if($i == 1 || $dayofweek == 0): <br />echo " <tr bgcolor='$defaultbgcolor'> <br />"; <br />if($span1 > 0 && $i == 1) <br />echo " <td align='left' bgcolor='$defaultbgcolor' colspan='$span1'><font face='null' size='1'>&nbsp;</font></td> <br />"; <br />endif; <br />?> <br /><td bgcolor="<?PHP echo $bgcellcolor ?>" valign="middle" align="center" width="<?PHP echo $width ?>"><font color="<?PHP echo $fontcolor ?>" face="<?PHP echo $fontfamily ?>" size="1"><?PHP echo $i ?></font></td> <br /><?PHP <br />if($i == $days): <br />if($span2 > 0) <br />echo " <td align='left' bgcolor='$defaultbgcolor' colspan='$span2'><font face='null' size='1'>&nbsp;</font></td> <br />"; <br />endif; <br />if($dayofweek == 6 || $i == $days): <br />echo " </tr> <br />"; <br />endif; <br />endfor; <br />?> </p>
<p></table></p>
hasier 2006-11-30 14:59 #2
<p>Aupa,azaldu ahal diezadake baten batek ondorengo lerroetan gorriz agertzen diren "?" zer esan nahi duten?</p>
<p>$fontfamily = isset($fontfamily) <strong>?</strong> $fontfamily : "Tahoma, Geneva, sans-serif"; </p>
<p>$defaultfontcolor = isset($defaultfontcolor) <strong>?</strong> $defaultfontcolor : "#00000000"; </p>
<p>$defaultbgcolor = isset($defaultbgcolor) ? $defaultbgcolor : "#FFFFFF"; </p>
<p>$todayfontcolor = isset($todayfontcolor) ? $todayfontcolor : "#FFFFFF"; </p>
<p>$todaybgcolor = isset($todaybgcolor) ? $todaybgcolor : "#CC0000"; </p>
<p>$monthcolor = isset($monthcolor) ? $monthcolor : "#333399";</p>
<p>
<p>Eskerrik asko</p>
</p>
gu geu 2006-11-30 17:28 #3
Isset-ek aldagaia ia definitua dagoen adierazten du. aldagaia definitua badago, orduan kolorea ematen dio.
hasier 2006-12-13 16:51 #4
aupa lagunak,galdera bat neukan zuentzat.<br />
Gauza da php-rekin serbitzarira argazki edo fitxero batzuk
igo nahi ditudala eta hurrengo errorea besteriik ez zait agertzen:<br />
<strong>Warning</strong>: copy(mail056.gif): failed to open stream: No such file or directory in <strong>/home/hugarte/public_html/subir/subir.php</strong> on line <strong>9<br />
</strong>eta 9.lerroan daukaten sententzia hurrengua da::<br />
copy($archivo,$archivo);<br />
Era ezberdinak probatu ditut move_uploaded_file() funtzioa erabilita
ruta desberdin baten sartzen ahaleginduta... baina ezerrez.<br />
Baten batek arazoa zein den jakingo balu erantzun mesedez.<br />
Aldez aurretuk mila esker eta segi horrela.<br />
Utzi iruzkina: