Re: [PHP] register_global variables on Mac OS X

2002-10-08 Thread Steve Yates

> From: Jule Slootbeek [mailto:[EMAIL PROTECTED]]
> register_globals to on, so i don't have to go through 15 pages of code
> and change all my variables to $_POST['foo']

Try extract($HTTP_POST_VARS) which will create $foo for you.

 - Steve Yates
 - Your karma just ran over my dogma.

~ Do you like my taglines? Add them to your messages and
~ laugh through hundreds more by downloading Taglinator
~ at www.srtware.com today!



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




Re: [PHP] register_global variables on Mac OS X

2002-10-08 Thread Jule Slootbeek

i didn't install from source, i installed from an OS X binary i found 
in the php website, i got a php.ini from someone else which i
'm suing, thanks guys!

Jule

On Tuesday, Oct 8, 2002, at 23:54 US/Eastern, CC Zona wrote:

> In article <[EMAIL PROTECTED]>,
>  [EMAIL PROTECTED] (Jule Slootbeek) wrote:
>
>> Yeah that's the path to where php.ini should be (/usr/local/lib, in my
>> case, but the Jaguar version of PHP doesn't use a php.ini file, so
>> there's nothing there.
>
> Jaguar uses php.ini if it's in the expected location.  That you don't 
> have
> one yet is a matter easily resolved.
>
> You can use an ASCII text editor (BBEdit Lite, for instance
> ) to 
> create
> a new document and fill it with your favorite options.
>
> Or do as others have recommended and download a prewritten one from 
> php.net
> and place it in the designated location (renamed to "php.ini" if 
> necessary).
>
> Or see the configuration page  for
> descriptions of other alternatives (ini_set(), .htaccess).
>
> -- 
> CC
>
> -- 
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>
Jule Slootbeek
[EMAIL PROTECTED]


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




Re[2]: [PHP] register_global variables on Mac OS X

2002-10-08 Thread Tom Rogers

Hi,

Wednesday, October 9, 2002, 1:58:50 PM, you wrote:
BL> On 10/8/02 11:54 PM, "CC Zona" <[EMAIL PROTECTED]> wrote:

>>> Yeah that's the path to where php.ini should be (/usr/local/lib, in my
>>> case, but the Jaguar version of PHP doesn't use a php.ini file, so
>>> there's nothing there.


BL> There is no php.ini file included w/ Mac OS X.. But that's no big deal! Just
BL> create a simle text file with BBEdit or pico or something with the PHP
BL> options that you need in it, and put it in the directory you mention.
>From the manual..

copy and rename the php.ini-dist file to your "bin" directory from your
PHP 4 source directory:
cp php.ini-dist /usr/local/bin/php.ini 

or (if your don't have a local directory) 

cp php.ini-dist /usr/bin/php.ini


might be of help  strange place to put it ...but then :)







-- 
regards,
Tom


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




Re: [PHP] register_global variables on Mac OS X

2002-10-08 Thread Bill Leonard

On 10/8/02 11:54 PM, "CC Zona" <[EMAIL PROTECTED]> wrote:

>> Yeah that's the path to where php.ini should be (/usr/local/lib, in my
>> case, but the Jaguar version of PHP doesn't use a php.ini file, so
>> there's nothing there.


There is no php.ini file included w/ Mac OS X.. But that's no big deal! Just
create a simle text file with BBEdit or pico or something with the PHP
options that you need in it, and put it in the directory you mention.

Good luck!

Bill



-- 
Bill Leonard   [EMAIL PROTECTED]
www.machinemen.com407.464.0147

XrackHosting.com - Mac OS X hosting on Apple's Xserve!
http://www.xrackhosting.com/




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




Re: [PHP] register_global variables on Mac OS X

2002-10-08 Thread CC Zona

In article <[EMAIL PROTECTED]>,
 [EMAIL PROTECTED] (Jule Slootbeek) wrote:

> Yeah that's the path to where php.ini should be (/usr/local/lib, in my 
> case, but the Jaguar version of PHP doesn't use a php.ini file, so 
> there's nothing there.

Jaguar uses php.ini if it's in the expected location.  That you don't have 
one yet is a matter easily resolved.

You can use an ASCII text editor (BBEdit Lite, for instance 
) to create 
a new document and fill it with your favorite options.

