whiteboikyle
-
Posts
286 -
Joined
-
Last visited
Posts posted by whiteboikyle
-
-
It gets information from the mysql under each user's profile. I am trying to put their image (of themselves) that they uploaded on that sig.
Its uploaded as a Blog.
I dont know how to make it be placed on the sig.
And i dont know how to resize it down to 100p x 100p
-
Okay so i am making this image generator that gets all the info from your profile.
The only thing is the image is uploaded in a blog
so far i have
<?php <?php error_reporting(E_ALL); include("config.php"); if(isset($_GET['id'])){ if(isset($_GET['img'])){ if(ctype_digit($_GET['id'])){ $query = $config->query("SELECT * FROM `members` WHERE `id` = '".mysql_escape_string($_GET['id'])."'"); if(mysql_num_rows($query) == 1){ $row = mysql_fetch_array($query); $userpic = $row['picture']; $rank = $row['rank']; $rank = "images/".$rank.".jpg"; $rank = imagecreatefromjpeg($rank); $result7 = $config->query("SELECT * FROM `games` WHERE ID = '".$row['game']."'"); $row2 = mysql_fetch_array($result7); $explode = explode(".", $row2['image']); if(in_array("jpg", $explode)){ $game = imagecreatefromjpeg($row2['image']); } elseif(in_array("png", $explode)){ $game = imagecreatefrompng($row2['image']); } elseif(in_array("gif", $explode)){ $game = imagecreatefromgif($row2['image']); } else{ die("The main game is not a png/jpg/gif!"); } $userimage = imagecreatefromjpeg("http://clanan.net/image.php?memberpic=".mysql_escape_string($_GET['id'])); $im = imagecreatefrompng("images/".$_GET['img']); //image.php?memberpic=".$_GET['id' if(!$im) { die(""); } $font = "arial.ttf"; $yellow = imagecolorallocate($im, 255, 255, 0); $black = imagecolorallocate($im, 0, 0, 0); $white = imagecolorallocate($im, 255, 255, 255); imagettftext($im, 10, 0, 165, 30, $white, $font, "Name: ".$row['username']); imagettftext($im, 10, 0, 165, 55, $white, $font, "Recruits: ".$row['recruits']); imagettftext($im, 10, 0, 165, 80, $white, $font, "Days In Clan: ".finddsl($row['joined'])); imagettftext($im, 10, 0, 165, 105, $white, $font, "AIM: ".$row['aim']); imagettftext($im, 10, 0, 165, 130, $white, $font, "DSL: ".finddsl($row['timestamp'])); imagettftext($im, 10, 0, 305, 30, $white, $font, "Main Game"); imagecopymerge($im, $game, 325, 35, 0, 0, 28, 14, 100); imagecopymerge($im, $rank, 15, 115, 0, 0, 130, 25, 100); //imagecopymerge($im, $userimage, 30, 10, 0, 0, 100, 100, 100); //imagestring($im, 3, 165, 15, "TESTING", $white); header('Content-type: image/png'); imagepng($im); imagedestroy($im); } else{ die("The ID you submitted came back as 0 results"); } } else{ die("ID must be numeric!"); } } else{ die(); } } else{ die(); } ?>
Which produces
TBH i dono where to start with this
-
Doesn't talk much does he!
How is one going to help he who doesn't provide details!
Questions:
#1 What is in the field Image (exactly) image name/path, image blob ?
#2 how do you know its image type ?
#3 do you want help ?
1) Its a image location like "images/cs.gif"
2) Its either a .gif or a .png
3) Yes please
and what does
src_x
and
src_y
exactly mean?
btw i got it to work but it only shows it as a big white space
<?php error_reporting(E_ALL); include("config.php"); if(isset($_GET['id'])){ if(isset($_GET['img'])){ if(ctype_digit($_GET['id'])){ $query = $config->query("SELECT * FROM `members` WHERE `id` = '".mysql_escape_string($_GET['id'])."'"); if(mysql_num_rows($query) == 1){ $row = mysql_fetch_array($query); $result7 = $config->query("SELECT * FROM `games` WHERE ID = '".$row['game']."'"); $row2 = mysql_fetch_array($result7); $game = imagecreatefromgif($row2['image']); // Could be a Gif or Png $im = imagecreatefrompng($_GET['img']); //image.php?memberpic=".$_GET['id' if(!$im) { die(""); } $font = "arial.ttf"; $yellow = imagecolorallocate($im, 255, 255, 0); $black = imagecolorallocate($im, 0, 0, 0); $white = imagecolorallocate($im, 255, 255, 255); imagettftext($im, 10, 0, 165, 30, $white, $font, "Name: ".$row['username']); imagettftext($im, 10, 0, 165, 55, $white, $font, "Recruits: ".$row['recruits']); imagettftext($im, 10, 0, 165, 80, $white, $font, "Days In Clan: ".finddsl($row['joined'])); imagettftext($im, 10, 0, 165, 105, $white, $font, "AIM: ".$row['aim']); imagettftext($im, 10, 0, 165, 130, $white, $font, "DSL: ".finddsl($row['timestamp'])); imagettftext($im, 10, 0, 305, 30, $white, $font, "Main Game"); imagecopymerge($im, $game, 325, 35, 24, 14, 24, 15, 100); //imagestring($im, 3, 165, 15, "TESTING", $white); header('Content-type: image/png'); imagepng($im); imagedestroy($im); } else{ die("The ID you submitted came back as 0 results"); } } else{ die("ID must be numeric!"); } } else{ die(); } } else{ die(); } ?>
EDIT i dono what x_src and y_src is but i just made them 0, 0 and it worked
thx for the help
-
<?php error_reporting(E_ALL); include("config.php"); if(isset($_GET['id'])){ if(isset($_GET['img'])){ if(ctype_digit($_GET['id'])){ $query = $config->query("SELECT * FROM `members` WHERE `id` = '".mysql_escape_string($_GET['id'])."'"); if(mysql_num_rows($query) == 1){ $row = mysql_fetch_array($query); $result7 = $config->query("SELECT * FROM `games` WHERE ID = '".$row['game']."'"); $row2 = mysql_fetch_array($result7); $game = $row2['image']; // Could be a Gif or Png $im = imagecreatefrompng($_GET['img']); //image.php?memberpic=".$_GET['id' if(!$im) { die(""); } $font = "arial.ttf"; $yellow = imagecolorallocate($im, 255, 255, 0); $black = imagecolorallocate($im, 0, 0, 0); $white = imagecolorallocate($im, 255, 255, 255); imagettftext($im, 10, 0, 165, 30, $white, $font, "Name: ".$row['username']); imagettftext($im, 10, 0, 165, 55, $white, $font, "Recruits: ".$row['recruits']); imagettftext($im, 10, 0, 165, 80, $white, $font, "Days In Clan: ".finddsl($row['joined'])); imagettftext($im, 10, 0, 165, 105, $white, $font, "AIM: ".$row['aim']); imagettftext($im, 10, 0, 165, 130, $white, $font, "DSL: ".finddsl($row['timestamp'])); imagettftext($im, 10, 0, 305, 30, $white, $font, "Main Game"); imagecopymerge($im, $game, 165, 50, 24, 14, 24, 15, 75); //imagestring($im, 3, 165, 15, "TESTING", $white); header('Content-type: image/png'); imagepng($im); imagedestroy($im); } else{ die("The ID you submitted came back as 0 results"); } } else{ die("ID must be numeric!"); } } else{ die(); } } else{ die(); } ?>
Warning: imagecopymerge(): supplied argument is not a valid Image resource in /mnt/w0903/d19/s29/b02ee83c/www/clanan.net/testy.php on line 30
Warning: Cannot modify header information - headers already sent by (output started at /mnt/w0903/d19/s29/b02ee83c/www/clanan.net/testy.php:30) in /mnt/w0903/d19/s29/b02ee83c/www/clanan.net/testy.php on line 32
‰PNG ��� IHDR�����–���óI2�� �IDATxœì½{´¥WU'ú›s®õíÇ9§*•Jª€ÞÈ3‚¢WEÁ <„„|¶ Ø´[ñ*^>¸í㎎¶Õn¤m¹ D^Q H륵%/„¤*!!ï¤êœ³÷þ¾µÖœ÷¹Ö·wzŒûÇý“=jTí:gïï[ùøÍßœk~À7_ß|}óõÍ×7_ß|}óõÍ×7_ÿÿ¾Èÿùìå9ˆ´$Mƒ™v³Ãò„–b%™™™ÂüíÅ"“9›–Ü/ˆÅL‰8÷˜3�+…ˆÀ€%�Óm–À¡KËÝ8Û!™`4Z’™ù‡U‹å$ÝD0Ë«…Á Å�¨úð‰˜9P§ÝÖÁ8Û!‘(¡SÍ&DÔmbâñF¥d�¦9ËܯL3�3+%ùÄ4§~qÂò`D¡›i4 6.ˆˆ˜XX„8°D‘¥“@ìkˆÛr11±Ä ±01�5ebPÝÓ3ƒ`‰Ìä¿Ò\Ô”€’
-
<?php include("config.php"); if(isset($_GET['id'])){ if(isset($_GET['img'])){ if(ctype_digit($_GET['id'])){ $query = $config->query("SELECT * FROM `members` WHERE `id` = '".mysql_escape_string($_GET['id'])."'"); if(mysql_num_rows($query) == 1){ $row = mysql_fetch_array($query); $result7 = $config->query("SELECT * FROM `games` WHERE ID = '".$row['game']."'"); $game = $row2['image']; // Could be a Gif or Png $im = imagecreatefrompng($_GET['img']); //image.php?memberpic=".$_GET['id' if(!$im) { die(""); } $font = "arial.ttf"; $yellow = imagecolorallocate($im, 255, 255, 0); $black = imagecolorallocate($im, 0, 0, 0); $white = imagecolorallocate($im, 255, 255, 255); imagettftext($im, 10, 0, 165, 30, $white, $font, "Name: ".$row['username']); imagettftext($im, 10, 0, 165, 55, $white, $font, "Recruits: ".$row['recruits']); imagettftext($im, 10, 0, 165, 80, $white, $font, "Days In Clan: ".finddsl($row['joined'])); imagettftext($im, 10, 0, 165, 105, $white, $font, "AIM: ".$row['aim']); imagettftext($im, 10, 0, 165, 130, $white, $font, "DSL: ".finddsl($row['timestamp'])); imagettftext($im, 10, 0, 305, 30, $white, $font, "Main Game"); imagecopymerge($im, $game, 165, 50, 24, 14, 24, 15, 75); //imagestring($im, 3, 165, 15, "TESTING", $white); header('Content-type: image/png'); imagepng($im); imagedestroy($im); } else{ die("The ID you submitted came back as 0 results"); } } else{ die("ID must be numeric!"); } } else{ die(); } } else{ die(); } ?>
error output
Warning: imagecopymerge(): supplied argument is not a valid Image resource in /mnt/w0903/d19/s29/b02ee83c/www/clanan.net/testy.php on line 28
Warning: Cannot modify header information - headers already sent by (output started at /mnt/w0903/d19/s29/b02ee83c/www/clanan.net/testy.php:28) in /mnt/w0903/d19/s29/b02ee83c/www/clanan.net/testy.php on line 30
Warning: Cannot modify header information - headers already sent by (output started at /mnt/w0903/d19/s29/b02ee83c/www/clanan.net/testy.php:28) in /mnt/w0903/d19/s29/b02ee83c/www/clanan.net/testy.php on line 31
‰PNG ��� IHDR�����–���óI2�� �IDATxœì½{´¥WU'ú›s®õíÇ9§*•Jª€ÞÈ3‚¢WEÁ <„„|¶ Ø´[ñ*^>¸í㎎¶Õn¤m¹ D^Q H륵%/„¤*!!ï¤êœ³÷þ¾µÖœ÷¹Ö·wzŒûÇý“=jTí:gïï[ùøÍßœk~À7_ß|}óõÍ×7_ß|}óõÍ×7_ÿÿ¾Èÿùìå9ˆ´$Mƒ™v³Ãò„–b%™™™ÂüíÅ"“9›–Ü/ˆÅL‰8÷˜3�+…ˆÀ€%�Óm–À¡KËÝ8Û!™`4Z’™ù‡U‹å$ÝD0Ë«…Á Å�¨úð‰˜9P§ÝÖÁ8Û!‘(¡SÍ&DÔmbâñF¥d�¦9ËܯL3�3+%ùÄ4§~qÂò`D¡›i4 6.ˆˆ˜XX„8°D‘¥“@ìkˆÛr11±Ä ±01�5ebPÝÓ3ƒ`‰Ìä¿Ò\Ô”€’ ™©–:ÕRò� äAsZÜGɽ•¬¥˜b!"Mƒš±tS"P†UI}I«’z-ÙJÖ’M‹ß½n/‡(q"ÝlûŒs¦KìLÍLY¢–D,ÌB$Dâ@DÖ„ÉÌ`Æ,cɦ f�ÌäËWr63�.'¦zò®[—÷ß¡%Õ!i±RL‹Z1UÓâË¢i°’´ÓbªmC™ã0€` "3µR�ó="’À!²’ÈXIéˆ%̶™ª#I�@"hâ.¡ság qºMD$ªiX–´ò‰P[8]ìff*aâÃ#fbI«}–úŸÎí;U0š,ùÂÆ',LD¾ž0ÈÈe€fªþ+3�"r`¦Ä„ökhÉDD$ªYµhJê—»÷ô{÷å~‘‡eVUK1+Öä¡J; 1K7åM @˜Ì\D©NDüójšûEÝ SS53À`ê%AXª»Ä¿ Lµ-ù;/~-€0*aN«§Ýlg°&%÷$¥€„ �|ì_¨c%*y“yI½ë„®ä¡fFª Ò’Aœ‡%K´å13ŸCN«f)°¸±LSUH¨“‚Õ©mˆ¼ZHœkV:àn:‡ª‘ ˜ê¨r*%—”\ÅT3˜cˆˆxºÝÍvT3Kq’ó°:yOî÷«\œj³ˆ…ˆCœ°D¸ðUSŠµµ"vi‰M³ÁĪ…êž©©ŽJ¢9™‘j×�˜jÉ)Ä©AE‚™šf1SæÀ‘ÃdKK6�0hNMJÌ 033b“yñ_1XÈ%¸)±–ÈÒqˆÝÖA—œÍTSω ȆÜIJ©Ö¿‰ÌÈÌ@d @KQ˜Q7!"-:n[ÉQ(óƒGÒrWKÒœM³63JÅÿKnXa>'¹>XÑb–0"¨f¨š #ÁÔ´1¨±‘‚´ ±iZœ$b–гD2¨Ìˆ¥äÁ5Gº©jvÏgfäÂ¥Ù 22K=131`®S%'ß¾¶U„`D€Á`2‚™
-
Is it a chance there could be a duplicate md5(rand, 10000)) ??
-
if(isset($_POST['remember'])){ setcookie("cookmyusername", md5($_SESSION['myusername']), time()+60*60*24*100, "/"); }
i did that. But its not working. I dont stayed logged in
-
-
all i put is
# 5 MIN<FilesMatch "\.(css|js|swf|flv)$">
Header set Cache-Control "max-age=172800, private, proxy-revalidate"
</FilesMatch>
# 1 WEEK
<FilesMatch "\.(jpg|jpeg|gif|ico|png)$">
Header set Cache-Control "max-age=604800, public"
</FilesMatch>
uploaded it to my root directory (of the main site)
.htaccess enabled..
doesn't work.. Dono why..
-
Anyone else know any other ways to do so?
-
here are some of the error logs
71.196.151.106 - - [07/May/2009:19:21:17 -0400] "GET /forums/index.php?showtopic=116 HTTP/1.1" 200 18902 "http://www.clanan.net/forums/index.php?showforum=20" "Mozilla/5.0 (Windows; U; Windows NT 6.0; en-US; rv:1.9.0.10) Gecko/2009042316 Firefox/3.0.10 (.NET CLR 3.5.30729)"
71.196.151.106 - - [07/May/2009:19:21:39 -0400] "GET /forums/index.php?showforum=21 HTTP/1.1" 200 13766 "http://www.clanan.net/forums/index.php?" "Mozilla/5.0 (Windows; U; Windows NT 6.0; en-US; rv:1.9.0.10) Gecko/2009042316 Firefox/3.0.10 (.NET CLR 3.5.30729)"
71.196.151.106 - - [07/May/2009:19:21:41 -0400] "GET /forums/index.php?showforum=21 HTTP/1.1" 200 13766 "http://www.clanan.net/forums/index.php?" "Mozilla/5.0 (Windows; U; Windows NT 6.0; en-US; rv:1.9.0.10) Gecko/2009042316 Firefox/3.0.10 (.NET CLR 3.5.30729)"
71.9.75.244 - - [07/May/2009:19:20:13 -0400] "GET /forums/style_images/bluenight1236084350/folder_profile_portal/gender_female.png HTTP/1.1" 200 590 "http://www.clanan.net/forums/index.php?showtopic=163" "Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.0; Trident/4.0; SLCC1; .NET CLR 2.0.50727; Media Center PC 5.0; InfoPath.2; .NET CLR 3.5.30729; .NET CLR 3.0.30618; yie8)"
71.9.75.244 - - [07/May/2009:19:21:19 -0400] "GET /forums/index.php?showtopic=50 HTTP/1.1" 200 21838 "http://www.clanan.net/forums/index.php?showforum=37" "Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.0; Trident/4.0; SLCC1; .NET CLR 2.0.50727; Media Center PC 5.0; InfoPath.2; .NET CLR 3.5.30729; .NET CLR 3.0.30618; yie8)"
71.9.75.244 - - [07/May/2009:19:21:20 -0400] "GET /forums/style_emoticons/default/dry.gif HTTP/1.1" 304 - "http://www.clanan.net/forums/index.php?showtopic=50" "Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.0; Trident/4.0; SLCC1; .NET CLR 2.0.50727; Media Center PC 5.0; InfoPath.2; .NET CLR 3.5.30729; .NET CLR 3.0.30618; yie8)"
71.9.75.244 - - [07/May/2009:19:21:20 -0400] "GET /forums/style_emoticons/default/sad.gif HTTP/1.1" 304 - "http://www.clanan.net/forums/index.php?showtopic=50" "Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.0; Trident/4.0; SLCC1; .NET CLR 2.0.50727; Media Center PC 5.0; InfoPath.2; .NET CLR 3.5.30729; .NET CLR 3.0.30618; yie8)"
75.111.95.106 - - [07/May/2009:19:20:33 -0400] "GET /forums/index.php?act=Post&CODE=02&f=20&t=670&qpid=7056 HTTP/1.1" 200 15310 "http://www.clanan.net/forums/index.php?showtopic=670&hl=" "Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.0.10) Gecko/2009042316 Firefox/3.0.10"
75.111.95.106 - - [07/May/2009:19:20:34 -0400] "GET /forums/index.php?&act=attach&code=attach_upload_show&attach_rel_module=post&attach_rel_id=&attach_post_key=8f8fc2245ad67d2d9d44c493dcfc4739&--ff--forum_id=20 HTTP/1.1" 200 7426 "http://www.clanan.net/forums/index.php?act=Post&CODE=02&f=20&t=670&qpid=7056" "Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.0.10) Gecko/2009042316 Firefox/3.0.10"
75.111.95.106 - - [07/May/2009:19:21:16 -0400] "GET /forums/index.php?showtopic=670&st=0&gopid=7066& HTTP/1.1" 200 18688 "http://www.clanan.net/forums/index.php?act=Post&CODE=02&f=20&t=670&qpid=7056" "Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.0.10) Gecko/2009042316 Firefox/3.0.10"
75.111.95.106 - - [07/May/2009:19:21:16 -0400] "POST /forums/index.php? HTTP/1.1" 302 - "http://www.clanan.net/forums/index.php?act=Post&CODE=02&f=20&t=670&qpid=7056" "Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.0.10) Gecko/2009042316 Firefox/3.0.10"
75.111.95.106 - - [07/May/2009:19:21:22 -0400] "GET /forums/index.php?act=post&do=edit_post&f=20&t=670&p=7066&st=0 HTTP/1.1" 200 15492 "http://www.clanan.net/forums/index.php?showtopic=670&st=0&gopid=7066&" "Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.0.10) Gecko/2009042316 Firefox/3.0.10"
75.111.95.106 - - [07/May/2009:19:21:23 -0400] "GET /forums/index.php?&act=attach&code=attach_upload_show&attach_rel_module=post&attach_rel_id=7066&attach_post_key=8f8fc2245ad67d2d9d44c493dcfc4739&--ff--forum_id=20 HTTP/1.1" 200 7430 "http://www.clanan.net/forums/index.php?act=post&do=edit_post&f=20&t=670&p=7066&st=0" "Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.0.10) Gecko/2009042316 Firefox/3.0.10"
75.111.95.106 - - [07/May/2009:19:21:41 -0400] "POST /forums/index.php? HTTP/1.1" 200 6303 "http://www.clanan.net/forums/index.php?act=post&do=edit_post&f=20&t=670&p=7066&st=0" "Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.0.10) Gecko/2009042316 Firefox/3.0.10"
12.203.105.59 - - [07/May/2009:19:23:30 -0400] "GET /forums/uploads/profile/photo-thumb-20.jpg HTTP/1.1" 200 1392 "http://www.clanan.net/forums/index.php?showtopic=660&pid=6971&st=0&" "Mozilla/5.0 (Windows; U; Windows NT 6.0; en-US; rv:1.9.0.10) Gecko/2009042316 Firefox/3.0.10"
70.180.238.56 - - [07/May/2009:19:22:47 -0400] "GET /forums/uploads/profile/photo-thumb-154.jpg HTTP/1.1" 304 - "http://www.clanan.net/forums/index.php?showtopic=653&hl=" "Mozilla/5.0 (Windows; U; Windows NT 6.0; en-US) AppleWebKit/525.19 (KHTML, like Gecko) Chrome/1.0.154.59 Safari/525.19"
70.180.238.56 - - [07/May/2009:19:23:02 -0400] "GET /forums/uploads/av-122.jpg HTTP/1.1" 304 - "http://www.clanan.net/forums/index.php?showtopic=647&hl=" "Mozilla/5.0 (Windows; U; Windows NT 6.0; en-US) AppleWebKit/525.19 (KHTML, like Gecko) Chrome/1.0.154.59 Safari/525.19"
70.180.238.56 - - [07/May/2009:19:23:02 -0400] "GET /forums/uploads/av-93.jpg HTTP/1.1" 304 - "http://www.clanan.net/forums/index.php?showtopic=647&hl=" "Mozilla/5.0 (Windows; U; Windows NT 6.0; en-US) AppleWebKit/525.19 (KHTML, like Gecko) Chrome/1.0.154.59 Safari/525.19"
70.51.97.125 - - [07/May/2009:19:22:32 -0400] "GET /forums/uploads/profile/photo-thumb-2.jpg HTTP/1.1" 304 - "http://www.clanan.net/forums/index.php?showtopic=656" "Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.0.10) Gecko/2009042316 Firefox/3.0.10"
70.51.97.125 - - [07/May/2009:19:22:34 -0400] "GET /forums/uploads/av-135.gif HTTP/1.1" 200 38934 "http://www.clanan.net/forums/index.php?showtopic=656" "Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.0.10) Gecko/2009042316 Firefox/3.0.10"
70.51.97.125 - - [07/May/2009:19:22:34 -0400] "GET /forums/uploads/profile/photo-thumb-20.jpg HTTP/1.1" 304 - "http://www.clanan.net/forums/index.php?showtopic=656" "Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.0.10) Gecko/2009042316 Firefox/3.0.10"
70.51.97.125 - - [07/May/2009:19:22:34 -0400] "GET /forums/uploads/profile/photo-thumb-77.jpg HTTP/1.1" 304 - "http://www.clanan.net/forums/index.php?showtopic=656" "Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.0.10) Gecko/2009042316 Firefox/3.0.10"
71.196.151.106 - - [07/May/2009:19:21:47 -0400] "GET /main.php HTTP/1.1" 200 13042 "http://clanan.net/login.php" "Mozilla/5.0 (Windows; U; Windows NT 6.0; en-US; rv:1.9.0.10) Gecko/2009042316 Firefox/3.0.10 (.NET CLR 3.5.30729)"
71.196.151.106 - - [07/May/2009:19:21:58 -0400] "GET /main.php HTTP/1.1" 200 23361 "http://clanan.net/login.php" "Mozilla/5.0 (Windows; U; Windows NT 6.0; en-US; rv:1.9.0.10) Gecko/2009042316 Firefox/3.0.10 (.NET CLR 3.5.30729)"
71.196.151.106 - - [07/May/2009:19:22:16 -0400] "GET /image.php?memberpic=156 HTTP/1.1" 200 540074 "http://clanan.net/main.php" "Mozilla/5.0 (Windows; U; Windows NT 6.0; en-US; rv:1.9.0.10) Gecko/2009042316 Firefox/3.0.10 (.NET CLR 3.5.30729)"
71.196.151.106 - - [07/May/2009:19:22:16 -0400] "GET /wtag/css/main-style.css HTTP/1.1" 404 221 "http://clanan.net/main.php" "Mozilla/5.0 (Windows; U; Windows NT 6.0; en-US; rv:1.9.0.10) Gecko/2009042316 Firefox/3.0.10 (.NET CLR 3.5.30729)"
71.196.151.106 - - [07/May/2009:19:22:16 -0400] "GET /wtag/css/main.css HTTP/1.1" 404 215 "http://clanan.net/main.php" "Mozilla/5.0 (Windows; U; Windows NT 6.0; en-US; rv:1.9.0.10) Gecko/2009042316 Firefox/3.0.10 (.NET CLR 3.5.30729)"
71.196.151.106 - - [07/May/2009:19:22:16 -0400] "GET /wtag/js/conf.js HTTP/1.1" 404 213 "http://clanan.net/main.php" "Mozilla/5.0 (Windows; U; Windows NT 6.0; en-US; rv:1.9.0.10) Gecko/2009042316 Firefox/3.0.10 (.NET CLR 3.5.30729)"
71.196.151.106 - - [07/May/2009:19:22:16 -0400] "GET /wtag/js/dom-drag.js HTTP/1.1" 404 217 "http://clanan.net/main.php" "Mozilla/5.0 (Windows; U; Windows NT 6.0; en-US; rv:1.9.0.10) Gecko/2009042316 Firefox/3.0.10 (.NET CLR 3.5.30729)"
71.196.151.106 - - [07/May/2009:19:22:16 -0400] "GET /wtag/js/scroll.js HTTP/1.1" 404 215 "http://clanan.net/main.php" "Mozilla/5.0 (Windows; U; Windows NT 6.0; en-US; rv:1.9.0.10) Gecko/2009042316 Firefox/3.0.10 (.NET CLR 3.5.30729)"
71.196.151.106 - - [07/May/2009:19:22:17 -0400] "GET /wtag/js/ajax.js HTTP/1.1" 404 213 "http://clanan.net/main.php" "Mozilla/5.0 (Windows; U; Windows NT 6.0; en-US; rv:1.9.0.10) Gecko/2009042316 Firefox/3.0.10 (.NET CLR 3.5.30729)"
71.196.151.106 - - [07/May/2009:19:22:17 -0400] "GET /wtag/js/drop_down.js HTTP/1.1" 404 218 "http://clanan.net/main.php" "Mozilla/5.0 (Windows; U; Windows NT 6.0; en-US; rv:1.9.0.10) Gecko/2009042316 Firefox/3.0.10 (.NET CLR 3.5.30729)"
71.196.151.106 - - [07/May/2009:19:22:18 -0400] "GET /image.php?memberpic=155 HTTP/1.1" 200 58617 "http://clanan.net/main.php" "Mozilla/5.0 (Windows; U; Windows NT 6.0; en-US; rv:1.9.0.10) Gecko/2009042316 Firefox/3.0.10 (.NET CLR 3.5.30729)"
71.196.151.106 - - [07/May/2009:19:22:18 -0400] "GET /images/NewComment1.png HTTP/1.1" 200 1024 "http://clanan.net/main.php" "Mozilla/5.0 (Windows; U; Windows NT 6.0; en-US; rv:1.9.0.10) Gecko/2009042316 Firefox/3.0.10 (.NET CLR 3.5.30729)"
71.196.151.106 - - [07/May/2009:19:22:18 -0400] "GET /images/NewFriend1.png HTTP/1.1" 200 1003 "http://clanan.net/main.php" "Mozilla/5.0 (Windows; U; Windows NT 6.0; en-US; rv:1.9.0.10) Gecko/2009042316 Firefox/3.0.10 (.NET CLR 3.5.30729)"
71.196.151.106 - - [07/May/2009:19:22:18 -0400] "GET /images/NewMessage1.png HTTP/1.1" 200 1453 "http://clanan.net/main.php" "Mozilla/5.0 (Windows; U; Windows NT 6.0; en-US; rv:1.9.0.10) Gecko/2009042316 Firefox/3.0.10 (.NET CLR 3.5.30729)"
71.196.151.106 - - [07/May/2009:19:22:21 -0400] "GET /.htaccess HTTP/1.1" 403 211 "-" "Mozilla/5.0 (Windows; U; Windows NT 6.0; en-US; rv:1.9.0.10) Gecko/2009042316 Firefox/3.0.10 (.NET CLR 3.5.30729)"
71.196.151.106 - - [07/May/2009:19:22:30 -0400] "GET /.htaccess.txt HTTP/1.1" 403 215 "-" "Mozilla/5.0 (Windows; U; Windows NT 6.0; en-US; rv:1.9.0.10) Gecko/2009042316 Firefox/3.0.10 (.NET CLR 3.5.30729)"
71.196.151.106 - - [07/May/2009:19:22:59 -0400] "GET /.htaccess HTTP/1.1" 403 211 "-" "Mozilla/5.0 (Windows; U; Windows NT 6.0; en-US; rv:1.9.0.10) Gecko/2009042316 Firefox/3.0.10 (.NET CLR 3.5.30729)"
71.196.151.106 - - [07/May/2009:19:23:53 -0400] "GET /.htaccess HTTP/1.1" 403 211 "-" "Mozilla/5.0 (Windows; U; Windows NT 6.0; en-US; rv:1.9.0.10) Gecko/2009042316 Firefox/3.0.10 (.NET CLR 3.5.30729)"
71.196.151.106 - - [07/May/2009:19:23:54 -0400] "GET /.htaccess HTTP/1.1" 403 211 "-" "Mozilla/5.0 (Windows; U; Windows NT 6.0; en-US; rv:1.9.0.10) Gecko/2009042316 Firefox/3.0.10 (.NET CLR 3.5.30729)"
71.196.151.106 - - [07/May/2009:19:23:54 -0400] "GET /.htaccess HTTP/1.1" 403 211 "-" "Mozilla/5.0 (Windows; U; Windows NT 6.0; en-US; rv:1.9.0.10) Gecko/2009042316 Firefox/3.0.10 (.NET CLR 3.5.30729)"
71.196.151.106 - - [07/May/2009:19:23:55 -0400] "GET /.htaccess HTTP/1.1" 403 211 "-" "Mozilla/5.0 (Windows; U; Windows NT 6.0; en-US; rv:1.9.0.10) Gecko/2009042316 Firefox/3.0.10 (.NET CLR 3.5.30729)"
-
and when they logout how do i delete the cookie?
-
Nope its still reloading the same image..
Do i have to include .htaccess or something?
-
Okay so do i just do $_COOKIE['myusername'] = $_SESSION['myusername']; and bam they are logged in forever?
-
Says access denied.. but i checked my hosting and it says. .htaccess enabled.
-
okay so i made .htaccess and saved. Then uploaded it to my directory where my files are..
I still see the images reloading.. What did i do wrong?
-
It doesn;t happen alot just every so often. xD
-
If i put that in my header it will be fine?
-
It mainly happens when browsing my IPB forums or Admin CP..
Sometimes on my scirpts but very rare compared to the forums.
-
So how would i set it up then ? I dont understand how a cookie works TBH.
-
Okay well users on my site can upload there own image to the site and it uploaded to teh mysql.
Now everytime you refresh the page it has to "reload" the image again. Is there a way to make it save it in your temp directory so it doesn't have to reload?
-
so would u just do $_COOKIE['cookieusername'] = $_SESSION['myusername'];
$_COOKIE['cookiepassword'] = $_SESSION['mypassword'];
and it would remember that user for awhile?
-
They happen on my IPB Forums.
-
<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
<html><head>
<title>500 Internal Server Error</title>
</head><body>
<h1>Internal Server Error</h1>
<p>The server encountered an internal error or
misconfiguration and was unable to complete
your request.</p>
<p>Please contact the server administrator,
support@netfirms.com and inform them of the time the error occurred,
and anything you might have done that may have
caused the error.</p>
<p>More information about this error may be available
in the server error log.</p>
</body></html>
I keep getting this errors from my hosting. Anyone know why?
[SOLVED] Resizing using imagecopyresampled()
in PHP Coding Help
Posted
here is my out come
Here is the code
I am trying to get the picture (above the Commander) to resize to 100 by 100 pixels..
the url to the image is
http://clanan.net/image.php?memberpic=155
I dono why mine isn't resized