Reputation: 1
I'm stuck on migrating old website to new server and the problem is on "include" or "require". Website is on h:\www and doc_root and include_path in php.ini are set to h:\www.
If I include a file in subdirectory of h:\www, php say "Failed Opening".
Example:
include("/Include/ciao.txt"); doesn't work
include("Include/ciao.txt"); Work
I've a lot of inclusion in my documents, can't simply rename them all.
I made several echo testing all this and I see a strange behavior....
ini_get('include_path') -> H:\WWW
getcwd() -> H:\WWW
realpath("/") -> H:\
I think the problem is here, on the last echo but I can't figure how make this work.
If I echo realpath("/") on my old server it always report document root.
Any help would be appreciated, thank
Upvotes: 0
Views: 122