Gossamer Forum
Home : Products : Gossamer Links : Version 1.x :

how to includes header.txt from other folder

Quote Reply
how to includes header.txt from other folder
i need to use <%header.txt%> at search.cgi file,
my header.txt is call from
/home/httpd/html/search/header.txt

but i put <%/home/httpd/html/search/header.txt%>,
the error messages is :
Can't find file: /home/httpd/cgi-bin/search/admin/templates//home/httpd/html/search/header.txt

so,how to includes header.txt from other folder

i don't want put header at
/home/httpd/cgi-bin/tmnet/admin/templates/header.txt

Thanks .



Quote Reply
Re: how to includes header.txt from other folder In reply to
you'll need to use relative paths, probably.


/home/httpd/cgi-bin/search/admin/templates/

/home/httpd/html/search/header.txt


you'd want to go to ../../../../html/search/header.txt

The program is adding the template path the file name,and you need to either override that in the code,or back up out of the directory and go back down.

PUGDOGŪ
PUGDOGŪ Enterprises, Inc.
FAQ: http://LinkSQL.com/FAQ