By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
435,543 Members | 2,174 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 435,543 IT Pros & Developers. It's quick & easy.

form help

P: n/a
Hello.

I am a beginner to PHP and I am currently just going through a book,
to create a simple form page. Unfortunately it doesn't work, and
there is nothing listed on the books errata page on the internet.

I wondered if you can just help me with it?

It is just a form that you type your name in on the test_form.php
page, and then on the test_form_processor.php page it is supposed to
say Thank you, yourname, for completing the form. It doesn't display
the name you type in though.
Below is a copy of the code for the two pages:

test_form.php

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html;
charset=iso-8859-1" />
<title>Untitled Document</title>
</head>

<body>
<form name="frm_name" id="frm_name" method="post"
action="test_form_processor.php">
First Name
<input name="firstName" type="text" id="firstName" />
</form>
</body>
</html>
test_form_processor.php

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html;
charset=iso-8859-1" />
<title>Untitled Document</title>
</head>

<body>
<p>Thank you, <?php echo $_POST['firstName']; ?>, for filling out my
form.
</p>
</body>
</html>
Thanks very much for any help you can offer.

John
Jul 17 '05 #1
Share this Question
Share on Google+
42 Replies


P: n/a
John wrote:
I am a beginner to PHP and I am currently just going through a book,
to create a simple form page. Unfortunately it doesn't work, and
there is nothing listed on the books errata page on the internet.

[...]

<p>Thank you, <?php echo $_POST['firstName']; ?>, for filling out my form.


Please tell us your PHP version. If you don't know it, then just execute
the function phpinfo().

Regards,
Matthias
Jul 17 '05 #2

P: n/a
On Thu, 13 May 2004 00:14:58 +0200, Matthias Esken
<mu******************@usenetverwaltung.org> wrote:
John wrote:
I am a beginner to PHP and I am currently just going through a book,
to create a simple form page. Unfortunately it doesn't work, and
there is nothing listed on the books errata page on the internet.

[...]

<p>Thank you, <?php echo $_POST['firstName']; ?>, for filling out my form.


Please tell us your PHP version. If you don't know it, then just execute
the function phpinfo().

Regards,
Matthias


Hi. I have version 4.3.6.

Thanks
John
Jul 17 '05 #3

P: n/a
John wrote:
On Thu, 13 May 2004 00:14:58 +0200, Matthias Esken
<mu******************@usenetverwaltung.org> wrote:
John wrote:
<p>Thank you, <?php echo $_POST['firstName']; ?>, for filling out my form.
Please tell us your PHP version. If you don't know it, then just execute
the function phpinfo().
Hi. I have version 4.3.6.


Please tell us what is the output of this script:
== cut ======
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>Test</title>
</head>

