![]() |
Having problems with #include file="..."
it works only from the same directory - like if i put ads.html in www.site.com/dir1/
but i want it to work from root - like put ads.html in www.site.com/ any ideas why it wont work from root ? |
It would help to know what language you are trying to use this with...
:2 cents: |
SSI includes right?
Can you type out exactly how you're coding it, and where the files are respectively to each other |
Quote:
It works like this: <1--#include file="ads.html" --> But doesnt work like this: <1--#include file="../dir/ads.html" --> or like this: <1--#include file="www.site.com/dir/ads.html" --> |
Quote:
|
use include virtual instead of include file
|
Quote:
ie, <!--#include virtual="../ads.html" --> |
thanks guys, it worked :thumbsup
|
Quote:
|
All times are GMT -7. The time now is 07:03 PM. |
Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
©2000-, AI Media Network Inc123