php-general Digest 27 Jan 2011 21:29:43 -0000 Issue 7155

2011-01-27 Thread php-general-digest-help

php-general Digest 27 Jan 2011 21:29:43 - Issue 7155

Topics (messages 311059 through 311062):

Re: Pear Problems
311059 by: Adam Richardson

Re: [PHP-DB] 2nd Pair of eyes please
311060 by: Donovan Brooke
311061 by: Donovan Brooke

Re: ldap_add - Server is unwilling to peform
311062 by: CHARLES HUNT

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 Thu, Jan 27, 2011 at 1:01 AM, Ethan Rosenberg eth...@earthlink.netwrote:

 Dear List -

 I am executing the command pear list.

 This is what I get -

 ethan@rosenberg:/usr/bin$ pear list
 PHP:  syntax error, unexpected '' in /etc/php5/cli/php.ini on line 510
 Installed packages, channel pear.php.net:
 =
 Package  Version State
 Archive_Tar  1.3.7   stable
 Console_Getopt   1.2.3   stable
 PEAR 1.9.1   stable
 Structures_Graph 1.0.3   stable
 Validate_US  0.5.4   beta
 XML_Util 1.2.1   stable
 ethan@rosenberg:/usr/bin$

 This is line 510

 Default Value: E_ALL  ~E_NOTICE


That line should likely be commented out (it was probably originally
commented out and then somebody accidentally uncommented.)  Most php.ini
files follow the convention (notice that there's no colon in the example):
some_name = some_value

Happy coding,

Adam

-- 
Nephtali:  A simple, flexible, fast, and security-focused PHP framework
http://nephtaliproject.com
---End Message---
---BeginMessage---

Hello,
to respond to some of the comments/questions..

No, it wasn't parsing anything... and yes, I put

ini_set('display_errors', 1);
error_reporting(E_ALL | E_STRICT);

at the top of the page.

(as well as there is a custom built PHP management app that
allows to turn on the display_errors.. which is apparently
done.)

Having said all that, this server config (of which I have very limited
access) does appear to shut down parsing
entirely more quickly than my dev machines that are set
as mentioned.

..usually not a problem (old hat in troubleshooting) and am nearing the 
end of the this job... but yes, strange that small errors trigger 
shutting down parsing entirely.


Daevid,

Lot's of misc. comments for not being able to spot my syntax issue and 
not knowing the details of my project! ;-)


However, I will take a look some time at your wrapper for future reference.

Cheers,

Donovan (1 block of code at a time)


--
D Brooke
---End Message---
---BeginMessage---

Oops, sorry, this was suppose to go to the PHP-DB list!

Ignore!
thx,
Donovan

--
D Brooke
---End Message---
---BeginMessage---
I finally got it to create the user.  I had to remove the memberOf 
attributes. 
 
Apparently you have to add the User to the Group rather than the Group to the 
User. 
Now I need to figure out how to enable the user and set the password. 
As well as adding the User to the desired Groups.


- Original Message 
From: Daniel Brown danbr...@php.net
To: CHARLES HUNT ch5...@yahoo.com
Cc: php-gene...@lists.php.net
Sent: Wed, January 26, 2011 9:39:32 AM
Subject: Re: [PHP] ldap_add - Server is unwilling to peform

On Wed, Jan 26, 2011 at 10:17, CHARLES HUNT ch5...@yahoo.com wrote:
 Hello-
 I am trying to add create a user account with the ldap_add function.  However 
I
 get the error below when it is invoked.  Does anyone have ideas what may be
 causing this error?  What I can look into?  Anything would be helpful.

 Warning: ldap_add() [function.ldap-add]: Add: Server is unwilling to perform
 in C:\xampp\htdocs\Infrastructure\al_ldap.php on line 354

What LDAP server are you using (Active Directory, openLDAP,
iPlanet, eDirectory, et cetera)?  You may want to try swapping out
ldap_add() for ldap_mod_add().

http://php.net/ldap_mod_add


-- 
/Daniel P. Brown
Network Infrastructure Manager
Documentation, Webmaster Teams
http://www.php.net/

---End Message---


[PHP] Re: [PHP-DB] 2nd Pair of eyes please

2011-01-27 Thread Donovan Brooke

Hello,
to respond to some of the comments/questions..

No, it wasn't parsing anything... and yes, I put

ini_set('display_errors', 1);
error_reporting(E_ALL | E_STRICT);

at the top of the page.

(as well as there is a custom built PHP management app that
allows to turn on the display_errors.. which is apparently
done.)

Having said all that, this server config (of which I have very limited
access) does appear to shut down parsing
entirely more quickly than my dev machines that are set
as mentioned.

