php-install Digest 19 Nov 2002 08:51:22 -0000 Issue 1123
Topics (messages 9169 through 9178):
php.ini w/ environment variables
9169 by: William Cheung
PHP Thermometer
9170 by: Robert W. Kramer III
Help, getting nothing from $_GET
9171 by: Robert Duran
9173 by: Steve Cayford
9176 by: Robert Duran
IIS and PHP 4
9172 by: Mike Franklin
Apache Installation problems
9174 by: Bill Hudspeth
PHP and HTML message
9175 by: William Cheung
php4 compilation problem with hpux 11i
9177 by: VASAGAN,MANI (HP-Singapore,ex2)
Install for Windows
9178 by: May Liu
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 ---
A quick question:
Does php.ini accept the use of environment variables? If so, does it use
%variable% or $variable syntax in Windows environment?
William Cheung, B.Sc. MCSE MCDBA
Databyte Corp.
--- End Message ---
--- Begin Message ---
We just installed PHP 4 on our Win32 based Apache 2 server. Things appear to
be working well, but I would like to take its temperature...
Is there a .php web page or web site I can install on our Apache 2 server
that will help in testing our installation?
Bob Kramer
--- End Message ---
--- Begin Message ---
I've installed PHP and it is working except for parameters in the
URL. I'm aware of the register globals change and am trying to use
$_GET to read parameters passed in the url (i.e.
http://localhost/~me/test.php?myvar=2). I also noticed that if I
register a session, the session url parameter (PHPSESSID) has a new
value every time I visit the page. I only have this problem on my
laptop, I installed the same software on my server and it works fine
there. Here's some info:
Laptop:
PowerBook G4
512 Megs Memory
Mac OS 10.2.2 (Jaguar)
Apache 1.3.26
PHP 4.2.1 (openbase support added)
Server:
Xserve
Dual 1Ghz G4
512 Megs memory
Mac OS 10.2.2
Apache 1.3.26
PHP 4.2.1 (openbase support added)
Here's a code snippet from inside the body tag of test2.php:
{{
<?php
$avar = 50;
$tvar = 60;
$svar = $_GET[ "svar"];
echo "$avar";
echo "test";
echo "$tvar";
echo "test";
echo "$svar";
?>
}}<br><br>
I call this file with:
http://localhost/~mysite/test2.php?svar=2
The resulting page displays:
{{ test60test }}
On my server I access the exact same file with:
http://www.mysite.com/test2.php?svar=2
and get:
{{ test60test2 }}
Notice that it saw the svar assignment. Also note that neither case
made the assignment to avar.
I've been trying to resolve this for days. Right now i'm thinking it
has to do with using localhost for my local web service. I've tried
setting ServerName in the apache config to both localhost and 127.0.0.1
and have had no luck. I need to have my website function when my
laptop is not connected to the internet (i.e. no DNS available).
All references to $_GET I find in the archives involve the new register
globals default. That isn't the problem i'm having.
I'm quite at a loss now. Any help would be appreciated.
Thanks (a lot) in advance,
---------------------------------
Robert Duran
[EMAIL PROTECTED]
[EMAIL PROTECTED]
---------------------------------
--- End Message ---
--- Begin Message ---
I cut and pasted this code onto my machine and realized that you've got
some bogus hidden characters in there. Don't know if that's your issue
or not, but once I cleared them out it worked fine for me.
-Steve
On Monday, November 18, 2002, at 03:22 PM, Robert Duran wrote:
{{
<?php
$avar = 50;
$tvar = 60;
$svar = $_GET[ "svar"];
echo "$avar";
echo "test";
echo "$tvar";
echo "test";
echo "$svar";
?>
--- End Message ---
--- Begin Message ---
Aha, found the problem. I had:
variables_order = "ES"
in my php.ini file. This was recommended in a book i had as a security
precaution. It was apparently written before the changes to the
register globals default.
Thanks for the help!
On Monday, November 18, 2002, at 01:22 PM, Robert Duran wrote:
I've installed PHP and it is working except for parameters in the
URL. I'm aware of the register globals change and am trying to use
$_GET to read parameters passed in the url (i.e.
http://localhost/~me/test.php?myvar=2). I also noticed that if I
register a session, the session url parameter (PHPSESSID) has a new
value every time I visit the page. I only have this problem on my
laptop, I installed the same software on my server and it works fine
there. Here's some info:
Laptop:
PowerBook G4
512 Megs Memory
Mac OS 10.2.2 (Jaguar)
Apache 1.3.26
PHP 4.2.1 (openbase support added)
Server:
Xserve
Dual 1Ghz G4
512 Megs memory
Mac OS 10.2.2
Apache 1.3.26
PHP 4.2.1 (openbase support added)
Here's a code snippet from inside the body tag of test2.php:
{{
<?php
$avar = 50;
$tvar = 60;
$svar = $_GET[ "svar"];
echo "$avar";
echo "test";
echo "$tvar";
echo "test";
echo "$svar";
?>
}}<br><br>
I call this file with:
http://localhost/~mysite/test2.php?svar=2
The resulting page displays:
{{ test60test }}
On my server I access the exact same file with:
http://www.mysite.com/test2.php?svar=2
and get:
{{ test60test2 }}
Notice that it saw the svar assignment. Also note that neither case
made the assignment to avar.
I've been trying to resolve this for days. Right now i'm thinking it
has to do with using localhost for my local web service. I've tried
setting ServerName in the apache config to both localhost and
127.0.0.1 and have had no luck. I need to have my website function
when my laptop is not connected to the internet (i.e. no DNS
available).
All references to $_GET I find in the archives involve the new
register globals default. That isn't the problem i'm having.
I'm quite at a loss now. Any help would be appreciated.
Thanks (a lot) in advance,
---------------------------------
Robert Duran
[EMAIL PROTECTED]
[EMAIL PROTECTED]
---------------------------------
---------------------------------
Robert Duran
[EMAIL PROTECTED]
[EMAIL PROTECTED]
---------------------------------
--- End Message ---
--- Begin Message ---
I am using php 4.2.2 and IIS 5 and everything works except sending mail using the
mail() command. I understand this is probably not a bug with your server, but it
seems a lot of people have had this problems with mail() not working on a windows
machines. Is there any suggestions on this one?
Thanks
Mike
**********************************************
Mike Franklin ph:(805)893-2102
Computer Services fax:(805)893-8373
Instructional Resources, UCSB :):):):):):):);)
**********************************************
--- End Message ---
--- Begin Message ---
Help!
I have installed PHP 4.2.1 and Apache 2.0.43 on my Win2000 machine. The
Apache server is up and running, but when I add the following line to my
httpd.conf, the Apache service cannot be run. The referenced directory
location is where I have installed my PHP dlls. When I comment out the line,
I can start the service again. Any help would be appreciated.
LoadModule php4_module c:/winnt/system32/php4apache2.dll
Bill
--- End Message ---
--- Begin Message ---
I am now using PHP CLI to send a plain text email. However, I was
requested to make the body of the email in HTML format. Is there an
add-on that I could use to generate HTML format email from PHP 4.2.3 and
Windows 2K?
William Cheung, B.Sc. MCSE MCDBA
Databyte Corp.
--- End Message ---
--- Begin Message ---
I am trying to compile php 4.2.3 with apache 1.3.27 on hpux 11i using gnu
gcc 3.0.4, gmake 3.79.1.
Also installed are binutils, flex, bison.
When I try to configure php (./configure --with-apache=../apache-1.3.27 ,
gmake, gmake install) it
did without errors.
But when i compile apache, (./configure
--activate-module=src/modules/php4/libphp4.a --enable-module=php4)
configure passes ok. But gmake fails when it reaches php4 with the following
error:
/usr/ccs/bin/ld: (Warning) At least one PA 2.0 object file (stub.o) was
detected. The linked output may not run on a PA 1.x system.
/usr/ccs/bin/ld: Unsatisfied symbols:
freeaddrinfo (code)
getaddrinfo (code)
I tried many combinations, php4.2.1, php4.2.2, apache1.3.26 - all gives the
same problem/error message.
Then i tried to compile only apache (and with ssl) it did fine.
I tried compile only php (./configure; gmake).
It gives the same error on php4.2.3 compile, which is:
/bin/sh /mnt/dev/build/php-4.2.3/libtool --silent --mode=link cc -I.
-I/mnt/dev/build/php-4.2.3/ -I/mnt/dev/build/php-4.2.3/main
-I/mnt/dev/build/php-4.2.3 -I/mnt/dev/build/php-4.2.3/Zend
-I/mnt/dev/build/php-4.2.3/ext/mysql/libmysql
-I/mnt/dev/build/php-4.2.3/ext/xml/expat -I/mnt/dev/build/php-4.2.3/TSRM
-Aa -D_HPUX_SOURCE +e -o php -export-dynamic stub.lo libphp4.la
/usr/ccs/bin/ld: (Warning) At least one PA 2.0 object file (stub.o) was
detected. The linked output may not run on a PA 1.x system.
/usr/ccs/bin/ld: Unsatisfied symbols:
freeaddrinfo (code)
getaddrinfo (code)
gmake[1]: *** [php] Error 1
gmake[1]: Leaving directory `/mnt/dev/build/php-4.2.3'
gmake: *** [all-recursive] Error 1
I built apache 1.3.26/php 4.2.1 successfully on hpux10.20 box about few
months back. Only problem i had
was ANSI C, -fPIC need to be used instead of -Z. SO i guess i should try on
some other version. I am going
to try on hpux 11.00 box, but wonder if any answer.
Thanks in advance,
Regards,
Mani Vasagan
"My grandfather once told me that there are two kinds of people: those
who work and those who take the credit. He told me to try to be in the
first group; there was less competition there."
- Indira Gandhi
--- End Message ---
--- Begin Message ---
Hello,
I'm trying to install php4 onto my computer. My boot drive and the Cygwin
is installed in F drive. I've tried the quick install and it didn't
work. Therefore, I've been working on the manual installation. I'm on the
second last step where I compile the php4ts.dsp. It's giving me the
following error:
--------------------Configuration: ZendTS - Win32 Debug_TS--------------------
Performing Custom Build Step on ".\zend_language_parser.y"
'bison' is not recognized as an internal or external command,
operable program or batch file.
Error executing f:\winnt\system32\cmd.exe.
php.exe - 1 error(s), 0 warning(s)
Please advise how I can fix this so I can complete the installation.
Regards,
May
--- End Message ---