[PHP] php.ini session_auto.start = 1

2009-12-04 Thread scotdiddle
Hello All,

In my previous LAMP position, I developed an intranet system from
scratch, and chose to use session_auto.start = 1 for sessions.

My new employer has auto-start turned off, and I have been tasked with
re-writing the entire system.  I would like to use auto-start, but
during testing I found a couple of system calls that don't work if the
session has  already been started .

I there a resource somewhere out in google-land which will show me a
list of system functions don't play nice session_auto.start = 1 ?

Also, what are the thoughts of the folks on this list about using the
auto-start setting ?

Any advice / direction will be appreciated.

Scot L. Diddle, Richmonc VA








-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] php.ini session_auto.start = 1

2009-12-04 Thread scotdiddle
Hello All,

In my previous LAMP position, I developed an intranet system from
scratch, and chose to use session_auto.start = 1 for sessions.

My new employer has auto-start turned off, and I have been tasked with
re-writing the entire system.  I would like to use auto-start, but
during testing I found a couple of system calls that don't work if the
session has  already been started .

I there a resource somewhere out in google-land which will show me a
list of system functions don't play nice session_auto.start = 1 ?

Also, what are the thoughts of the folks on this list about using the
auto-start setting ?

Any advice / direction will be appreciated.

Scot L. Diddle, Richmond VA








-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] php.ini session_auto.start = 1

2009-12-04 Thread scotdiddle
Hello All,

In my previous LAMP position, I developed an intranet system from
scratch, and chose to use session_auto.start = 1 for sessions.

My new employer has auto-start turned off, and I have been tasked with
re-writing the entire system.  I would like to use auto-start, but
during testing I found a couple of system calls that don't work if the
session has  already been started .

I there a resource somewhere out in google-land which will show me a
list of system functions don't play nice session_auto.start = 1 ?

Also, what are the thoughts of the folks on this list about using the
auto-start setting ?

Any advice / direction will be appreciated.

Scot L. Diddle, Richmond VA








-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] Array numeric key - alpha key replacement

2007-12-05 Thread scotdiddle

Jochem,

  Yes, that did the trick quite nicely.

  As I said, I overlooked it... a function called array_combine did  
not cause me to read the drill-down, because I figured it was for a  
union of two arrays ( it is, kind of... ) and I wanted to replace key  
values, not combine arrays : array_combine( (1,2,3,4), (5,6,7,8)) =  
array(1,2,3,4,5,6,7,8) which is what the name of the function implies  
is does, and which, for those of us who have read that portion of the  
manual knows, is accomplished by array_merge.


  Thanks for the help.

Scot

Quoting Jochem Maas [EMAIL PROTECTED]:


[EMAIL PROTECTED] wrote:

Quoting Jochem Maas [EMAIL PROTECTED]:



...



$newArray   = array('FAF1', 'ODM1', /* bla bla bla */);
$inputArray = array_combine($newArray, $inputArray);

I guess reading through this page was too much trouble for you:

http://php.net/array


Jochem: Nope, not too much trouble... I tried to find what I was looking
for on http://php.net/array.

Sorry I was such a bother.


no bother, if everyone read the manual and found their answers there  
 who would

I vent my speel at?

I'll assume that array_combine() does the trick for you.



--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] Array numeric key - alpha key replacement

2007-12-05 Thread scotdiddle

Hello All,

Is the a built-in PHP call that I am overlooking which lets me  
replace key values in an array.


   $inputArray = array(0 = array, 1 = array);  (generated programtically)

   I want to end up with :

   $newArray = array('FAF1' = array, 'ODM1' = array);

Thanks.

Scot L. Diddle, UPS Freight, Richmond VA

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] Array numeric key - alpha key replacement

2007-12-05 Thread scotdiddle

Quoting Jochem Maas [EMAIL PROTECTED]:


[EMAIL PROTECTED] wrote:

Hello All,

Is the a built-in PHP call that I am overlooking which lets me
replace key values in an array.

   $inputArray = array(0 = array, 1 = array);  (generated programtically)

   I want to end up with :

   $newArray = array('FAF1' = array, 'ODM1' = array);

Thanks.


$newArray   = array('FAF1', 'ODM1', /* bla bla bla */);
$inputArray = array_combine($newArray, $inputArray);

I guess reading through this page was too much trouble for you:

http://php.net/array


Jochem: Nope, not too much trouble... I tried to find what I was  
looking for on http://php.net/array.


Sorry I was such a bother.

Scot







Scot L. Diddle, UPS Freight, Richmond VA






--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] file_get_contents

2007-02-06 Thread scotdiddle

Steven,

I asked this same question a week or so on the ZEND PHP Fourm

See the answer to my post for an elegant solution:

http://www.zend.com/forums/index.php?t=msgth=2977start=0S=fe14095d33458d18b9bc49ea04a9a13b

Scot L. Diddle, Richmond VA





Quoting Steven Macintyre [EMAIL PROTECTED]:


Hiya,

I need to be able to read a file into a string - I have used the above
command and it works ... now ... I need to read a file into a string - that
requires a username and password to access the authentication is normal HTTP
basic realm

Any ideas?



Kind Regards


Steven Macintyre

--

www.friends4friends.co.za

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php