wkdw1ll1ams Posted December 3, 2011 Share Posted December 3, 2011 just to clarify the site is like imdb, its not a pirate site for films. i thought this would be good to make to learn php. i have a bunch of folders in /films/ and the folders in there are all film names like /films/aliens/. how would i automatically create a php page for each folder and url would be like "localhost/films.php?id=12" trying to understand me here maybe hard, but i appreciate you trying. Quote Link to comment Share on other sites More sharing options...
wkdw1ll1ams Posted December 3, 2011 Author Share Posted December 3, 2011 edit: i have this code: <?php $content = <<<EOL <head> </head> <body> New page </body> </html> EOL; $file = "page.php"; $open = fopen($file, "w"); fwrite($open, $content); fclose($open); ?> i could edit the $file to create a page for each film. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.