php-general Digest 24 Feb 2012 02:02:31 - Issue 7700
Topics (messages 316764 through 316774):
Re: PHP-FPM security.limit_extensions
316764 by: Nilesh Govindrajan
Selecting checkboxes based on SQL query
316765 by: Rick Dwyer
316766 by: Matijn Woudt
316767 by: Matijn Woudt
316768 by: Fatih P.
316769 by: Rick Dwyer
316770 by: Fatih P.
316771 by: Jim Lucas
Where did my comment go related to lower/upper bounds for any number and offset?
316772 by: Daevid Vincent
316773 by: Daniel Brown
Apache 2.4.1 and php?
316774 by: Daniel Fenn
Administrivia:
To subscribe to the digest, e-mail:
php-general-digest-subscr...@lists.php.net
To unsubscribe from the digest, e-mail:
php-general-digest-unsubscr...@lists.php.net
To post to the list, e-mail:
php-gene...@lists.php.net
--
---BeginMessage---
On Feb 23, 2012 2:46 PM, Paspao pas...@gmail.com wrote:
Hello ,
I need to parse PHP files with no extension , I was getting access denied
error than I discovered that it was cause by security.limit_extensions
option in PHP-FPM config file.
I tried to add the script name (testscript) to the configuration file and
now it works:
security.limit_extensions = .php .php3 .php4 .php5 testscript
I do not want to add all filenames and then restart php-fpm each time, is
there a way to parse all file without extension or a wildcard to put in
configuration?
Thank you
P.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
I'm not sure why would you want to do that. Why dont you use rewrite rules
instead?
--
Nilesh Govindrajan
http://nileshgr.com
---End Message---
---BeginMessage---
Hello all.
I perform a SQL query like the following:
$sql = 'select * from my_table where id=10
It returns the the following array for 3 records:
Array ( [0] = Array ( [cb] = 2 ) [1] = Array ( [cb] = 6 ) [2] =
Array ( [cb] = 1 ) )
The values of CB in the above array are the values of html checkboxes
on a page.
input type=checkbox name=cb[ ] value=1...
input type=checkbox name=cb[ ] value=2...
input type=checkbox name=cb[ ] value=3...
input type=checkbox name=cb[ ] value=4... etc
If the above array's cb value matches the value of a checkbox on the
page, I need the default state of the checkbox to be checked so I
know I'm going to have some ternary logic in each html checkbox. But
I don't know how to create a custom function from the above array to
provide that logic. I've tried some tutorials, but with no success as
the array I am receiving is not like those in the tutorials.
Any help would be greatly appreciated.
Thank you.
--Rick
---End Message---
---BeginMessage---
On Thu, Feb 23, 2012 at 7:49 PM, Rick Dwyer rpdw...@earthlink.net wrote:
Hello all.
I perform a SQL query like the following:
$sql = 'select * from my_table where id=10
It returns the the following array for 3 records:
Array ( [0] = Array ( [cb] = 2 ) [1] = Array ( [cb] = 6 ) [2] = Array (
[cb] = 1 ) )
The values of CB in the above array are the values of html checkboxes on a
page.
input type=checkbox name=cb[ ] value=1...
input type=checkbox name=cb[ ] value=2...
input type=checkbox name=cb[ ] value=3...
input type=checkbox name=cb[ ] value=4... etc
If the above array's cb value matches the value of a checkbox on the page, I
need the default state of the checkbox to be checked so I know I'm going
to have some ternary logic in each html checkbox. But I don't know how to
create a custom function from the above array to provide that logic. I've
tried some tutorials, but with no success as the array I am receiving is not
like those in the tutorials.
Any help would be greatly appreciated.
Thank you.
--Rick
How about this:
input type=checkbox name=cb[ ] value=1 ?php
if(in_array(array('cb' = 1))) echo checked; ?...
input type=checkbox name=cb[ ] value=2 ?php
if(in_array(array('cb' = 2))) echo checked; ?...
input type=checkbox name=cb[ ] value=3 ?php
if(in_array(array('cb' = 3))) echo checked; ?...
input type=checkbox name=cb[ ] value=4 ?php
if(in_array(array('cb' = 4))) echo checked; ?... etc
- Matijn
---End Message---
---BeginMessage---
On Thu, Feb 23, 2012 at 8:07 PM, Matijn Woudt tijn...@gmail.com wrote:
On Thu, Feb 23, 2012 at 7:49 PM, Rick Dwyer rpdw...@earthlink.net wrote:
Hello all.
I perform a SQL query like the following:
$sql = 'select * from my_table where id=10
It returns the the following array for 3 records:
Array ( [0] = Array ( [cb] = 2 ) [1] = Array ( [cb] = 6 ) [2] = Array (
[cb] = 1 ) )
The values of CB in the above array are the values of html checkboxes on a
page.
input type=checkbox name=cb[ ] value=1...
input type=checkbox name=cb[ ] value=2...
input type=checkbox name=cb[ ] value=3...
input type=checkbox name=cb[ ] value=4...