I am trying to implament PHP into my FrontPage site and it in not excuting any of the code?
eeyore_rulzus
2006-06-01 12:12:47 UTC
I am used to doing PHP with Dreamweaver but this program I have to do in FrontPage and I am dying, does anyone have any idea on whay I can do to make my code work!!!!!!
Five answers:
2006-06-01 12:16:46 UTC
Do you mean that it does not Execute after you UPLOAD it to your website? (It won't run on your computer, unless you have configured your computer to run that way).
Yes, you have to test it LIVE.
Sue W
2006-06-02 08:45:23 UTC
If you have been successfully executing programs in Dreamweaver then I expect your system is already correctly configured to run with a webserver such as Apache so I would expect you should also be able to execute programs in Frontpage. I say this because I don't recall having to specifically configure my webserver and preprocessor to run with any specific html writing program.
The error could be in the way in which you are naming your html doc. Some need to be named as php. Html is mostly for static web pages whereas php is needed for dynamic pages. You could also try looking at the relative paths of these programs and files.
I also suggest you access the manufactures of the programs you are using and request troubleshooting ideas from them. They know their product better than anyone and are most logically the ones best equiped to help you. Even their free tutorials may give you an insight into where you are going wrong. Good luck.
jason b
2006-06-01 19:28:15 UTC
COrrect, PHP is a severside language. the server to which you upload the files has to support php otherwise it is not going to execute.
As for writng a webpage in Front page, it's not going to execute the code on you computer unless you are running a PHP server on your home pc.
If you have uploaded the page or you are runnig a php server on your home pc, then run the php file from your webfolder using the browser. if it appears to do nothing then click on the toolbar and view the source code of hte page you see in the browser. i'll bet you can see some errors there in the sources, or the php is going to be the same colour as your comments.
EDIT: Don't forget to specify php as the extension or are you using scripting tag style? i wouldn't even try to do php with frontpage, i use notepad, it's better.
Caus
2006-06-01 19:20:53 UTC
PHP is a server side language and as such will only run once the page is uploaded to a server. If a server is not available you can use JavaScript to code client side sripts but that will lack some feasability in most projects
bow4bass
2006-06-01 19:41:21 UTC
you need to change the extension from .html to .php
prob have to add an .htaccess file , allowing php in that directory
might need to make new .php page executable, chmod to 755
lastly prob dont have to, but might need to add magic line to first line of program . . . path to php
hope this helps
ⓘ
This content was originally posted on Y! Answers, a Q&A website that shut down in 2021.