הוסטס - פורום אחסון האתרים הגדול בישראל

הוסטס - פורום אחסון האתרים הגדול בישראל (https://hosts.co.il/forums/index.php)
-   פורום תיכנות (https://hosts.co.il/forums/forumdisplay.php?f=14)
-   -   עזרה.. (https://hosts.co.il/forums/showthread.php?t=90263)

EBSites 19-06-11 04:38

עזרה..
 
אהלן,

יש לי סקריפט העלאת תמונות עכשיו, איך אני עושה שבכל פעם שאני אעלה תמונה תיהיה חתימה על התמונה ז"א לוגו של האתר יהיה על התמונה למטה,

תודה לעוזרים.


הסקריפט:
PHP קוד:

<?php
if ($_REQUEST[completed] == 1) {
$newname uniqid("").".jpg";
move_uploaded_file($_FILES['mailfile']['tmp_name'],
"uploads/$newname");
}
echo 
"<a href=\"uploads/{$newname}\"></a>";
?>
<html dir="rtl">
<head><title>upload</title></head>
<link href="style.css" rel="stylesheet">

<img src="/images/logo.jpg"></br>
<br>
להעלות אך ורק קובץ מסוג JPG | גודל קובץ עד: 500kb</font></br>
<body><h1></h1>
<?php if ($_REQUEST[completed] != 1) { ?>
<b></b><br>
<form enctype=multipart/form-data method=post>
<input type=hidden name=MAX_FILE_SIZE value=1500000>
<input type=hidden name=completed value=1>
בחר תמונה בבקשה: <input type=file name=mailfile></br>
<input value="שלח!" type=submit></form>
<?php } else { ?>
<b>הקובץ עלה בהצלחה!</b>


BlueNosE 19-06-11 12:58

זה מתבצע באמצעות imagecopymerge או imagecopyresampled.

EBSites 20-06-11 05:02

אני אשמח אם תעזרו לי יותר בלהרכיב את הקוד,
תודה.

BlueNosE 20-06-11 19:34

http://www.sitepoint.com/watermark-images-php/

EBSites 20-06-11 21:45

תודה רבה לך :)


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

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