PhpDig.net

PhpDig.net (http://www.phpdig.net/forum/index.php)
-   How-to Forum (http://www.phpdig.net/forum/forumdisplay.php?f=33)
-   -   including file with php does not work... (http://www.phpdig.net/forum/showthread.php?t=1421)

Fking 10-05-2004 03:26 AM

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

vinyl-junkie 10-05-2004 05:34 PM

Includes only use relative path. They never start with http. Check the manual for more details on how to use an include. :)

Fking 10-06-2004 09:34 AM

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

vinyl-junkie 10-06-2004 06:20 PM

You might want to have a look at this thread, as it provides some guidance for creating a custom search page.

Hope it helps. :)

Fking 10-09-2004 10:37 AM

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.....

vinyl-junkie 10-09-2004 10:47 AM

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.