|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2002-03-03 00:33 UTC] torben@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Fri Dec 05 01:00:02 2025 UTC |
Hi... i want to build a php file that opens one of a number of pages randomly... this is what i've coem up with. the rand function works...but i don't think the fopen function does..... i don't know if it has to do with apache or what? thanks: <? $page = rand(0, 6); if ($page = 0){ fopen ("gary1.htm","r");} if ($page = 1){ fopen ("gary2.htm","r");} if ($page = 2){ fopen ("gary3.htm","r");} if ($page = 3){ fopen ("gary4.htm","r");} if ($page = 4){ fopen ("gary5.htm","r");} if ($page = 5){ fopen ("gary6.htm","r");} ?>