<body>
<p style="font-size: x-large"><?php echo 'one '; ?>two</p>
</body>
</html>
== cut ======
Save it to your server and access it ( http://localhost/saved.php )
I'm trying to verify if your server is configured to serve php files.

Is it "one"?
Maybe "two"?

or "one two"?
If it is "two" what do you see as the source of the page?

--
USENET would be a better place if everybody read: : mail address :
http://www.catb.org/~esr/faqs/smart-questions.html : is valid for :
http://www.netmeister.org/news/learn2quote2.html : "text/plain" :
http://www.expita.com/nomime.html : to 10K bytes :
Jul 17 '05 #4

P: n/a
On 12 May 2004 23:21:51 GMT, Pedro Graca <he****@hotpop.com> wrote:
John wrote:
On Thu, 13 May 2004 00:14:58 +0200, Matthias Esken
<mu******************@usenetverwaltung.org> wrote:
John wrote: <p>Thank you, <?php echo $_POST['firstName']; ?>, for filling out my form.Please tell us your PHP version. If you don't know it, then just execute
the function phpinfo().

Hi. I have version 4.3.6.


Please tell us what is the output of this script:


Hi. It just displays the webpage with the following text:

Thank you, , for filling out my form.

It doesn't have the name that was entered displayed.

Cheers

John
Jul 17 '05 #5

P: n/a
John wrote:
On 12 May 2004 23:21:51 GMT, Pedro Graca <he****@hotpop.com> wrote:
John wrote:
On Thu, 13 May 2004 00:14:58 +0200, Matthias Esken
<mu******************@usenetverwaltung.org> wrote:

John wrote:

> <p>Thank you, <?php echo $_POST['firstName']; ?>, for filling out my form.

Please tell us your PHP version. If you don't know it, then just execute
the function phpinfo().

Hi. I have version 4.3.6.


Please tell us what is the output of this script:


Hi. It just displays the webpage with the following text:

Thank you, , for filling out my form.

It doesn't have the name that was entered displayed.


I didn't mean your script ... but OK :)

What URL do you use to see that with your browser?

For PHP to execute the URL *has to* start with "http://".

--
USENET would be a better place if everybody read: : mail address :
http://www.catb.org/~esr/faqs/smart-questions.html : is valid for :
http://www.netmeister.org/news/learn2quote2.html : "text/plain" :
http://www.expita.com/nomime.html : to 10K bytes :
Jul 17 '05 #6

P: n/a
John <da**@duc.com> wrote in news:rd75a051rm4nrakmg8lq508jl7im4lf95l@
4ax.com:
Thanks very much for any help you can offer.


copypasted both and they work fine. so if phpinfo works then its probably
where you are running the two files from.
Jul 17 '05 #7

P: n/a
Hi.

The URL I use is http://localhost/newland/

All the files are saved to the following location:
C:\Program Files\Apache Group\Apache2\htdocs\newland

Thanks

John
Jul 17 '05 #8

P: n/a
John wrote:
The URL I use is http://localhost/newland/
Right!
All the files are saved to the following location:
C:\Program Files\Apache Group\Apache2\htdocs\newland


Right-click the page and select "View Source" (or similar).

What shows up?

In the HTML part where your name should be?

[ I'm guessing you'll see <?php echo $_POST['firstName']; ?> ... ]

--
USENET would be a better place if everybody read: : mail address :
http://www.catb.org/~esr/faqs/smart-questions.html : is valid for :
http://www.netmeister.org/news/learn2quote2.html : "text/plain" :
http://www.expita.com/nomime.html : to 10K bytes :
Jul 17 '05 #9

P: n/a
Interesting, your code worked for me.

As Matthias asked, what does...

php_test.php (yea, that's it, one line)

<?php echo phpinfo() ?>

what does this give you?

Walter
Jul 17 '05 #10

P: n/a
John wrote:

....

Below is a copy of the code for the two pages:

test_form.php
.... <body>
<form name="frm_name" id="frm_name" method="post"
action="test_form_processor.php">
First Name
<input name="firstName" type="text" id="firstName" />
I think that the submit button is missing in your script :-(
try adding

<input type="submit" value="Send input to PHP-eval-script" />

into your form
</form>
</body>
....
Thanks very much for any help you can offer.

John


Happy PHP-programming

Herbert

Jul 17 '05 #11

P: n/a
On 13 May 2004 00:05:24 GMT, Pedro Graca <he****@hotpop.com> wrote:
John wrote:
The URL I use is http://localhost/newland/


Right!
All the files are saved to the following location:
C:\Program Files\Apache Group\Apache2\htdocs\newland


Right-click the page and select "View Source" (or similar).

What shows up?

In the HTML part where your name should be?

[ I'm guessing you'll see <?php echo $_POST['firstName']; ?> ... ]

Yes. I get the following code...

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html;
charset=iso-8859-1" />
<title>Untitled Document</title>
</head>

<body>
<p>Thank you, <?php echo $_POST['firstName']; ?>, for filling out my
form.
</p>
</body>
</html>
John
Jul 17 '05 #12

P: n/a
On Thu, 13 May 2004 06:36:01 GMT, "jsWalter"
<js******@KILLtorresSPAM.ws> wrote:
Interesting, your code worked for me.

As Matthias asked, what does...

php_test.php (yea, that's it, one line)

<?php echo phpinfo() ?>

what does this give you?


Walter, I don't understand what you mean? Do you want me to type this
in the box "php_test.php" before hitting enter to see what it gives?

John
Jul 17 '05 #13

P: n/a
On Thu, 13 May 2004 09:21:18 +0200, Weinhandl Herbert
<we******@unileoben.ac.at> wrote:
John wrote:

...

Below is a copy of the code for the two pages:

test_form.php


...
<body>
<form name="frm_name" id="frm_name" method="post"
action="test_form_processor.php">
First Name
<input name="firstName" type="text" id="firstName" />


I think that the submit button is missing in your script :-(
try adding

<input type="submit" value="Send input to PHP-eval-script" />

into your form
</form>
</body>


...
Thanks very much for any help you can offer.

John


Happy PHP-programming

Herbert


It's just a basic form without a submit button this one. It's the
first lesson in the book towards building a dynamic site. It's just
one where you hit the enter key. Either way whether it's a submit
button or the enter key, I think the result will be the same. It's got
to be something else, probably really simple (knowing my luck) that is
the problem :(

John
Jul 17 '05 #14

P: n/a

"John" <da**@duk.com> wrote in message
news:ch********************************@4ax.com...
On Thu, 13 May 2004 06:36:01 GMT, "jsWalter"
<js******@KILLtorresSPAM.ws> wrote:
Interesting, your code worked for me.

As Matthias asked, what does...

php_test.php (yea, that's it, one line)

<?php echo phpinfo() ?>

what does this give you?


Walter, I don't understand what you mean? Do you want me to type this
in the box "php_test.php" before hitting enter to see what it gives?


No sir.

Create a file named php_test.php

put ><?php echo phpinfo() ?> in that file

run that file

Then, if you could post the result page on your web server and give us the
URL, "we" can look it over.

This will tell "us" if your configuration is proper.

It looks like, to me, that your PHP is not processing as it should.

Walter

Jul 17 '05 #15

P: n/a
I noticed that Message-ID: <rd********************************@4ax.com>
from John contained the following:
Thanks very much for any help you can offer.


Did you put the files in the public folder?
--
Geoff Berrow (put thecat out to email)
It's only Usenet, no one dies.
My opinions, not the committee's, mine.
Simple RFDs http://www.ckdog.co.uk/rfdmaker/
Jul 17 '05 #16

P: n/a
John <da**@duk.com> wrote in news:gj77a0lkbffc5hcfs9mietjtej5tin2pkb@
4ax.com:
It's got
to be something else, probably really simple (knowing my luck) that is
the problem :(


exactly where are the two files? in relation to the server folder?
Jul 17 '05 #17

P: n/a
John wrote:
On 13 May 2004 00:05:24 GMT, Pedro Graca <he****@hotpop.com> wrote:
Right-click the page and select "View Source" (or similar).

What shows up?

In the HTML part where your name should be?

[ I'm guessing you'll see <?php echo $_POST['firstName']; ?> ... ]

Yes. I get the following code...

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html;
charset=iso-8859-1" />
<title>Untitled Document</title>
</head>

<body>
<p>Thank you, <?php echo $_POST['firstName']; ?>, for filling out my
form.
</p>
</body>
</html>


So the PHP module isn't being called from the webserver.
Review the installation instructions for your webserver and reconfigure.

When you run this script:

<html><head><title>test php script</title></head>
<body>
<p>--- Current server time is: *<?php echo date('r'); ?>*</p>
</body></html>

with a correctly configured webserver/php the output will be

--- Current server time is: *Thu, 13 May 2004 19:17:32 +0100*

and not

--- Current server time is: **
--
USENET would be a better place if everybody read: : mail address :
http://www.catb.org/~esr/faqs/smart-questions.html : is valid for :
http://www.netmeister.org/news/learn2quote2.html : "text/plain" :
http://www.expita.com/nomime.html : to 10K bytes :
Jul 17 '05 #18

P: n/a
jsWalter wrote:
Then, if you could post the result page on your web server and give us the
URL, "we" can look it over.

This will tell "us" if your configuration is proper.

It looks like, to me, that your PHP is not processing as it should.

It sounds like, from another post, that he's running it locally. That
leads into questions as to whether his server is configured properly and
is actually running and all that.


Brian Rodenborn
Jul 17 '05 #19

P: n/a
"Default User" <fi********@boeing.com.invalid> wrote in message
news:40***************@boeing.com.invalid...
It sounds like, from another post, that he's running it locally. That
leads into questions as to whether his server is configured properly and
is actually running and all that.


yes, my thought as well.

just trying to take it easy on the guy.

Walter
Jul 17 '05 #20

P: n/a
On Thu, 13 May 2004 16:46:37 GMT, "jsWalter"
<js******@KILLtorresSPAM.ws> wrote:

"John" <da**@duk.com> wrote in message
news:ch********************************@4ax.com.. .
On Thu, 13 May 2004 06:36:01 GMT, "jsWalter"
<js******@KILLtorresSPAM.ws> wrote:
>Interesting, your code worked for me.
>
>As Matthias asked, what does...
>
>php_test.php (yea, that's it, one line)
>
><?php echo phpinfo() ?>
>
>what does this give you?


Walter, I don't understand what you mean? Do you want me to type this
in the box "php_test.php" before hitting enter to see what it gives?


No sir.

Create a file named php_test.php

put ><?php echo phpinfo() ?> in that file

run that file

Then, if you could post the result page on your web server and give us the
URL, "we" can look it over.

This will tell "us" if your configuration is proper.

It looks like, to me, that your PHP is not processing as it should.


Walter.

The page comes up completely blank with that coding. I don't have a
URL I am running the server locally.

John
Jul 17 '05 #21

P: n/a
On Thu, 13 May 2004 18:00:10 +0100, Geoff Berrow
<bl******@ckdog.co.uk> wrote:
I noticed that Message-ID: <rd********************************@4ax.com>
from John contained the following:
Thanks very much for any help you can offer.


Did you put the files in the public folder?


yep, they're all there.

John
Jul 17 '05 #22

P: n/a
On Thu, 13 May 2004 18:39:08 GMT, Default User
<fi********@boeing.com.invalid> wrote:
jsWalter wrote:
Then, if you could post the result page on your web server and give us the
URL, "we" can look it over.

This will tell "us" if your configuration is proper.

It looks like, to me, that your PHP is not processing as it should.

It sounds like, from another post, that he's running it locally. That
leads into questions as to whether his server is configured properly and
is actually running and all that.


It does seem to be running. But the properly bit I'm not sure on,
I'm just a beginner :(

John
Jul 17 '05 #23

P: n/a
On Thu, 13 May 2004 17:12:08 -0000, Theo <in*****@noemail.com> wrote:
John <da**@duk.com> wrote in news:gj77a0lkbffc5hcfs9mietjtej5tin2pkb@
4ax.com:
It's got
to be something else, probably really simple (knowing my luck) that is
the problem :(


exactly where are the two files? in relation to the server folder?


Okay. In Dreamweaver the files are saved at the following location:

C:\dw_dynapps\newland

They are published to the following location:

C:\Program Files\Apache Group\Apache2\htdocs\newland

John
Jul 17 '05 #24

P: n/a
I noticed that Message-ID: <76********************************@4ax.com>
from John contained the following:
Did you put the files in the public folder?


yep, they're all there.


I got similar behaviour when I put files in the root and used preview in
browser from Dreamweaver, which is why I asked. I had to restart Apache
to get them to work. However putting the files in the public folder
seemed to work fine.

--
Geoff Berrow (put thecat out to email)
It's only Usenet, no one dies.
My opinions, not the committee's, mine.
Simple RFDs http://www.ckdog.co.uk/rfdmaker/
Jul 17 '05 #25

P: n/a
John <da**@duk.com> wrote in news:n9u7a0pjgik9klcmlscbhfrtpdhcmuouk3@
4ax.com:
C:\Program Files\Apache Group\Apache2\htdocs\newland


put
<?php phptest(); ?>

In a text file and save as php. drop it in htdocs. run it by using
"localhost/" + the filename in your browser. If it does not work, then your
problem is an incorrectly installed/configured php. If it does work, then
check your site settings in dreamweaver to see if the testing server is set
correctly... and that the type is php-mysql.

The code works fine.
Jul 17 '05 #26

P: n/a
John <da**@duk.com> wrote in news:87u7a0td3neqsitipfpe3jgght49q31aup@
4ax.com:
It does seem to be running. But the properly bit I'm not sure on,
I'm just a beginner :(


Mentioned a couple times. Try the simplest of scripts

<?php phpinfo(); ?>

and preview it. Not just from dreamwaever. Run it directly from within your
browser "http://localhost/foldername/filename.php" and see if you get
anything.
Jul 17 '05 #27

P: n/a
"John" <da**@duk.com> wrote in message
news:44********************************@4ax.com...
"John" <da**@duk.com> wrote in message
news:ch********************************@4ax.com.. .
On Thu, 13 May 2004 06:36:01 GMT, "jsWalter"
<js******@KILLtorresSPAM.ws> wrote:
Walter.

The page comes up completely blank with that coding.
I don't have a URL I am running the server locally.


OK, I think we are talking at cross purposes here.

1) do you have a web server running on your local machine?
2) do you have a sql server running on your local machine?
3) do you have a PHP installed on your local machine?

If no to any, work to make them all yes.

If yes to all, then you will have a URL.

http://locahost/some/path/phpinfo.php

How are you "running" the test page, if you "don't have a URL"?

Walter
Jul 17 '05 #28

P: n/a
On Fri, 14 May 2004 00:04:16 -0000, Theo <in*****@noemail.com> wrote:
John <da**@duk.com> wrote in news:87u7a0td3neqsitipfpe3jgght49q31aup@
4ax.com:
It does seem to be running. But the properly bit I'm not sure on,
I'm just a beginner :(


Mentioned a couple times. Try the simplest of scripts

<?php phpinfo(); ?>

and preview it. Not just from dreamwaever. Run it directly from within your
browser "http://localhost/foldername/filename.php" and see if you get
anything.


Nope, de nada. :(

John
Jul 17 '05 #29

P: n/a
On Fri, 14 May 2004 15:58:02 GMT, "jsWalter"
<js******@KILLtorresSPAM.ws> wrote:
"John" <da**@duk.com> wrote in message
news:44********************************@4ax.com.. .
>"John" <da**@duk.com> wrote in message
>news:ch********************************@4ax.com.. .
>> On Thu, 13 May 2004 06:36:01 GMT, "jsWalter"
>> <js******@KILLtorresSPAM.ws> wrote:
Walter.

The page comes up completely blank with that coding.
I don't have a URL I am running the server locally.


OK, I think we are talking at cross purposes here.

1) do you have a web server running on your local machine?
2) do you have a sql server running on your local machine?
3) do you have a PHP installed on your local machine?


I have apache server running and php is set up. I don't have sql as it
is not yet needed for what I'm trying to do.
If no to any, work to make them all yes.

If yes to all, then you will have a URL.

My files are at http://locahost/newland/

John
Jul 17 '05 #30

P: n/a
On Thu, 13 May 2004 23:59:09 -0000, Theo <in*****@noemail.com> wrote:
John <da**@duk.com> wrote in news:n9u7a0pjgik9klcmlscbhfrtpdhcmuouk3@
4ax.com:
C:\Program Files\Apache Group\Apache2\htdocs\newland


put
<?php phptest(); ?>

In a text file and save as php. drop it in htdocs. run it by using
"localhost/" + the filename in your browser. If it does not work, then your
problem is an incorrectly installed/configured php. If it does work, then


No. Unfortunately it didn't work from either the newland or directly
from the htdocs folder opening in a browser.

If my Php is not configured correctly, how do I go about repairing it?

Cheers

John
Jul 17 '05 #31

P: n/a
John <da**@duck.com> wrote in news:ghpca0tne1kell6mq6ce3o1vrhj57so0ge@
4ax.com:
If my Php is not configured correctly, how do I go about repairing it?


Since you are using dreamweaver I assume you are on a windows platform. If
you did not download the documentation I recommend you do so. It comes as
either HTML, PDF, or CHM. Read the installation section and do exactly
what it tells you. Note that there are general instructions, instructions
for your OS, and instructions for your server that you must follow. I
recommend not using the automatic installation and do it manually instead
for better security. Follow the instructions and it should take no more
than 10 minutes to do it.

among the things to do

1) rename the "php.4.3.2 win32" folder to just "php" Do NOT put this in
"program files", just leave it in C:/
2) make sure php4ts.dll is in your system32 folder IF you use it as a
module (you dont have to)
3) make sure php.ini is in the correct location (windir or winnt)
4) make sure this file is edited to point to htdocs and the php extentions
directory
5) make sure the proper lines are put in your apache config file (for the
exe or the module)

