[PHP] php.ini setting

2011-10-01 Thread Jim Giner
I'm trying to set magic quotes Off as my reading tells me that it's not good to have it defaulted to On. My ISP has this setting (from PHPINFO call): magic_quotes_gpc on >From reading the php.net manual I found this line php_flag magic_quotes_gpc on which it says to place in the .htac

Re: [PHP] php.ini setting

2011-10-01 Thread Stephen
On 11-10-01 11:57 AM, Jim Giner wrote: I'm trying to set magic quotes Off as my reading tells me that it's not good to have it defaulted to On. http://php.net/manual/en/security.magicquotes.disabling.php Stephen -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://

Re: [PHP] php.ini setting

2011-10-01 Thread Jim Giner
"Stephen" wrote in message news:4e874606.2030...@rogers.com... >> > http://php.net/manual/en/security.magicquotes.disabling.php > > Stephen That tells me nothing new. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] php.ini setting

2011-10-01 Thread Ashley Sheridan
On Sat, 2011-10-01 at 12:55 -0400, Stephen wrote: > On 11-10-01 11:57 AM, Jim Giner wrote: > > I'm trying to set magic quotes Off as my reading tells me that it's not good > > to have it defaulted to On. > > > > > http://php.net/manual/en/security.magicquotes.disabling.php > > Stephen > Stephe

[PHP] Variable question

2011-10-01 Thread Ron Piggott
If $correct_answer has a value of 3 what is the correct syntax needed to use echo to display the value of $trivia_answer_3? I know this is incorrect, but along the lines of what I am wanting to do: echo $trivia_answer_$correct_answer; $trivia_answer_1 = “1,000”; $trivia_answer_2 = “1,250”; $tr

Re: [PHP] php.ini setting

2011-10-01 Thread Mike Mackintosh
On Oct 1, 2011, at 2:04 PM, Ashley Sheridan wrote: > On Sat, 2011-10-01 at 12:55 -0400, Stephen wrote: > >> On 11-10-01 11:57 AM, Jim Giner wrote: >>> I'm trying to set magic quotes Off as my reading tells me that it's not good >>> to have it defaulted to On. >>> >>> >> http://php.net/manual/e

Re: [PHP] Variable question

2011-10-01 Thread Mike Mackintosh
On Oct 1, 2011, at 1:59 PM, Ron Piggott wrote: > > If $correct_answer has a value of 3 what is the correct syntax needed to use > echo to display the value of $trivia_answer_3? > > I know this is incorrect, but along the lines of what I am wanting to do: > > echo $trivia_answer_$correct_answe

Re: [PHP] php.ini setting

2011-10-01 Thread Jim Giner
"Mike Mackintosh" wrote in message news:52ea6b9e-ef12-44d3-bd31-72984e5e5...@angrystatic.com... http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Variable question

2011-10-01 Thread David Harkness
On Sat, Oct 1, 2011 at 10:59 AM, Ron Piggott wrote: > If $correct_answer has a value of 3 what is the correct syntax needed to > use echo to display the value of $trivia_answer_3? You can use variable variables [1] to access the variable by building its name in a string: $name = 'trivia_ans

Re: [PHP] Variable question

2011-10-01 Thread Robert Cummings
On 11-10-01 02:03 PM, Mike Mackintosh wrote: On Oct 1, 2011, at 1:59 PM, Ron Piggott wrote: If $correct_answer has a value of 3 what is the correct syntax needed to use echo to display the value of $trivia_answer_3? I know this is incorrect, but along the lines of what I am wanting to do:

Re: [PHP] Variable question

2011-10-01 Thread Tim Streater
On 01 Oct 2011 at 18:59, Ron Piggott wrote: > If $correct_answer has a value of 3 what is the correct syntax needed to use > echo to display the value of $trivia_answer_3? > > I know this is incorrect, but along the lines of what I am wanting to do: > > echo $trivia_answer_$correct_answer; > > $

Re: [PHP] Getting meta data (of any type) for an XML file being from it's URL.

2011-10-01 Thread Tommy Pham
On Fri, Sep 30, 2011 at 3:03 AM, Richard Quadling wrote: > On 29 September 2011 23:34, Tommy Pham wrote: > > On Thu, Sep 29, 2011 at 3:27 PM, Tommy Pham wrote: > >> > >> On Thu, Sep 29, 2011 at 9:09 AM, Richard Quadling > >> wrote: > >>> > >>> Hi. > >>> > >>> I'm looking to process very large X

Re: [PHP] php.ini setting

2011-10-01 Thread Jim Giner
Solved. Had to have my host provider put a copy of php.ini in my public_html and then I made the magic quotes setting change. Interesting - running a phpinfo command still shows the setting as On becuase it returns the server's settigns, NOT my individual folder setting. -- PHP General Mail

Re: [PHP] Variable question

2011-10-01 Thread Geoff Shang
On Sat, 1 Oct 2011, Mike Mackintosh wrote: Best bet would to toss this into either an object or array for simplification, otherwise that type of syntax would need the use of eval. example: eval('echo $trivia_answer_'.$correct_answer.';'); You could do: $var = "trivia_answer_.$correct_ans