Web Wiz - Green Windows Web Hosting

  New Posts New Posts RSS Feed - PHP Error Query
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Topic ClosedPHP Error Query

 Post Reply Post Reply
Author
MortiOli View Drop Down
Senior Member
Senior Member
Avatar

Joined: 26 May 2002
Location: United Kingdom
Status: Offline
Points: 514
Direct Link To This Post Topic: PHP Error Query
    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;
 
Welcome to GetInvisionFree.com (Free message board hosting)


Edited by MortiOli - 03 April 2007 at 1:22pm
Back to Top
Iluvalar View Drop Down
Newbie
Newbie
Avatar

Joined: 21 August 2007
Location: Canada
Status: Offline
Points: 11
Direct Link To This Post 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 ...


Edited by Iluvalar - 29 August 2007 at 3:50pm
Back to Top
 Post Reply Post Reply

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.08
Copyright ©2001-2026 Web Wiz Ltd.


Become a Fan on Facebook Follow us on X Connect with us on LinkedIn Web Wiz Blogs
About Web Wiz | Contact Web Wiz | Terms & Conditions | Cookies | Privacy Notice

Web Wiz is the trading name of Web Wiz Ltd. Company registration No. 05977755. Registered in England and Wales.
Registered office: Web Wiz Ltd, Unit 18, The Glenmore Centre, Fancy Road, Poole, Dorset, BH12 4FB, UK.

Prices exclude VAT at 20% unless otherwise stated. VAT No. GB988999105 - $, € prices shown as a guideline only.

Copyright ©2001-2026 Web Wiz Ltd. All rights reserved.