I agree with Hugh. I think it is always a good idea to check for return
values of any function call. So, I'd replace this line:
$result = mysql_query("select * from table");
with
$result = mysql_query("select * from table");
or die("Unable to connect to SQL server
Thank you so much for your responses. Thanks for any response!
I now the GD libraries with PNG support. However, the image is still
broken. I looked at the apache server error log and this is what showed up
when I run zero.php(See below):
libpng warning: Application was compiled with png.h f
Hello,
Background info:
I'm running
o PHP 4.1.1 on a linux server kernel(2.2.16).
o Using Netscape Communicator 4.75
o Compiled and installed the gd(1.8.4) library
Problem(2 problems):
1.- The following code won't display an image(I get an ic
;
echo $fileContent;
}
else
{
echo "Record does not exist";
} // else
?>
-Original Message-
From: Andrew Brampton [mailto:[EMAIL PROTECTED]]
Sent: Friday, March 01, 2002 5:08 PM
To: Narvaez, Teresa; [EMAIL PROTECTED];
[EMAIL PROTECTED]
Subject: Re: [PHP] Unable to display images on browser
ot;);
$im = ImageCreateFromString ($fileContent);
ImageGif ($im);
and then remove this line: echo $fileContent;
That should do it.
/Joakim
-Original Message-----
From: Narvaez, Teresa [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, February 27, 2002 8:32 PM
To: '[EMAIL PROTECTED]'; [EMAIL PROTECTE
ge.php (the
---end getimage.php
Good Luck
/Joakim
> -Original Message-
> From: Narvaez, Teresa [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, February 27, 2002 2:08 AM
> To: 'Dean Householder'; [EMAIL PROTECTED]
> Subject: [PHP] Unable to display images on
Hello,
I do not understand why I can't display images retrieved from MySQL
on my browser(IE 4.0). When I retrieve the image from MYSQL I set the
Header function to change the type of content(image/gif) I am sending to the
browser. However, the browser displays an box with an X in it. I
file.php
> -Original Message-
> From: Lars Torben Wilson [SMTP:[EMAIL PROTECTED]]
> Sent: Thursday, February 21, 2002 1:52 PM
> To: Andrey Hristov
> Cc: Narvaez, Teresa; [EMAIL PROTECTED]
> Subject: Re: [PHP] Re: NULL value for variable
>
I comment it out but I got this error:
Warning: Undefined variable: fileId in
/home/narvaez/public_html/ddownloadfile.php on line 22
Could not get file list: You have an error in your SQL syntax near '' at
line 1
Thanks for any help!.
-Original Message-
From: Sanduhr [mailto:[EMAIL PR
Hello,
I am runnig php 4.1.1. In the configuration, register_globals is
ON.
I have two programs and I want to pass the value from fileId from one.php to
downloadfile.php. However, in downloadfile.php $fileId is NULL. What am I
missing? Thanks, -Teresa
one.php
, February 18, 2002 6:45 PM
To: Narvaez, Teresa
Cc: [EMAIL PROTECTED]
Subject: Re: [PHP] NULL Apache environment variables
On Monday, February 18, 2002, at 06:11 PM, Narvaez, Teresa wrote:
> The function call phpinfo() shows register_globals=off for master and
> local
> value on my s
[mailto:[EMAIL PROTECTED]]
Sent: Monday, February 18, 2002 5:58 PM
To: Lars Torben Wilson
Cc: Narvaez, Teresa; [EMAIL PROTECTED]
Subject: Re: [PHP] NULL Apache environment variables
On Monday, February 18, 2002, at 05:44 PM, Lars Torben Wilson wrote:
> On Mon, 2002-02-18 at 08:56, Narvaez, Ter
When I execute the code below, why is PHP_SELF undefined? I will appretiate
any help on this. I can get its value by:
echo $_SERVER["PHP_SELF"];Thanks in advance! -Teresa
Feedback
Your Name:
Your E-Mail Address:
Your Message:
";
?>
Thank you ... that worked! I did not know this because I looked at a sample
in www.php.net and the sample fails to call getenv().
Thanks!
-Teresa
-Original Message-
From: Neil Freeman [mailto:[EMAIL PROTECTED]]
Sent: Monday, February 18, 2002 12:54 PM
To: Narvaez, Teresa
Cc: [EMAIL
Hello,
I'm running PHP version 4.1.1. When I invoke this function, , all variables are set. However, when I try to retrieve a value
of a certain variable like this:
It returns NULL. Is there a missing configuration on apache or php?
Thanks,
-Teresa
Try the phpinfo() function:
Example:
PHP Test
-Teresa
-Original Message-
From: Jason Whitaker [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, February 13, 2002 4:15 PM
To: [EMAIL PROTECTED]
Subject: [PHP] Functions
Is there a website that lists all the default functions and variable
16 matches
Mail list logo