php-install Digest 26 Dec 2002 20:40:13 -0000 Issue 1173
Topics (messages 9439 through 9441):
Re: variables not passing at all
9439 by: Jim Thome
Re: PHP on IIS
9440 by: Nick H. -- Technical Support Engineer
New user with an Apache installation that doesn't want to acknowledge PHP exists
9441 by: Tony Dietrich
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 ---
Read this: http://www.php.net//manual/en/security.registerglobals.php
and either turn on register_globals: ini_set ("register_globals", "1");
or better yet, start using the super global syntax:
http://www.php.net/manual/en/language.variables.predefined.php#language.variables.superglobals
like so: $_POST['myvar']
--
Jim
>>> Matt <[EMAIL PROTECTED]> 12/24/02 09:05AM >>>
Hi. I am very new to PHP. I have both apache and mysql as well as php
installed on my laptop. I thought PHP was functioning correctly because
when I do a phpinfo() I get the appropriate diagnostic page.
However in a couple of exercises designed to display variables
populated from a form in one case, and in the other, a very simple page
to just display the contents of a few of the built-in HTTP variables
such as HTTP_REFERER, the variables aren't passing. The pages where the
variable contents should display are empty. I've had a friend try the
code on their server and they work fine so I know it's not my code
which leads me to server configuration. Any ideas? I"m really stumped.
TIA -
Matt
--
PHP Install Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
--- End Message ---
--- Begin Message ---
I have posted the solution to this on the php-windows mailing list. When
you install PHP on .Net (rather, IIS 6.0) you have to manually add in the
ISAPI or CGI into the IIS Control Panel. Once you have done that, there is
a "Web Service Extensions" or something to that effect in the IIS Control
Panel. You have to manually setup a rule to allow the php.exe to run. Once
you have this done, php should be able to run without problem. If you need
any further help, please feel free to contact me and I'll walk you through
the setup.
Nick "Harm" Hale
[EMAIL PROTECTED]
--- End Message ---
--- Begin Message ---
I'm in the process of setting up a server on a system that runs Apache
2.0.40 and PHP 4.2.2 on RH8.0
The server serves up pure HTML pages perfectly, but any .php files or
htm/html pages with php embedded in them ... well, the php code just
gets ignore ... if its a pure PHP file, I just get a blank screen in the
browser (running on a local network machine) ... if its a file with
embedded php code, then the code is ignored.
I've done the usual research .. looked at php.net, checked the manual,
checked the documentation supplied with the installation, but to no
avail.
I'm stumped. I don't even know what info to send you to help you help
me .. my httpd.conf file looks exactly like it is supposed to according
to the manual etc.
The only peculiar thing I've come across, is that running
# httpd -l
Compiled in modules:
core.c
prefork.c
http_core.c
mod_so.c
... so I don't see the php module as being compiled into Apache...
but adding the line
LoadModule php4_module modules/libphp4.so
to the httpd.conf file, then restarting the server, results in a warning
that the php module is already loaded????????
Can anyone please point me in the right direction?
TD
--- End Message ---