Posted 24 October 2003 - 12:24 AM
Posted 24 October 2003 - 12:40 AM
Make a page in notepad or your favorite text editor, exactly like this:[php:1:736746cfd6]<?php
echo \"Hello, Lora!!!\";
or, like this:[php:1:736746cfd6]<?php
name it \"test.php\" ...and upload it to your site. Look at it in your browser. If it says \"Hello, Lora!!!\" (in the 1st case) or has a big white/purple page with lots of technobabble on it (in the second case) then you can use PHP on your site.
Then, do this: rename the test.php file to \"test.html\" and load it into the browser. If it works the same way as it did in the first test, you can then embed PHP script into your standard HTML pages. If it doesn\'t, then your pages will have to be \"pagename.php\" in order to work.
Posted 24 October 2003 - 01:15 PM
I\'m using \"xxxxx\" instead of typing out the whole folder name.
So is this maybe my problem is in the set up, I know the hosting company that I use is php enabled and there is no problem on their end.
I appreciate the help greatly....... thank you
Again I don\'t want to write php, I just want to be able to use scripts that I have downloaded.
Posted 24 October 2003 - 02:12 PM
Well, if you got parse errors, then the server is parsing PHP. Are you sure you entered the code correctly? There are no parse errors in the code I posted....
Ok, I appreciate the help, but I guess I need a bit more. I will tell you what I did and you tell me what I did wrong. I used BBedit and typed the code like you said, I uploaded; it didn\'t work. Then I thought perhaps you have to put it into the cgi bin, so I tried that; didn\'t work. On both of those I kept getting this error \\\"parse error:parse error in/home/lora2/public_html/test.php\\\"
Posted 24 October 2003 - 02:35 PM
Other question, do I need to set up a new php site within dreamweaver first? I\'m confused. I\'m under the impression that the local web server needs to be configured to parse php includes, maybe I\"m confused on where and what is my local webserver? Please shed more light. Thank you. :oops:
Posted 24 October 2003 - 03:56 PM
AFAIK, that ain\'t DW. . . and as far as Mac/OSX goes, I\'m less than \'bright\' ...
So, if you\'re just using DW to look at your pages, the answer is \"probably you need to install a real webserver on your Mac, but the genie of the LAMP isn\'t all powerful and might be wrong ... \"
Posted 24 October 2003 - 10:57 PM
\"parse error:parse error in/home/lora2/public_html/test.php on line 2\"
What am I doing wrong? Please help, I\'m on my third drink already, it\'s driving me nuts! Thanks
Posted 25 October 2003 - 03:33 AM
Or, point us to a link we can see from outside ... ?
Posted 25 October 2003 - 02:41 PM
Posted 11 December 2003 - 01:19 PM
After you created your test.php and put this file in the same folder as all your html pages access it with your browser using the URL to your webserver....http://ip.address.of.your.webserver/test.php
If you are still getting errors paste your code here so we can see where you may have went wrong.
0 user(s) are reading this topic
0 members, 0 guests, 0 anonymous users