Print Page | Close Window

PHP Error Query

Printed From: Web Wiz Forums
Category: General Discussion
Forum Name: Web Design Discussion
Forum Description: Discussion on web design and development subjects.
URL: https://forums.webwiz.net/forum_posts.asp?TID=23049
Printed Date: 29 March 2026 at 9:20am
Software Version: Web Wiz Forums 12.08 - https://www.webwizforums.com


Topic: PHP Error Query
Posted By: MortiOli
Subject: PHP Error Query
Date Posted: 03 April 2007 at 1:19pm

I'm trying to run a multi forum script I downloaded, but coming across the below error when running it;

Warning: main(../sources/host/functions/skin_functions.php): failed to open stream: No such file or directory in /hsphere/local/home/domain/domainurl.co.uk/index.php on line 61
 
Fatal error: main(): Failed opening required '../sources/host/functions/skin_functions.php' (include_path='.:/usr/local/lib/php') in /hsphere/local/home/domain/domainurl.co.uk/index.php on line 61
 
I've tried to edit part of the config file that reads;
 
// Root path
if(isset($USER['name'])){
 define( 'ROOT_PATH', "../" );
}else{
 define( 'ROOT_PATH', "./" );
}

 
However, I've only managed to get it to load, but come back with a scripted message (ie, written into the code), saying the config files cannot be found.
 
I don't know PHP at all, so would someone be able to shed any light on this please?  I think it may have to do with permissions, or the root directory I'm choosing is incorrect, but I don't know where to start.
 
The script is located at;
 
http://www.getinvisionfree.com/more_info.php - Welcome to GetInvisionFree.com (Free message board hosting)



Replies:
Posted By: Iluvalar
Date Posted: 29 August 2007 at 3:49pm
Hi MortiOli ,
 I read your message many time , but it's look like something is missing for me to answer clearly ...
Your directories look quite complicated .
I would not mess at all with that ROOT_PATH ...

What i suggest is to create a info.php file ( or config.php whatever )
put this file a the same place then your index.php
you will be able to : include("info.php"); just like that ...

let's say this info.php will have something like :
$sys[server][func][dir]="/var/www/php/functions/";
$sys[server][images][url]="...";

then you can include your skin functions :

include("info.php");
include($sys[server][func][dir] . "skin_functions.php");


putting all this kind of stuff in the same $sys array will permit you to put it in global in some of your functions more easily ...

this i just my humble suggestion ..
I may be too late but ...



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.08 - https://www.webwizforums.com
Copyright ©2001-2026 Web Wiz Ltd. - https://www.webwiz.net