|
|
|
||||
|
Welcome to the GoFuckYourself.com - Adult Webmaster Forum forums. You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today! If you have any problems with the registration process or your account login, please contact us. |
![]() |
|
|||||||
| Discuss what's fucking going on, and which programs are best and worst. One-time "program" announcements from "established" webmasters are allowed. |
|
|
Thread Tools |
|
|
#1 |
|
Confirmed User
Join Date: Sep 2001
Location: Europe
Posts: 2,218
|
php gurus - i need a small script written
i need a small script written that reads all lines from a txt file with the syntax:
URL|Description and then randomly displays all links with the current date infront of it. it must be easy to include, i want to have just two files: make_list.php (does the work) links.txt (has the links inside, i want more anytime) on index.php i just include("make_list.php"); how much or where can i find something like that? |
|
|
|
|
|
#2 |
|
HAL 9000
Industry Role:
Join Date: May 2001
Posts: 34,515
|
i have it ready,ill have to search a bit,what's your email? im offline on icq now
|
|
|
|
|
|
#3 |
|
Confirmed User
Join Date: Sep 2001
Location: Europe
Posts: 2,218
|
daniel ?at? soulcash ?dot? com
thanks man! |
|
|
|
|
|
#4 |
|
HAL 9000
Industry Role:
Join Date: May 2001
Posts: 34,515
|
i sent you a mail too
the script is this now the problem is that part of the print command covers the on-mouse-over for the clickz script i was using. Can someone here check the code and tell us which part of the print it needs to be removed? thanks |
|
|
|
|
|
#5 |
|
HAL 9000
Industry Role:
Join Date: May 2001
Posts: 34,515
|
try to remove on-mouse-over=\"hahahahahaha.status='http://$link[0]'; return true\" onfocus=\"hahahahahaha.status='http://$link[0]'; return true\" on-mouse-out=\"hahahahahaha.status=''; return true\" href=http://cz8.clickzs.com/tgp.php?vdspt&70&CJ1&$link[0] target=_blank >
|
|
|
|
|
|
#6 |
|
Confirmed User
Join Date: Sep 2001
Location: Europe
Posts: 2,218
|
thansk alot.
i uploaded it here: http://www.ashleyrecommends.com/tgp/test.php but i always get the error message: Warning: main() [function.main]: stream does not support seeking in http://www.ashleyrecommends.com/tgp/...hp?cat=test.db on line 0 a href=http[://cz8.clickzs.com/tgp.php?vdspt&70&CJ1&http://www.picsurfer.com/m/ebonyhead...vs=YOURACCOUNT target=_blank>Ebony gives head any idea? |
|
|
|
|
|
#7 |
|
HAL 9000
Industry Role:
Join Date: May 2001
Posts: 34,515
|
cekiller,check your mail
|
|
|
|
|
|
#8 |
|
Confirmed User
Join Date: Apr 2002
Location: /root/
Posts: 4,997
|
Category Feeder v0.9
you only have 3 lines of code and you managed to introduce a serious bug, scripts like that should be banned. try domain.com/turbofeeder.php?cat=/etc/passwd or domain.com/turbofeeder.php?cat=|rm%20-fr ![]() |
|
|
|
|
|
#9 | |
|
Confirmed User
Join Date: Sep 2001
Location: Europe
Posts: 2,218
|
Quote:
|
|
|
|
|
|
|
#10 |
|
Confirmed User
Join Date: Apr 2002
Location: /root/
Posts: 4,997
|
thats probably because you have registar_globals to off
and you should adjust it to work with that cause its safer you have to adjust it to display them in random order anyway. |
|
|
|
|
|
#11 |
|
Confirmed User
Join Date: Sep 2001
Location: Europe
Posts: 2,218
|
darksoul, got a second on icq? hit me up if you have time
|
|
|
|
|
|
#12 |
|
HAL 9000
Industry Role:
Join Date: May 2001
Posts: 34,515
|
dont laugh coding freak and tell us what's this error?
http://www.ashleyrecommends.com/tgp/test.php the code this time is this one |
|
|
|
|
|
#13 |
|
HAL 9000
Industry Role:
Join Date: May 2001
Posts: 34,515
|
cekiller try to include the code like this
include ('http://www.domain.com/niche.db'); dont laugh people, i dont know shit from coding ![]() |
|
|
|
|
|
#14 |
|
Confirmed User
Join Date: Sep 2001
Location: Europe
Posts: 2,218
|
that will jut disyplay:
DESC|URLDESC|URLDESC|URLDESC|URLDESC|URLDESC|URLDE SC|URLDESC|URLDESC|URLDESC|URLDESC|URLDESC|URL something like this damn, why do we coding noobs have to wotkt his out - i'm sure its pretty easy for someone who has more knowledge of programming ;) |
|
|
|
|
|
#15 | |
|
Confirmed User
Join Date: Apr 2002
Location: /root/
Posts: 4,997
|
Quote:
maybe you should've specified that the comment: --include (...................) ---- its not part of the script also your printf its a bit messed up |
|
|
|
|
|
|
#16 | |
|
Confirmed User
Join Date: Jan 2003
Location: NL
Posts: 342
|
Quote:
PHP Code:
|
|
|
|
|
|
|
#17 | |
|
HAL 9000
Industry Role:
Join Date: May 2001
Posts: 34,515
|
Quote:
man don't laugh on a fellow soul |
|
|
|
|
|
|
#18 | |
|
Confirmed User
Join Date: Apr 2002
Location: /root/
Posts: 4,997
|
Quote:
your icq its not in your profile, and I have sigs off |
|
|
|
|
|
|
#19 |
|
Confirmed User
Join Date: Sep 2001
Location: Europe
Posts: 2,218
|
i am confused now - what shall i input?
|
|
|
|
|
|
#20 |
|
HAL 9000
Industry Role:
Join Date: May 2001
Posts: 34,515
|
30 failed programmers!
|
|
|
|
|
|
#21 | |
|
Confirmed User
Join Date: Jan 2003
Location: NL
Posts: 342
|
Quote:
PHP Code:
|
|
|
|
|
|
|
#22 |
|
Confirmed User
Join Date: Sep 2001
Location: Europe
Posts: 2,218
|
thanks stramm!
it gets displayed now but it is not random: http://www.ashleyrecommends.com/tgp/make_list.php |
|
|
|
|
|
#23 |
|
Confirmed User
Join Date: Jan 2003
Location: NL
Posts: 342
|
yup... that script just grabs all links in a txt file and displays them... nothing more
replace for ($index = 0; $index < count($links); $index++) with $count = 10; // number of links to display shuffle($links); for ($index = 0; $count; $index++) with $count you can adjust the number of links to display |
|
|
|
|
|
#24 |
|
Confirmed User
Join Date: Jan 2003
Location: NL
Posts: 342
|
oh.. and add a seed randomizer (on top)
srand((float)microtime()*1000000); |
|
|
|
|
|
#25 |
|
Confirmed User
Join Date: Sep 2001
Location: Europe
Posts: 2,218
|
right now it's:
<?php if (!file_exists("niche.db")) { echo "<br><br><center><h3><b>I could not find the feeds.$today.db</b></h3></center>"; exit(); } $links = file("niche.db"); $count = 10; // number of links to display shuffle($links); for ($index = 0;$count; $index++) { $link = explode("|",$links[$index]); print ("<a href=http://cz8.clickzs.com/tgp.php?vdspt&70&CJ1&$link[0] target=_blank>$link[1]</a><br>"); } exit(); ?> and it is random, very nice! but it loads like forever |
|
|
|
|
|
#26 |
|
Confirmed User
Join Date: Sep 2001
Location: Europe
Posts: 2,218
|
awesome, now it works!
http://www.ashleyrecommends.com/tgp/make_list.php thank you so much everybody - i think i'll have to learn some php tomorrow |
|
|
|
|
|
#27 |
|
Confirmed User
Join Date: Jan 2003
Location: NL
Posts: 342
|
sorry.. should be
for ($index = 0; $index<$count; $index++) |
|
|
|
|
|
#28 |
|
Confirmed User
Join Date: Sep 2001
Location: Europe
Posts: 2,218
|
yes i fixed that with the help of darksoul and i added a current date before each gallery all my myself
edited: stram, contact me in icq if you have time |
|
|
|