Note that the lines in #5 point to C:/php. So if you chose to name the php
folder something else, you must change these lines so they point there.
Jul 17 '05 #32

P: n/a
On Sat, 15 May 2004 22:35:18 -0000, Theo <in*****@noemail.com> wrote:
John <da**@duck.com> wrote in news:ghpca0tne1kell6mq6ce3o1vrhj57so0ge@
4ax.com:
If my Php is not configured correctly, how do I go about repairing it?
Since you are using dreamweaver I assume you are on a windows platform.


Yes. Windows XP.
If
you did not download the documentation I recommend you do so. It comes as
either HTML, PDF, or CHM. Read the installation section and do exactly
what it tells you. Note that there are general instructions, instructions
for your OS, and instructions for your server that you must follow. I
recommend not using the automatic installation and do it manually instead
for better security. Follow the instructions and it should take no more
than 10 minutes to do it.
Yep. I seem to have done everything it says to set this up.

among the things to do

1) rename the "php.4.3.2 win32" folder to just "php" Do NOT put this in
"program files", just leave it in C:/
Okay, I've renamed it to just C:/php
2) make sure php4ts.dll is in your system32 folder IF you use it as a
module (you dont have to)
Yep, it's there.
3) make sure php.ini is in the correct location (windir or winnt)
It's in my C:/Windows folder. php4ts.dll is in my C:/Windows/System32
folder.
4) make sure this file is edited to point to htdocs and the php extentions
directory
I edited this to say:
doc_root = C:\Program Files\Apache Group\Apache2\htdocs // for Apache
5) make sure the proper lines are put in your apache config file (for the
exe or the module)
I edited this to say:
LoadModule php4_module c:/php/sapi/php4apache2.dll
Note that the lines in #5 point to C:/php. So if you chose to name the php
folder something else, you must change these lines so they point there.


