Re: More PHP Includes
| From: | Jochem Maas | Date: | Tue, 10 Mar 2009 23:55:09 +0000 |
| Subject: | Re: More PHP Includes | ||
| References: | 1 2 3 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-289809@lists.php.net to get a copy of this message | ||
Gary schreef:
> I'm sorry you were not able to understand the questions, but thank you for
> trying.
a few tips:
1. don't assume people know what 'projectseven PMM'
2. it's doubtful anyone worth their salt on this list uses or
knows much about a mind-bending, soul-destroyer like DreamWeaver.
3. try your hand at building a page by hand using a simple text editor
and copious ammounts of searching/reading about HTML structure ... doing
it this way will help you to understand what goes wrong and why, when
DW tries to 'help you'.
> The path to the include is not an absolute path.
then it is on the server, somewhere on your php include_path.
> "Jochem Maas" <jochem@iamjochem.com> wrote in message
> news:49B6B6D8.7050503@iamjochem.com...
>> Gary schreef:
>>> Thanks again for all the help.
>>>
>>> I created a simple page of all includes (header, menu, 3 columns). I
>>> mixed
>>> the file types up. The menu (projectseven PMM) I saved as a library item,
>>> works fine. Had an HTML file in there, but I am guessing that having 2
>>> page
>>> declarations along with an extra set of <head> and <body> tags was
>>> playing
>>> havoc with the code, so I removed them. Same thing when I created a php
>>> page
>>> and saved it as filename.inc.php, so I removed all the declarations and
>>> tags, again seems to work fine. Also included a simple .txt file.
>>>
>>> I did get some strange results in that all of the <tags> were highlighted
>>> after the menu, and I had to remove and insert again to correct.
>>>
>>> So is this the best way, to create a php page, remove all of the html
>>> tags
>>> and page declarations and name it filename.inc.php? (I'm using DW CS3)
>> I'm quite sure I don't understand any of that ... so I'd hazard a guess
>> and so "no it's not the best way"
>>
>>> Also, something I do not understand, I included a small txt file in a
>>> page
>>> of a customer and it shows fine, however this file is not on the
>>> server...is
>>> this normal?
>>>
>> it's probably pointing to a file on your machine, e.g.
>> file://C:/path/to/file.txt,
>> that's something you see quite often with DW/FrontPage/<insert
>> WYSIWYG-PITA-editor here>.
>>
>>>
>
>
>