On Sun, 9 Sep 2001, Rasmus Lerdorf wrote:
> Like all other PHP config directives you can set it in your .htaccess file
> using:
>
> php_value magic_quotes_gpc off
Thank you so much for pointing yet another useful piece of information.
Sorry to bother you with one last question but while I run A
Hi Rasmus!
Thanks for your explanation. Unfortunately I am using a server on which I
do not have write access to php.ini. I have also been noticing that
a submitted \" is received as " when I use stripslashes() thus
stripslashes() is not a totally safe alternative. Is there a
way that I can achi
Hello,
I would like to know why PHP adds slashes to the double quote,
single quote, and backslash characters when submitting a form.
In particular it would be nice if the PHP manual or some other
manual mentioned this but I could not find any official
documentation on this issue. Why does PHP ad
Hello,
I have noticed that PHP can be used to define constants but
not parametrized macros, a feature is is currently lacking.
It is possible to use arrays instead with the only
disadvantage that array values can be reassigned.
I guess this is not a real concern. Does anyone
know if parameterize
Check out The Mail Archive at http://www.mail-archive.com/ !
On Wed, 17 Jan 2001, Taras Vasylkevych wrote:
> Hi,
>
> is it possible to review the archive of this mailing list. And if possible then
>where?
>
> Thanks,
>
> Taras
>
> Mit freundlichen Grüßen
>
> Taras Vasylkevych
> team in me
Hello,
I just finished upgrading my Red Hat 5.2 box from PHP3 to PHP4
with MySQL support and I also upgraded GD from 1.3 to 1.8.3
so that now I have according to support
for both of them but I have the following problem. I pasted
the PNG code from the manual and tried to view the corresponding
Hello,
I thought this might be of interest to some newbies who might want to
enable MySQL support in PHP without having to do anything but execute
some commands as root on their Red Hat Linux 6.2 system. Here they are:
wget ftp://ftp.redhat.com/redhat/redhat-6.2/SRPMS/SRPMS/php-3.0.15-2.src.rpm
On Thu, 11 Jan 2001, Ray Iftikhar wrote:
> I was looking for a good book that teaches you how to use PHP (mainly 3)
> with MySql. I went to Amazon.com and found "MySql" by Paul Dubois, which was
> supposed to be THE book for mySql programming. However, after reading some
> of the customer review
Hello,
I have noticed that while the JavaScript/PHP documentation looks much
nicer only an HTML version of the PHP documentaion is distributed.
I would like to know whether it would be possible to obtain the
original much more pleasant to read JavaScript/PHP documentation
so that users may insta
You are right. According to the PHP manual there is no boolean type
as none is listed in chapter 2.6 but there are variables called TRUE and
FALSE which evaluate to a true value and a false value respectively as
indicated in chapter 2.8. Thanks for quoting from chapter 9. I should
be paying more
On Wed, 10 Jan 2001, Hsieh, Wen-Yang wrote:
> "" is false.
The following three seem to be the same in PHP3:
1) false
2) ""
3) 0
I guess that "" is automatically cast to 0 or to false
wherever an integer is required. Where can I find the
exact casting rules in PHP3/4 ?
Thanks,
Neil
--
PHP
Thanks and sorry about the confusion... true == 1 and false == 0.
To summarize this discussion:
1) Unset variables evaluate to the empty string:
outputs the string "something"
outputs the string "something"
Note that $a == $b evaluates to true even though
$a is not set b
On Wed, 10 Jan 2001, Toby Butzon wrote:
> :
>
> $a evaluates to false, the ! reverses it, and it prints "Hello, World!"
What is bothering me is the following: if variables that are not assigned
a value were to evaluate to false then since false is the same as the
number 1 the following PHP sc
Hello,
I have a question regarding the following 3 one line .php files:
The first script prints the famous words correctly but what baffles
me is the second script which should be the same as the third script
since $a is not set and hence should evaluate to nothing, but PHP 3.0.15
is eval
14 matches
Mail list logo