View Single Post
Old 10-09-2004, 10:05 PM   #28 (permalink)
Vormund
 
Monster Techie

Join Date: May 2004

Location: Tucson, AZ, USA

Posts: 1,183

Vormund

Send a message via AIM to Vormund Send a message via MSN to Vormund Send a message via Yahoo to Vormund
Default

Yeah, that's one way to do it. If you want (no real reason to, except security as anyone can access that IP log if they know/find the file name), you can use a MySQL database...if you want that, let me know

For redirecting, yes, your code is right, just add towards the bottom, after fclose($hFile); (next line) this:

header('Location: index.html');

note: change index.html to your page name.



Also, if you wanted, you can leave the extension as .PHP and make all pages your site as that--leaves for great expandability/lots more... Just make sure your links go to "index.php" instead of "index.html" etc.

Javascript is not necessary as you are using PHP
__________________
Vormund is offline