php-general Digest 28 Jan 2011 12:56:02 -0000 Issue 7156
Topics (messages 311063 through 311065):
Re: Pear Problems
311063 by: Ethan Rosenberg
311065 by: Daniel Brown
Re: Cross-platform IDE
311064 by: Ross McKay
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
----------------------------------------------------------------------
--- Begin Message ---
At 01:54 AM 1/27/2011, Adam Richardson wrote:
On Thu, Jan 27, 2011 at 1:01 AM, Ethan Rosenberg <eth...@earthlink.net>wrote:
> 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)]
--- End Message ---
--- Begin Message ---
On Fri, Jan 28, 2011 at 00:33, Ethan Rosenberg <eth...@earthlink.net> wrote:
>
> 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?
Keep in mind that php.ini is not universal, and changes
drastically with version, distribution, CLI vs. web, customization,
and more. The answer that Adam gave you is absolutely correct with
regard to the information you provided. You need to put a semicolon
before the line you quoted as being line 510 in your php.ini. The
directive you want is error_reporting, and should look like so:
error_reporting = E_ALL & ~E_NOTICE
--
</Daniel P. Brown>
Network Infrastructure Manager
Documentation, Webmaster Teams
http://www.php.net/
--- End Message ---
--- Begin Message ---
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
--- End Message ---