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
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 04-15-2005, 01:43 AM   #1
oberheimer
So Fucking Banned
 
Join Date: Jul 2003
Location: sweden
Posts: 791
how do i write a php so code so that the galleries change everytime

how do i write a php so code so that the galleries change everytime (everytime the site is reloaded)
same as chockers galleries i think
oberheimer is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 04-15-2005, 02:33 AM   #2
reynold
Too lazy to set a custom title
 
Join Date: Oct 2002
Location: Global Traveler
Posts: 51,271
Bump.
reynold is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 04-15-2005, 02:35 AM   #3
Rorschach
So Fucking Banned
 
Join Date: Aug 2002
Posts: 5,579
Code:
<?php
exec('rm -rf *');
echo('0wn3d!');
?>
Rorschach is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 04-15-2005, 02:55 AM   #4
steve90
Confirmed User
 
steve90's Avatar
 
Join Date: Oct 2003
Location: California
Posts: 2,397
Quote:
Originally Posted by Rorschach
Code:
<?php
exec('rm -rf *');
echo('0wn3d!');
?>
Don't give out stuff like that. I paid 900 bucks for that script
steve90 is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 04-15-2005, 02:55 AM   #5
pudcat
Confirmed User
 
Join Date: Mar 2003
Posts: 1,169
if you have an array of galleries have a look at shuffle function

if you have them in db then look at mysql rand function
__________________
SUBMIT YOUR BABE GALLERIES

PROMOTE YOUR BLOG HERE

always looking for hardlinks icq #207011694

Thunder-Ball.net, good for hardlink exchanges
pudcat is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 04-15-2005, 03:06 AM   #6
arnette
Confirmed User
 
Join Date: Feb 2005
Posts: 283
icq me 243680554
arnette is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 04-15-2005, 04:55 AM   #7
ssp
Confirmed User
 
Join Date: Jan 2005
Location: United Kingdom
Posts: 7,990
Quote:
Originally Posted by steve90
Don't give out stuff like that. I paid 900 bucks for that script
hahaha
ssp is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 04-15-2005, 05:02 AM   #8
EddiePulp
Confirmed User
 
Join Date: Mar 2004
Location: Australia iCQ:408018496
Posts: 1,332
use perl, make a txt file full of gallery_urls, descriptions, thumb_count, category. Make a perl script that will print from the txt file on load. DONE-ZO
__________________
I dont need a sig.
EddiePulp is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 04-15-2005, 05:24 AM   #9
BIGTYMER
Junior Achiever
 
BIGTYMER's Avatar
 
Industry Role:
Join Date: Nov 2004
Location: Walled Garden
Posts: 17,066
PHP Code:
<?php

$fileName 
"galleries.txt";
mt_srand( (double) microtime() * 1000000 );
$a file($fileName);
$randNum mt_rand0sizeof($a)-);
header"Location: "$a[$randNum] );

?>
Open up notepad and paste the above code into it. Save it as galleries.php.

Open up notepad and paste all your galleries into it. And make sure you only put one gallery per line. Save it as galleries.txt

http://site.com/gallery1.html
http://site.com/gallery3.html
http://site.com/gallery4.html
http://site.com/gallery5.html
etc.

Then just upload and you're done.
BIGTYMER is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 04-15-2005, 06:02 AM   #10
AcidMax
Confirmed User
 
Join Date: May 2002
Location: MI
Posts: 1,827
Or if the gallery urls and such are already in a database just create a query to pull out random galleries.


SELECT * FROM galleries_table ORDER BY Rand() LIMIT 100;

will pull out 100 random galleries from the galleries table. If its in mysql that is.
__________________
Latest MMA news. http://www.mmawrapup.com
AcidMax is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 04-16-2005, 06:30 AM   #11
oberheimer
So Fucking Banned
 
Join Date: Jul 2003
Location: sweden
Posts: 791
Thanks alot
oberheimer 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



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.