.:: Bots United ::.  
filebase forums discord server github wiki web
cubebot epodbot fritzbot gravebot grogbot hpbbot ivpbot jkbotti joebot
meanmod podbotmm racc rcbot realbot sandbot shrikebot soulfathermaps yapb

Go Back   .:: Bots United ::. > Developer's Farm > General Programming
General Programming Help others and get yourself helped here!

Reply
 
Thread Tools
Re: a different sig each time
Old
  (#31)
FrostyCoolSlug
Member
 
FrostyCoolSlug's Avatar
 
Status: Offline
Posts: 318
Join Date: Mar 2004
Default Re: a different sig each time - 13-05-2004

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 :/


=====
Craig "FrostyCoolSlug" McLure
Network Administrator of the ChatSpike IRC Network
  
Reply With Quote
Re: a different sig each time
Old
  (#32)
SoUlFaThEr
Moderator
 
SoUlFaThEr's Avatar
 
Status: Offline
Posts: 860
Join Date: Mar 2004
Default Re: a different sig each time - 13-05-2004

ill just throw them in a separate folder thanks


  
Reply With Quote
Re: a different sig each time
Old
  (#33)
TruB
One Eyed Freak
 
TruB's Avatar
 
Status: Offline
Posts: 1,164
Join Date: Dec 2003
Location: local mall
Default Re: a different sig each time - 13-05-2004

oh.. great.. a explaination how to use it too..
  
Reply With Quote
Re: a different sig each time
Old
  (#34)
FrostyCoolSlug
Member
 
FrostyCoolSlug's Avatar
 
Status: Offline
Posts: 318
Join Date: Mar 2004
Default Re: a different sig each time - 13-05-2004

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 )


=====
Craig "FrostyCoolSlug" McLure
Network Administrator of the ChatSpike IRC Network
  
Reply With Quote
Re: a different sig each time
Old
  (#35)
FrostyCoolSlug
Member
 
FrostyCoolSlug's Avatar
 
Status: Offline
Posts: 318
Join Date: Mar 2004
Default Re: a different sig each time - 13-05-2004

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


=====
Craig "FrostyCoolSlug" McLure
Network Administrator of the ChatSpike IRC Network
  
Reply With Quote
Re: a different sig each time
Old
  (#36)
SoUlFaThEr
Moderator
 
SoUlFaThEr's Avatar
 
Status: Offline
Posts: 860
Join Date: Mar 2004
Default Re: a different sig each time - 15-05-2004

i have that php saved in my folder and i looked at it just now and it says mysig.php.txt


  
Reply With Quote
Re: a different sig each time
Old
  (#37)
Pierre-Marie Baty
Roi de France
 
Pierre-Marie Baty's Avatar
 
Status: Offline
Posts: 5,049
Join Date: Nov 2003
Location: 46°43'60N 0°43'0W 0.187A
Default Re: a different sig each time - 15-05-2004

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.



RACC home - Bots-United: beer, babies & bots (especially the latter)
"Learn to think by yourself, else others will do it for you."
  
Reply With Quote
Re: a different sig each time
Old
  (#38)
FrostyCoolSlug
Member
 
FrostyCoolSlug's Avatar
 
Status: Offline
Posts: 318
Join Date: Mar 2004
Default Re: a different sig each time - 16-05-2004

Windows is evil like that


=====
Craig "FrostyCoolSlug" McLure
Network Administrator of the ChatSpike IRC Network
  
Reply With Quote
Re: a different sig each time
Old
  (#39)
TruB
One Eyed Freak
 
TruB's Avatar
 
Status: Offline
Posts: 1,164
Join Date: Dec 2003
Location: local mall
Default Re: a different sig each time - 16-05-2004

hopefully longhorn will skip annoying things from earlier releases.. big plus for being based on unix..
  
Reply With Quote
Re: a different sig each time
Old
  (#40)
Pierre-Marie Baty
Roi de France
 
Pierre-Marie Baty's Avatar
 
Status: Offline
Posts: 5,049
Join Date: Nov 2003
Location: 46°43'60N 0°43'0W 0.187A
Default Re: a different sig each time - 16-05-2004

being based on Unix ??? wtf ???
where do you take this from ? ???



RACC home - Bots-United: beer, babies & bots (especially the latter)
"Learn to think by yourself, else others will do it for you."
  
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump



Powered by vBulletin® Version 3.8.2
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
vBulletin Skin developed by: vBStyles.com