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)
-   -   script (https://gfy.com/showthread.php?t=194671)

peewee 11-07-2003 08:05 AM

script
 
hi want to use this script to randomize my galleries;

<?php
$fileName = "./galleries.txt";
mt_srand( (double) microtime() * 1000000 );
$a = file($fileName);
$randNum = mt_rand( 0, sizeof($a)-1 );
header( "Location: ". $a[$randNum] );
?>

can anyone tell me how the gallerie links should look
so numbered and all,please an exeample:helpme

peewee 11-07-2003 08:26 AM

nobody :(

woj 11-07-2003 08:45 AM

1 url per line:

http://www.example.com/gallery1/
htttp://www.example.com/gallery2/

peewee 11-07-2003 08:57 AM

i did that but that gives an error;
Warning: Cannot modify header information - headers already sent by (output started

Weber 11-07-2003 09:06 AM

Quote:

Originally posted by peewee
i did that but that gives an error;
Warning: Cannot modify header information - headers already sent by (output started

Then give us full script listing and we will tell u what 2 do...

peewee 11-07-2003 09:36 AM

i found it ,the place were the links should appear was misspelled,2 letters turned.
tnx for the help:thumbsup


All times are GMT -7. The time now is 05:48 PM.

Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2026, vBulletin Solutions, Inc.
©2000-, AI Media Network Inc123