Php help!

Looks like either your host doesn't support PHP or there's some problem with your server that's causing it not to execute the file as a PHP script. What host are you with?
 
The extension on the contact form is .html... Looking at it further, if it's in an iframe and called .php you probably don't have PHP, like Inquistor said.

Also, maths questions are not exactly hard to break. You could quite easily get the label, strip the ? and do an eval() on it to get the correct answer...
 
Looks like either your host doesn't support PHP or there's some problem with your server that's causing it not to execute the file as a PHP script. What host are you with?

Im with 123-reg. It says on their site that they do support php. Its a linux server (if that makes a difference?)

The extension on the contact form is .html... Looking at it further, if it's in an iframe and called .php you probably don't have PHP, like Inquistor said.

Also, maths questions are not exactly hard to break. You could quite easily get the label, strip the ? and do an eval() on it to get the correct answer...

Yeah, it is fairly basic protection. Ive been struggling to find a decent form tbh.

EDIT: Ok... just been looking at the folders on host. My php is in the public_html folder. Should it be in the / ??
 
Last edited:
No, public_html is where it should go. There's a helpfile associated with the form apparently which should give you a lot more detail...

Well been reading it found this "If you are experiencing problems (i.e. no page appearing, or no emails) -
switch on error display and full error messages in the php.ini
This should give you an indication of the error."

Php.ini?
 
Well been reading it found this "If you are experiencing problems (i.e. no page appearing, or no emails) -
switch on error display and full error messages in the php.ini
This should give you an indication of the error."

Php.ini?

config file for php.

check your control panel to make sure that php is enabled and turned on.
 
Back
Top Bottom