PhpDig.net

Go Back   PhpDig.net > PhpDig Forums > How-to Forum

Reply
 
Thread Tools
Old 10-05-2004, 04:26 AM   #1
Fking
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
Fking is offline   Reply With Quote
Old 10-05-2004, 06:34 PM   #2
vinyl-junkie
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.
vinyl-junkie is offline   Reply With Quote
Old 10-06-2004, 10:34 AM   #3
Fking
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
Fking is offline   Reply With Quote
Old 10-06-2004, 07:20 PM   #4
vinyl-junkie
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.
vinyl-junkie is offline   Reply With Quote
Old 10-09-2004, 11:37 AM   #5
Fking
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.....
Fking is offline   Reply With Quote
Old 10-09-2004, 11:47 AM   #6
vinyl-junkie
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.
vinyl-junkie is offline   Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Help including search.php dhoyos Troubleshooting 2 02-02-2007 01:53 PM
Including extra files (like ssi) does not work mikmedia How-to Forum 1 06-29-2006 06:35 AM
Unable to create the content file (it did work) rafarspd Troubleshooting 15 02-11-2005 07:18 AM
Install phpdig in a file named phpdig doesn't work Sansnom Script Installation 1 05-09-2004 04:13 PM
Newbie : How to include PHP file (.php) frostbyte How-to Forum 1 01-04-2004 12:42 PM


All times are GMT -8. The time now is 01:41 AM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright © 2001 - 2005, ThinkDing LLC. All Rights Reserved.