![]() |
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? |
i have it ready,ill have to search a bit,what's your email? im offline on icq now
|
daniel ?at? soulcash ?dot? com
thanks man! |
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 |
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 >
|
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? |
cekiller,check your mail
|
Category Feeder v0.9 :1orglaugh
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 :BangBang: |
Quote:
|
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. |
darksoul, got a second on icq? hit me up if you have time
|
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 |
cekiller try to include the code like this
include ('http://www.domain.com/niche.db'); dont laugh people, i dont know shit from coding :glugglug |
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 ;) |
Quote:
maybe you should've specified that the comment: --include (...................) ---- its not part of the script also your printf its a bit messed up |
Quote:
PHP Code:
|
Quote:
man don't laugh on a fellow soul :( |
Quote:
your icq its not in your profile, and I have sigs off |
i am confused now - what shall i input?
|
30 failed programmers!
|
Quote:
PHP Code:
|
thanks stramm!
it gets displayed now but it is not random: http://www.ashleyrecommends.com/tgp/make_list.php |
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 |
oh.. and add a seed randomizer (on top)
srand((float)microtime()*1000000); |
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 :) something is still not right |
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 :thumbsup |
sorry.. should be
for ($index = 0; $index<$count; $index++) |
yes i fixed that with the help of darksoul and i added a current date before each gallery all my myself :thumbsup
edited: stram, contact me in icq if you have time |
| All times are GMT -7. The time now is 08:57 AM. |
Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2026, vBulletin Solutions, Inc.
©2000-, AI Media Network Inc123