Click here for important information about

Use file in PHP

Compaq ?
March 21, 2010 at 10:32:21
Specs: Windows 98, ?
I want to use a file in php (reg.php) by using the command
usr reg;
so that I can use the string
, but I keep getting an error when I use the command
. How do I do this?

See More: Use file in PHP

April 30, 2010 at 18:24:05
reg.php is a file that you want to import the contents of?

I think you're confusing Perl with PHP.

Report •

May 8, 2010 at 14:00:59
okay, so thats the include, say I wanted to retrieve an array from reg.php. How would I do that?

Report •

May 9, 2010 at 15:27:18
If reg.php contains the statement $some_array = array(ele1, ele2, ...);, you would just include('reg.php'); and then refer to $some_array. Including (or requiring) another file is the same as typing it right into your file.

Report •
Related Solutions

Ask Question