I tested this but it still doesn't work. :(

John
Jul 17 '05 #33

P: n/a
I noticed that Message-ID: <2d********************************@4ax.com>
from John contained the following:
I tested this but it still doesn't work. :(

Scrap it and get phpdev from http://www.firepages.com.au/

"Firepages is a repository for PHP related information, download the
phpdev bundle a preconfigured self extracting zip file that sets up
apache php mysql on your windows 9* 2k and XP machine."

--
Geoff Berrow (put thecat out to email)
It's only Usenet, no one dies.
My opinions, not the committee's, mine.
Simple RFDs http://www.ckdog.co.uk/rfdmaker/
Jul 17 '05 #34

P: n/a
John <co***@duckula.com> wrote in news:2d7fa01h3vqr0fbtiri739k5qprac1v6ra@
4ax.com:
I edited this to say:
LoadModule php4_module c:/php/sapi/php4apache2.dll


are there quotes around the path? did you take them out when posting it
here?

For a test, try the the exe instead of the module

ScriptAlias /php/ "c:/php/"
AddType application/x-httpd-php .php
Action application/x-httpd-php "/php/php.exe"
Jul 17 '05 #35

P: n/a
On Sun, 16 May 2004 18:09:27 +0100, Geoff Berrow
<bl******@ckdog.co.uk> wrote:
I noticed that Message-ID: <2d********************************@4ax.com>
from John contained the following:
I tested this but it still doesn't work. :(

