Sorry Darron but Safe Mode is already off:
;
; Safe Mode
;
safe_mode = Off
Tim
Main Topics
Browse All TopicsI have a virtual host setup on my local WAMP server. It's a pretty vanilla installation other than the listen port is 8080. I access the vhost by local.mydomain.com:8080. The vhost is a copy of a live web site and it contains many include ('dir/file.php') statements. However none of the includes resolve.
I would greatly appreciate any insight and recommendations!!
Regards,
Tim
This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.
Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.
If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.
Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.
Access the answers to your technology questions today.
30-day free trial. Register in 60 seconds.
Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Try it out and discover for yourself.
30-day free trial. Register in 60 seconds.
Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.
I'm unsure of the issue then... I know I've ran into issues before with absolute references of include files... where on the live side the include was c:/inetpub/www/file.php and on the test side i had to change all of the references to c:/wamp/www/file.php ... but it sounds like you're using relative includes, and that wouldn't apply here... sorry i'm not much more help
Darron,
Here's an example of how the includes are used. Yes, they are relative references.
File a.php contains this
<? include ("includes/header.php"); ?> which contains
<?
session_start();
//include ("connect.php");
//include ("login-check.php");
//include("/../FCKeditor/f
include ("includes/connect.php");
include ("includes/login-check.php
include ("FCKeditor/fckeditor.php"
?>
<html>
<head>
<title>:: Website Control Panel ::</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<!--Fireworks MX 2004 Dreamweaver MX 2004 target. Created Mon Sep 11 14:20:00 GMT-0700 (Pacific Standard Time) 2006-->
...
Thanks for the tip. I changed everything to relative root and I now get -
Warning: include(/admin/includes/he
Warning: include() [function.include]: Failed opening '/admin/includes/header.ph
The directory structure is /admin/includes/...
The files are located:
/admin/logged.php
/admin/includes/header.php
/admin/includes/connect.ph
/admin/includes/login-chec
/admin/FCKeditor/fckeditor
logged.php contains:
<?php include ("/admin/includes/header.p
header.php contains:
<?
session_start();
include ("/admin/includes/connect.
include ("/admin/includes/login-ch
include ("/admin/FCKeditor/fckedit
?>
include file locations are based on the filesystem, not the root of the site... so, when you include /admin/logged.php php is actually looking at /admin on your file system ... you need to do this
include ("c:/wamp/www/admin/includ
it would behoove you to make a variable that you can change
$site_root="c:/wamp/www";
include ("$site_root/admin/include
Business Accounts
Answer for Membership
by: darron_chapmanPosted on 2008-03-05 at 20:11:48ID: 21057261
Sounds like Safe Mode is turned on in your php.ini file... go in to php.ini, find safe_mode and turn it off