TalkPHP

TalkPHP (http://www.talkphp.com/forums.php)
-   General (http://www.talkphp.com/general/)
-   -   reading array from file help (http://www.talkphp.com/general/5877-reading-array-file-help.html)

Tim Dobson 05-29-2011 11:28 AM

reading array from file help
 
hey guys i have myself stuff on reading an array, My admin cp login reads from an array like this

PHP Code:

$LOGIN_INFORMATION = array(
  
'name' => 'password',
  
'name' => 'password',
  
'name' => 'password'
); 

The bottom 2 need to be there by default because they are the main logins, the file it gets the info from is encrypted but decrypting i can do but how would i go about reading the file in the array,

PHP Code:

$LOGIN_INFORMATION = array(
  (
this is where i need to get the data from the file)
  
'name' => 'password',
  
'name' => 'password'
); 


tony 05-30-2011 01:13 PM

you could include or require the file. that way it would read as php code


All times are GMT. The time now is 03:13 AM.

Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.1.0