HN-Community
Random Image PHP - Printable Version

+- HN-Community (https://hacker-newbie.org)
+-- Forum: Miscellaneous (https://hacker-newbie.org/forum-86.html)
+--- Forum: Coding/Programing (https://hacker-newbie.org/forum-19.html)
+---- Forum: Web Programing (https://hacker-newbie.org/forum-38.html)
+---- Thread: Random Image PHP (/thread-2121.html)

Pages: 1 2 3 4


RE: Random Image PHP - Netwolf - 02-23-2010

http://feelstory.web.id/avatar.php?code=HN-Underground-Coder

sial, ternyata di integrasikan pakek external image.
dassar coder!


RE: Random Image PHP - samu1241 - 02-23-2010

"mau apa loe jeyek :P~" --> Ngakak Ngakak


RE: Random Image PHP - ArRay - 02-23-2010

tak kasih clue yak.

liat deh image gw : http://feelstory.web.id/avatar.php?code=HN-Underground-Coder

bandingin ama : http://feelstory.web.id/avatar.php

liat output yang di keluarkan dari file itu.

gini. ni forum gak akan nerima image avatar dalam type php,html, dan scripting lainya kan. url avatar di cek terlebih dahulu apakah url tersebut bener2 image or bukan. klo php, jelas bukan jpg kan.

:>


RE: Random Image PHP - Alecs - 02-23-2010

* Alecs minta diajarin mas ArRay . . . .


RE: Random Image PHP - veter - 02-23-2010

bagus niy ray , kalo gw biasanya pake ini tapi gag tau klo diterapin di avatar gimana blom nyoba gw Ngakak
PHP Code:
<?php /* * Name your images 1.jpg, 2.jpg etc. * * Add this line to your page where you want the images to * appear: <?php include "randomimage.php"; ?> */ // Change this to the total number of images in the folder $total = "11"; // Change to the type of files to use eg. .jpg or .gif $file_type = ".jpg"; // Change to the location of the folder containing the images $image_folder = "images/random"; // You do not need to edit below this line $start = "1"; $random = mt_rand($start, $total); $image_name = $random . $file_type; echo "<img src=\"$image_folder/$image_name\" alt=\"$image_name\" />"; ?>
niy mungkin membantu http://www.n1studios.net/tutorials/php/random-avatar.html


RE: Random Image PHP - ArRay - 02-23-2010

klo yg itu sama kayak punya nya nacko. gak ada bedanya.


RE: Random Image PHP - N4ck0 - 02-23-2010

wiw
gtu yah,mang beda yah
tapi kan itu simple
maklum baru belajar


RE: Random Image PHP - Arusar - 02-23-2010

Brarti Header PHP Itu Di Rubah Ya Bang....
Biar Dia Di "Anggap" Gambar....
Gimana Yaa....
PHP Code:
<?php header('Content-type: image/jpeg'); $image = imagecreatefromjpeg('1.jpg'); imagejpeg($image); imagedestroy($image); ?>

Itu Yg Aku Dapet Dari php.net
Malu


RE: Random Image PHP - N4ck0 - 02-23-2010

nah benar tuh
baru mau jalan2 ke php.net

ixixixi

thx yah dah tambahin


RE: Random Image PHP - Arusar - 02-23-2010

Jalan" Bareng Yuk Bang N4ck0...Ngakak

Ini Hasil Saya...
Brantakan Banget...Ngakak
PHP Code:
<? $code = $_GET['codename']; $image[1] = "1.jpg"; //Untuk Maen" Dgn Array Saya Msh Puyeng Sama Yg Advance $image[2] = "2.jpg"; //Jadi Pake Yg Kayak Gini... HoHoHoHo.... $rand = rand(1,2); if ($code=="HN-Community") { header('Content-type: image/jpeg'); $random = imagecreatefromjpeg($image[$rand]); imagejpeg($random); imagedestroy($random); } else die("Hayooooooo...!!!!"); ?>
Jadi Url-nya Begini
http://mutersampemumet.com/avatar.php?codename=HN-Community
Malu

Kalo Di Test Jadi Avatar Belom Coba....
Tapi Utk Signature Bisa....
Dua"-nya Sama Gak Ya..??BingungBingung
* Benerin Ya Kalo Salah...Ngakak