Scrap it and get phpdev from http://www.firepages.com.au/

"Firepages is a repository for PHP related information, download the
phpdev bundle a preconfigured self extracting zip file that sets up
apache php mysql on your windows 9* 2k and XP machine."


what do I do after I download?

Cheers

John
Jul 17 '05 #36

P: n/a
On Sun, 16 May 2004 17:22:05 -0000, Theo <in*****@noemail.com> wrote:
John <co***@duckula.com> wrote in news:2d7fa01h3vqr0fbtiri739k5qprac1v6ra@
4ax.com:
I edited this to say:
LoadModule php4_module c:/php/sapi/php4apache2.dll
are there quotes around the path? did you take them out when posting it
here?


This LoadModule quote was never originally in the file, I had to put
it there, which is what the book I am reading says to do. There are
no quotes around any of these LoadModule lines in the file.
For a test, try the the exe instead of the module

ScriptAlias /php/ "c:/php/"
AddType application/x-httpd-php .php
Action application/x-httpd-php "/php/php.exe"


You want me to put those 3 lines instead of:
LoadModule php4_module c:/php/sapi/php4apache2.dll

?

Thanks

John
Jul 17 '05 #37

P: n/a
On Sun, 16 May 2004 18:27:47 +0100, John <co***@duckula.com> wrote:
On Sun, 16 May 2004 18:09:27 +0100, Geoff Berrow
<bl******@ckdog.co.uk> wrote:
I noticed that Message-ID: <2d********************************@4ax.com>
from John contained the following:
I tested this but it still doesn't work. :(

