Ok, so i have these demos that are user guides to proprietary software that is controlled in house (being remade in mimic). I want to host these online on our website.
The way that i want to show these is actually in a webhelp window. So that i can have the TOC for all of the demos to the left, with just the demo on the right.
The only way to access these demos will be through a sessions controlled pages, so i would like to have the help file check for a session as well.
I know where and how to add my session check code to the default.htm file. But i also know that having the php code in that file requires me rename it to "default.php" or "default.html.php" or "default.php.htm".
When i rename the default.htm file the webhelp no longer works.
I have read the other post and it didn't say anything about changing the file name so i assumed this would be a different case.
Thanks,
Andrew
PHP Sessions and WebHelp
-
- Senior Propellus Maximus
- Posts: 4293
- Joined: Thu Feb 02, 2006 9:29 am
- Location: The Electric City
Re: PHP Sessions and WebHelp
There is another option. You can configure the web server to pull .htm and .html files through the PHP interpreter as well. You'll have a little bit of lower performance, but I think that for your case that is negligible. That way you can keep the file name as is and still embed PHP code.
All you'd need to do is add/edit this line in the httpd.conf:
All you'd need to do is add/edit this line in the httpd.conf:
Code: Select all
AddType application/x-httpd-php .php .htm .html
New Book: Creating user-friendly Online Help
Paperback http://www.amazon.com/dp/1449952038/ or https://www.createspace.com/3416509
eBook http://www.amazon.com/dp/B005XB9E3U
Paperback http://www.amazon.com/dp/1449952038/ or https://www.createspace.com/3416509
eBook http://www.amazon.com/dp/B005XB9E3U
Re: PHP Sessions and WebHelp
Renaming it manually using Windows Explorer, or you changed the file name in the target?Fiscal wrote:When i rename the default.htm file the webhelp no longer works.
Lisa
Eagles may soar, but weasels aren't sucked into jet engines.
Warning! Loose nut behind the keyboard.
Re: PHP Sessions and WebHelp
I was renaming it in the Windows Explorer. I am using Apache to do all of this testing wise.LTinker68 wrote:Renaming it manually using Windows Explorer, or you changed the file name in the target?Fiscal wrote:When i rename the default.htm file the webhelp no longer works.
I am not really familiar with the setup file for servers. Is there anywhere specific that this code should be placed?RamonS wrote:There is another option. You can configure the web server to pull .htm and .html files through the PHP interpreter as well. You'll have a little bit of lower performance, but I think that for your case that is negligible. That way you can keep the file name as is and still embed PHP code.
All you'd need to do is add/edit this line in the httpd.conf:Code: Select all
AddType application/x-httpd-php .php .htm .html
Re: PHP Sessions and WebHelp
You could try setting the file name to default.php in the target and rebuilding and see if that helps. If it doesn't, then you can reset it to default.htm and follow up with RamonS's suggestion.Fiscal wrote:I was renaming it in the Windows Explorer. I am using Apache to do all of this testing wise.LTinker68 wrote:Renaming it manually using Windows Explorer, or you changed the file name in the target?Fiscal wrote:When i rename the default.htm file the webhelp no longer works.
Lisa
Eagles may soar, but weasels aren't sucked into jet engines.
Warning! Loose nut behind the keyboard.
-
- Senior Propellus Maximus
- Posts: 4293
- Joined: Thu Feb 02, 2006 9:29 am
- Location: The Electric City
Re: PHP Sessions and WebHelp
Within the config file you already should have a line that looks like this:Fiscal wrote:I am not really familiar with the setup file for servers. Is there anywhere specific that this code should be placed?RamonS wrote:There is another option. You can configure the web server to pull .htm and .html files through the PHP interpreter as well. You'll have a little bit of lower performance, but I think that for your case that is negligible. That way you can keep the file name as is and still embed PHP code.
All you'd need to do is add/edit this line in the httpd.conf:Code: Select all
AddType application/x-httpd-php .php .htm .html
Code: Select all
AddType application/x-httpd-php .php
New Book: Creating user-friendly Online Help
Paperback http://www.amazon.com/dp/1449952038/ or https://www.createspace.com/3416509
eBook http://www.amazon.com/dp/B005XB9E3U
Paperback http://www.amazon.com/dp/1449952038/ or https://www.createspace.com/3416509
eBook http://www.amazon.com/dp/B005XB9E3U
Re: PHP Sessions and WebHelp
I have looked and i'm not quiet sure where you are talking about that i can change the file name.LTinker68 wrote:You could try setting the file name to default.php in the target and rebuilding and see if that helps. If it doesn't, then you can reset it to default.htm and follow up with RamonS's suggestion.Fiscal wrote:
I was renaming it in the Windows Explorer. I am using Apache to do all of this testing wise.
If you are talking about : In the general tab, the label "Output File", (I have set this to "default.php", and after the project builds the file is still named "Default.htm")
Re: PHP Sessions and WebHelp
Hmmm, I thought you could override that, but I might be confusing it with another field in the target. That field is for changing the file extension of all the topic files, and that's probably not what you want. I suggest you look into RamonS's solution, then.
Lisa
Eagles may soar, but weasels aren't sucked into jet engines.
Warning! Loose nut behind the keyboard.