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.

Post New Thread Reply

Register GFY Rules Calendar Mark Forums Read
Go Back   GoFuckYourself.com - Adult Webmaster Forum > >
Discuss what's fucking going on, and which programs are best and worst. One-time "program" announcements from "established" webmasters are allowed.

 
Thread Tools
Old 05-01-2004, 04:35 AM   #1
deleteduser
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?
__________________
ICQ #58981463
Promote my PornAccess Site: 2Chicks1Dick
deleteduser is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 05-01-2004, 04:42 AM   #2
Theo
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
Theo is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 05-01-2004, 04:49 AM   #3
deleteduser
Confirmed User
 
Join Date: Sep 2001
Location: Europe
Posts: 2,218
daniel ?at? soulcash ?dot? com

thanks man!
__________________
ICQ #58981463
Promote my PornAccess Site: 2Chicks1Dick
deleteduser is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 05-01-2004, 04:56 AM   #4
Theo
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

Last edited by Theo; 05-01-2004 at 04:58 AM..
Theo is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 05-01-2004, 05:00 AM   #5
Theo
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 >
Theo is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 05-01-2004, 05:07 AM   #6
deleteduser
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?
__________________
ICQ #58981463
Promote my PornAccess Site: 2Chicks1Dick
deleteduser is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 05-01-2004, 05:18 AM   #7
Theo
HAL 9000
 
Industry Role:
Join Date: May 2001
Posts: 34,515
cekiller,check your mail
Theo is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 05-01-2004, 05:21 AM   #8
darksoul
Confirmed User
 
darksoul's Avatar
 
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

__________________
1337 5y54|)m1n: 157717888
BM-2cUBw4B2fgiYAfjkE7JvWaJMiUXD96n9tN
Cambooth
darksoul is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 05-01-2004, 05:24 AM   #9
deleteduser
Confirmed User
 
Join Date: Sep 2001
Location: Europe
Posts: 2,218
Quote:
Originally posted by darksoul
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

i will hardlink the db source after it work's - don't worry ;)
__________________
ICQ #58981463
Promote my PornAccess Site: 2Chicks1Dick
deleteduser is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 05-01-2004, 05:27 AM   #10
darksoul
Confirmed User
 
darksoul's Avatar
 
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.
__________________
1337 5y54|)m1n: 157717888
BM-2cUBw4B2fgiYAfjkE7JvWaJMiUXD96n9tN
Cambooth
darksoul is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 05-01-2004, 05:29 AM   #11
deleteduser
Confirmed User
 
Join Date: Sep 2001
Location: Europe
Posts: 2,218
darksoul, got a second on icq? hit me up if you have time
__________________
ICQ #58981463
Promote my PornAccess Site: 2Chicks1Dick
deleteduser is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 05-01-2004, 05:29 AM   #12
Theo
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
Theo is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 05-01-2004, 05:35 AM   #13
Theo
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
Theo is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 05-01-2004, 05:37 AM   #14
deleteduser
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 ;)
__________________
ICQ #58981463
Promote my PornAccess Site: 2Chicks1Dick
deleteduser is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 05-01-2004, 05:49 AM   #15
darksoul
Confirmed User
 
darksoul's Avatar
 
Join Date: Apr 2002
Location: /root/
Posts: 4,997
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


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

also your printf its a bit messed up
__________________
1337 5y54|)m1n: 157717888
BM-2cUBw4B2fgiYAfjkE7JvWaJMiUXD96n9tN
Cambooth
darksoul is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 05-01-2004, 05:50 AM   #16
Stramm
Confirmed User
 
Join Date: Jan 2003
Location: NL
Posts: 342
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>"); 
Stramm is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 05-01-2004, 05:53 AM   #17
Theo
HAL 9000
 
Industry Role:
Join Date: May 2001
Posts: 34,515
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
Theo is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 05-01-2004, 05:54 AM   #18
darksoul
Confirmed User
 
darksoul's Avatar
 
Join Date: Apr 2002
Location: /root/
Posts: 4,997
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
__________________
1337 5y54|)m1n: 157717888
BM-2cUBw4B2fgiYAfjkE7JvWaJMiUXD96n9tN
Cambooth
darksoul is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 05-01-2004, 05:55 AM   #19
deleteduser
Confirmed User
 
Join Date: Sep 2001
Location: Europe
Posts: 2,218
i am confused now - what shall i input?
__________________
ICQ #58981463
Promote my PornAccess Site: 2Chicks1Dick
deleteduser is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 05-01-2004, 05:57 AM   #20
Theo
HAL 9000
 
Industry Role:
Join Date: May 2001
Posts: 34,515
30 failed programmers!
Theo is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 05-01-2004, 05:58 AM   #21
Stramm
Confirmed User
 
Join Date: Jan 2003
Location: NL
Posts: 342
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>"); 
Stramm is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 05-01-2004, 06:04 AM   #22
deleteduser
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
__________________
ICQ #58981463
Promote my PornAccess Site: 2Chicks1Dick
deleteduser is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 05-01-2004, 06:30 AM   #23
Stramm
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
Stramm is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 05-01-2004, 06:40 AM   #24
Stramm
Confirmed User
 
Join Date: Jan 2003
Location: NL
Posts: 342
oh.. and add a seed randomizer (on top)

srand((float)microtime()*1000000);
Stramm is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 05-01-2004, 07:02 AM   #25
deleteduser
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 something is still not right
__________________
ICQ #58981463
Promote my PornAccess Site: 2Chicks1Dick
deleteduser is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 05-01-2004, 07:06 AM   #26
deleteduser
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
__________________
ICQ #58981463
Promote my PornAccess Site: 2Chicks1Dick
deleteduser is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 05-01-2004, 07:10 AM   #27
Stramm
Confirmed User
 
Join Date: Jan 2003
Location: NL
Posts: 342
sorry.. should be

for ($index = 0; $index<$count; $index++)
Stramm is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 05-01-2004, 07:13 AM   #28
deleteduser
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
__________________
ICQ #58981463
Promote my PornAccess Site: 2Chicks1Dick
deleteduser is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Post New Thread Reply
Go Back   GoFuckYourself.com - Adult Webmaster Forum > >

Bookmarks
Thread Tools



Advertising inquiries - marketing at gfy dot com

Contact Admin - Advertise - GFY Rules - Top

©2000-, AI Media Network Inc



Powered by vBulletin
Copyright © 2000- Jelsoft Enterprises Limited.