.:: Bots United ::.

.:: Bots United ::. (http://forums.bots-united.com/index.php)
-   General Programming (http://forums.bots-united.com/forumdisplay.php?f=25)
-   -   a different sig each time (http://forums.bots-united.com/showthread.php?t=146)

FrostyCoolSlug 13-05-2004 04:45

Re: a different sig each time
 
hmm, thinking about it, i'm not sure..

aah, right you are, soz i'm in a VERY adjitated mood tonight (someone decided they didnt like a script i was working on, so MASACARED it (all for google ratings) now i have a messed up Webserver, as well as a non-functioning script which i spend 3 solid days coding..) so my heads not screwed on right :p

so yea, you are right, my bad, soz :/

SoUlFaThEr 13-05-2004 09:37

Re: a different sig each time
 
ill just throw them in a separate folder :) thanks

TruB 13-05-2004 12:47

Re: a different sig each time
 
oh.. great.. a explaination how to use it too..

FrostyCoolSlug 13-05-2004 12:54

Re: a different sig each time
 
ok, with my 'latest' script..

Make a Directory, give it a name (probably images)..
chuck all your images in there, then edit the following:

$target = getcwd() . "/images";

replace "/images" with your folder name.

If you want to use an extention which isnt in the list, change the following line

Array("PNG", "JPG", "GIF");

to

Array("PNG", "JPG", "GIF", "EXT", "EXT2", "ETC");

then just call the php file in a browser, and each time you refresh, you should get a new random image.

Then use the BBCode IMG tag, and point the URL to where your php script is, or use an <img src='http://your.domain/path/to/something.php'>

(something.php being the script filename)

and it should work..

(If you wernt being sarcastic about the explanation thing, i appologise ;))

FrostyCoolSlug 13-05-2004 13:01

Re: a different sig each time
 
As a note, if you can use .htaccess you can 'force' a file to a php script, so rename your php file to something.jpg (replace something with whatever you want), and add this to your .htaccess

<Files something.jpg>
ForceType application/x-httpd-php
</Files>

I just tested that, and it seems to work :)

SoUlFaThEr 15-05-2004 12:32

Re: a different sig each time
 
i have that php saved in my folder and i looked at it just now and it says mysig.php.txt :(

Pierre-Marie Baty 15-05-2004 18:57

Re: a different sig each time
 
Open a Windows Explorer window
Click on Tools -> Folder Options...
Switch to the 2nd tab
Uncheck the "Hide known file extensions" checkbox
Click OK && try again

Your file was just named .txt instead of .php by notepad, as long as you don't tell windows to show the file extensions it won't allow you to name a file the way you want.

FrostyCoolSlug 16-05-2004 13:16

Re: a different sig each time
 
Windows is evil like that :)

TruB 16-05-2004 13:53

Re: a different sig each time
 
hopefully longhorn will skip annoying things from earlier releases.. big plus for being based on unix..

Pierre-Marie Baty 16-05-2004 23:29

Re: a different sig each time
 
being based on Unix ??? wtf ???
where do you take this from ? ???:(


All times are GMT +2. The time now is 22:08.

Powered by vBulletin® Version 3.8.2
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.