Can anybody tell me how I would write a php file so that it will look for a txt file, grab a url from the file and load it when a link is clicked?
Thanks
SIG TOO BIG! Maximum 120x60 button and no more than 3 text lines of DEFAULT SIZE and COLOR. Unless your sig is for a GFY top banner sponsor, then you may use a 624x80 instead of a 120x60.
Originally posted by Hot Tropical Babes I have one, but its not php
is it CGI?
SIG TOO BIG! Maximum 120x60 button and no more than 3 text lines of DEFAULT SIZE and COLOR. Unless your sig is for a GFY top banner sponsor, then you may use a 624x80 instead of a 120x60.
Originally posted by Hot Tropical Babes
yes and real easy to use
102707188
jeff @ wow18.com
SIG TOO BIG! Maximum 120x60 button and no more than 3 text lines of DEFAULT SIZE and COLOR. Unless your sig is for a GFY top banner sponsor, then you may use a 624x80 instead of a 120x60.
SIG TOO BIG! Maximum 120x60 button and no more than 3 text lines of DEFAULT SIZE and COLOR. Unless your sig is for a GFY top banner sponsor, then you may use a 624x80 instead of a 120x60.
SIG TOO BIG! Maximum 120x60 button and no more than 3 text lines of DEFAULT SIZE and COLOR. Unless your sig is for a GFY top banner sponsor, then you may use a 624x80 instead of a 120x60.
Originally posted by Hot Tropical Babes I dont like using php because the mysql data base seems to fail, and I dont have access to that. So i use cgi when i can.
LOAD"IAMUSINGAC64",8,1
SEARCHING FOR IAMUSINGAC64
LOADING
READY.
RUN
Originally posted by Hot Tropical Babes
Ok now i am lost completely
you too?
SIG TOO BIG! Maximum 120x60 button and no more than 3 text lines of DEFAULT SIZE and COLOR. Unless your sig is for a GFY top banner sponsor, then you may use a 624x80 instead of a 120x60.
Copy the above into a file called random.php. Your text file (yourfile.txt) should be in the same directory as random.php.
That easy huh?
Thanks.
SIG TOO BIG! Maximum 120x60 button and no more than 3 text lines of DEFAULT SIZE and COLOR. Unless your sig is for a GFY top banner sponsor, then you may use a 624x80 instead of a 120x60.
SIG TOO BIG! Maximum 120x60 button and no more than 3 text lines of DEFAULT SIZE and COLOR. Unless your sig is for a GFY top banner sponsor, then you may use a 624x80 instead of a 120x60.
edit: working great, looks like it was a internet burp on my end.
You probably have a large text file. Text files are slow , if your worried about performance store it in MySQL. That script opens and reads that entire text file to an array every time the page is loaded , so with a large text file or decent loads its gonna bog.
SIG TOO BIG! Maximum 120x60 button and no more than 3 text lines of DEFAULT SIZE and COLOR. Unless your sig is for a GFY top banner sponsor, then you may use a 624x80 instead of a 120x60.
if u insist on using a text file u could pad each line with spaces so that each url was the same length eg 256 chars long (including cr's)....
calculate the random number... open the file... move the file pointer to position in file required... read line in.... right trim it then do the header transfer
something like that....
u would need to manually add the number of lines in the file to the php script to keep the processing required down
the overall size of the file should therefore be irrevalent... u would probable would want a script to pad the lines of the text for u
SIG TOO BIG! Maximum 120x60 button and no more than 3 text lines of DEFAULT SIZE and COLOR. Unless your sig is for a GFY top banner sponsor, then you may use a 624x80 instead of a 120x60.
Comment