PDA

View Full Version : Need HELP: Link to PHP from an HTML page



fatlittlebird
March 30th, 2007, 03:47 PM
Hi,
I'm trying to link to PHP from an HTML page. My host says they support it and that I could probably just make a PHP folder and put the files in there, but it doesn't work. Does it matter that the files are in folder in the php folder?

Any advice is greatly appreciated! Thanks.

Seb Hughes
March 30th, 2007, 04:45 PM
If your hosts supports PHP, you can put the files anywhere you like really and create a link to the .php file.

fatlittlebird
March 30th, 2007, 05:49 PM
Thanks, I'll try again. That wasn't working earlier... I must have done something else wrong.


If your hosts supports PHP, you can put the files anywhere you like really and create a link to the .php file.

bwh2
March 30th, 2007, 05:57 PM
make a .php file with just this and put it on your server:


<?php
phpinfo();
?>

visit that address. what does the page look like?

fatlittlebird
March 30th, 2007, 10:16 PM
I just get a 404 error saying it can't be found on the server. My host said I have the ability to use php...

evildrummer
March 31st, 2007, 04:24 AM
Are you sure youre doing this right?

1) Open notepad

2) post bwh2's code into it

3) Save as example.php

4)upload to your server

5) Visit the file on your server through a browser



oh and make sure you save it as example.php not example.php.txt or example.php.etc