![]() |
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 :/ |
Re: a different sig each time
ill just throw them in a separate folder :) thanks
|
Re: a different sig each time
oh.. great.. a explaination how to use it too..
|
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 ;)) |
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 :) |
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 :(
|
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. |
Re: a different sig each time
Windows is evil like that :)
|
Re: a different sig each time
hopefully longhorn will skip annoying things from earlier releases.. big plus for being based on unix..
|
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.