Hej!
Försöker köra include nedanstående fil döpt index.php
Koden som ska hämta filen ligger i index.asp som finns i en annan mapp:
<!--#include virtual="stad/index.php" -->
Sidan öppnas, dock helt fel. Det enda som syns är följande text:
'Additional', // {txt_additional} 'txt_more' => 'More' // {txt_more} ); /***************************************************** ** Do not edit below. *****************************************************/ define('SCRIPT_ROOT', './'); include SCRIPT_ROOT . 'inc/gallery.inc.php'; ?>
<?php
/**
* Gallery Script - index.php
*
* @author Ralf Stadtaus
* @link http://www.stadtaus.com/ Homepage
* @link http://www.stadtaus.com/forum/ Support/Contact
* @copyright Copyright © 2005, Ralf Stadtauss
*/
/* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY
* OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT
* LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
* FITNESS FOR A PARTICULAR PURPOSE AND
* NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
* COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES
* OR OTHER LIABILITY, WHETHER IN AN ACTION OF
* CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF
* OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
* OTHER DEALINGS IN THE SOFTWARE.
*/
/*****************************************************
** Settings - Einstellungen
*****************************************************/
$image_path = "images";
$image_url = "images";
$picture_count = "3";
$pictures_per_page = "10";
$order = "ascending";
$language = "sv"; // en, de, es, fr, nl, da, sv
$global_template = "templates/index.html";
$cell_template = "templates/table.html";
$large_image_page = "window.php";
$path['log'] = "./log";
$logging_file = "";
$statistic_file = "";
/*****************************************************
** Add here further words, text, variables and stuff
** that you want to appear in the template.
*****************************************************/
$add_text = array(
'txt_additional' => 'Additional', // {txt_additional}
'txt_more' => 'More' // {txt_more}
);
/*****************************************************
** Do not edit below.
*****************************************************/
define('SCRIPT_ROOT', './');
include SCRIPT_ROOT . 'inc/gallery.inc.php';
?>