php-install Digest 15 Jul 2002 02:38:06 -0000 Issue 932
Topics (messages 7734 through 7749):
Module could not be found
7734 by: Beth Gore
Re: PHP 4.2.1 mysql configure failed
7735 by: Chris Hewitt
Re: Did I install it in the wrong way?
7736 by: Chris Hewitt
7747 by: Viraj Kalinga Abayarathna
Ignore
7737 by: eric
7738 by: eric
7739 by: eric
make *** [all-recursive] Error 1
7740 by: eric
gd errors while compiling PHP
7741 by: Santosh Narayanan
7742 by: eric
variable problems
7743 by: Alexander Lindstedt
7746 by: Christian Stadler
Can't get URL or POST variables
7744 by: ted r lowe
7745 by: Christian Stadler
7748 by: Matt
7749 by: ted r lowe
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 hope someone can help!
Okay, here's the information I have:
System: Win2k Professional (hahah!)
httpd: Apache 1.3.26
Php: Php4.2.1
The problem? Apache simply refuses to load the php4apache.dll module.
I get the following error message when attempting to load it -
Syntax error on line 194 of c:/apache/apache/conf/httpd.conf:
Cannot load c:/php/sapi/php4apache.dll into server: (126) The specified
module c
ould not be found:
Note the errors or messages above, and press the <ESC> key to exit. 27...
The following line is in my httpd.conf file.. (cut and paste)
LoadModule php4_module C:/php/sapi/php4apache.dll
My php installation is in c:\php\ .. the file does exist.
I have moved the file to various other places to no avail!!!
(just to prove I'm not being dozy...)
C:\php\sapi>dir
Volume in drive C is Win2k system
Volume Serial Number is 2009-AD8C
Directory of C:\php\sapi
14/07/2002 17:54 <DIR> .
14/07/2002 17:54 <DIR> ..
13/05/2002 00:01 24,576 php4apache.dll
13/05/2002 00:01 24,576 php4apache2.dll
13/05/2002 00:01 24,576 php4isapi.dll
13/05/2002 00:01 20,480 php4nsapi.dll
13/05/2002 00:01 20,480 php4pi3web.dll
13/05/2002 00:01 24,576 phpsrvlt.dll
13/05/2002 00:01 9,540 phpsrvlt.jar
13/05/2002 12:45 135 pws-php4cgi.reg
13/05/2002 12:45 139 pws-php4isapi.reg
9 File(s) 149,078 bytes
2 Dir(s) 2,599,455,232 bytes free
I am clearly quite confused by all this, and have rebooted my computer "just
in case" but nothing seems to work. Full permissions are set to "everyone"
on the directory and the .dll file.
Any help would be appreciated, and thanks in advance!
Beth
xx
--- End Message ---
--- Begin Message ---
Kaido wrote:
>Hi,
>
> I have problem with configure PHP 4.2.1 --with-mysql. When I put
>--with-mysql it gives me at the end of configuring something about,
>that I should give the path to mysql in configuring and when I do make
>it finishes with error about libmysql. If I put --with-myslq=/usr/local
>
I have "--with-mysql=shared,/usr". mysql will need both the /usr/include
and /usr/lib directories so if you give it the directory above them both
then it will search down for the files it needs. This is on a standard
RH 7.3 installation so the exact directories may vary in your case.
HTH
Chris
--- End Message ---
--- Begin Message ---
Alexander Lindstedt wrote:
>I have these lines in my conf, and they have been there since i installed
>it:
>
> AddType application/x-tar .tgz
> AddType application/x-httpd-php .php
>
I see nothing wrong with the php line. I assume php is an apache module
and the httpd.conf that you are showing is the httpd.conf used by apache
and that the url you are calling ends in ".php". Are these lines inside
an <IfModule ...> statement that is not being met? These are the best
ideas I have.
HTH
Chris
--- End Message ---
--- Begin Message ---
look for these entries in your httpd.conf file,
if not existed add them according to your paths.
Action application/x-httpd-php /php/php.exe
AddType application/x-httpd-php .php
AddType application/x-httpd-php-source .phps
ScriptAlias /php/ "C:/php/"
vk
http://ceynet.net Low Cost Web Hosting.
-----Original Message-----
From: Alexander Lindstedt [mailto:[EMAIL PROTECTED]]
Sent: Saturday, July 13, 2002 8:20 PM
To: [EMAIL PROTECTED]
Subject: [PHP-INST] Did I install it in the wrong way?
Hi!
I have some kind of a strange problem. When i try to access php pages on my
apache server running php4 internet explorer wants to download the files...
i dont know what to do to correct this problem, and i am almost sure that I
followed the instructions correctly.
This shit is pissing me off!
Help!
--
PHP Install Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
--- End Message ---
--- Begin Message ---
Test
--- End Message ---
--- Begin Message ---
ok
Eric wrote:
> Test
>
--- End Message ---
--- Begin Message ---
Test
--- End Message ---
--- Begin Message ---
Greetings!
I'm trying to compile PHP 4.2.1 to use it with Apache 2.0.39 and mySQL.
Here's my ./configure
linux:/usr/local/php-4.2.1 # ./configure --prefix=/usr/local/php-4.2.1
--with-config-file-path=/usr/local/php-4.2.1
--with-apxs2=/usr/local/Apache-2.0.39/bin/apxs --enable-track-vars
--enable-magic-quotes --enable-debugger
and it configures ok. But when I run make I get:
/bin/sh /usr/local/php-4.2.1/libtool --silent --mode=compile gcc -I.
-I/usr/local/php-4.2.1/sapi/apache2filter -I/usr/local/php-4.2.1/main
-I/usr/local/php-4.2.1 -I/usr/local/Apache-2.0.39/include
-I/usr/local/php-4.2.1/Zend -I/usr/local/php-4.2.1/ext/mysql/libmysql
-I/usr/local/php-4.2.1/ext/xml/expat -D_REENTRANT
-I/usr/local/php-4.2.1/TSRM -DTHREAD=1 -g -O2 -pthread -DZTS -prefer-pic
-c php_functions.c
php_functions.c:93: parse error
make[3]: *** [php_functions.lo] Error 1
make[3]: Leaving directory `/usr/local/php-4.2.1/sapi/apache2filter'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/usr/local/php-4.2.1/sapi/apache2filter'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/usr/local/php-4.2.1/sapi'
make: *** [all-recursive] Error 1
linux:/usr/local/php-4.2.1 #
Any ideas on what's wrong? Please post to this list and send me an
email. I have to head to the Bosnia AO for the next week.
Thanks!
Eric
--- End Message ---
--- Begin Message ---
Hi,
I am trying to compile PHP-4.1.2 on a Redhat machine. The configure goes
through without any errors. (see configure options below)
However when I do a make I get some gd related errors (see the errors
below).
I searched the php install list and found messages that said similar errors
might be due to an old version of GD being installed and to look for the
gd.h file. I did that, and renamed gd.h and tried compiling again. This time
around the compile complained that there was no gd.h found on the system.
I also found a FAQ from the php.net site that said that "strange compile
errors" in GD would go away if I ensured that the GD library and PHP were
linked against the same depending libraries. I am not sure how to go about
this. (see directory listings of the libjpeg and libpng from my system
below).
So I am back to square one, and hoping someone could tell me how to fix it.
:)
Thanks,
-- Santosh
======================================================================
./configure --prefix=/usr --with-config-file-path=/etc/httpd
--with-exec-dir=/usr/bin --with-libdir=/usr/lib --enable-bcmath
--enable-magic-quotes --enable-safe-mode --enable-mbstring
--enable-mbstr-enc-trans --enable-track-vars --enable-wddx=shared
--enable-mm=shared --enable-xml --enable-ftp --disable-debug
--with-apxs=/usr/sbin/apxs --with-zlib --with-ttf --with-jpeg-dir=/usr
--with-png-dir=/usr --with-gd=/usr --with-gettext=/usr --with-regex=system
--with-db --with-gdbm --with-interbase=shared --with-pgsql=shared
--with-ldap --with-imap --with-pdflib=/usr --with-mysql
------------------------------
In file included from gd.c:83:
gd_ctx.c:6: warning: `struct gdIOCtx' declared inside parameter list
gd_ctx.c:6: warning: its scope is only this definition or declaration, which
is
probably not what you want.
gd_ctx.c:12: warning: `struct gdIOCtx' declared inside parameter list
gd_ctx.c:18: warning: `struct gdIOCtx' declared inside parameter list
gd_ctx.c: In function `_php_image_output_ctx':
gd_ctx.c:33: `gdIOCtx' undeclared (first use in this function)
gd_ctx.c:33: (Each undeclared identifier is reported only once
gd_ctx.c:33: for each function it appears in.)
gd_ctx.c:33: `ctx' undeclared (first use in this function)
gd.c: At top level:
gd.c:101: parse error before `gdIOCtx'
gd.c: In function `_php_image_create_from_string':
gd.c:1000: `gdIOCtx' undeclared (first use in this function)
gd.c:1000: `io_ctx' undeclared (first use in this function)
gd.c: In function `zif_imagecreatefromstring':
gd.c:1043: `gdImageCreateFromJpegCtx' undeclared (first use in this
function)
gd.c:1052: `gdImageCreateFromPngCtx' undeclared (first use in this function)
gd.c:1061: `gdImageCreateFromGifCtx' undeclared (first use in this function)
gd.c:1070: `gdImageCreateFromWBMPCtx' undeclared (first use in this
function)
gd.c:1079: `gdImageCreateFromGd2Ctx' undeclared (first use in this function)
gd.c: In function `_php_image_create_from':
gd.c:1151: `gdIOCtx' undeclared (first use in this function)
gd.c:1151: `io_ctx' undeclared (first use in this function)
gd.c:1152: parse error before `buff_size'
gd.c:1155: `buff_size' undeclared (first use in this function)
gd.c:1155: `buff_em' undeclared (first use in this function)
gd.c:1162: `buff' undeclared (first use in this function)
gd.c: In function `zif_imagecreatefromgif':
gd.c:1203: `gdImageCreateFromGifCtx' undeclared (first use in this function)
gd.c: In function `zif_imagecreatefromjpeg':
gd.c:1216: `gdImageCreateFromJpeg' undeclared (first use in this function)
gd.c:1216: `gdImageCreateFromJpegCtx' undeclared (first use in this
function)
gd.c: In function `zif_imagecreatefrompng':
gd.c:1229: `gdImageCreateFromPng' undeclared (first use in this function)
gd.c:1229: `gdImageCreateFromPngCtx' undeclared (first use in this function)
gd.c: In function `zif_imagecreatefromwbmp':
gd.c:1272: `gdImageCreateFromWBMP' undeclared (first use in this function)
gd.c:1272: `gdImageCreateFromWBMPCtx' undeclared (first use in this
function)
gd.c: In function `zif_imagecreatefromgd':
gd.c:1284: `gdImageCreateFromGdCtx' undeclared (first use in this function)
gd.c: In function `zif_imagecreatefromgd2':
gd.c:1293: `gdImageCreateFromGd2' undeclared (first use in this function)
gd.c:1293: `gdImageCreateFromGd2Ctx' undeclared (first use in this function)
gd.c: In function `zif_imagecreatefromgd2part':
gd.c:1306: `gdImageCreateFromGd2Part' undeclared (first use in this
function)
gd.c:1306: `gdImageCreateFromGd2PartCtx' undeclared (first use in this
function)
gd.c: In function `zif_imagegif':
gd.c:1430: `gdImageGifCtx' undeclared (first use in this function)
gd.c: In function `zif_imagepng':
gd.c:1447: `gdImagePngCtx' undeclared (first use in this function)
gd.c: In function `zif_imagejpeg':
gd.c:1464: `gdImageJpegCtx' undeclared (first use in this function)
gd.c: In function `zif_imagewbmp':
gd.c:1481: `gdImageWBMPCtx' undeclared (first use in this function)
gd.c: In function `zif_imagegd2':
gd.c:1505: `gdImageGd2' undeclared (first use in this function)
gd.c: At top level:
gd.c:3371: parse error before `gdIOCtx'
gd.c: In function `_php_image_bw_convert':
gd.c:3376: `im_org' undeclared (first use in this function)
gd.c:3402: `threshold' undeclared (first use in this function)
gd.c:3412: `gdImageWBMPCtx' used prior to declaration
gd.c:3412: `out' undeclared (first use in this function)
gd.c: In function `_php_image_convert':
gd.c:3501: `gdImageCreateFromJpeg' used prior to declaration
gd.c:3501: warning: assignment makes pointer from integer without a cast
gd.c:3512: `gdImageCreateFromPng' used prior to declaration
gd.c:3512: warning: assignment makes pointer from integer without a cast
make[3]: *** [gd.lo] Error 1
make[2]: *** [all-recursive] Error 1
make[1]: *** [all-recursive] Error 1
make: *** [all-recursive] Error 1
------------------------------
lrwxrwxrwx 1 root root 14 Jul 14 12:49 libgd.so ->
libgd.so.1.8.4
lrwxrwxrwx 1 root root 14 Jul 2 09:02 libgd.so.1.8 ->
libgd.so.1.8.4
-rwxr-xr-x 1 root root 211097 Feb 24 04:25 libgd.so.1.8.4
lrwxrwxrwx 1 root root 17 Sep 20 2001 libjpeg.so ->
libjpeg.so.62.0.0
lrwxrwxrwx 1 root root 17 Sep 5 2001 libjpeg.so.62 ->
libjpeg.so.62.0.0
-rwxr-xr-x 1 root root 142161 Feb 19 09:53 libjpeg.so.62.0.0
lrwxrwxrwx 1 root root 17 Jul 14 12:32 libpng.so ->
libpng.so.3.1.2.1
lrwxrwxrwx 1 root root 17 Jul 2 09:02 libpng.so.3 ->
libpng.so.3.1.2.1
-rwxr-xr-x 1 root root 138064 Feb 19 10:29 libpng.so.3.1.2.1
-rw-r--r-- 1 root root 5404 Mar 21 1999 /usr/include/gd.h
_________________________________________________________________
Join the world’s largest e-mail service with MSN Hotmail.
http://www.hotmail.com
--- End Message ---
--- Begin Message ---
Santosh,
You've got the same errors I have.
Hope someone can help us out :-))
Eric
Santosh Narayanan wrote:
> Hi,
>
> I am trying to compile PHP-4.1.2 on a Redhat machine. The configure goes
> through without any errors. (see configure options below)
>
> However when I do a make I get some gd related errors (see the errors
> below).
>
> I searched the php install list and found messages that said similar
> errors might be due to an old version of GD being installed and to look
> for the gd.h file. I did that, and renamed gd.h and tried compiling
> again. This time around the compile complained that there was no gd.h
> found on the system.
>
> I also found a FAQ from the php.net site that said that "strange compile
> errors" in GD would go away if I ensured that the GD library and PHP
> were linked against the same depending libraries. I am not sure how to
> go about this. (see directory listings of the libjpeg and libpng from my
> system below).
>
> So I am back to square one, and hoping someone could tell me how to fix
> it. :)
>
> Thanks,
> -- Santosh
>
>
>
> ======================================================================
>
> ./configure --prefix=/usr --with-config-file-path=/etc/httpd
> --with-exec-dir=/usr/bin --with-libdir=/usr/lib --enable-bcmath
> --enable-magic-quotes --enable-safe-mode --enable-mbstring
> --enable-mbstr-enc-trans --enable-track-vars --enable-wddx=shared
> --enable-mm=shared --enable-xml --enable-ftp --disable-debug
> --with-apxs=/usr/sbin/apxs --with-zlib --with-ttf --with-jpeg-dir=/usr
> --with-png-dir=/usr --with-gd=/usr --with-gettext=/usr
> --with-regex=system --with-db --with-gdbm --with-interbase=shared
> --with-pgsql=shared --with-ldap --with-imap --with-pdflib=/usr --with-mysql
>
> ------------------------------
>
> In file included from gd.c:83:
> gd_ctx.c:6: warning: `struct gdIOCtx' declared inside parameter list
> gd_ctx.c:6: warning: its scope is only this definition or declaration,
> which is
> probably not what you want.
> gd_ctx.c:12: warning: `struct gdIOCtx' declared inside parameter list
> gd_ctx.c:18: warning: `struct gdIOCtx' declared inside parameter list
> gd_ctx.c: In function `_php_image_output_ctx':
> gd_ctx.c:33: `gdIOCtx' undeclared (first use in this function)
> gd_ctx.c:33: (Each undeclared identifier is reported only once
> gd_ctx.c:33: for each function it appears in.)
> gd_ctx.c:33: `ctx' undeclared (first use in this function)
> gd.c: At top level:
> gd.c:101: parse error before `gdIOCtx'
> gd.c: In function `_php_image_create_from_string':
> gd.c:1000: `gdIOCtx' undeclared (first use in this function)
> gd.c:1000: `io_ctx' undeclared (first use in this function)
> gd.c: In function `zif_imagecreatefromstring':
> gd.c:1043: `gdImageCreateFromJpegCtx' undeclared (first use in this
> function)
> gd.c:1052: `gdImageCreateFromPngCtx' undeclared (first use in this
> function)
> gd.c:1061: `gdImageCreateFromGifCtx' undeclared (first use in this
> function)
> gd.c:1070: `gdImageCreateFromWBMPCtx' undeclared (first use in this
> function)
> gd.c:1079: `gdImageCreateFromGd2Ctx' undeclared (first use in this
> function)
> gd.c: In function `_php_image_create_from':
> gd.c:1151: `gdIOCtx' undeclared (first use in this function)
> gd.c:1151: `io_ctx' undeclared (first use in this function)
> gd.c:1152: parse error before `buff_size'
> gd.c:1155: `buff_size' undeclared (first use in this function)
> gd.c:1155: `buff_em' undeclared (first use in this function)
> gd.c:1162: `buff' undeclared (first use in this function)
> gd.c: In function `zif_imagecreatefromgif':
> gd.c:1203: `gdImageCreateFromGifCtx' undeclared (first use in this
> function)
> gd.c: In function `zif_imagecreatefromjpeg':
> gd.c:1216: `gdImageCreateFromJpeg' undeclared (first use in this function)
> gd.c:1216: `gdImageCreateFromJpegCtx' undeclared (first use in this
> function)
> gd.c: In function `zif_imagecreatefrompng':
> gd.c:1229: `gdImageCreateFromPng' undeclared (first use in this function)
> gd.c:1229: `gdImageCreateFromPngCtx' undeclared (first use in this
> function)
> gd.c: In function `zif_imagecreatefromwbmp':
> gd.c:1272: `gdImageCreateFromWBMP' undeclared (first use in this function)
> gd.c:1272: `gdImageCreateFromWBMPCtx' undeclared (first use in this
> function)
> gd.c: In function `zif_imagecreatefromgd':
> gd.c:1284: `gdImageCreateFromGdCtx' undeclared (first use in this function)
> gd.c: In function `zif_imagecreatefromgd2':
> gd.c:1293: `gdImageCreateFromGd2' undeclared (first use in this function)
> gd.c:1293: `gdImageCreateFromGd2Ctx' undeclared (first use in this
> function)
> gd.c: In function `zif_imagecreatefromgd2part':
> gd.c:1306: `gdImageCreateFromGd2Part' undeclared (first use in this
> function)
> gd.c:1306: `gdImageCreateFromGd2PartCtx' undeclared (first use in this
> function)
> gd.c: In function `zif_imagegif':
> gd.c:1430: `gdImageGifCtx' undeclared (first use in this function)
> gd.c: In function `zif_imagepng':
> gd.c:1447: `gdImagePngCtx' undeclared (first use in this function)
> gd.c: In function `zif_imagejpeg':
> gd.c:1464: `gdImageJpegCtx' undeclared (first use in this function)
> gd.c: In function `zif_imagewbmp':
> gd.c:1481: `gdImageWBMPCtx' undeclared (first use in this function)
> gd.c: In function `zif_imagegd2':
> gd.c:1505: `gdImageGd2' undeclared (first use in this function)
> gd.c: At top level:
> gd.c:3371: parse error before `gdIOCtx'
> gd.c: In function `_php_image_bw_convert':
> gd.c:3376: `im_org' undeclared (first use in this function)
> gd.c:3402: `threshold' undeclared (first use in this function)
> gd.c:3412: `gdImageWBMPCtx' used prior to declaration
> gd.c:3412: `out' undeclared (first use in this function)
> gd.c: In function `_php_image_convert':
> gd.c:3501: `gdImageCreateFromJpeg' used prior to declaration
> gd.c:3501: warning: assignment makes pointer from integer without a cast
> gd.c:3512: `gdImageCreateFromPng' used prior to declaration
> gd.c:3512: warning: assignment makes pointer from integer without a cast
> make[3]: *** [gd.lo] Error 1
> make[2]: *** [all-recursive] Error 1
> make[1]: *** [all-recursive] Error 1
> make: *** [all-recursive] Error 1
>
>
> ------------------------------
>
>
> lrwxrwxrwx 1 root root 14 Jul 14 12:49 libgd.so ->
> libgd.so.1.8.4
> lrwxrwxrwx 1 root root 14 Jul 2 09:02 libgd.so.1.8 ->
> libgd.so.1.8.4
> -rwxr-xr-x 1 root root 211097 Feb 24 04:25 libgd.so.1.8.4
>
> lrwxrwxrwx 1 root root 17 Sep 20 2001 libjpeg.so ->
> libjpeg.so.62.0.0
> lrwxrwxrwx 1 root root 17 Sep 5 2001 libjpeg.so.62 ->
> libjpeg.so.62.0.0
> -rwxr-xr-x 1 root root 142161 Feb 19 09:53 libjpeg.so.62.0.0
>
> lrwxrwxrwx 1 root root 17 Jul 14 12:32 libpng.so ->
> libpng.so.3.1.2.1
> lrwxrwxrwx 1 root root 17 Jul 2 09:02 libpng.so.3 ->
> libpng.so.3.1.2.1
> -rwxr-xr-x 1 root root 138064 Feb 19 10:29 libpng.so.3.1.2.1
>
> -rw-r--r-- 1 root root 5404 Mar 21 1999 /usr/include/gd.h
>
>
> _________________________________________________________________
> Join the world's largest e-mail service with MSN Hotmail.
> http://www.hotmail.com
>
--- End Message ---
--- Begin Message ---
Hi!
I have got a new problem.
When i try to assign a variable in the url, like:
test.php?test=test
and try to show the variable in the php file, i get a message that the
variable is undefined. How do i have to do to fix this problem?
thnx
--- End Message ---
--- Begin Message ---
Hi,
http://www.php.net/manual/en/reserved.variables.php
http://www.php.net/manual/en/security.registerglobals.php
HTH
Greetz,
Christian Stadler
"Alexander Lindstedt" <[EMAIL PROTECTED]> schrieb im Newsbeitrag
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> Hi!
> I have got a new problem.
> When i try to assign a variable in the url, like:
> test.php?test=test
> and try to show the variable in the php file, i get a message that the
> variable is undefined. How do i have to do to fix this problem?
> thnx
>
>
--- End Message ---
--- Begin Message ---
i've installed PHP 4.2.1 as CGI with Apache 2.0.39 running under NT 4.0.
It is working mostly, since i can run this script:
<?php phpinfo(); ?>
But i can't get the variables passed in via a URL or POST to be set properly.
When i run this test script, tst.php:
<?php print "$tstvar"; ?>
via http://localhost/tst.php?tstvar=tstvalue
i get this Notice:
Notice: Undefined variable: tstvar in tst.php on line 1
instead of the expected output:
tstvalue
The same thing happens when i try to POST data into a .php script.
Any help would be appreciated!
Thanks,
ted
--- End Message ---
--- Begin Message ---
Hi,
http://www.php.net/manual/en/reserved.variables.php
http://www.php.net/manual/en/security.registerglobals.php
HTH
Greetz,
Christian Stadler
"Ted R Lowe" <[EMAIL PROTECTED]> schrieb im Newsbeitrag
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> i've installed PHP 4.2.1 as CGI with Apache 2.0.39 running under NT 4.0.
>
> It is working mostly, since i can run this script:
>
> <?php phpinfo(); ?>
>
> But i can't get the variables passed in via a URL or POST to be set
properly.
>
> When i run this test script, tst.php:
>
> <?php print "$tstvar"; ?>
>
> via http://localhost/tst.php?tstvar=tstvalue
>
> i get this Notice:
>
> Notice: Undefined variable: tstvar in tst.php on line 1
>
> instead of the expected output:
>
> tstvalue
>
> The same thing happens when i try to POST data into a .php script.
>
> Any help would be appreciated!
>
> Thanks,
> ted
>
--- End Message ---
--- Begin Message ---
To last post
Funny enough people know about manuals as they are a link close to the
download link on the devs site. Although if your new to PHP and the links
manuals acn be a little confusing as it mentions more than you need or want
to know. People post on these news groups for help not just to be shunted
off to a manual link. If that was the case why bother running a news
server/group why not just have in big bold letters READ THE MANUAL why cant
you try to be a little helpfull and try and sort his prob.
To Poster
sorry i cant help you as iam new my self and realy have no idea the only
thing i can thnk of is have you got the global settings switched on ?
Matt
"Christian Stadler" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> Hi,
>
> http://www.php.net/manual/en/reserved.variables.php
> http://www.php.net/manual/en/security.registerglobals.php
>
> HTH
>
> Greetz,
>
> Christian Stadler
>
> "Ted R Lowe" <[EMAIL PROTECTED]> schrieb im Newsbeitrag
> [EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> > i've installed PHP 4.2.1 as CGI with Apache 2.0.39 running under NT 4.0.
> >
> > It is working mostly, since i can run this script:
> >
> > <?php phpinfo(); ?>
> >
> > But i can't get the variables passed in via a URL or POST to be set
> properly.
> >
> > When i run this test script, tst.php:
> >
> > <?php print "$tstvar"; ?>
> >
> > via http://localhost/tst.php?tstvar=tstvalue
> >
> > i get this Notice:
> >
> > Notice: Undefined variable: tstvar in tst.php on line 1
> >
> > instead of the expected output:
> >
> > tstvalue
> >
> > The same thing happens when i try to POST data into a .php script.
> >
> > Any help would be appreciated!
> >
> > Thanks,
> > ted
> >
>
>
--- End Message ---
--- Begin Message ---
Thanks Christian. Now i understand why a PHP script worked
fine on my ISP but not on my local server. My ISP runs
with register_globals=On (probably due to so much confusion
in their user base about the 4.0 change). When i get time, i'll
rewrite my scripts to handle the (more secure) register_globals=Off
setting.
---
At 01:43 AM 7/15/02 +0200, Christian Stadler wrote:
>Hi,
>
>http://www.php.net/manual/en/reserved.variables.php
>http://www.php.net/manual/en/security.registerglobals.php
>
>HTH
>
>Greetz,
>
>Christian Stadler
>
>"Ted R Lowe" <[EMAIL PROTECTED]> schrieb im Newsbeitrag
>[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> > i've installed PHP 4.2.1 as CGI with Apache 2.0.39 running under NT 4.0.
> >
> > It is working mostly, since i can run this script:
> >
> > <?php phpinfo(); ?>
> >
> > But i can't get the variables passed in via a URL or POST to be set
>properly.
> >
> > When i run this test script, tst.php:
> >
> > <?php print "$tstvar"; ?>
> >
> > via http://localhost/tst.php?tstvar=tstvalue
> >
> > i get this Notice:
> >
> > Notice: Undefined variable: tstvar in tst.php on line 1
> >
> > instead of the expected output:
> >
> > tstvalue
> >
> > The same thing happens when i try to POST data into a .php script.
> >
> > Any help would be appreciated!
> >
> > Thanks,
> > ted
> >
>
>
>
>--
>PHP Install Mailing List (http://www.php.net/)
>To unsubscribe, visit: http://www.php.net/unsub.php
--- End Message ---