473,387 Members | 1,504 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,387 software developers and data experts.

form help

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
42 2572
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
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
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
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
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
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
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
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
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
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
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
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
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

"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
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
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
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
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
"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
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
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
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
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
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
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
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
"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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
Nyfael
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Randell D. | last post by:
HELP! I am determined to stick with this... I'm getting there... for those who haven't read my earlier posts, I'm createing what should be a simple function that I can call to check that...
4
by: Tonya | last post by:
Hi, Does anyone have any example of how i can manage forms in my application?? I want to be able to reference my form instances that are currently open from other forms. why cant i open...
10
by: Gregory A Greenman | last post by:
I'm trying to write a program in vb.net to automate filling out a series of forms on a website. There are three forms I need to fill out in sequence. The first one is urlencoded. My program is...
0
by: Pat Patterson | last post by:
I'm having serious issues with a page I'm developing. I just need some simple help, and was hoping someone might be able to help me out in here. I have a form, that consists of 3 pages of...
25
by: Lyn | last post by:
Hi, I am working on a genealogy form. The only table (so far) lists everybody in the family, one record per person. Each record has an autonum ID. The parent form (frmMainForm) displays the...
4
by: Dave Guenthner | last post by:
I have a csharp form1.cs created with VS. I have added a menu bar with one option called help. I then created another form in VS called help.cs. How can I launch the help form from the main form...
10
by: Kathy Burke | last post by:
HI. in asp.net app, I have an xmlDocument that I transform to the client html. Using xsl I create a few textboxes to capture user input. Each of these are related to <data> elements in the xmlDoc....
13
by: Lee Newson | last post by:
Hi, I have just written my first application using VB.NET. The app works fine when i am running it within .NET for debugging purposes, however when i try to run the app from the .exe file that...
9
by: mohit.akl | last post by:
Hey guys & gals I am havng trouble modifying the control box. I want to make the maximise button invisible and have minimisise button instead of it. Like this _ X (not like _ o X ) How...
9
by: MikeB | last post by:
Hi, I'd appreciate some help, please. I'm writing a VS2005 VB project for school and one of the requirements is that every screen should have a "Help" button. I could do it by writing a clumsy...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
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
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
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
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...

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.