Hi,
I had a website on Streamlinenet and now have moved to a new host using a VPS.
after copying all of files accross via ftp, the files that use the include command dont seem to be working. When i do a php include the file that was meant to be included just gets ignored.
PHP include
Moderator: General Moderators
well, I don't know about include files of another server I think that's impossible, but you can find the php.ini with the shell, try to type this command in the shell:
find / -name php.ini
or
updatedb
locate php.ini
With you're using a VPS with Windows, I don't know how to find the file with ms-dos..
find / -name php.ini
or
updatedb
locate php.ini
With you're using a VPS with Windows, I don't know how to find the file with ms-dos..
- RobertGonzalez
- Site Administrator
- Posts: 14293
- Joined: Tue Sep 09, 2003 6:04 pm
- Location: Fremont, CA, USA
php has a include_path setting... Probably it's different on your localhost and the one of your provider...
Code: Select all
<?php
ini_set('error_reporting', E_ALL);
ini_set('display_errors', TRUE);
require('myfile.php');
echo 'your include_path setting is: ' . ini_get('include_path');
?>Hi,
Thanks,
it worked, i had to change everything from
include("http://www.bigtreeproject.com/directory/header.php")
to
include("./directory/header.php");
It is quite annoying as ill have to change it in every file, but thanks every1!!
Chris.
Thanks,
it worked, i had to change everything from
include("http://www.bigtreeproject.com/directory/header.php")
to
include("./directory/header.php");
It is quite annoying as ill have to change it in every file, but thanks every1!!
Chris.