but your missing something in the coding, yeah you set up the process for the image to be shown but how would you retrieve it. out of this line of the code ".rand(0,54)+2"
You must explain or specify your idea when contributing. This is considered a spam and this is your only notice. Next will earn you adjustment in warning level.
It looks really impressive. I'll give a try very soon. But can't the code be made a little shorter. Does it have to be this long? Will not there be any ways to shortern the code?
well if thier is another way to shorten up the coding to retrieve the images then that would be good, but i think its going to be pretty big, if you look what i did i have over 50+ images, but the best parts its not really taking that much space in the long run since all your doing is adding 2 lines of coding.
It looks really impressive. I'll give a try very soon. But can't the code be made a little shorter. Does it have to be this long? Will not there be any ways to shortern the code?
i mean as we can see in Saint Miky, there are 50 plus repeated code line for each sig. so if we can replace with array(function/class) then the code gonna be shortened, i suppose and it will be perfect!
but your missing something in the coding, yeah you set up the process for the image to be shown but how would you retrieve it. out of this line of the code ".rand(0,54)+2"
no I'm not readfile() reads the file from which the path is given in a string. Since you want a random image you add the random number to the string.
You (Saint_Michael) have 52 images if I'm not mistaken starting from number 2 until 54. So a random number is taken between 0 and 52 (I've been mistaken)
CODE
rand(0,54)+2
//should be
rand(0,52)+2
//in your case
Then the random number is between 2 and 54 since you added 2 and that value is added to the string of the filepath. Only when the string's complete, the file will be read. But maybe this one's better:
An example of the string after the number is generated could be "http://www.saint-michael.trap17.com/images/sig1-17.jpg" which I think is one of your images and it should been read properly.
Welcome to my turoial on how to start multiple programs using one shortcut. You may probably be
wondering how this is possible. Well this tutorial will use a language from MS-DOS called batch. I
am not sure whether it is "language", but I do know that it is a way to program for MS-DOS. Batch is
simply a way to run several MS-DOS commands with just one command. All batch files are run through
Command Prompt, but they can be accessed with shortcuts also. Here are a few requirements for this
tutorial. Requirements Windows XP (I tested this on XP, but it should work on m....
In case you haven't noticed, I have a different Avatar display on the Forum each time the page
is refreshed. /biggrin.gif" style="vertical-align:middle" emoid=":D" border="0" alt="biggrin.gif"
/> For those of you who might want the script to do that, here is the one I am using: HTML
$filesp = glob('*.png'); if(empty($filesp)){ echo 'no images found...die br >';
die(); } else{ foreach ($filesp as $file) { $img_array = trim($file); } } shuffle($img_array);
//select image at random header("C o n t e n t{dash}t y p e: image/png"); // replace th....
Ever since I connected a program I made in Visual Basic to MySQL database, I had an idea to create
some sort of a status page... And I did that, where I updated my connection status every 60 seconds,
updated my Winamp playlist, and several other interesting things... Then, I figured I could create
an image, and display all that info, and show it on forums, as a signature... And I made a great
PHP script, that look real fancy, and does the job perfectly... So, I was adding the reference to
http://status.galahad.trap17.com/stat.php to all the forums... BUT (there's ....
How to Group Multiple Sets of Data in Microsoft Excel 2007 Sometimes you may open several
workbooks and work with a number of the same workbooks at a time. You can open this group of files
with Microsoft Excel 2007 simultaneously. But you have to define them as part of a workspace, and
save them in a single Excel 2007 file. To do this, follow below steps: 1- Click On the View tab and
then in the Window group click Save Workspace. The Save Workspace dialog box appears. 2- In the File
name field, type your work name and then Click Save. 3- At the top-left of window, C....
Hi everyone, Ok before I start, I want to let you guys know the meanings of some of the
terminologies I will be using in here. Boot loader is a small program which the operating system
places on the selected partition (in most cases, the MBR ). it is a small program that loads the
operating system into the computer’s memory when the system is booted and also starts the
operating system. So, before you can think of configuring your PC to have multiple boot, you should
also know how to play around with 'em boot loaders too. And you should also make sure that y....
Multiple Classes in Css Styles Classes are used in html pages to give certain defined
attributes to elements. They are useful when the attributes are to be used in more than one place on
a page. (Named Id's are only allowed once per page, but I digress... might have a tutorial on
that some day.) Sometimes you want Red text and sometimes you want Bold text. Easy enough to do,
simply define a class and apply it to the element you want red or bold. Use this class where you
want on the page, since classes are enabled to be used in several spots, for different u....
Hey Trap, It's Mr. Panda, and I'm introducing a signature rotator script I came across
several months ago. Unlike most other signature rotators on trap17, this one does DOES NOT
require the configuration process, and a new signature can be added, simply by uploading it to the
proper directory. Seeing as this requires so much less configuration, I do hope it will be
implemented by some of you 'Sig Masters' out there /biggrin.gif' border='0'
style='vertical-align:middle' alt='biggrin.gif' /> , that have to add another line of code to your
rotator file....
first off make a login.html page Code: QUOTE Admin Login Username: Password:
then make a check.php page Code: QUOTE $admin1 = "admin1"; // first
admin username $adm_pass1 = "password1"; // first admin password $admin2 = "admin2"; // second
admin username $adm_pass2 = "password2"; // second admin password if(($username == $admin1 &&
$password == $adm_pass1) || ($username == $admin2 && $password == $adm_pass2)){ echo
"Congratulations " . $_POST . " You may now proceed to the admin area !"; } else { echo "Userna....
First, It's really confusing. Do you know any tutorials on Image Manipulation on PHP?
Here's another simple one: 1. Create a 5 image. 2. Rename them to something like:
image1.jpg; image2.jpg; and so on... 3. Create your PHP file (rotation.php) 4. Enter the
following code: CODE header("content-type: image/jpeg");
readfile("image".mt_rand(1,3).".jpg"); ?> 5. Execute your script.....
Looking for make, sig, rotator, people, multiple, sigs