PDA

View Full Version : getting info from a file.


Raraken
08-05-2004, 08:52 AM
Okay, I have an external php file that contains variables.

Ie:
$this = that;
$you = meat;

so on, so fourth.

I'm having trouble getting the variables from the file though. :S

The method of getting the variables out doesnt matter, as long as I get them out. :)

mordred
08-05-2004, 09:37 AM
What speaks against using include()?

Jero
08-05-2004, 10:46 AM
require 'yourfile.php';

also works.

Celtboy
08-05-2004, 01:49 PM
also, you should put quotes around your variables' values, when they're strings.