php-general Digest 1 Dec 2010 01:49:16 -0000 Issue 7063

2010-11-30 Thread php-general-digest-help
php-general Digest 1 Dec 2010 01:49:16 - Issue 7063 Topics (messages 309766 through 309781): Re: EE1 plugin code/htmlentities() question 309766 by: Richard Quadling 309769 by: Micky Hulse Re: Spoofing user_agent 309767 by: Ron Piggott Little Assistance...

[PHP] Re: Form Processing

2010-11-30 Thread Pete Ford
On 29/11/10 23:54, Ron Piggott wrote: I am unable to retrieve the value of $referral_1 from: $new_email = mysql_escape_string ( $_POST['referral_$i'] ); why? PHP while lopp to check if any of the fields were populated: $i=1; while ( $i= 5 ) { $new_email = mysql_escape_string (

[PHP] LDAP, Active Directory, and permissions

2010-11-30 Thread Chris Knipe
Hi, I've found various sources and are successfully manipulating Active Directory from PHP on our Domain Controller - frankly, things works much better than I expected :) I have now reached the point where I need to set permissions on objects in Active Directory, i.e. to restrict read

Re: [PHP] EE1 plugin code/htmlentities() question

2010-11-30 Thread Richard Quadling
On 29 November 2010 19:24, Micky Hulse mickyhulse.li...@gmail.com wrote: Hello, I was looking at this ExpressionEngine plugin: http://expressionengine.com/downloads/details/xml_encode/ Description: This plugin converts reserved XML characters to entities.  It is used in the RSS templates.

Re: [PHP] Fw: Spoofing user_agent

2010-11-30 Thread Ron Piggott
The following solution works: I set my user-agent to: VerseOfTheDaySitemapRobot/1.0 (http://www.TheVerseOfTheDay.info) By doing: ini_set('user_agent', VerseOfTheDaySitemapRobot/1.0 (http://www.TheVerseOfTheDay.info)); When ran by a cron job this causes AWSTATS to treat the hits as: Unknown

[PHP] Little Assistance...

2010-11-30 Thread Don Wieland
Hi all, I am needing to find someone with extensive mySQL chops to assist me in building a few mySQL queries to run from PHP. Compensation, of course... Probably an hour or so of effort for qualified. Please contact me PRIVATELY if interested. Don -- PHP General Mailing List

Re: [PHP] EE1 plugin code/htmlentities() question

2010-11-30 Thread Micky Hulse
Hi Richard! Thanks for the reply, I really appreciate the help. :) On Tue, Nov 30, 2010 at 5:49 AM, Richard Quadling rquadl...@gmail.com wrote: I'm guessing that nbsp; is only valid in HTML. I see. Ah, it looks like I need to be Googling for htmlentities and xml. Thanks for tip! Not sure

[PHP] PHP shows nothing

2010-11-30 Thread Mohammad Taghi Khalifeh
Hi there, I have a package written in pure PHP, some .php files that refer to others via require_once(''), but when I try to see package's contents via a browser, the pacakge just shows nothing: a blank page. I've activated all log levels, and it seems that php doesn't encounter any problem. I'm

Re: [PHP] PHP shows nothing

2010-11-30 Thread Steve Staples
On Tue, 2010-11-30 at 22:26 +0330, Mohammad Taghi Khalifeh wrote: Hi there, I have a package written in pure PHP, some .php files that refer to others via require_once(''), but when I try to see package's contents via a browser, the pacakge just shows nothing: a blank page. I've activated

Re: [PHP] PHP shows nothing

2010-11-30 Thread Mohammad Taghi Khalifeh
On Tue, Nov 30, 2010 at 10:38 PM, Bob McConnell r...@cbord.com wrote: From: Mohammad Taghi Khalifeh Hi there, I have a package written in pure PHP, some .php files that refer to others via require_once(''), but when I try to see package's contents via a browser, the pacakge just

Re: [PHP] PHP shows nothing

2010-11-30 Thread Mohammad Taghi Khalifeh
On Tue, Nov 30, 2010 at 10:39 PM, Steve Staples sstap...@mnsi.net wrote: On Tue, 2010-11-30 at 22:26 +0330, Mohammad Taghi Khalifeh wrote: Hi there, I have a package written in pure PHP, some .php files that refer to others via require_once(''), but when I try to see package's contents

RE: [PHP] PHP shows nothing

2010-11-30 Thread Bob McConnell
From: Mohammad Taghi Khalifeh On Tue, Nov 30, 2010 at 10:38 PM, Bob McConnell r...@cbord.com wrote: From: Mohammad Taghi Khalifeh Hi there, I have a package written in pure PHP, some .php files that refer to others via require_once(''), but when I try to see package's contents via a

Re: [PHP] PHP shows nothing

2010-11-30 Thread Marc Guay
       if(!$db = @pg_connect($connection_string)) {                return FALSE;        }        return $db; how can I find the problem and fix it? The @ symbol is telling it to ignore errors. Remove it and you'll see them if that's where the problem is.

Re: [PHP] PHP shows nothing

2010-11-30 Thread Mohammad Taghi Khalifeh
Marc On Wed, Dec 1, 2010 at 1:02 AM, Marc Guay marc.g...@gmail.com wrote: if(!$db = @pg_connect($connection_string)) { return FALSE; } return $db; how can I find the problem and fix it? The @ symbol is telling it to ignore errors. Remove it and

Re: [PHP] PHP shows nothing

2010-11-30 Thread Daniel P. Brown
On Tue, Nov 30, 2010 at 16:51, Mohammad Taghi Khalifeh khalifeh...@gmail.com wrote: it seems that the problem is in pg_connect(). Do you have PostgreSQL support compiled into PHP? Command line: php -i | egrep -i 'postgres|pgsql' Web: ?php phpinfo(); /* Check in a

RE: [PHP] LDAP, Active Directory, and permissions

2010-11-30 Thread Tommy Pham
-Original Message- From: ckn...@savage.za.org [mailto:ckn...@savage.za.org] On Behalf Of Chris Knipe Sent: Tuesday, November 30, 2010 4:47 AM To: php-general@lists.php.net Subject: [PHP] LDAP, Active Directory, and permissions Hi, I've found various sources and are successfully

Re: [PHP] PHP shows nothing

2010-11-30 Thread Mohammad Taghi Khalifeh
Daniel On Wed, Dec 1, 2010 at 1:28 AM, Daniel P. Brown daniel.br...@parasane.netwrote: On Tue, Nov 30, 2010 at 16:51, Mohammad Taghi Khalifeh khalifeh...@gmail.com wrote: it seems that the problem is in pg_connect(). Do you have PostgreSQL support compiled into PHP? Command line:

RE: [PHP] LDAP, Active Directory, and permissions

2010-11-30 Thread Chris Knipe
Hi, Chris, 1) Shouldn't the OU security permissions be set within the AD itself? 2) If the above is done, then the user account that's being authenticated shouldn't be able to access privileged information. 1) Not sure. The permissions I'm after is similar to that of NTFS permissions on

RE: [PHP] LDAP, Active Directory, and permissions

2010-11-30 Thread Tommy Pham
-Original Message- From: Chris Knipe [mailto:ckn...@savage.za.org] On Behalf Of Chris Knipe Sent: Tuesday, November 30, 2010 10:52 PM To: php-general@lists.php.net Subject: RE: [PHP] LDAP, Active Directory, and permissions Hi, Chris, 1) Shouldn't the OU security permissions