php-install Digest 6 Sep 2002 20:46:12 -0000 Issue 1011
Topics (messages 8337 through 8354):
Executing a PHP script with apache WITHOUT AN EXTENSION!?
8337 by: Mike Duin
Re: [PHP] Undefined index, Undefined variable, Undefined constant....
8338 by: Chris Hewitt
PHP variables aren't working correctly on IIS
8339 by: Greg Strong
8341 by: Chris Hewitt
Trouble loading extensions under Win98
8340 by: Andrew Durdin
Command Line Interface
8342 by: William Cheung
8351 by: Lou Picciano / Essex Systems
Compile problem with httpd 2.0
8343 by: Bruno
8344 by: Rasmus Lerdorf
windows-apache2
8345 by: thedohman
Problem parsing args in 4.2.3
8346 by: Mike Carter
8347 by: Rasmus Lerdorf
8348 by: Chris Hewitt
8350 by: Lou Picciano / Essex Systems
Re: problems compiling php4 on redhat 7.1
8349 by: Lou Picciano / Essex Systems
php binary
8352 by: Rick King
8353 by: Jim Thome
8354 by: Rick King
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 ---
Hi,
I would like to run a php script but without giving it the extension .php.
Would like to do this because I have the trailing slash problem in apache.
(the last slash in a URL which tells apache if it is a file or a folder)
I already tried mod_rewrite... but this one doesnt work quite good with
the Informix WebDriver..... argh.
So my last option is a redirect in a script.....
Does anyone know how to configure this on my Redhat 7.3 box?
Apache 1.3.22 (yeah I know it is old, but have to :( )
PHP 4.2.2
Regards
Mike J. Duin
--- End Message ---
--- Begin Message ---
Jens Winberg wrote:
>>Jens,
>>
>>It sounds to me as though with 4.2.2 you have error reporting at E_ALL
>>and in your earlier version you did not, thus you would not get the
>>warnings.
>>
>>HTH
>>Chris
>>
>
>Thanks for the answer,
>The problem isn't really that it's reporting these things. It's just that
>after a couple of days when everything has worked the server (or actually not
>the server but the PHP engine) crashes. The "ISP" is claiming that the code is
>the reason for this. What do you think about this? I'm having some doubts as
>the php pages do work for some time.
>is it possible that some incorrectly written code could crash the php engine?
>
It shouldn't. What is the actual error? No PHP files served via apache?
Does apache serve up ordinary, non-interpreted .html files? Does your
code use anything else that could be aiding the crash, e.g. sockets,
other libraries?
Regards
Chris
--- End Message ---
--- Begin Message ---
Hello. I have installed and configured PHP successfully on several
occasions, but on my most recent installation it almost all works, but I
can't pass variables to a page in the URL. The normal:
filename.php?variable=value doesn't work ... the variable is still
undefined. Any ideas? I'm running Windows 2000 with IIS. Nothing
fancy. Tried multiple versions of PHP. Any help you could provide would
be appreciated.
Thanks!
Greg
--- End Message ---
--- Begin Message ---
Greg Strong wrote:
> Hello. I have installed and configured PHP successfully on several
> occasions, but on my most recent installation it almost all works, but
> I can't pass variables to a page in the URL. The normal:
> filename.php?variable=value doesn't work ... the variable is still
> undefined. Any ideas? I'm running Windows 2000 with IIS. Nothing
> fancy.
Greg,
Sounds like you have a modern php with register_globals set to off by
default and you are used to having them on (its in the release notes).
Use $_GET['variable'} to obtain GET data. Its detailed in the manual.
Alternatively, turn register_globals on in php.ini (not recommended).
HTH
Chris
>
>
--- End Message ---
--- Begin Message ---
Hi, I'm trying to set up PHP 4.2.2 under Win98 (for command-line use). I'm
trying to get it to load the IMAP extension, but I get the message:
PHP Warning: Unable to load dynamic library
'c:\php\extensions\php_imap.dll' - A device attached to the system is not
functioning.
The path for the file is correct. I tried copying the DLLs in the php/dlls
directory into the windows/system directory, but no change.
Any ideas?
Thanks in advance,
Andrew
--- End Message ---
--- Begin Message ---
I am told to use CLI of PHP. However, the document says CLI is available
in 4.3.0. The latest one I could get is 4.2.2. Could I use CLI in this
version?
Also, the document mentioned running ./configure --enable-cli to enable
CLI in 4.2.0 version. But I can't find "configure" in the distribution.
How could I enable CLI?
Could you give me a step by step instruction what files I need to put
where to set up PHP for CLI? I am using Win2K Pro w/o any web server.
William Cheung, B.Sc. MCSE MCDBA
Databyte Corp.
--- End Message ---
--- Begin Message ---
William,
Check out latest versions of PHP at snaps.php.net. We've been using 4.3 for
some time now, and have a nicely-working CLI.
(Having said this, I understood that 'build with CLI' was the 'default'
situation; may be wrong...)
Lou
> I am told to use CLI of PHP. However, the document says CLI is available
> in 4.3.0. The latest one I could get is 4.2.2. Could I use CLI in this
> version?
> Also, the document mentioned running ./configure --enable-cli to enable
> CLI in 4.2.0 version. But I can't find "configure" in the distribution.
> How could I enable CLI?
> Could you give me a step by step instruction what files I need to put
> where to set up PHP for CLI? I am using Win2K Pro w/o any web server.
>
> William Cheung, B.Sc. MCSE MCDBA
> Databyte Corp.
--- End Message ---
--- Begin Message ---
Hi Everybody!
I have a problem, I have Linux Red Hat 7.3 it came with the apache 1.3
and PHP 4.1.2 and I want to upgrade to apache 2 and php 4.2.2 I compile
the apache and works fine, then I run
./configure --whith-aspx2=/usr/apache/bin/aspx
and make the configuration correct, but when I use make, after compile
some things, then stop and tell me a list of errors compilation, I don't
know why, and I need to correct this... Can you help me???
Thanks
Bruno Chavez
--- End Message ---
--- Begin Message ---
Apache2+PHP is nowhere near ready for production use. Unless you have a
good technical reason to upgrade to Apache2, stick with Apache 1.3.x.
-Rasmus
On Fri, 6 Sep 2002, Bruno wrote:
> Hi Everybody!
>
> I have a problem, I have Linux Red Hat 7.3 it came with the apache 1.3
> and PHP 4.1.2 and I want to upgrade to apache 2 and php 4.2.2 I compile
> the apache and works fine, then I run
>
> ./configure --whith-aspx2=/usr/apache/bin/aspx
>
> and make the configuration correct, but when I use make, after compile
> some things, then stop and tell me a list of errors compilation, I don't
> know why, and I need to correct this... Can you help me???
>
> Thanks
> Bruno Chavez
>
>
>
>
> --
> PHP Install Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
--- End Message ---
--- Begin Message ---
hello
I'm trying to install the sapi module with apache2 on win98.
apache version 2.0.40
php version 4.2.2
windows 98se
when starting apache it gives the following error:
D:\Program Files\Apache Group\Apache2\bin>apache -k start
Syntax error on line 160 of D:/Program Files/Apache Group/Apache2/conf/httpd.conf:
Cannot load D:/php/sapi/php4apache2.dll into server: A device attached to the system
is not functioning.
D:\Program Files\Apache Group\Apache2\bin>
line 160 of httpd.conf is:
LoadModule php4_module d:/php/sapi/php4apache2.dll
right in amidst all the other loadmodule lines.
php runs fine from the command line.
Apache runs fine without that line.
The CGI version of php seems to work okay (apache runs, returns a 'hello world' test).
I've done everything the php documentation says to do for windows.
Is there some way to fond out what attached device is not functioning?
tia,
chris
--- End Message ---
--- Begin Message ---
Hello.
I've installed 4.2.3 on Apache 1.3.26 running on an Sun Ultra 1 with Solaris
9.
I have a script I wrote a while back that has worked fine on PHP 4.0.5 on my
current server. The script displays images on a web page. I build a pop-up
list of all the images in the current directory and have a "show" button
which sends a url thusly:
http://vortac.aviate.org/53sf/show.php?thePhoto=photo1.jpg
The script starts by checking whether the argument exists, then passes the
name of the photo for processing:
if( $thePhoto ) {
LoadImageData();
DisplayPhoto( "$thePhoto" );
} else {
LoadImageData();
if( count($photos) > 0 ) {
DisplayPhoto( "$photos[0]" );
} else {
PrintError( "Viewer error! can't load photos." );
}
}
This works fine on 4.0.5, but is broken on 4.2.3! I can't seem to figure out
what is going on. I threw phpinfo in the script to make sure that the arg is
being passed to php, and it shows that it is, yet the script never gets past
the test: if( $thePhoto).
I put a call to phpinfo() before the LoadImageData() function just to see if
the script even gets that far:
if( $thePhoto ) {
phpinfo();
LoadImageData();
DisplayPhoto( "$thePhoto" );
} else {
LoadImageData();
if( count($photos) > 0 ) {
DisplayPhoto( "$photos[0]" );
} else {
PrintError( "Viewer error! can't load photos." );
}
}
I never see the phpinfo dump. To test this I entered
"show.php?thePhoto=test.jpg" in a browser (with the correct url preceeding
the script name). So, it appears PHP is never parsing the argv, or something
major has changed between 4.05 and 4.23 where my test has to be re-written.
I'd appreciate some input.
Thanks.
--
Mike Carter
Pilot/Programmer
[EMAIL PROTECTED]
--- End Message ---
--- Begin Message ---
Turn on register_globals in your php.ini file.
On Fri, 6 Sep 2002, Mike Carter wrote:
> Hello.
> I've installed 4.2.3 on Apache 1.3.26 running on an Sun Ultra 1 with Solaris
> 9.
>
> I have a script I wrote a while back that has worked fine on PHP 4.0.5 on my
> current server. The script displays images on a web page. I build a pop-up
> list of all the images in the current directory and have a "show" button
> which sends a url thusly:
>
> http://vortac.aviate.org/53sf/show.php?thePhoto=photo1.jpg
>
> The script starts by checking whether the argument exists, then passes the
> name of the photo for processing:
>
> if( $thePhoto ) {
> LoadImageData();
> DisplayPhoto( "$thePhoto" );
> } else {
> LoadImageData();
>
> if( count($photos) > 0 ) {
> DisplayPhoto( "$photos[0]" );
> } else {
> PrintError( "Viewer error! can't load photos." );
> }
> }
>
> This works fine on 4.0.5, but is broken on 4.2.3! I can't seem to figure out
> what is going on. I threw phpinfo in the script to make sure that the arg is
> being passed to php, and it shows that it is, yet the script never gets past
> the test: if( $thePhoto).
>
> I put a call to phpinfo() before the LoadImageData() function just to see if
> the script even gets that far:
>
> if( $thePhoto ) {
> phpinfo();
> LoadImageData();
> DisplayPhoto( "$thePhoto" );
> } else {
> LoadImageData();
>
> if( count($photos) > 0 ) {
> DisplayPhoto( "$photos[0]" );
> } else {
> PrintError( "Viewer error! can't load photos." );
> }
> }
>
> I never see the phpinfo dump. To test this I entered
> "show.php?thePhoto=test.jpg" in a browser (with the correct url preceeding
> the script name). So, it appears PHP is never parsing the argv, or something
> major has changed between 4.05 and 4.23 where my test has to be re-written.
>
> I'd appreciate some input.
>
> Thanks.
>
> --
> Mike Carter
> Pilot/Programmer
> [EMAIL PROTECTED]
>
>
>
> --
> PHP Install Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
--- End Message ---
--- Begin Message ---
Mike Carter wrote:
>"show.php?thePhoto=test.jpg" in a browser (with the correct url preceeding
>the script name). So, it appears PHP is never parsing the argv, or something
>major has changed between 4.05 and 4.23 where my test has to be re-written.
>
The release notes for PHP will indicate that the default for
register_globals is now off. Either use $_GET['test'] or turn
register_globals back on (not recommended).
HTH
Chris
>
>
--- End Message ---
--- Begin Message ---
Mike,
I've run into similar concerns while debugging my own php code; I'm
relatively new to php, so can't offer much help as to 'what changed as of
which version', but...
One thing I have run into already while debugging: php parses the _entire_
script before attempting to execute it. So, as I understand it,
'traditional' methods of passing an 'echo' command, for example, to see how
far the program has 'stepped' may give you misleading results (as in no
results at all!)
I _would_ suggest you turn on all the debug message options in your php.ini
file while trying to sort this out, though...
Please let me know how you sort this out - I am running into errors, too,
with a similar - very simple - if/else construct.
Lou
> Hello.
> I've installed 4.2.3 on Apache 1.3.26 running on an Sun Ultra 1 with Solaris
> 9.
>
> I have a script I wrote a while back that has worked fine on PHP 4.0.5 on my
> current server. The script displays images on a web page. I build a pop-up
> list of all the images in the current directory and have a "show" button
> which sends a url thusly:
>
> http://vortac.aviate.org/53sf/show.php?thePhoto=photo1.jpg
>
> The script starts by checking whether the argument exists, then passes the
> name of the photo for processing:
>
> if( $thePhoto ) {
> LoadImageData();
> DisplayPhoto( "$thePhoto" );
> } else {
> LoadImageData();
>
> if( count($photos) > 0 ) {
> DisplayPhoto( "$photos[0]" );
> } else {
> PrintError( "Viewer error! can't load photos." );
> }
> }
>
> This works fine on 4.0.5, but is broken on 4.2.3! I can't seem to figure out
> what is going on. I threw phpinfo in the script to make sure that the arg is
> being passed to php, and it shows that it is, yet the script never gets past
> the test: if( $thePhoto).
>
> I put a call to phpinfo() before the LoadImageData() function just to see if
> the script even gets that far:
>
> if( $thePhoto ) {
> phpinfo();
> LoadImageData();
> DisplayPhoto( "$thePhoto" );
> } else {
> LoadImageData();
>
> if( count($photos) > 0 ) {
> DisplayPhoto( "$photos[0]" );
> } else {
> PrintError( "Viewer error! can't load photos." );
> }
> }
>
> I never see the phpinfo dump. To test this I entered
> "show.php?thePhoto=test.jpg" in a browser (with the correct url preceeding
> the script name). So, it appears PHP is never parsing the argv, or something
> major has changed between 4.05 and 4.23 where my test has to be re-written.
>
> I'd appreciate some input.
>
> Thanks.
>
> --
> Mike Carter
> Pilot/Programmer
> [EMAIL PROTECTED]
--- End Message ---
--- Begin Message ---
Richard,
Think the libraries you are looking for are usually packaged as gcc-libs (or
similar; your mileage may vary), and, if you're installing from rpms, will
usually be packaged separately from the 'base' gcc rpm.
Lou
> Hi,
>
> I can't get php4 to compile on my redhat 7.1 environment.
> I had an initial problem with apxs: it wasn't installed by default with
> RH71, so I downloaded the rpm and installed it.
>
> Now I am getting an error concerning libgcc_s.so.1 !! I searched for an
> rpm that seemed to install this library (gcc-3.0.3-5.src.rpm) but I still
> get the error.
>
> I have attached the debug.log script.
> you help would be greatly appreciated!!
>
> richard scrivener
> minotaur information systems
> sydney, australia
--- End Message ---
--- Begin Message ---
Apache: 1.3.26
PHP: 4.2.3
Hello PHP Guru's!
I'm trying to install PHP in a HPUX-11 system, but I'm having a hard time
because everytime I run the 'make install' I don't get the actual "php"
binary. However, my libphp4.sl is created with no problem. My question is,
when compiling from source is there suppose to be a "php" binary? Here's my
configure line:
Any help is appreciated.
~Rick
CC=gcc ./configure --with-apxs=/opt/apache/bin/apxs \
--prefix=/opt/php \
--exec-prefix=/opt/php \
--bindir=/opt/php/bin \
--sbindir=/opt/php/sbin \
--libexecdir=/opt/php/libexec \
--datadir=/opt/php/share \
--mandir=/opt/php/man \
--libdir=/opt/php/lib \
--without-mysql \
--enable-force-cgi-redirect \
--enable-discard-path \
--without-pear \
--enable-safe-mode \
--enable-magic-quotes \
--enable-calendar \
--enable-ftp \
--with-gettext=/opt/gettext \
--disable-xml
--- End Message ---
--- Begin Message ---
Rick,
We run HPUX here as well. You created PHP as a DSO module, which then needs to be
loaded by Apache upon startup (check out "AddModule" in the httpd.conf file). If you
want the PHP binary, recompile without the apxs option. Be aware that configuring PHP
as a CGI carries with it many security considerations.
--Jim
>>> "Rick King" <[EMAIL PROTECTED]> 09/06/02 01:40PM >>>
Apache: 1.3.26
PHP: 4.2.3
Hello PHP Guru's!
I'm trying to install PHP in a HPUX-11 system, but I'm having a hard time
because everytime I run the 'make install' I don't get the actual "php"
binary. However, my libphp4.sl is created with no problem. My question is,
when compiling from source is there suppose to be a "php" binary? Here's my
configure line:
Any help is appreciated.
~Rick
CC=gcc ./configure --with-apxs=/opt/apache/bin/apxs \
--prefix=/opt/php \
--exec-prefix=/opt/php \
--bindir=/opt/php/bin \
--sbindir=/opt/php/sbin \
--libexecdir=/opt/php/libexec \
--datadir=/opt/php/share \
--mandir=/opt/php/man \
--libdir=/opt/php/lib \
--without-mysql \
--enable-force-cgi-redirect \
--enable-discard-path \
--without-pear \
--enable-safe-mode \
--enable-magic-quotes \
--enable-calendar \
--enable-ftp \
--with-gettext=/opt/gettext \
--disable-xml
--
PHP Install Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
--- End Message ---
--- Begin Message ---
Good Advise Jim! I will do that!
~ Rick
"Jim Thome" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
Rick,
We run HPUX here as well. You created PHP as a DSO module, which then needs
to be loaded by Apache upon startup (check out "AddModule" in the httpd.conf
file). If you want the PHP binary, recompile without the apxs option. Be
aware that configuring PHP as a CGI carries with it many security
considerations.
--Jim
--- End Message ---