Scrap it and get phpdev from http://www.firepages.com.au/

"Firepages is a repository for PHP related information, download the
phpdev bundle a preconfigured self extracting zip file that sets up
apache php mysql on your windows 9* 2k and XP machine."


what do I do after I download?

Cheers

John


It's okay! I figured this out now. And "I'TS WORKING!"

Brilliant! Thanks a lot man!

I was starting to get a bit frustrated.

I can finish the rest of lesson 4 off now :)

John
Jul 17 '05 #38

P: n/a
I noticed that Message-ID: <qd********************************@4ax.com>
from John contained the following:
It's okay! I figured this out now. And "I'TS WORKING!"

Brilliant! Thanks a lot man!

I was starting to get a bit frustrated.

I can finish the rest of lesson 4 off now :)


Another happy customer. :-)

--
Geoff Berrow (put thecat out to email)
It's only Usenet, no one dies.
My opinions, not the committee's, mine.
Simple RFDs http://www.ckdog.co.uk/rfdmaker/
Jul 17 '05 #39

P: n/a
John <co***@duckula.com> wrote in news:rq9fa0he0mltccujjjjnciq0t0tqete102@
4ax.com:
You want me to put those 3 lines instead of:
LoadModule php4_module c:/php/sapi/php4apache2.dll


