![]() |
|
![]() |
#1 |
Green Mole
Join Date: Sep 2004
Posts: 22
|
including file with php does not work...
i created a custom template, the file name is design.php
inside i have included a header with this line <?@include "http://mydomain.com/header.php"?> but it does not appear...i guess it's something with the way phpdig treats the template file |
![]() |
![]() |
![]() |
#2 |
Purple Mole
Join Date: Jan 2004
Posts: 694
|
Includes only use relative path. They never start with http. Check the manual for more details on how to use an include.
![]() |
![]() |
![]() |
![]() |
#3 |
Green Mole
Join Date: Sep 2004
Posts: 22
|
including with absolute path, also works, just in the newer versions it gives error, but that's why i use the @, to not show the error
i'm using it the same way in other sites, and it works..... i will try with the relative path, but i believe that the problem is somewhere else |
![]() |
![]() |
![]() |
#4 |
Purple Mole
Join Date: Jan 2004
Posts: 694
|
You might want to have a look at this thread, as it provides some guidance for creating a custom search page.
Hope it helps. ![]() |
![]() |
![]() |
![]() |
#5 |
Green Mole
Join Date: Sep 2004
Posts: 22
|
can you just tell me, how to make the script to parse the <? include ("../header.php");?> line in the template file, as code, not as text...
when i load the page, and view the source, i see this line just as plain text....it's not parsed..... |
![]() |
![]() |
![]() |
#6 |
Purple Mole
Join Date: Jan 2004
Posts: 694
|
Have a look at this thread. It should answer all you questions. If it doesn't, feel free to ask. We'll be glad to help.
![]() |
![]() |
![]() |
![]() |
|
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Help including search.php | dhoyos | Troubleshooting | 2 | 02-02-2007 12:53 PM |
Including extra files (like ssi) does not work | mikmedia | How-to Forum | 1 | 06-29-2006 05:35 AM |
Unable to create the content file (it did work) | rafarspd | Troubleshooting | 15 | 02-11-2005 06:18 AM |
Install phpdig in a file named phpdig doesn't work | Sansnom | Script Installation | 1 | 05-09-2004 03:13 PM |
Newbie : How to include PHP file (.php) | frostbyte | How-to Forum | 1 | 01-04-2004 11:42 AM |