WebsiteBaker Community Forum

WebsiteBaker Support (2.8.x) => Templates, Menus & Design => Topic started by: xia on March 25, 2008, 01:32:58 PM

Title: include problem
Post by: xia on March 25, 2008, 01:32:58 PM
I have a script write in php. I want tu include this script in template. I use this command:
Code: [Select]
<?php include("http://doamin.com/templates/ariscss/rezerva.php");?> This script work alone. See that here: attach "form.jpg"
If include this script in page I have this error: "effect.jpg"
How can resolv this problem?

[gelöscht durch Administrator]
Title: Re: include problem
Post by: thorn on March 25, 2008, 02:56:26 PM
Hello,

Quote
URL file-access is disabled in server configuration
You are not allowed to use a URL in an include()-statement.

If templates/ariscss/rezerva.php is local, try this one:
Code: [Select]
<?php include(WB_PATH."/templates/ariscss/rezerva.php");?>

thorn.
Title: Re: include problem
Post by: xia on March 25, 2008, 04:06:57 PM
Work.
Thanks! :mrgreen: