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 securit

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

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 wrote: > On Tue, Nov 30, 2010 at 16:51, Mohammad Taghi Khalifeh > 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|pg

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 suc

Re: [PHP] PHP shows nothing

2010-11-30 Thread Daniel P. Brown
On Tue, Nov 30, 2010 at 16:51, Mohammad Taghi Khalifeh 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: -- Dedicated Servers, Cloud and Cloud Hybrid Solu

Re: [PHP] PHP shows nothing

2010-11-30 Thread Mohammad Taghi Khalifeh
Marc On Wed, Dec 1, 2010 at 1:02 AM, Marc Guay 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 you'

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. http://php.net/manual/en/lan

Re: [PHP] PHP shows nothing

2010-11-30 Thread Mohammad Taghi Khalifeh
Bob and tedd On Tue, Nov 30, 2010 at 11:20 PM, Bob McConnell wrote: > From: Mohammad Taghi Khalifeh > > > On Tue, Nov 30, 2010 at 10:38 PM, Bob McConnell wrote: > >> From: Mohammad Taghi Khalifeh > >>> Hi there, > >>> I have a package written in pure PHP, some .php files that refer to > >>other

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

Re: [PHP] PHP shows nothing

2010-11-30 Thread Mohammad Taghi Khalifeh
On Tue, Nov 30, 2010 at 10:39 PM, Steve Staples 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 via a br

Re: [PHP] PHP shows nothing

2010-11-30 Thread tedd
At 10:26 PM +0330 11/30/10, 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 all log levels

Re: [PHP] PHP shows nothing

2010-11-30 Thread Mohammad Taghi Khalifeh
On Tue, Nov 30, 2010 at 10:38 PM, Bob McConnell 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 > > show

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 activat

RE: [PHP] PHP shows nothing

2010-11-30 Thread Bob McConnell
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 > shows nothing: a blank page. > I've activated all log levels, and it seems tha

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

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 wrote: > I'm guessing that   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 why / would be encode

[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 (http://ww

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 r

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

2010-11-30 Thread Richard Quadling
On 29 November 2010 19:24, Micky Hulse wrote: > Hello, > > I was looking at this ExpressionEngine plugin: > > > Description: This plugin converts reserved XML characters to entities. >  It is used in the RSS templates. > > ... Curious abo

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

[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 ( $_POS