Reply
Problem installing phpld , need help on PHP
Old 05-23-2007, 03:31 AM Problem installing phpld , need help on PHP
dartdesign's Avatar
Experienced Talker

Posts: 39
Name: Kaloyan Banev
Hello,

I just uploaded phpld 2 on a subdomain - domain.com/link_exchange/ . When i try to access install.php i receive this

"fatal error
: main() [function.require]: Failed opening required 'include/tables.php' (include_path='.::/var/www/vhosts/domain.com/httpdocs/link_exchange/') in /var/www/vhosts/domain.com/httpdocs/link_exchange/include/config.php on line 50"

How can i fix it ?

King Regards...
dartdesign is offline
Reply With Quote
View Public Profile
 
When You Register, These Ads Go Away!
Old 05-23-2007, 03:41 AM Re: Problem installing phpld , need help on PHP
tripy's Avatar
Fetchez la vache!

Posts: 2,055
Name: Thierry
Location: In the void
Without source code, I cannot say for sure, but you probalvy are doing a require() giving a relative location.
And as you are not in the root folder anymore, this location is now incorrect.

I'd suggest you to use an absolute location, like this:
PHP Code:
require($_SERVER['DOCUMENT_ROOT']."/include/tables.php"); 
the $_SERVER['DOCUMENT_ROOT'] translate to the file system path to your web site root directory.
In your case, /var/www/vhosts/domain.com/httpdocs
__________________
Listen to the ducky: "This is awesome!!!"

tripy is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to Problem installing phpld , need help on PHP
 

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off




   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML

 


Page generated in 0.12201 seconds with 12 queries