![]() |
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 |
Includes only use relative path. They never start with http. Check the manual for more details on how to use an include. :)
|
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 |
You might want to have a look at this thread, as it provides some guidance for creating a custom search page.
Hope it helps. :) |
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..... |
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. :)
|
All times are GMT -8. The time now is 04:52 AM. |
Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright © 2001 - 2005, ThinkDing LLC. All Rights Reserved.