GoFuckYourself.com - Adult Webmaster Forum

GoFuckYourself.com - Adult Webmaster Forum (https://gfy.com/index.php)
-   Fucking Around & Business Discussion (https://gfy.com/forumdisplay.php?f=26)
-   -   php gurus - i need a small script written (https://gfy.com/showthread.php?t=277921)

deleteduser 05-01-2004 04:35 AM

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?

Theo 05-01-2004 04:42 AM

i have it ready,ill have to search a bit,what's your email? im offline on icq now

deleteduser 05-01-2004 04:49 AM

daniel ?at? soulcash ?dot? com

thanks man!

Theo 05-01-2004 04:56 AM

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

Theo 05-01-2004 05:00 AM

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 >

deleteduser 05-01-2004 05:07 AM

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?

Theo 05-01-2004 05:18 AM

cekiller,check your mail

darksoul 05-01-2004 05:21 AM

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:

deleteduser 05-01-2004 05:24 AM

Quote:

Originally posted by darksoul
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:

i will hardlink the db source after it work's - don't worry ;)

darksoul 05-01-2004 05:27 AM

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.

deleteduser 05-01-2004 05:29 AM

darksoul, got a second on icq? hit me up if you have time

Theo 05-01-2004 05:29 AM

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

Theo 05-01-2004 05:35 AM

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

deleteduser 05-01-2004 05:37 AM

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 ;)

darksoul 05-01-2004 05:49 AM

Quote:

Originally posted by Soul_Rebel
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

:1orglaugh :1orglaugh

maybe you should've specified that the comment:
--include (...................) ---- its not part of the script

also your printf its a bit messed up

Stramm 05-01-2004 05:50 AM

Quote:

Originally posted by Soul_Rebel
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


PHP Code:

    print ("<a hahahahahahahaover=\"hahahahahaha.status='http://$link[0]'; return true\" onfocus=\"hahahahahaha.status='http://$link[0]'; return true\" hahahahahahahaout=\"hahahahahaha.status=''; return true\" href=http://cz8.clickzs.com/tgp.php?vdspt&70&CJ1&$link[0] target=_blank>$link[1]</a><br>"); 


Theo 05-01-2004 05:53 AM

Quote:

Originally posted by darksoul


maybe you should've specified that the comment:
--include (...................) ---- its not part of the script


that's obvious


man don't laugh on a fellow soul :(

darksoul 05-01-2004 05:54 AM

Quote:

Originally posted by CeKilleR
darksoul, got a second on icq? hit me up if you have time
you hit me up,
your icq its not in your profile, and I have sigs off

deleteduser 05-01-2004 05:55 AM

i am confused now - what shall i input?

Theo 05-01-2004 05:57 AM

30 failed programmers!

Stramm 05-01-2004 05:58 AM

Quote:

Originally posted by Soul_Rebel
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


PHP Code:

    print ("<a hahahahahahahaover=\"hahahahahaha.status='http://$link[0]'; return true\" onfocus=\"hahahahahaha.status='http://$link[0]'; return true\" hahahahahahahaout=\"hahahahahaha.status=''; return true\" href=http://cz8.clickzs.com/tgp.php?vdspt&70&CJ1&$link[0] target=_blank>$link[1]</a><br>"); 


deleteduser 05-01-2004 06:04 AM

thanks stramm!

it gets displayed now but it is not random:
http://www.ashleyrecommends.com/tgp/make_list.php

Stramm 05-01-2004 06:30 AM

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

Stramm 05-01-2004 06:40 AM

oh.. and add a seed randomizer (on top)

srand((float)microtime()*1000000);

deleteduser 05-01-2004 07:02 AM

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

deleteduser 05-01-2004 07:06 AM

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

Stramm 05-01-2004 07:10 AM

sorry.. should be

for ($index = 0; $index<$count; $index++)

deleteduser 05-01-2004 07:13 AM

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