faqts : Computers : Programming : Languages : PHP : kms : General

+ Search
Add Entry AlertManage Folder Edit Entry Add page to http://del.icio.us/
Did You Find This Entry Useful?

11 of 13 people (85%) answered Yes
Recently 9 of 10 people (90%) answered Yes

Entry

I want to create an array that I can access from a various number of PHP scripts, is there any way I can do this without using the post and get form methods?

Nov 29th, 2000 00:01
Pavel Prishivalko, Dave Martindale,


PHP4:
<? // 1.php
session_start();
$blah = Array('a','b');
session_register("blah[]");
?>
<? // 2.php
session_start();
echo $blah[1];
?>