-
I'm using 292 and trying to preview html documents with includes.
I read the instructions at http://www.htmlkit.com/support/docs/pages/h000122.html
I followed the directions and when I try to preview, I get a 404.
I suspect the culprit could be that the Server address in Add Server Mapping could be wrong. I am not clear as to what the correct path is. Is it just my domain (example.com)? Is it with "http://"? Is it my domain followed by "public_html", which is what I see when editing files in my host's file manager?
-
On 2/4/2012 9:15 PM, myrrh wrote:
I'm using 292 and trying to preview html documents with includes.
I read the instructions at http://www.htmlkit.com/support/docs/pages/h000122.html
I followed the directions and when I try to preview, I get a 404.
I suspect the culprit could be that the Server address in Add Server Mapping could be wrong. I am not clear as to what the correct path is. Is it just my domain (example.com)? Is it with "http://"? Is it my domain followed by "public_html", which is what I see when editing files in my host's file manager?
Which server software are you using on your local computer? To minimize
problems, I simple place the html files that I am working with in the
root folder for public documents. The name of this folder could be
different with the different server software.
Also, are you saving your documents as .shtml?
Chuck
-
"Which server software are you using on your local computer?"
I'm sorry, but I don't know what you mean. Please give an example.
"To minimize problems, I simple place the html files that I am working with in the root folder for public documents."
By that do you mean that you place the html files in the public folder or do you mean that you place the html files in the folder that contains the public folder?
"Also, are you saving your documents as .shtml?"
Yes.
-
On 2/5/2012 12:49 PM, myrrh wrote:
"Which server software are you using on your local computer?"
I'm sorry, but I don't know what you mean. Please give an example.
There are several, or maybe a couple, software for server use. Win IIS
is one though I have not used it. There is the popular Apache that is
used by many hosting services. You can get from Friends of Apache free
the software to install on your computer. The download site is here:
http://www.apachefriends.org/en/xampp-windows.html and you will also
find instructions on using it. Once installed on your local computer
you will have several related folders but the one you need to place your
documents in is C:\xampp\htdocs (Ex: C:\xampp\htdocs\index.shtml) This
is the "public area" corresponding to the "public area" at your ISP.
You may have sub-folders just as you would at your hosting service.
Read the install and use instructions at the xampp download site carefully.
To use xampp, you must then turn it on. It has a Control Panel,
shortcut for mine is/was placed on the desktop.
Hope this helps. I am no expert but have written HTML that involved
includes and php, both of which require server side execution.
Chuck
>
"To minimize problems, I simple place the html files that I am working with in the root folder for public documents."
By that do you mean that you place the html files in the public folder or do you mean that you place the html files in the folder that contains the public folder?
"Also, are you saving your documents as .shtml?"
Yes.
-
I did not realize I needed server software on my local machine.
Is server software the only way (or only practical way) to preview HTML documents with includes?
Thank you for your help!
-
On 2/11/2012 8:52 PM, myrrh wrote:
I did not realize I needed server software on my local machine.
Is server software the only way (or only practical way) to preview
HTML documents with includes?
Thank you for your help!
I agree with Charles about previewing through a local server.
When testing pages with server-side scripting or includes, running them
through a server is the best way to do it.
If you don't want to install a test server on your local machine, you
can upload to the remote server and preview through it.
Installing a local test server speeds up the process in HTML-Kit and you
can preview as usual with F12.
You can see a list of different preview options available in HTML-Kit
292 at:
http://www.htmlkit.com/go/info/H000151
Hope this helps.
Chami
-
On 2/12/2012 9:32 AM, HTML-Kit Support wrote:
On 2/11/2012 8:52 PM, myrrh wrote:
I did not realize I needed server software on my local machine.
Is server software the only way (or only practical way) to preview
HTML documents with includes?
Thank you for your help!
I agree with Charles about previewing through a local server.
When testing pages with server-side scripting or includes, running them
through a server is the best way to do it.
If you don't want to install a test server on your local machine, you
can upload to the remote server and preview through it.
Installing a local test server speeds up the process in HTML-Kit and you
can preview as usual with F12.
You can see a list of different preview options available in HTML-Kit
292 at:
http://www.htmlkit.com/go/info/H000151
Hope this helps.
Chami
Yes, in the end your remote server could, in the long run, be a better
option. I say that because sometimes XAMPP will work fine and other
times I can't get it to work properly. In those cases a lot of time is
wasted trying to determine why it is not working.
Charles
|
|