הרשם שאלות ותשובות רשימת חברים לוח שנה הודעות מהיום

חזור   הוסטס - פורום אחסון האתרים הגדול בישראל > עיצוב גראפי, תכנות על כל שפותיו וקידום ושיווק אתרים > פורום תיכנות

   
|!|

 
 
כלים לאשכול תצורת הצגה
Prev הודעה קודמת   הודעה הבאה Next
ישן 14-01-09, 20:59   # 8
ASTeam
חבר מתקדם
 
מיני פרופיל
תאריך הצטרפות: Jun 2006
הודעות: 580

ASTeam לא מחובר  

אכן צודק...
כל הפעולות אני מפעיל על הזמני עד שאני שומר אותו...
תן לי לנחש שאני אצטרך לתת הרשאות לקובץ הזמני בטח נכון?
אין דרך פשוטה יותר?

הקוד-
PHP קוד:
<?php
 
if ((($_FILES["uploadfile"]["type"] == "image/gif")
|| (
$_FILES["uploadfile"]["type"] == "image/jpeg")
|| (
$_FILES["uploadfile"]["type"] == "image/pjpeg")))
  {
$uploadedfile $_FILES['uploadfile']['tmp_name'];
$src imagecreatefromjpeg($uploadedfile);
 
list(
$width,$height)=getimagesize($uploadedfile);
$newwidth=150;
$newheight=($height/$width)*$newwidth;
$tmp=imagecreatetruecolor($newwidth,$newheight);
 
imagecopyresampled($tmp,$src,0,0,0,0,$newwidth,$newheight,$width,$height); 

$ffile explode("."$_FILES['uploadfile']['name']);
$ffile[0] = 'b'.$blog['id'];
$efile $ffile[1];
$ffile implode("."$ffile);
$filename "images/img/"$ffile;
if (
file_exists($filename))
{
 
unlink($filename);
}
 
chmod("images/img/"0666);

imagejpeg($tmp,$filename,100);
imagedestroy($src);
imagedestroy($tmp);
?>
__________________

  Reply With Quote
 

חברים פעילים הצופים באשכול זה: 1 (0 חברים ו- 1 אורחים)
 


חוקי פירסום
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is מופעל
סמיילים הם מופעל
[IMG] קוד מופעל
קוד HTML מכובה

קפיצה לפורום


כל הזמנים הם GMT +2. הזמן כעת הוא 15:36.

מופעל באמצעות VBulletin גרסה 3.8.6
כל הזכויות שמורות ©
כל הזכויות שמורות לסולל יבוא ורשתות (1997) בע"מ