PHP is active but not working. Please help.

Problems with the Windows version of XAMPP, questions, comments, and anything related.

PHP is active but not working. Please help.

Postby sparky » 12. November 2006 00:46

Hi there.
I have everything installed and working and the phpinfo.php says its installed properly but i have tried to use a PHP form that i have working on a 'live' website but it does not work on my local setup.

cheers.
sparky
 
Posts: 3
Joined: 12. November 2006 00:33

Postby baiwan » 15. November 2006 10:43

sparky

Difficult to say without more complete information. If you can say more about the form it would help.

In my experience this is often a problem with paths and urls. Have a look at the form "action" to see if it refers to something specific to your webserver - eg. it has the complete path instead of PHP_SELF or such.

If that helps, Great! If not, post more complete info.

Regards

baiwan

http://www.wingweb.co.uk
we all make mistakes - just some more then others
baiwan
 
Posts: 7
Joined: 14. March 2006 15:56
Location: UK

Postby sparky » 15. November 2006 10:58

Hi baiwan.
What information do you require from me?
I have installed the XAMMP system.

Cheers.
sparky
 
Posts: 3
Joined: 12. November 2006 00:33

Postby baiwan » 15. November 2006 15:35

hi sparky

1. Where is your php script? I assume its in the XAMPP root, eg.

C:\xampp\htdocs\yourfile.php

2. How do you access it? I assume you access it from your web browser like this:

http://localhost/yourfile.php

3. When you access it, does your script offer any response, or produce an error messsage? If so, what?

4. Does your script rely on any external files? Perhaps you have some Javascript to validate inputs, or something like that?

5. Can you post a copy of your script here? That would REALLY help!

Regards

baiwan
we all make mistakes - just some more then others
baiwan
 
Posts: 7
Joined: 14. March 2006 15:56
Location: UK

Postby sparky » 15. November 2006 15:49

I don't get any error messages. The scripts behave as they should with no errors, but i don't recieve any eamils from the code. They work on a normal webserver. I have not modified any of the code. All i did was copy the files from the webserver to my local htdocs folder.

Rather than post the whole code here, here they are on my server.

http://87.194.34.28/contact.php.txt
http://87.194.34.28/dsmailer.php.txt

The files will be PHP once you take the .txt of the ends.
sparky
 
Posts: 3
Joined: 12. November 2006 00:33

Postby baiwan » 15. November 2006 16:37

Hi

Your contact form has 3 minor errors according to my validator as follows:


Line 85:The attribute: onsubmit does not conform to upper/lower case requirements.

Line 86:The tag name: "left" Not found in currently active versions.

Line 89:The tag: "table" doesn't have an attribute: "height" in currently active versions.

However, this has nothing to do with your problems!

The problem is the mail function in Xampp. Truth is I've never made it work for me either!

1. By default, the mailer is not started when XAMPP starts. Go to the Xampp control panel (Start, Programs, Apachefriends, xampp, Control Xampp sever Panel on my system.)

2. Click the Mercury 'Start' button

3. Click 'Admin'

4. Configure!

This step you need to work out for yourself/get further advice about setting up the mail server. Sorry I cant help with that

:(

Anyway, good luck with it - I hope that helped a little!
we all make mistakes - just some more then others
baiwan
 
Posts: 7
Joined: 14. March 2006 15:56
Location: UK


Return to XAMPP for Windows

Who is online

Users browsing this forum: No registered users and 39 guests