PDA

View Full Version : PHP File Insert


AnkisethGallant
05-06-2002, 10:27 PM
I want a php file in my root directory to be able to use $post[fieldx], $post[username], etc. I also want the associated templates to use those too. What code do I need in the PHP and where?

AnkisethGallant
05-06-2002, 11:01 PM
Also, which one should I use:
include ('./global.php)
Or:
require ('./global.pgp)

And what do they both mean?

AnkisethGallant
05-06-2002, 11:23 PM
One more thing, is it possible to randomize numbers? If so, how?

Admin
05-07-2002, 12:05 PM
To randomize, check rand() function on PHP.net.

You should start your vB file like this:
<?php
error_reporting(7);
$templatesused = 'templates,you,are,going,to,use';
require('./global.php');

AnkisethGallant
05-07-2002, 07:30 PM
Thanks firefly.