Sounds like from the other posts that you got it working by using a
preconfigured package. Right?

But, all paths must be closed in quotes. Take a look at the config file and
check it out. Later on, when you mess with things more, and add more to
that file (like directory... uh, directives), those paths must be closed in
quotes as well.

Also, there should be an "addtype" line in addition to the loadmodule line.
Again check out the config file you got working to see how they are.
Jul 17 '05 #40

P: n/a
On Sun, 16 May 2004 18:09:27 +0100, Geoff Berrow
<bl******@ckdog.co.uk> brought forth from the murky depths:
I noticed that Message-ID: <2d********************************@4ax.com>
from John contained the following:
I tested this but it still doesn't work. :(

Scrap it and get phpdev from http://www.firepages.com.au/

"Firepages is a repository for PHP related information, download the
phpdev bundle a preconfigured self extracting zip file that sets up
apache php mysql on your windows 9* 2k and XP machine."


apache 2.0.43/mysql 4.0.4b/php 4.2.3 from the Sams/Meloni book.

What do I need to do to keep the server offline, localhost only
on my machine? I want to develop locally on the Win2k box vs. via
FTP/SSH on my host's Linux server.

I'm trying to figure out the easiest way to test the .php pages
without exposing my entire box to the Web.

TIA
Jul 17 '05 #41

P: n/a
Larry Jaques <novalidaddress@di\/ersify.com> wrote in
news:ij********************************@4ax.com:
I'm trying to figure out the easiest way to test the .php pages
without exposing my entire box to the Web.


for apache, look at the "listen" directive. Set it to allow 127.0.0.1 and
deny everything else... and it will only listen to the local machine.
Jul 17 '05 #42

P: 1
On Sun, 16 May 2004 18:27:47 +0100, John <count@duckula.com> wrote:
[color=blue]
>On Sun, 16 May 2004 18:09:27 +0100, Geoff Berrow
><blthecat@ckdog.co.uk> wrote:
>[color=green]
>>I noticed that Message-ID: <2d7fa01h3vqr0fbtiri739k5qprac1v6ra@4ax.com>
>>from John contained the following:
>>[color=darkred]
>>>I tested this but it still doesn't work. :([/color]
>>
>>
>>Scrap it and get phpdev from http://www.firepages.com.au/
>>
>>"Firepages is a repository for PHP related information, download the
>>phpdev bundle a preconfigured self extracting zip file that sets up
>>apache php mysql on your windows 9* 2k and XP machine."[/color]
>
>what do I do after I download?
>
>Cheers
>
>John[/color]

It's okay! I figured this out now. And "I'TS WORKING!"

Brilliant! Thanks a lot man!

I was starting to get a bit frustrated.

I can finish the rest of lesson 4 off now :)

John

I spent several hours trying to install apache and php. I had given up after one or two last night and had spent a couple more this morning.

Thank you for this thread, you had the exact same problem as I did, and Geoff's hint totally solved it. I downloaded, installed and it was working in the blink of an eye. It's perfect.

-Kerry
Feb 11 '06 #43

This discussion thread is closed

Replies have been disabled for this discussion.