php-general Digest 27 Sep 2009 09:03:11 -0000 Issue 6360
Topics (messages 298365 through 298373):
Re: nl2br() question
298365 by: Daniel Brown
298366 by: Ashley Sheridan
298367 by: HallMarc Websites
298368 by: tedd
298369 by: Carl Furst
Re: Web Site Directory Layout
298370 by: Caner Bulut
Hi
298371 by: chidi ozoezi
modules in php?
298372 by: Lars Nielsen
turning off a E_STRICT or fix for a bad coding habit
298373 by: viraj
Administrivia:
To subscribe to the digest, e-mail:
[email protected]
To unsubscribe from the digest, e-mail:
[email protected]
To post to the list, e-mail:
[email protected]
----------------------------------------------------------------------
--- Begin Message ---
On Sat, Sep 26, 2009 at 11:22, tedd <[email protected]> wrote:
> Hi gang:
>
> The manual says:
>
> http://www.php.net/nl2br
>
> That I could use the function like so (Example #2):
>
> $new = nl2br($string, false);
>
> But when I do, I get:
>
> Warning: Wrong parameter count for nl2br() in /home...
>
> What's up with that?
Read the manual fully, Teddence. Check the Changelog info, specifically.
> I am using PHP Version 5.2.10
.... whereas the `is_xhtml` parameter was added in 5.3.0. And
5.3.0 > 5.2.10. ;-P
--
</Daniel P. Brown>
[email protected] || [email protected]
http://www.parasane.net/ || http://www.pilotpig.net/
Check out our great hosting and dedicated server deals at
http://twitter.com/pilotpig
--- End Message ---
--- Begin Message ---
On Sat, 2009-09-26 at 11:22 -0400, tedd wrote:
> Hi gang:
>
> The manual says:
>
> http://www.php.net/nl2br
>
> That I could use the function like so (Example #2):
>
> $new = nl2br($string, false);
>
> But when I do, I get:
>
> Warning: Wrong parameter count for nl2br() in /home...
>
> What's up with that?
>
> I am using PHP Version 5.2.10
>
> Cheers,
>
> tedd
>
> --
> -------
> http://sperling.com http://ancientstones.com http://earthstones.com
>
The second parameter was only added in PHP 5.3.0, so I presume your PHP
version is before that.
Thanks,
Ash
http://www.ashleysheridan.co.uk
--- End Message ---
--- Begin Message ---
Tedd,
> -----Original Message-----
> From: tedd [mailto:[email protected]]
> Sent: Saturday, September 26, 2009 11:23 AM
> To: PHP General List
> Subject: [PHP] nl2br() question
>
> Hi gang:
>
> The manual says:
>
> http://www.php.net/nl2br
>
> That I could use the function like so (Example #2):
>
> $new = nl2br($string, false);
>
> But when I do, I get:
>
> Warning: Wrong parameter count for nl2br() in /home...
>
> What's up with that?
>
> I am using PHP Version 5.2.10
>
> Cheers,
>
> tedd
>
It seems to me that it doesn't think it is being passed a string. Have you
tried putting in a static test string like
$new = nl2br("Hello/n World!", false);
echo $new;
or alternatively
echo $string;
and see what is being passed.
Thank you,
Marc Hall
HallMarc Websites
610.446.3346
__________ Information from ESET Smart Security, version of virus signature
database 4459 (20090926) __________
The message was checked by ESET Smart Security.
http://www.eset.com
--- End Message ---
--- Begin Message ---
At 11:27 AM -0400 9/26/09, Daniel Brown wrote:
On Sat, Sep 26, 2009 at 11:22, tedd <[email protected]> wrote:
I am using PHP Version 5.2.10
.... whereas the `is_xhtml` parameter was added in 5.3.0. And
5.3.0 > 5.2.10. ;-P
--
</Daniel P. Brown>
Ahhh, I didn't look far enough down the page.
Thanks -- I figured out a solution anyway.
Cheers,
tedd
--
-------
http://sperling.com http://ancientstones.com http://earthstones.com
--- End Message ---
--- Begin Message ---
That option was added in 5.3.0 So you have to upgrade for that to work.
tedd wrote:
<div class="moz-text-flowed" style="font-family: -moz-fixed">Hi gang:
The manual says:
http://www.php.net/nl2br
That I could use the function like so (Example #2):
$new = nl2br($string, false);
But when I do, I get:
Warning: Wrong parameter count for nl2br() in /home...
What's up with that?
I am using PHP Version 5.2.10
Cheers,
tedd
--- End Message ---
--- Begin Message ---
Thanks for help.
Caner.
_____
From: דניאל דנון [mailto:[email protected]]
Sent: Saturday, September 26, 2009 2:35 PM
To: Caner Bulut
Cc: [email protected]
Subject: Re: [PHP] Web Site Directory Layout
There is no standard for that - Its your choice,
I usually use something like
index.php
configuration.php
template/
template/NAME/template.html
template/NAME/template.css
template/NAME/images/ ....
modules/
modules/connection/MySQL.php
etc.
On Sat, Sep 26, 2009 at 1:50 AM, Caner Bulut <[email protected]> wrote:
Hi All,
Is there a stable or standart directory layout for PHP project (like web
sites)?.
Example;
index.php
img/
css/
js/
lib/
doc/
tools/
Thanks.
--
Use ROT26 for best security
--- End Message ---
--- Begin Message ---
Hi
--- End Message ---
--- Begin Message ---
Hi,
I am developing a cms and I want to make it able to use modules. Ex a
statistics module.
Can you give som examples or pointers to where i can start reading
without getting lost in the details?
regards
Lars Nielsen
--- End Message ---
--- Begin Message ---
just upgraded to php 5.2.10-2.2 on debian
now i get this error
[2048] Declaration of form::bindData() should be compatible with that
of db::bindData()
i use __autoload to load these classes.. found this bug report
http://bugs.php.net/bug.php?id=46851, i thought it's this new E_STRICT
bit and tried to turn it off, but didn't help.
this code was working perfect before.. even with this error.. it
works. any idea about a workaround? or some reading suggestions!
many thanks
~viraj
--- End Message ---