..usually not a problem (old hat in troubleshooting) and am nearing the 
end of the this job... but yes, strange that small errors trigger 
shutting down parsing entirely.


Daevid,

Lot's of misc. comments for not being able to spot my syntax issue and 
not knowing the details of my project! ;-)


However, I will take a look some time at your wrapper for future reference.

Cheers,

Donovan (1 block of code at a time)


--
D Brooke

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



Re: [PHP] Re: [PHP-DB] 2nd Pair of eyes please

2011-01-27 Thread Donovan Brooke

Oops, sorry, this was suppose to go to the PHP-DB list!

Ignore!
thx,
Donovan

--
D Brooke

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



Re: [PHP] ldap_add - Server is unwilling to peform

2011-01-27 Thread CHARLES HUNT
I finally got it to create the user.  I had to remove the memberOf 
attributes. 
 
Apparently you have to add the User to the Group rather than the Group to the 
User. 
Now I need to figure out how to enable the user and set the password. 
As well as adding the User to the desired Groups.


- Original Message 
From: Daniel Brown danbr...@php.net
To: CHARLES HUNT ch5...@yahoo.com
Cc: php-general@lists.php.net
Sent: Wed, January 26, 2011 9:39:32 AM
Subject: Re: [PHP] ldap_add - Server is unwilling to peform

On Wed, Jan 26, 2011 at 10:17, CHARLES HUNT ch5...@yahoo.com wrote:
 Hello-
 I am trying to add create a user account with the ldap_add function.  However 
I
 get the error below when it is invoked.  Does anyone have ideas what may be
 causing this error?  What I can look into?  Anything would be helpful.

 Warning: ldap_add() [function.ldap-add]: Add: Server is unwilling to perform
 in C:\xampp\htdocs\Infrastructure\al_ldap.php on line 354

What LDAP server are you using (Active Directory, openLDAP,
iPlanet, eDirectory, et cetera)?  You may want to try swapping out
ldap_add() for ldap_mod_add().

http://php.net/ldap_mod_add


-- 
/Daniel P. Brown
Network Infrastructure Manager
Documentation, Webmaster Teams
http://www.php.net/


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



Re: [PHP] Pear Problems

2011-01-27 Thread Ethan Rosenberg

At 01:54 AM 1/27/2011, Adam Richardson wrote:

On Thu, Jan 27, 2011 at 1:01 AM, Ethan Rosenberg eth...@earthlink.netwrote:

 Dear List -

 I am executing the command pear list.

 This is what I get -

 ethan@rosenberg:/usr/bin$ pear list
 PHP:  syntax error, unexpected '' in /etc/php5/cli/php.ini on line 510
 Installed packages, channel pear.php.net:
 =
 Package  Version State
 Archive_Tar  1.3.7   stable
 Console_Getopt   1.2.3   stable
 PEAR 1.9.1   stable
 Structures_Graph 1.0.3   stable
 Validate_US  0.5.4   beta
 XML_Util 1.2.1   stable
 ethan@rosenberg:/usr/bin$

 This is line 510

 Default Value: E_ALL  ~E_NOTICE


That line should likely be commented out (it was probably originally
commented out and then somebody accidentally uncommented.)  Most php.ini
files follow the convention (notice that there's no colon in the example):
some_name = some_value

Happy coding,

Adam

--
Nephtali:  A simple, flexible, fast, and security-focused PHP framework
http://nephtaliproject.com



Adam -

Thanks.

Please take a look at php.ini in the vicinity of line 510.  You will 
see the construct to which I refer.  Can you explain what is going 
on?  I do not think it is a problem with commenting out a line.


Any ideas from the rest of the list?

Ethan


MySQL 5.1  PHP 5.3.3-6  Linux [Debian (sid)] 




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



[PHP] Re: Cross-platform IDE

2011-01-27 Thread Ross McKay
On Wed, 26 Jan 2011 08:06:12 -0500, Andy McKenzie wrote:

[...]   So:  does anyone have a recommendation for an IDE that works in
Windows, Mac, and Linux?  I spend roughly equal time in all three, and
I haven't found a tool I like yet that works in all of them.
Actually, I stopped looking three or four years ago, but at that point
there didn't seem to be anything.  If anyone has any advice, I'd love
to hear it!

Try Geany: http://www.geany.org/

The one thing it doesn't do (yet) is debugging PHP. Otherwise, we find
it to be great for working on PHP, JS, HTML, XML and CSS. It's small and
fast, so if you don't need all the bells and whistles of an Eclipse,
Geany might suit you better. Worth a try at least.
-- 
Ross McKay, Toronto, NSW Australia
It doesn't matter if the Rock wants to go get diamond rings or not!
- The Rock

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