473,403 Members | 2,323 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,403 software developers and data experts.

Forms and PHP V5.0.2 with APACHE V2.0.50

Some details of my HOME PC. I am running the following ....
Win2000 SP4; IE V6; 512MB RAM; H/Disk Space OK.
In the past couple of weeks I have installed/configured from binaries for ..

MySQL V4.1.5 [mysql-4.1.5-gamma-essential-win.msi]
Apache V2.0.50 [apache_2.0.50-win32-x86-no_ssl.msi]
PHP V5.0.2 [php-5.0.2-win32.zip]
PHPMYADMIN V2.6.0 [phpmyadmin-2.6.0-pl2.zip]

OBJECTIVE: To use my HOME PC to run a local APACHE web server on which to
develop websites that make use of PHP scripts and MySQL databases. My PC
will NOT be used as a service machine.

PROBLEM: I cannot get data from my FORMS to appear in my browser window.
i.e. I just get an HTML Heading from the PHP script and no Data or
associated Text from the Form via the ECHO command.

COMMENTS: The standard phpinfo.php test works fine. PHP date functions work
OK. I can also use the ECHO command to print the content of concatenated
variables containing strings OK.

I think the main problem is with actual DATA from a Form via Globals or
Superglobals not working.
I've tried different means of obtaining the Form data, both the old
$HTTP_POST_VARS and also the newer and preferred $_POST[...]. Associated
with this I have also tried changing the REGISTER_GLOBALS and
REGISTER_LONG_ARRAYS directive settings of the PHP.INI config file, all to
no avail. Note also that I have been restarting APACHE after each change to
PHP.INI to make sure any change is implemented.

I'm not clear on this latter point as I would have thought that Restarting
APACHE was only necessary after alterations to its own config file,
HTTPD.CONF?

I think that I may have a configuration problem with either or both PHP and
APACHE. Maybe they are not working correctly together?

Can anyone offer any help? FAQ's I've seen essentially cover the points
listed above.
Jul 17 '05 #1
3 2167
try

print_r($_POST);
print_r($_GET);

Jul 17 '05 #2
Jim Johnstone wrote:
I think the main problem is with actual DATA from a Form via Globals or
Superglobals not working.
I've tried different means of obtaining the Form data, both the old
$HTTP_POST_VARS and also the newer and preferred $_POST[...]. Associated
with this I have also tried changing the REGISTER_GLOBALS and
REGISTER_LONG_ARRAYS directive settings of the PHP.INI config file, all to
no avail. Note also that I have been restarting APACHE after each change to
PHP.INI to make sure any change is implemented.

I'm not clear on this latter point as I would have thought that Restarting
APACHE was only necessary after alterations to its own config file,
HTTPD.CONF?
I'm not sure, but ...

I guess if php is installed as a Apache module it gets loaded when
Apache starts.
Can anyone offer any help? FAQ's I've seen essentially cover the points
listed above.


Increase the reporting level to E_ALL either in php.ini or with

<?php error_reporting(E_ALL); ?>

in your test script(s).
--
USENET would be a better place if everybody read: | to mail me: simply |
http://www.catb.org/~esr/faqs/smart-questions.html | "reply" to this post, |
http://www.netmeister.org/news/learn2quote2.html | *NO* MIME, plain text |
http://www.expita.com/nomime.html | and *NO* attachments. |
Jul 17 '05 #3
On Wed, 27 Oct 2004 15:13:19 +0100, "Jim Johnstone"
<ji***@jimjohnstone.plus.com> wrote:
Some details of my HOME PC. I am running the following ....
Win2000 SP4; IE V6; 512MB RAM; H/Disk Space OK.
In the past couple of weeks I have installed/configured from binaries for ..

MySQL V4.1.5 [mysql-4.1.5-gamma-essential-win.msi]
Not relevant to the current issue, but MySQL 4.1 went General Availability
today on 4.1.7 so it might be worth installing that.
Apache V2.0.50 [apache_2.0.50-win32-x86-no_ssl.msi]
PHP V5.0.2 [php-5.0.2-win32.zip]
PHPMYADMIN V2.6.0 [phpmyadmin-2.6.0-pl2.zip]

OBJECTIVE: To use my HOME PC to run a local APACHE web server on which to
develop websites that make use of PHP scripts and MySQL databases. My PC
will NOT be used as a service machine.

PROBLEM: I cannot get data from my FORMS to appear in my browser window.
i.e. I just get an HTML Heading from the PHP script and no Data or
associated Text from the Form via the ECHO command.

COMMENTS: The standard phpinfo.php test works fine. PHP date functions work
OK. I can also use the ECHO command to print the content of concatenated
variables containing strings OK.

I think the main problem is with actual DATA from a Form via Globals or
Superglobals not working.
I've tried different means of obtaining the Form data, both the old
$HTTP_POST_VARS and also the newer and preferred $_POST[...]. Associated
with this I have also tried changing the REGISTER_GLOBALS and
REGISTER_LONG_ARRAYS directive settings of the PHP.INI config file, all to
no avail.
You've posted a lot of information about configuration - this is good -
however you've missed the most important parts - actual example code, and
examples of how the output differs from what you expect.

$_GET and $_POST are the two main ways to get data from forms. Are you mixing
up GET and POST perhaps?
Note also that I have been restarting APACHE after each change to
PHP.INI to make sure any change is implemented.

I'm not clear on this latter point as I would have thought that Restarting
APACHE was only necessary after alterations to its own config file,
HTTPD.CONF?


PHP only reads its configuration on startup. When loaded as an Apache module,
this means you have to completely stop and then restart Apache to get the PHP
module to be reloaded and so re-read its configuration.

--
Andy Hassall / <an**@andyh.co.uk> / <http://www.andyh.co.uk>
<http://www.andyhsoftware.co.uk/space> Space: disk usage analysis tool
Jul 17 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

17
by: Andrew Clark | last post by:
i have a simple test form and a php script that handles it. the form is not passing the data to the script, so i end up with an empty html file on submit. the form's setup is like this - ...
8
by: Randell D. | last post by:
Folks, Sorry for the cross post into multiple newsgroups on this, but html forms processing is supported across all three groups so I was hoping someone might know. I did a check with Google...
5
by: Grant Collins | last post by:
Hi I am writing a web based application as part of a small project that I am undertaking using servlets beans and jsp. I already have one servlet - bean - jsp page working and I have written...
1
by: ptaz | last post by:
Hi I'm trying to run a web page but I get the following error. Ca anyone please tell me a solution to this. Thanks Ptaz HTTP Status 500 - type Exception report
2
by: Pawan | last post by:
Hi Guys, I have this current assignment where I have to develop online forms for local municipal authorities. I have to use adobe acrobat to create online forms from PDFs (which I have never done...
19
by: Alex Madon | last post by:
Hello, I am testing a web application (using the DBX PHP function to call a Postgresql backend). I have 375Mb RAM on my test home box. I ran ab (apache benchmark) to test the behaviour of the...
1
by: Arun Gandhi | last post by:
Hi I am calling a web service from my win form application. Is there a way to see or log the xml/soap reuqests going out? Thanks Arun
3
by: amanjsingh | last post by:
Hi, I am trying to implement Java Web Service using Apache Axis2 and Eclipse as a tool. I have created the basic code and deployed the service using various eclipse plugin but when I try to invoke...
0
rsrinivasan
by: rsrinivasan | last post by:
Hi All, When i run my JSP program, ihave the following exception. How i solve this problem? HTTP Status 500 - ...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.