Hi,
Is it possible to resize jpg/gif from gd 1.7, its working fine in gd 2.0
and my webbserver wont upgrade.
This is my example (not working in gd 1.7)
--
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Sorry if this is a newbie FAQ,
Will print completely the wrong line:
> key is a muppet: 0
If I use three equals signs, i.e. ===, then the test works.
But if I use linux, the test works as expected with two equals signs.
What on earth am I missing?
Using Windows PHP 4.3.8 as a CGI, on Ap
Hi,
Is it possible to resize jpg/gif from gd 1.7, its working fine in gd 2.0 and
my webbserver wont upgrade.
This is my example (not working in gd 1.7)
--
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
According to me it's a very strange problem
Test this please :
$key = '0';
if($key == 'muppet')
echo 'key is a muppet: ".$key;
else
echo 'key is something else: '.$key;
Because I don't understang why $key return false :(
-- Initial Header ---
From : "Steve McGill" <[E
Yes, I forgot to mention this:
if $key=0, then $key == 'muppet'equates to TRUE
if $key="0", then $key == 'muppet' equates to FALSE
Bit crazy...?
Steve
"[EMAIL PROTECTED]" <[EMAIL PROTECTED]> schreef in
bericht news:[EMAIL PROTECTED]
According to me it's a very strange problem
Test this ple
http://www.blueshoes.org/en/developer/php_cheat_sheet/
--
"[EMAIL PROTECTED]" <[EMAIL PROTECTED]> a écrit dans
le message de news:[EMAIL PROTECTED]
According to me it's a very strange problem
Test this please :
$key = '0';
if($key == 'muppet')
echo 'key is a muppet: ".$key;
else
Hi All,
Am new to PHP/MySQL technology, here am using Dreamweaver to develop Web
Application
I would like to know, is there any extension for Retrieve Password?
If not, then where can i found code for Forgot Password option..
I appreciate your time & inputs
Thanks
Jaggu
--
PHP Windows Mailing
Well gee, thanks a lot for that
I can't imagine why 0 == "foo" should be TRUE, but there it is I will
use === from now on.
I was convinced this was related to windows because I've never noticed this
behaviour with several years of experience with programming PHP on linux
systems.
Thanks
KeyStone Learning Systems (www.keystonelearning.com) is currently seeking subject
matter experts to work with us to author future courseware titles delivered via
CD-ROM, VHS, DVD and the Web.
Are you a leading expert or trainer in your field? Do you have a passion or desire to
teach others?
The only thing I can think of, and it still doesn't totally add up, but
when you do "$key = 0;", you're assigning an integer to $key. You then
do a comparison of 0 (integer) == "muppet" (string).
0 is also symbolic of "false" as well, correct?
If I replace 0 with FALSE, I get "key is something e
$key=0;
$key=="muppet"?TRUE:FALSE;
The reason this last comparison returns true is that since you are comparing
an integer with a string, the strings gets converted to an integer and since
"muppet" does not have any numeric character it gets converted to 0. In
other words as far PHP in concerned yo
Hi Steve,
0 and "foo" are two different types (int and string). In order to compare
these values they must be converted into the same type. PHP does that by
converting "foo" to an integer and that value will be 0, hence the true
value on compare with ==. when you use === to compare the two values
I would think that PHP should make the conversion in the other direction
to avoid losing data. In other words, if a conversion is necessary,
convert to the data type that can handle the greater variety of data.
In this case to strings. It would probably always be to strings though.
Charles
---
I am trying to figure out if there is a way to have a socket persist
in different executions of the same script. My situation is as
follows; I have a Java program running and waiting for connections on
port 1. When it receives a connection it reads a "device" id and
loads a device driver for
Hi!
It would be possible to create a C or Java server that uses sockets to cater
a PHP client's request. This is the quickest and easiest solution...
OR...
You can create a C or Java HTTP client to receive responses from an XML file
generated in PHP (much like RSS readers and RSS feeds or SOAP s
Hi there,
I have a php script which successfully uploads a file to my Windows 2003
server. However the file has different permissions to the rest of the
files in the folder where it is uploaded to.
I don't quite understand why this is the case - when the file is
uploaded does it get the security
16 matches
Mail list logo