script

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • peewee
    Confirmed User
    • Oct 2003
    • 451

    #1

    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
    <a href="http://www.sexmoney.com/?adsid=59343" target="_blank"><img src="http://www.sexpiraat.nl/sexmo.gif"></a>
  • peewee
    Confirmed User
    • Oct 2003
    • 451

    #2
    nobody
    <a href="http://www.sexmoney.com/?adsid=59343" target="_blank"><img src="http://www.sexpiraat.nl/sexmo.gif"></a>

    Comment

    • woj
      <&(©¿©)&>
      • Jul 2002
      • 47882

      #3
      1 url per line:

      http://www.example.com/gallery1/
      htttp://www.example.com/gallery2/
      Custom Software Development, email: woj#at#wojfun#.#com to discuss details or skype: wojl2000 or gchat: wojfun or telegram: wojl2000
      Affiliate program tools: Hosted Galleries Manager Banner Manager Video Manager
      Wordpress Affiliate Plugin Pic/Movie of the Day Fansign Generator Zip Manager

      Comment

      • peewee
        Confirmed User
        • Oct 2003
        • 451

        #4
        i did that but that gives an error;
        Warning: Cannot modify header information - headers already sent by (output started
        <a href="http://www.sexmoney.com/?adsid=59343" target="_blank"><img src="http://www.sexpiraat.nl/sexmo.gif"></a>

        Comment

        • Weber
          Confirmed User
          • Mar 2003
          • 1114

          #5
          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...
          Just a sig

          Comment

          • peewee
            Confirmed User
            • Oct 2003
            • 451

            #6
            i found it ,the place were the links should appear was misspelled,2 letters turned.
            tnx for the help
            <a href="http://www.sexmoney.com/?adsid=59343" target="_blank"><img src="http://www.sexpiraat.nl/sexmo.gif"></a>

            Comment

            Working...