Or do as others have recommended and download a prewritten one from php.net 
and place it in the designated location (renamed to "php.ini" if necessary).

Or see the configuration page  for 
descriptions of other alternatives (ini_set(), .htaccess).

-- 
CC

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




RE: [PHP] register_global variables on Mac OS X

2002-10-08 Thread John W. Holmes

I checked and it's actually php.ini-dist or php.ini-recommended. You can
get them from within the source download from php.net or if you can take
a zip/rar, I'll send them to you.

---John Holmes...

> -Original Message-
> From: Jule Slootbeek [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, October 08, 2002 10:55 PM
> To: [EMAIL PROTECTED]
> Cc: [EMAIL PROTECTED]
> Subject: Re: [PHP] register_global variables on Mac OS X
> 
> well, there is no such file, i searched all over my drive, and there
is
> no php-ini.* php_ini.*
> i guess i could try getting a php.ini file from somewhere and putting
> it in the /usr/local/lib dir
> but i wouldn't know where to get a 'standard' php.ini file
> 
> Jule
> 
> On Tuesday, Oct 8, 2002, at 22:43 US/Eastern, John W. Holmes wrote:
> 
> > You may not have one right now and PHP is using it's defaults. Look
for
> > a php-ini.dist or php-ini.recommended in the php folder. Modify one
of
> > those and save it as php.ini. But, I have no idea where to save it
on a
> > Mac.
> >
> > Like the other poster said, load up a  page through
> > your
> > browser and PHP may tell you where it thinks php.ini should be.
It'll
> > be
> > in the first block that appears on the page created by phpinfo().
> >
> > ---John Holmes...
> >
> >> -Original Message-
> >> From: Jule Slootbeek [mailto:[EMAIL PROTECTED]]
> >> Sent: Tuesday, October 08, 2002 10:32 PM
> >> To: [EMAIL PROTECTED]
> >> Subject: [PHP] register_global variables on Mac OS X
> >>
> >> Hi,
> >> i just installed PHP under Mac OS X and now i was looking around
> > trying
> >> to find the php.ini file, or its equivalent, in order to turn
> >> register_globals to on, so i don't have to go through 15 pages of
code
> >> and change all my variables to $_POST['foo'] but i couldn't find
> >> anywhere where this action could be done. So i was wondering if
> > anybody
> >> had experience with PHP under Jaguar, and could lend me a hand.
> >>
> >> TIA,
> >>
> >> Jule Slootbeek
> >> [EMAIL PROTECTED]
> >>
> >>
> >> --
> >> 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
> >
> >
> Jule Slootbeek
> [EMAIL PROTECTED]




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




Re: [PHP] register_global variables on Mac OS X

2002-10-08 Thread Jule Slootbeek

well, there is no such file, i searched all over my drive, and there is 
no php-ini.* php_ini.*
i guess i could try getting a php.ini file from somewhere and putting 
it in the /usr/local/lib dir
but i wouldn't know where to get a 'standard' php.ini file

Jule

On Tuesday, Oct 8, 2002, at 22:43 US/Eastern, John W. Holmes wrote:

> You may not have one right now and PHP is using it's defaults. Look for
> a php-ini.dist or php-ini.recommended in the php folder. Modify one of
> those and save it as php.ini. But, I have no idea where to save it on a
> Mac.
>
> Like the other poster said, load up a  page through 
> your
> browser and PHP may tell you where it thinks php.ini should be. It'll 
> be
> in the first block that appears on the page created by phpinfo().
>
> ---John Holmes...
>
>> -Original Message-
>> From: Jule Slootbeek [mailto:[EMAIL PROTECTED]]
>> Sent: Tuesday, October 08, 2002 10:32 PM
>> To: [EMAIL PROTECTED]
>> Subject: [PHP] register_global variables on Mac OS X
>>
>> Hi,
>> i just installed PHP under Mac OS X and now i was looking around
> trying
>> to find the php.ini file, or its equivalent, in order to turn
>> register_globals to on, so i don't have to go through 15 pages of code
>> and change all my variables to $_POST['foo'] but i couldn't find
>> anywhere where this action could be done. So i was wondering if
> anybody
>> had experience with PHP under Jaguar, and could lend me a hand.
>>
>> TIA,
>>
>> Jule Slootbeek
>> [EMAIL PROTECTED]
>>
>>
>> --
>> 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
>
>
Jule Slootbeek
[EMAIL PROTECTED]


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




RE: [PHP] register_global variables on Mac OS X

2002-10-08 Thread John W. Holmes

You may not have one right now and PHP is using it's defaults. Look for
a php-ini.dist or php-ini.recommended in the php folder. Modify one of
those and save it as php.ini. But, I have no idea where to save it on a
Mac. 

Like the other poster said, load up a  page through your
browser and PHP may tell you where it thinks php.ini should be. It'll be
in the first block that appears on the page created by phpinfo().

---John Holmes...

> -Original Message-
> From: Jule Slootbeek [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, October 08, 2002 10:32 PM
> To: [EMAIL PROTECTED]
> Subject: [PHP] register_global variables on Mac OS X
> 
> Hi,
> i just installed PHP under Mac OS X and now i was looking around
trying
> to find the php.ini file, or its equivalent, in order to turn
> register_globals to on, so i don't have to go through 15 pages of code
> and change all my variables to $_POST['foo'] but i couldn't find
> anywhere where this action could be done. So i was wondering if
anybody
> had experience with PHP under Jaguar, and could lend me a hand.
> 
> TIA,
> 
> Jule Slootbeek
> [EMAIL PROTECTED]
> 
> 
> --
> 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




Re: [PHP] register_global variables on Mac OS X

2002-10-08 Thread Jule Slootbeek

Yeah that's the path to where php.ini should be (/usr/local/lib, in my 
case, but the Jaguar version of PHP doesn't use a php.ini file, so 
there's nothing there.

Jule

On Tuesday, Oct 8, 2002, at 22:34 US/Eastern, Timothy J Hitchens wrote:

> Make a page with  then display
> the page threw the server into the browser... and it should
> like the location in the top area.
>
>
>
>
> Timothy Hitchens (HITCHO)
> [EMAIL PROTECTED]
>
> HITCHO has Spoken!
>
>
>
>
>
>
> -Original Message-
> From: Jule Slootbeek [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, 9 October 2002 12:32 PM
> To: [EMAIL PROTECTED]
> Subject: [PHP] register_global variables on Mac OS X
>
>
> Hi,
> i just installed PHP under Mac OS X and now i was looking around trying
> to find the php.ini file, or its equivalent, in order to turn
> register_globals to on, so i don't have to go through 15 pages of code
> and change all my variables to $_POST['foo'] but i couldn't find
> anywhere where this action could be done. So i was wondering if anybody
> had experience with PHP under Jaguar, and could lend me a hand.
>
> TIA,
>
> Jule Slootbeek
> [EMAIL PROTECTED]
>
>
> -- 
> 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
>
>
Jule Slootbeek
[EMAIL PROTECTED]


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




RE: [PHP] register_global variables on Mac OS X

2002-10-08 Thread Timothy J Hitchens

Make a page with  then display
the page threw the server into the browser... and it should
like the location in the top area.




Timothy Hitchens (HITCHO)
[EMAIL PROTECTED]

HITCHO has Spoken!






-Original Message-
From: Jule Slootbeek [mailto:[EMAIL PROTECTED]] 
Sent: Wednesday, 9 October 2002 12:32 PM
To: [EMAIL PROTECTED]
Subject: [PHP] register_global variables on Mac OS X


Hi,
i just installed PHP under Mac OS X and now i was looking around trying 
to find the php.ini file, or its equivalent, in order to turn 
register_globals to on, so i don't have to go through 15 pages of code 
and change all my variables to $_POST['foo'] but i couldn't find 
anywhere where this action could be done. So i was wondering if anybody 
had experience with PHP under Jaguar, and could lend me a hand.

TIA,

Jule Slootbeek
[EMAIL PROTECTED]


-- 
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




[PHP] register_global variables on Mac OS X

2002-10-08 Thread Jule Slootbeek

Hi,
i just installed PHP under Mac OS X and now i was looking around trying 
to find the php.ini file, or its equivalent, in order to turn 
register_globals to on, so i don't have to go through 15 pages of code 
and change all my variables to $_POST['foo'] but i couldn't find 
anywhere where this action could be done. So i was wondering if anybody 
had experience with PHP under Jaguar, and could lend me a hand.

TIA,

Jule Slootbeek
[EMAIL PROTECTED]


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