php-install Digest 15 Oct 2002 00:46:42 -0000 Issue 1069
Topics (messages 8781 through 8804):
Re: PHP 4.2.3 and Apache 2.0.43
8781 by: Jason Wood
Cobalt and Zend Optimizer
8782 by: Francis
call of undefined function setfetchmode()
8783 by: christine kreuter
using jpegs
8784 by: New Disorder Records
8785 by: Rasmus Lerdorf
8786 by: New Disorder Records
8787 by: New Disorder Records
8788 by: New Disorder Records
8789 by: Rasmus Lerdorf
8790 by: New Disorder Records
8791 by: Rasmus Lerdorf
8793 by: New Disorder Records
Apache 2 & incorrect 304 response to "If-Modified-Since"
8792 by: TAKAGI Ryo
8804 by: Yasuo Ohgaki
php+apache problem
8794 by: Marcus Van Wyk
8795 by: Marco Tabini
8796 by: Jeffrey_N_Dyke.Keane.com
Problems with PHP 4.2.3 & IIS 5.1 & WinXP
8797 by: Punisher
8802 by: Stuart
8803 by: David Barrett
using jpegs (fwd)
8798 by: New Disorder Records
Re: Install errors on XP/Apache2.0.43/PHP4.2.3
8799 by: David Barrett
Re: PHP Install on Win2kPro + Apache 1.3.27 + PHP 4.2.3
8800 by: David Barrett
php with jpeg support.
8801 by: New Disorder Records
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 ---
Aaron-
As far as i can tell, PHP4.2.3 and Apache 2.0.43 do NOT work together.
Someone posted a link to a newer version of php:
http://snaps.php.net/win32/php4-win32-latest.zip
I have not tried this, but give it a shot.
--
Jason Wood
Chief Technology Officer
Expressive Tek, Inc.
407 Kehrs Mill Road
636.256.1362
Fax: 636.527.6064
http://www.expressivetek.com
"Aaron Axelsen" <[EMAIL PROTECTED]> wrote in message
002d01c27212$181a4db0$6400a8c0@DELTA">news:002d01c27212$181a4db0$6400a8c0@DELTA...
> I compiled php 4.2.3 with the following syntax:
> ./configure --prefix=/usr/local/php
> --with-apxs2=/usr/local/apache/bin/apxs --with-mysql=/usr/local/mysql
>
> Now, when I go to start up apache, I get the following error:
>
> Syntax error on line 234 of /usr/local/apache/conf/httpd.conf:
> Cannot load /usr/local/apache/modules/libphp4.so into server:
> /usr/local/apache/modules/libphp4.so: undefined symbol: core_globals_id
>
> Any Ideas?
>
> ---
> Aaron Axelsen
> AIM: AAAK2
> Email: [EMAIL PROTECTED]
> URL: www.amadmax.com
>
> "It said, ""Insert disk #3,"" but only two will fit!"
> "One picture is worth 128K words."
>
>
>
>
--- End Message ---
--- Begin Message ---
Ok trying and failing to install Zend on a cobalt box... anybody done this?
I keep getting the script aborting:
"Zend Optimizer installation script was aborted. The process was not
completed
successfully. "
useful but not that useful..
HELP! :)
--- End Message ---
--- Begin Message ---
Hi,
I used installer package FoxServ to setup
Apache/2.0.39 (Win32) PHP/4.2.2 /MySQL 3.23.39.
I have following problem now: If I try to run a certain php-script I get
following error:
Fatal error: Call to undefined function: setfetchmode() in
C:\Webserver\www\config.inc.php on line 15
Calling phpinfo.php though works fine.
If this function can not be found do I have to include or activate something
in addition ?
Thanks for help
Christine
--- End Message ---
--- Begin Message ---
Hi,
I have installed php several times, but this is the first time I've
tried to make image generation work. I compiled php against gd-1.8.4, yet
when I run this code:
header("Content-type: image/jpeg");
$im = imagecreate(50,100);
$white = imagecolorallocate($im, 255,255,255);
$black = imagecolorallocate($im, 0, 0, 0);
imagefilledrectangle($im, 0,0, 49, 99, $white);
imagefilledrectangle($im, 15, 15, 20, 60, $black);
imagejpeg($im, '', 75);
I get this error:
[Mon Oct 14 11:28:33 2002] [error] PHP Fatal error: Call to undefined
function: imagejpeg() in /usr/www/gold/imgen/index.php on line 9
I find it odd that none of the other image functions fail, and running
'strings' against libphp4.so tells me that the imagejpeg function is in
the binary. Any ideas?
--
New Disorder Records "you've heard of us now, so shut up and buy the damn
Sacrilicious CD" - www.newdisorder.com
Pirx the Pilot: One of the top three Structuralist punk rock bands in the
country. www.pirxthepilot.com
--- End Message ---
--- Begin Message ---
Your GD library was not built with jpeg support.
On Mon, 14 Oct 2002, New Disorder Records wrote:
> Hi,
> I have installed php several times, but this is the first time I've
> tried to make image generation work. I compiled php against gd-1.8.4, yet
> when I run this code:
>
> header("Content-type: image/jpeg");
>
> $im = imagecreate(50,100);
> $white = imagecolorallocate($im, 255,255,255);
> $black = imagecolorallocate($im, 0, 0, 0);
> imagefilledrectangle($im, 0,0, 49, 99, $white);
> imagefilledrectangle($im, 15, 15, 20, 60, $black);
> imagejpeg($im, '', 75);
>
> I get this error:
>
> [Mon Oct 14 11:28:33 2002] [error] PHP Fatal error: Call to undefined
> function: imagejpeg() in /usr/www/gold/imgen/index.php on line 9
>
> I find it odd that none of the other image functions fail, and running
> 'strings' against libphp4.so tells me that the imagejpeg function is in
> the binary. Any ideas?
>
>
>
> --
> New Disorder Records "you've heard of us now, so shut up and buy the damn
> Sacrilicious CD" - www.newdisorder.com
> Pirx the Pilot: One of the top three Structuralist punk rock bands in the
> country. www.pirxthepilot.com
>
>
> --
> PHP Install Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
--- End Message ---
--- Begin Message ---
but my gd library WAS built with jpeg support. as far as I can tell.
I've built GD a number of times on other machines and always use jpegs.
Any other ideas?
On Mon, 14 Oct 2002, Rasmus Lerdorf wrote:
> Your GD library was not built with jpeg support.
>
> On Mon, 14 Oct 2002, New Disorder Records wrote:
>
> > Hi,
> > I have installed php several times, but this is the first time I've
> > tried to make image generation work. I compiled php against gd-1.8.4, yet
> > when I run this code:
> >
> > header("Content-type: image/jpeg");
> >
> > $im = imagecreate(50,100);
> > $white = imagecolorallocate($im, 255,255,255);
> > $black = imagecolorallocate($im, 0, 0, 0);
> > imagefilledrectangle($im, 0,0, 49, 99, $white);
> > imagefilledrectangle($im, 15, 15, 20, 60, $black);
> > imagejpeg($im, '', 75);
> >
> > I get this error:
> >
> > [Mon Oct 14 11:28:33 2002] [error] PHP Fatal error: Call to undefined
> > function: imagejpeg() in /usr/www/gold/imgen/index.php on line 9
> >
> > I find it odd that none of the other image functions fail, and running
> > 'strings' against libphp4.so tells me that the imagejpeg function is in
> > the binary. Any ideas?
> >
> >
> >
> > --
> > New Disorder Records "you've heard of us now, so shut up and buy the damn
> > Sacrilicious CD" - www.newdisorder.com
> > Pirx the Pilot: One of the top three Structuralist punk rock bands in the
> > country. www.pirxthepilot.com
> >
> >
> > --
> > PHP Install Mailing List (http://www.php.net/)
> > To unsubscribe, visit: http://www.php.net/unsub.php
> >
>
>
>
--
New Disorder Records "you've heard of us now, so shut up and buy the damn
Sacrilicious CD" - www.newdisorder.com
Pirx the Pilot: One of the top three Structuralist punk rock bands in the
country. www.pirxthepilot.com
--- End Message ---
--- Begin Message ---
I just tested it, and yes, GD was built with jpeg support. I wrote a
short C program that uses gd and jpegs, and it works fine.
-Ernst
On Mon, 14 Oct 2002, New Disorder Records wrote:
> but my gd library WAS built with jpeg support. as far as I can tell.
> I've built GD a number of times on other machines and always use jpegs.
> Any other ideas?
>
> On Mon, 14 Oct 2002, Rasmus Lerdorf wrote:
>
> > Your GD library was not built with jpeg support.
> >
> > On Mon, 14 Oct 2002, New Disorder Records wrote:
> >
> > > Hi,
> > > I have installed php several times, but this is the first time I've
> > > tried to make image generation work. I compiled php against gd-1.8.4, yet
> > > when I run this code:
> > >
> > > header("Content-type: image/jpeg");
> > >
> > > $im = imagecreate(50,100);
> > > $white = imagecolorallocate($im, 255,255,255);
> > > $black = imagecolorallocate($im, 0, 0, 0);
> > > imagefilledrectangle($im, 0,0, 49, 99, $white);
> > > imagefilledrectangle($im, 15, 15, 20, 60, $black);
> > > imagejpeg($im, '', 75);
> > >
> > > I get this error:
> > >
> > > [Mon Oct 14 11:28:33 2002] [error] PHP Fatal error: Call to undefined
> > > function: imagejpeg() in /usr/www/gold/imgen/index.php on line 9
> > >
> > > I find it odd that none of the other image functions fail, and running
> > > 'strings' against libphp4.so tells me that the imagejpeg function is in
> > > the binary. Any ideas?
> > >
> > >
> > >
> > > --
> > > New Disorder Records "you've heard of us now, so shut up and buy the damn
> > > Sacrilicious CD" - www.newdisorder.com
> > > Pirx the Pilot: One of the top three Structuralist punk rock bands in the
> > > country. www.pirxthepilot.com
> > >
> > >
> > > --
> > > PHP Install Mailing List (http://www.php.net/)
> > > To unsubscribe, visit: http://www.php.net/unsub.php
> > >
> >
> >
> >
>
>
--
New Disorder Records "you've heard of us now, so shut up and buy the damn
Sacrilicious CD" - www.newdisorder.com
Pirx the Pilot: One of the top three Structuralist punk rock bands in the
country. www.pirxthepilot.com
--- End Message ---
--- Begin Message ---
I doubt it, there is only one version of libgd. Here is my configuration
command:
./configure --with-gd=/home/ernst/gd-1.8.4 --with-jpeg-dir=/usr/lib
--with-sybase-ct=/opt/sybase-11.9.2 --enable-gd-native-ttf
--with-apache=../apache_1.3.26
Thanks for any help
On Mon, 14 Oct 2002, Tomasz Orzechowski wrote:
> New Disorder Records wrote on Mon, Oct 14, 2002 at 11:50:36AM -0700:
> > I just tested it, and yes, GD was built with jpeg support. I wrote a
> > short C program that uses gd and jpegs, and it works fine.
>
> perhaps PHP links against a different copy of libgd you have somewhere?
>
--
New Disorder Records "you've heard of us now, so shut up and buy the damn
Sacrilicious CD" - www.newdisorder.com
Pirx the Pilot: One of the top three Structuralist punk rock bands in the
country. www.pirxthepilot.com
--- End Message ---
--- Begin Message ---
Then check your config.log file to see why the PHP configure check failed
to find it.
On Mon, 14 Oct 2002, New Disorder Records wrote:
> I just tested it, and yes, GD was built with jpeg support. I wrote a
> short C program that uses gd and jpegs, and it works fine.
>
> -Ernst
>
> On Mon, 14 Oct 2002, New Disorder Records wrote:
>
> > but my gd library WAS built with jpeg support. as far as I can tell.
> > I've built GD a number of times on other machines and always use jpegs.
> > Any other ideas?
> >
> > On Mon, 14 Oct 2002, Rasmus Lerdorf wrote:
> >
> > > Your GD library was not built with jpeg support.
> > >
> > > On Mon, 14 Oct 2002, New Disorder Records wrote:
> > >
> > > > Hi,
> > > > I have installed php several times, but this is the first time I've
> > > > tried to make image generation work. I compiled php against gd-1.8.4, yet
> > > > when I run this code:
> > > >
> > > > header("Content-type: image/jpeg");
> > > >
> > > > $im = imagecreate(50,100);
> > > > $white = imagecolorallocate($im, 255,255,255);
> > > > $black = imagecolorallocate($im, 0, 0, 0);
> > > > imagefilledrectangle($im, 0,0, 49, 99, $white);
> > > > imagefilledrectangle($im, 15, 15, 20, 60, $black);
> > > > imagejpeg($im, '', 75);
> > > >
> > > > I get this error:
> > > >
> > > > [Mon Oct 14 11:28:33 2002] [error] PHP Fatal error: Call to undefined
> > > > function: imagejpeg() in /usr/www/gold/imgen/index.php on line 9
> > > >
> > > > I find it odd that none of the other image functions fail, and running
> > > > 'strings' against libphp4.so tells me that the imagejpeg function is in
> > > > the binary. Any ideas?
> > > >
> > > >
> > > >
> > > > --
> > > > New Disorder Records "you've heard of us now, so shut up and buy the damn
> > > > Sacrilicious CD" - www.newdisorder.com
> > > > Pirx the Pilot: One of the top three Structuralist punk rock bands in the
> > > > country. www.pirxthepilot.com
> > > >
> > > >
> > > > --
> > > > PHP Install Mailing List (http://www.php.net/)
> > > > To unsubscribe, visit: http://www.php.net/unsub.php
> > > >
> > >
> > >
> > >
> >
> >
>
> --
> New Disorder Records "you've heard of us now, so shut up and buy the damn
> Sacrilicious CD" - www.newdisorder.com
> Pirx the Pilot: One of the top three Structuralist punk rock bands in the
> country. www.pirxthepilot.com
>
--- End Message ---
--- Begin Message ---
my config file says nothing about not finding jpegs. what it says is
this:
configure:22952: checking for the location of libjpeg
configure:23013: checking for jpeg_read_header in -ljpeg
no errors.
On Mon, 14 Oct 2002, Rasmus Lerdorf wrote:
> Then check your config.log file to see why the PHP configure check failed
> to find it.
>
> On Mon, 14 Oct 2002, New Disorder Records wrote:
>
> > I just tested it, and yes, GD was built with jpeg support. I wrote a
> > short C program that uses gd and jpegs, and it works fine.
> >
> > -Ernst
> >
> > On Mon, 14 Oct 2002, New Disorder Records wrote:
> >
> > > but my gd library WAS built with jpeg support. as far as I can tell.
> > > I've built GD a number of times on other machines and always use jpegs.
> > > Any other ideas?
> > >
> > > On Mon, 14 Oct 2002, Rasmus Lerdorf wrote:
> > >
> > > > Your GD library was not built with jpeg support.
> > > >
> > > > On Mon, 14 Oct 2002, New Disorder Records wrote:
> > > >
> > > > > Hi,
> > > > > I have installed php several times, but this is the first time I've
> > > > > tried to make image generation work. I compiled php against gd-1.8.4, yet
> > > > > when I run this code:
> > > > >
> > > > > header("Content-type: image/jpeg");
> > > > >
> > > > > $im = imagecreate(50,100);
> > > > > $white = imagecolorallocate($im, 255,255,255);
> > > > > $black = imagecolorallocate($im, 0, 0, 0);
> > > > > imagefilledrectangle($im, 0,0, 49, 99, $white);
> > > > > imagefilledrectangle($im, 15, 15, 20, 60, $black);
> > > > > imagejpeg($im, '', 75);
> > > > >
> > > > > I get this error:
> > > > >
> > > > > [Mon Oct 14 11:28:33 2002] [error] PHP Fatal error: Call to undefined
> > > > > function: imagejpeg() in /usr/www/gold/imgen/index.php on line 9
> > > > >
> > > > > I find it odd that none of the other image functions fail, and running
> > > > > 'strings' against libphp4.so tells me that the imagejpeg function is in
> > > > > the binary. Any ideas?
> > > > >
> > > > >
> > > > >
> > > > > --
> > > > > New Disorder Records "you've heard of us now, so shut up and buy the damn
> > > > > Sacrilicious CD" - www.newdisorder.com
> > > > > Pirx the Pilot: One of the top three Structuralist punk rock bands in the
> > > > > country. www.pirxthepilot.com
> > > > >
> > > > >
> > > > > --
> > > > > PHP Install Mailing List (http://www.php.net/)
> > > > > To unsubscribe, visit: http://www.php.net/unsub.php
> > > > >
> > > >
> > > >
> > > >
> > >
> > >
> >
> > --
> > New Disorder Records "you've heard of us now, so shut up and buy the damn
> > Sacrilicious CD" - www.newdisorder.com
> > Pirx the Pilot: One of the top three Structuralist punk rock bands in the
> > country. www.pirxthepilot.com
> >
>
>
>
--
New Disorder Records "you've heard of us now, so shut up and buy the damn
Sacrilicious CD" - www.newdisorder.com
Pirx the Pilot: One of the top three Structuralist punk rock bands in the
country. www.pirxthepilot.com
--- End Message ---
--- Begin Message ---
Well, trace through the code and figure out why HAVE_GD_JPG is not defined
in php_config.h. ext/gd/config.m4 checks libgd for gdImageCreateFromJpeg
and sets HAVE_GD_JPG accordingly.
-Rasmus
On Mon, 14 Oct 2002, New Disorder Records wrote:
> my config file says nothing about not finding jpegs. what it says is
> this:
>
> configure:22952: checking for the location of libjpeg
> configure:23013: checking for jpeg_read_header in -ljpeg
>
> no errors.
>
>
> On Mon, 14 Oct 2002, Rasmus Lerdorf wrote:
>
> > Then check your config.log file to see why the PHP configure check failed
> > to find it.
> >
> > On Mon, 14 Oct 2002, New Disorder Records wrote:
> >
> > > I just tested it, and yes, GD was built with jpeg support. I wrote a
> > > short C program that uses gd and jpegs, and it works fine.
> > >
> > > -Ernst
> > >
> > > On Mon, 14 Oct 2002, New Disorder Records wrote:
> > >
> > > > but my gd library WAS built with jpeg support. as far as I can tell.
> > > > I've built GD a number of times on other machines and always use jpegs.
> > > > Any other ideas?
> > > >
> > > > On Mon, 14 Oct 2002, Rasmus Lerdorf wrote:
> > > >
> > > > > Your GD library was not built with jpeg support.
> > > > >
> > > > > On Mon, 14 Oct 2002, New Disorder Records wrote:
> > > > >
> > > > > > Hi,
> > > > > > I have installed php several times, but this is the first time I've
> > > > > > tried to make image generation work. I compiled php against gd-1.8.4, yet
> > > > > > when I run this code:
> > > > > >
> > > > > > header("Content-type: image/jpeg");
> > > > > >
> > > > > > $im = imagecreate(50,100);
> > > > > > $white = imagecolorallocate($im, 255,255,255);
> > > > > > $black = imagecolorallocate($im, 0, 0, 0);
> > > > > > imagefilledrectangle($im, 0,0, 49, 99, $white);
> > > > > > imagefilledrectangle($im, 15, 15, 20, 60, $black);
> > > > > > imagejpeg($im, '', 75);
> > > > > >
> > > > > > I get this error:
> > > > > >
> > > > > > [Mon Oct 14 11:28:33 2002] [error] PHP Fatal error: Call to undefined
> > > > > > function: imagejpeg() in /usr/www/gold/imgen/index.php on line 9
> > > > > >
> > > > > > I find it odd that none of the other image functions fail, and running
> > > > > > 'strings' against libphp4.so tells me that the imagejpeg function is in
> > > > > > the binary. Any ideas?
> > > > > >
> > > > > >
> > > > > >
> > > > > > --
> > > > > > New Disorder Records "you've heard of us now, so shut up and buy the damn
> > > > > > Sacrilicious CD" - www.newdisorder.com
> > > > > > Pirx the Pilot: One of the top three Structuralist punk rock bands in the
> > > > > > country. www.pirxthepilot.com
> > > > > >
> > > > > >
> > > > > > --
> > > > > > PHP Install Mailing List (http://www.php.net/)
> > > > > > To unsubscribe, visit: http://www.php.net/unsub.php
> > > > > >
> > > > >
> > > > >
> > > > >
> > > >
> > > >
> > >
> > > --
> > > New Disorder Records "you've heard of us now, so shut up and buy the damn
> > > Sacrilicious CD" - www.newdisorder.com
> > > Pirx the Pilot: One of the top three Structuralist punk rock bands in the
> > > country. www.pirxthepilot.com
> > >
> >
> >
> >
>
> --
> New Disorder Records "you've heard of us now, so shut up and buy the damn
> Sacrilicious CD" - www.newdisorder.com
> Pirx the Pilot: One of the top three Structuralist punk rock bands in the
> country. www.pirxthepilot.com
>
--- End Message ---
--- Begin Message ---
I looked, and I can't figure out why it wouldn't set HAVE_GD_JPG, and I
couldn't find any reason, so I modified config and the Makefile so that it
is set:
#define HAVE_GD_JPG 1
However, that didn't help any. When I compile php and libphp.so, the
Makefile includes -ljpeg. When I run strings against libphp4.so, it finds
'imagejpeg' which really confuses me. Everything points to it being
there, but it just doesn't work.
On Mon, 14 Oct 2002, Rasmus Lerdorf
wrote:
> Well, trace through the code and figure out why HAVE_GD_JPG is not defined
> in php_config.h. ext/gd/config.m4 checks libgd for gdImageCreateFromJpeg
> and sets HAVE_GD_JPG accordingly.
>
> -Rasmus
>
> On Mon, 14 Oct 2002, New Disorder Records wrote:
>
> > my config file says nothing about not finding jpegs. what it says is
> > this:
> >
> > configure:22952: checking for the location of libjpeg
> > configure:23013: checking for jpeg_read_header in -ljpeg
> >
> > no errors.
> >
> >
> > On Mon, 14 Oct 2002, Rasmus Lerdorf wrote:
> >
> > > Then check your config.log file to see why the PHP configure check failed
> > > to find it.
> > >
> > > On Mon, 14 Oct 2002, New Disorder Records wrote:
> > >
> > > > I just tested it, and yes, GD was built with jpeg support. I wrote a
> > > > short C program that uses gd and jpegs, and it works fine.
> > > >
> > > > -Ernst
> > > >
> > > > On Mon, 14 Oct 2002, New Disorder Records wrote:
> > > >
> > > > > but my gd library WAS built with jpeg support. as far as I can tell.
> > > > > I've built GD a number of times on other machines and always use jpegs.
> > > > > Any other ideas?
> > > > >
> > > > > On Mon, 14 Oct 2002, Rasmus Lerdorf wrote:
> > > > >
> > > > > > Your GD library was not built with jpeg support.
> > > > > >
> > > > > > On Mon, 14 Oct 2002, New Disorder Records wrote:
> > > > > >
> > > > > > > Hi,
> > > > > > > I have installed php several times, but this is the first time I've
> > > > > > > tried to make image generation work. I compiled php against gd-1.8.4,
>yet
> > > > > > > when I run this code:
> > > > > > >
> > > > > > > header("Content-type: image/jpeg");
> > > > > > >
> > > > > > > $im = imagecreate(50,100);
> > > > > > > $white = imagecolorallocate($im, 255,255,255);
> > > > > > > $black = imagecolorallocate($im, 0, 0, 0);
> > > > > > > imagefilledrectangle($im, 0,0, 49, 99, $white);
> > > > > > > imagefilledrectangle($im, 15, 15, 20, 60, $black);
> > > > > > > imagejpeg($im, '', 75);
> > > > > > >
> > > > > > > I get this error:
> > > > > > >
> > > > > > > [Mon Oct 14 11:28:33 2002] [error] PHP Fatal error: Call to undefined
> > > > > > > function: imagejpeg() in /usr/www/gold/imgen/index.php on line 9
> > > > > > >
> > > > > > > I find it odd that none of the other image functions fail, and running
> > > > > > > 'strings' against libphp4.so tells me that the imagejpeg function is in
> > > > > > > the binary. Any ideas?
> > > > > > >
> > > > > > >
> > > > > > >
> > > > > > > --
> > > > > > > New Disorder Records "you've heard of us now, so shut up and buy the damn
> > > > > > > Sacrilicious CD" - www.newdisorder.com
> > > > > > > Pirx the Pilot: One of the top three Structuralist punk rock bands in the
> > > > > > > country. www.pirxthepilot.com
> > > > > > >
> > > > > > >
> > > > > > > --
> > > > > > > PHP Install Mailing List (http://www.php.net/)
> > > > > > > To unsubscribe, visit: http://www.php.net/unsub.php
> > > > > > >
> > > > > >
> > > > > >
> > > > > >
> > > > >
> > > > >
> > > >
> > > > --
> > > > New Disorder Records "you've heard of us now, so shut up and buy the damn
> > > > Sacrilicious CD" - www.newdisorder.com
> > > > Pirx the Pilot: One of the top three Structuralist punk rock bands in the
> > > > country. www.pirxthepilot.com
> > > >
> > >
> > >
> > >
> >
> > --
> > New Disorder Records "you've heard of us now, so shut up and buy the damn
> > Sacrilicious CD" - www.newdisorder.com
> > Pirx the Pilot: One of the top three Structuralist punk rock bands in the
> > country. www.pirxthepilot.com
> >
>
--
New Disorder Records "you've heard of us now, so shut up and buy the damn
Sacrilicious CD" - www.newdisorder.com
Pirx the Pilot: One of the top three Structuralist punk rock bands in the
country. www.pirxthepilot.com
--- End Message ---
--- Begin Message ---
Hi,
I've been trying to set up PHP 4.2.3 that works with Apache 2.0.43
running on Red Hat Linux 6.2 server, but could not find a way to let it
reply correctly to requests with If-Modified-Since: header other than to
modify PHP source code.
Below is the patch I am using now, which is "borrowed" from the Apache
mod_include.c source code. Would someone please comment on this .. Is
this opening up, for example, a security hole?
I could not test 4.3.0-pre1 thoroughly because it did not work when I
used it with multibyte character contents, but the header issue seems to
be the same.
Thanks in advance,
Ryo
--- sapi/apache2filter/sapi_apache2.c~ Fri Aug 16 07:27:03 2002
+++ sapi/apache2filter/sapi_apache2.c Mon Oct 14 23:27:26 2002
@@ -558,14 +558,24 @@
return OK;
}
+static int includes_setup(ap_filter_t *f)
+{
+ /* We will ALWAYS set the no_local_copy value to 1 so
+ * that we will not send 304s.
+ */
+ f->r->no_local_copy = 1;
+
+ return OK;
+}
+
static void php_register_hook(apr_pool_t *p)
{
ap_hook_pre_config(php_pre_config, NULL, NULL, APR_HOOK_MIDDLE);
ap_hook_post_config(php_apache_server_startup, NULL, NULL, APR_HOOK_MIDDLE);
ap_hook_insert_filter(php_insert_filter, NULL, NULL, APR_HOOK_MIDDLE);
ap_hook_post_read_request(php_post_read_request, NULL, NULL, APR_HOOK_MIDDLE);
- ap_register_output_filter("PHP", php_output_filter, NULL, AP_FTYPE_RESOURCE);
- ap_register_input_filter("PHP", php_input_filter, NULL, AP_FTYPE_RESOURCE);
+ ap_register_output_filter("PHP", php_output_filter, includes_setup,
+AP_FTYPE_RESOURCE);
+ ap_register_input_filter("PHP", php_input_filter, includes_setup,
+AP_FTYPE_RESOURCE);
}
AP_MODULE_DECLARE_DATA module php4_module = {
--
TAKAGI Ryo <[EMAIL PROTECTED]>
--- End Message ---
--- Begin Message ---
Takagi Ryo wrote:
> Hi,
>
> I've been trying to set up PHP 4.2.3 that works with Apache 2.0.43
> running on Red Hat Linux 6.2 server, but could not find a way to let it
> reply correctly to requests with If-Modified-Since: header other than to
> modify PHP source code.
Try CVS version.
>
> Below is the patch I am using now, which is "borrowed" from the Apache
> mod_include.c source code. Would someone please comment on this .. Is
> this opening up, for example, a security hole?
Wrong list for asking comment for a patch.
I posted php.dev also.
>
> I could not test 4.3.0-pre1 thoroughly because it did not work when I
> used it with multibyte character contents, but the header issue seems to
> be the same.
Hmm... Let us know the problem so that we can fix problems before
release.
--
Yasuo Ohgaki
>
> Thanks in advance,
> Ryo
>
>
> --- sapi/apache2filter/sapi_apache2.c~ Fri Aug 16 07:27:03 2002
> +++ sapi/apache2filter/sapi_apache2.c Mon Oct 14 23:27:26 2002
> @@ -558,14 +558,24 @@
> return OK;
> }
>
> +static int includes_setup(ap_filter_t *f)
> +{
> + /* We will ALWAYS set the no_local_copy value to 1 so
> + * that we will not send 304s.
> + */
> + f->r->no_local_copy = 1;
> +
> + return OK;
> +}
> +
> static void php_register_hook(apr_pool_t *p)
> {
> ap_hook_pre_config(php_pre_config, NULL, NULL, APR_HOOK_MIDDLE);
> ap_hook_post_config(php_apache_server_startup, NULL, NULL, APR_HOOK_MIDDLE);
> ap_hook_insert_filter(php_insert_filter, NULL, NULL, APR_HOOK_MIDDLE);
> ap_hook_post_read_request(php_post_read_request, NULL, NULL,
>APR_HOOK_MIDDLE);
> - ap_register_output_filter("PHP", php_output_filter, NULL, AP_FTYPE_RESOURCE);
> - ap_register_input_filter("PHP", php_input_filter, NULL, AP_FTYPE_RESOURCE);
> + ap_register_output_filter("PHP", php_output_filter, includes_setup,
>AP_FTYPE_RESOURCE);
> + ap_register_input_filter("PHP", php_input_filter, includes_setup,
>AP_FTYPE_RESOURCE);
> }
>
> AP_MODULE_DECLARE_DATA module php4_module = {
>
--- End Message ---
--- Begin Message ---
Hi there
Hoping to find some help here
I have a Linux 8 box
I'm trying to set up
MySQL
to work with
php.4.2.3
to work with
apache.1.3
I've gone through a very descriptive howto to install.
But as soon as I load a .php page to the browser it tries to download
any help on how to fix this would
Be appreciated
Thank in advance
Marcus
PS* sourse of the page i'm trying to load.=
<? phpinfo() ?>
==========================================================
This message contains information intended for the perusal, and/or use (if
so stated), by the stated addressee(s) only. The information is
confidential and privileged. If you are not an intended recipient, do not
peruse, use, disseminate, distribute, copy or in any manner rely upon the
information contained in this message (directly or indirectly). The sender
and/or the entity represented by the sender shall not be held accountable
in the event that this prohibition is disregarded. If you receive this
message in error, notify the sender immediately by e-mail, fax or telephone
representations contained in this message, whether express or implied, are
those of the sender only, unless that sender expressly states them to be
the views or representations of an entity or person, who shall be named by
the sender and who the sender shall state to represent. No liability shall
otherwise attach to any other entity or person.
==========================================================
--- End Message ---
--- Begin Message ---
This sounds like an Apache issue. Have you compiled PHP as a module? If
so, did you add the appropriate entries in your httpd.conf? You can find
the instructions in the PHP manual.
On Mon, 2002-10-14 at 16:07, Marcus Van Wyk wrote:
> Hi there
> Hoping to find some help here
>
> I have a Linux 8 box
>
> I'm trying to set up
> MySQL
> to work with
> php.4.2.3
> to work with
> apache.1.3
>
> I've gone through a very descriptive howto to install.
> But as soon as I load a .php page to the browser it tries to download
>
> any help on how to fix this would
> Be appreciated
> Thank in advance
>
> Marcus
>
> PS* sourse of the page i'm trying to load.=
> <? phpinfo() ?>
>
>
> ==========================================================
> This message contains information intended for the perusal, and/or use (if
> so stated), by the stated addressee(s) only. The information is
> confidential and privileged. If you are not an intended recipient, do not
> peruse, use, disseminate, distribute, copy or in any manner rely upon the
> information contained in this message (directly or indirectly). The sender
> and/or the entity represented by the sender shall not be held accountable
> in the event that this prohibition is disregarded. If you receive this
> message in error, notify the sender immediately by e-mail, fax or telephone
> representations contained in this message, whether express or implied, are
> those of the sender only, unless that sender expressly states them to be
> the views or representations of an entity or person, who shall be named by
> the sender and who the sender shall state to represent. No liability shall
> otherwise attach to any other entity or person.
> ==========================================================
>
--- End Message ---
--- Begin Message ---
you need to configure your httpd.conf. with these lines, where appropriate
LoadModule rewrite_module libexec/mod_rewrite.so
LoadModule php4_module libexec/libphp4.so
AddModule mod_php4.c
AddType application/x-httpd-php .php
AddType application/x-httpd-php-source .phps
This should all be in that install file you referenced.
hth
jeff
"Marcus Van
Wyk" To: <[EMAIL PROTECTED]>
<[EMAIL PROTECTED] cc:
.za> Subject: [PHP-INST] php+apache problem
10/14/2002
04:07 PM
Hi there
Hoping to find some help here
I have a Linux 8 box
I'm trying to set up
MySQL
to work with
php.4.2.3
to work with
apache.1.3
I've gone through a very descriptive howto to install.
But as soon as I load a .php page to the browser it tries to download
any help on how to fix this would
Be appreciated
Thank in advance
Marcus
PS* sourse of the page i'm trying to load.=
<? phpinfo() ?>
==========================================================
This message contains information intended for the perusal, and/or use (if
so stated), by the stated addressee(s) only. The information is
confidential and privileged. If you are not an intended recipient, do not
peruse, use, disseminate, distribute, copy or in any manner rely upon the
information contained in this message (directly or indirectly). The sender
and/or the entity represented by the sender shall not be held accountable
in the event that this prohibition is disregarded. If you receive this
message in error, notify the sender immediately by e-mail, fax or telephone
representations contained in this message, whether express or implied, are
those of the sender only, unless that sender expressly states them to be
the views or representations of an entity or person, who shall be named by
the sender and who the sender shall state to represent. No liability shall
otherwise attach to any other entity or person.
==========================================================
--- End Message ---
--- Begin Message ---
I am unable to run scripts on IIS with WinXP IIS Server ...
I installed PHP as cgi ..
Normal scripts work, but when I try to handle variables, from a form for
example ( a little checkbox that should check if a licence was accepted )…
It does not work .. the variable isn’t handled by the script
I tried the script on my old server with PHP 4.0.6 and there it works …
And I have cgi.force_redirect enabled and everything else done…
Pleas help me
________________________
Punisher
UA StatsMe Project Leader
UA Installer Dev Team Leader
--- End Message ---
--- Begin Message ---
On Monday, Oct 14, 2002, at 21:45 Europe/London, Punisher wrote:
> I am unable to run scripts on IIS with WinXP IIS Server ...
>
> I installed PHP as cgi ..
> Normal scripts work, but when I try to handle variables, from a form
> for
> example ( a little checkbox that should check if a licence was
> accepted )…
>
> It does not work .. the variable isn’t handled by the script
>
> I tried the script on my old server with PHP 4.0.6 and there it works …
>
> And I have cgi.force_redirect enabled and everything else done…
Look up the register_globals option in your php.ini file or better yet,
the manual!
--
Stuart
--- End Message ---
--- Begin Message ---
Hehe... I love quick solutions... not...
The problem has got to be with PHP 4.2.3. I have the same using it under
Apache 2.whatever the latest stable release is. And my php.ini is the same
as it is on all my other installations.
Mind you, in my case the problem could be Apache, too... the above versions
appear not to like each other.
Any more ideas? Oh, and can I have a page reference for any "look it up in
manual" comments, please? ;-)
"Stuart" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
On Monday, Oct 14, 2002, at 21:45 Europe/London, Punisher wrote:
> I am unable to run scripts on IIS with WinXP IIS Server ...
>
> I installed PHP as cgi ..
> Normal scripts work, but when I try to handle variables, from a form
> for
> example ( a little checkbox that should check if a licence was
> accepted )…
>
> It does not work .. the variable isn’t handled by the script
>
> I tried the script on my old server with PHP 4.0.6 and there it works …
>
> And I have cgi.force_redirect enabled and everything else done…
Look up the register_globals option in your php.ini file or better yet,
the manual!
--
Stuart
--- End Message ---
--- Begin Message ---
As an added bit of information, the code below produces the same sort of
error if I replace the last line with
imagepng($im)
Hi,
I have installed php several times, but this is the first time I've
tried to make image generation work. I compiled php against gd-1.8.4, yet
when I run this code:
header("Content-type: image/jpeg");
$im = imagecreate(50,100);
$white = imagecolorallocate($im, 255,255,255);
$black = imagecolorallocate($im, 0, 0, 0);
imagefilledrectangle($im, 0,0, 49, 99, $white);
imagefilledrectangle($im, 15, 15, 20, 60, $black);
imagejpeg($im, '', 75);
I get this error:
[Mon Oct 14 11:28:33 2002] [error] PHP Fatal error: Call to undefined
function: imagejpeg() in /usr/www/gold/imgen/index.php on line 9
I find it odd that none of the other image functions fail, and running
'strings' against libphp4.so tells me that the imagejpeg function is in
the binary. Any ideas?
--
New Disorder Records "you've heard of us now, so shut up and buy the damn
Sacrilicious CD" - www.newdisorder.com
Pirx the Pilot: One of the top three Structuralist punk rock bands in the
country. www.pirxthepilot.com
--- End Message ---
--- Begin Message ---
I also am trying to get Apache2.0.43/PHP4.2.3 to work on a Win2k machine,
and have had limited success.
I have got PHP working, but couldn't use the module approach... I had to add
these lines to httpd.conf:
ScriptAlias /php/ "C:/PHP/"
AddType application/x-httpd-php .phtml .php .php3
Action application/x-httpd-php /php/php.exe
I couldn't get the php4apache2.dll module to work.
Now, the above method does work in as far as PHP scripts are processed...
however, I have found that when posting from an HTML form to a PHP script,
none of the form variables are passed. I have a feeling I'm missing
something obvious here, and it is due to the way Apache passes these
variables... but have run out of ideas on what to look for.
Anyone else any ideas, or had any success with the PHP module?
"Jason Wood" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> This is driving me nuts. I downloaded the binarys and set them up in
> c:/php/
>
> I've added the LoadModule php4_module c:\php\sapi\php4apache2.dll line to
> my config... Tried several different things, including changing the
> php4apache2.dll to a .so file... still didnt work. The system even viewer
> doesnt help; just gives me this info:
>
> Event Type: Error
> Event Source: Service Control Manager
> Event Category: None
> Event ID: 7024
> Date: 10/10/2002
> Time: 10:31:50 AM
> User: N/A
> Computer: JASON
> Description:
> The Apache2 service terminated with service-specific error 1 (0x1).
>
> For more information, see Help and Support Center at
> http://go.microsoft.com/fwlink/events.asp.
>
>
> What's going on here? I have no idea... Never had this much of a hard
time
> getting php to work with apache.
>
>
> --
> Jason Wood
> Chief Technology Officer
> Expressive Tek, Inc.
> 407 Kehrs Mill Road
> 636.256.1362
> Fax: 636.527.6064
> http://www.expressivetek.com
>
>
--- End Message ---
--- Begin Message ---
Did you add a "LoadModule" command to the Apache config?
This is needed, and was the point at which Apache started giving me
errors... but that was with Apache 2 - the method definitely does work for
Apache 1.3.27.
"Max Salviejo" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
I have installed apache using MSI (microsoft installer). I have followed
the documents on installing SAPI module for PHP, placing the phpts.dll on
C:\WINNT\SYSTEM32. I then edited httpd.conf added the recommended three
lines .. check the syntax on httpd.conf. looks ok restarted apache and
tried to see if phpinf() would show ...but it doesnt..it shows me the code.
I have set the AddType application/x-httpd-php .php on my httpd.conf so
i dont understand why it is not parsing my page. My log doesnt show anything
significant. Both errors/access.
I've also added AddModule mod_php4.c after Clearmodulelist on httpd.conf
No go..
Anyone run into this problem...
looks like i can stop and start apache w/o errors but the php pages are not
getting parsed.
Any input would help
[ Max Salviejo Jr. ]
[ [EMAIL PROTECTED] ]
[ The Plain Dealer Publishing Co. ]
[ 216.999.6165 ]
[ www.plaindealer.com ]
-=BOFH=-
~~~~ ~~~~
--- End Message ---
--- Begin Message ---
For whatever reason, my system would not compile php with jpeg support, so
I forced it by adding this line to ext/gd/php_gd.h and main/php_config.h:
#define HAVE_GD_JPEG 1
This took me hours to figure out, hopefully this email can help someone
else out in the future.
This only works, of course, in the case that you are certain that you
have gd compiled with jpeg support.
--
New Disorder Records "you've heard of us now, so shut up and buy the damn
Sacrilicious CD" - www.newdisorder.com
Pirx the Pilot: One of the top three Structuralist punk rock bands in the
country. www.pirxthepilot.com
--- End Message ---