Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

PHP Forum


You are currently viewing our PHP Forum as a guest. Please register to participate.
Login



Freelance Jobs

Reply
Old 03-02-2008, 11:50 PM Help With Error
cdunde1's Avatar
Skilled Talker

Posts: 68
Trades: 2
I installed php mydirectory and everything installed fine, got no errors but when I try and navigate to my directory I get this error

Fatal error: require() [function.require]: Failed opening required '/directory/PMD-11-04-00/defaults_setup.php' (include_path='.;C:\php5\pear') in d:\websites\bestoffloridaonlinecom\directory\PMD-11-04-00\defaults.php on line 82

Any help on how to solve this would be great.
cdunde1 is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 03-03-2008, 01:23 AM Re: Help With Error
solomongaby's Avatar
Webmaster Talker

Latest Blog Post:
How Do You Find Music Online ?
Posts: 522
Name: Gabe Solomon
Location: Romania
Trades: 1
you wrote a wrogn path to include a file in d:\websites\bestoffloridaonlinecom\directory\PMD-11-04-00\defaults.php on line 82

please post a few lines around that to help you
__________________
If you like my posts ... TK is appreciated:)

Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE
solomongaby is offline
Reply With Quote
View Public Profile Visit solomongaby's homepage!
 
Old 03-03-2008, 01:27 AM Re: Help With Error
mtishetsky's Avatar
King Spam Talker

Posts: 1,226
Name: Mike
Location: Mataro, Spain
Trades: 0
What part of this don't you understand? Your script cannot open the file /directory/PMD-11-04-00/defaults_setup.php which will be translated according to your windows as d:\directory\PMD-11-04-00\defaults_setup.php which is obviously not present in the system because it is d:\websites\bestoffloridaonlinecom\directory\PMD-11-04-00\defaults_setup.php

Show the code.
__________________

Please login or register to view this content. Registration is FREE
-
Please login or register to view this content. Registration is FREE
-
Please login or register to view this content. Registration is FREE

And don't forget to give me talkupation!
mtishetsky is offline
Reply With Quote
View Public Profile Visit mtishetsky's homepage!
 
Old 03-03-2008, 04:22 PM Re: Help With Error
cdunde1's Avatar
Skilled Talker

Posts: 68
Trades: 2
This is the page that is showing as having the error listed above

<?php
/* ************************************************** *******************
*
* This script is owned and copyrighted by phpMyDirectory.com. Your
* license confers no title or ownership in the Software and is
* not a sale of any rights to the Software.
*
************************************************** *********************/
/* License key - Is obtained from the user license area */
$license='******';
/* Installation Directory Name */
$install_folder_name = '/directory/PMD-11-04-00';
/* Administrator area folder name. Default: cp */
$ADMIN_DIRECTORY = 'cp';
/************************************************** *****************
* Root Path (absolute path to script) - NO TRAILING SLASH
* This is the full server path to the phpMyDirectory install directory.
* Example: /home/username/public_html/phpmydirectory
************************************************** *****************/
// AUTOMATIC Documents path setting. DO NOT CHANGE unless errors experienced.
// If errors are recevied use manual setting below.
$PMDROOT = $_SERVER['DOCUMENT_ROOT'] . '/' . "$install_folder_name";
// MANUAL Path Setting
// Comment out the $PMDROOT line above. Then un-comment our the line below.
// $PMDROOT = "/home/username/public_html/$install_folder_name";
/************************************************** *****************
* URL Path - NO TRAILING SLASH
* This is the full URL web path to phpMyDirectory
* Example: http://www.domain.com
************************************************** *****************/
$BASE_URL='http://www.******.com';
/************************************************** *****************
* Database Settings
************************************************** ******************/
$DB['HOST'] = '******';
$DB['USER'] = '******';
$DB['PASS'] = '******';
$DB['NAME'] = '******';
/* Table names - only change if you know what you are doing */
$DB['TABLE_PREFIX'] = 'pmd';
$db_users = 'pmd_users';
$db_listings = 'pmd_listings';
$db_offers = 'pmd_offers';
$db_images = 'pmd_images';
$db_documents = 'pmd_documents';
$db_rating = 'pmd_rating';
$db_banners = 'pmd_banners';
$db_banner_types = 'pmd_banner_types';
$db_reviews = 'pmd_reviews';
$db_category = 'pmd_category';
$db_locations = 'pmd_locations';
$db_listcat = 'pmd_listing2category';
$db_plugins = 'pmd_plugins';
$db_admin = 'pmd_admin';
$db_log = 'pmd_log';
$db_config_main = 'pmd_config_main';
$db_config_memberships = 'pmd_config_memberships';
$db_config_variable_options = 'pmd_config_variable_options';
$db_email_templates = 'pmd_email_templates';
$db_admin_permissions = 'pmd_admin_permissions';
$db_invoices = 'pmd_invoices';
$db_modules = 'pmd_modules';
$db_module_code = 'pmd_module_code';
$db_banned = 'pmd_banned';
$db_fields = 'pmd_fields';
$db_processors = 'pmd_processors';
$db_cron = 'pmd_cron';
$db_sessions = 'pmd_sessions';
$db_cron_log = 'pmd_cron_log';
require ($PMDROOT . '/defaults_setup.php');
?>

Last edited by mgraphic; 03-05-2008 at 12:50 AM.. Reason: removed sensitive data
cdunde1 is offline
Reply With Quote
View Public Profile
 
Old 03-04-2008, 01:06 AM Re: Help With Error
mtishetsky's Avatar
King Spam Talker

Posts: 1,226
Name: Mike
Location: Mataro, Spain
Trades: 0
I guess that your webserver does not pass the DOCUMENT_ROOT variable to your php or you are running your script from command line, so you have to set the $PMDROOT manually as it is told in comments around that line.
__________________

Please login or register to view this content. Registration is FREE
-
Please login or register to view this content. Registration is FREE
-
Please login or register to view this content. Registration is FREE

And don't forget to give me talkupation!
mtishetsky is offline
Reply With Quote
View Public Profile Visit mtishetsky's homepage!
 
Old 03-04-2008, 02:09 AM Re: Help With Error
NullPointer's Avatar
Will Code for Food

Posts: 2,815
Name: Matt
Location: Irvine, CA
Trades: 0
I think you should bew a bit more careful when posting your code. Your database username, password and a list of your tables are on display here. Also, you should use the PHP tags for you code to make it more readible.
__________________

Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE
NullPointer is online now
Reply With Quote
View Public Profile Visit NullPointer's homepage!
 
Old 03-04-2008, 07:20 AM Re: Help With Error
mtishetsky's Avatar
King Spam Talker

Posts: 1,226
Name: Mike
Location: Mataro, Spain
Trades: 0
Cool, I successfully connected to your DB. It took me great effort to resist the temptation to drop all your data kekeke lol.
__________________

Please login or register to view this content. Registration is FREE
-
Please login or register to view this content. Registration is FREE
-
Please login or register to view this content. Registration is FREE

And don't forget to give me talkupation!
mtishetsky is offline
Reply With Quote
View Public Profile Visit mtishetsky's homepage!
 
Reply     « Reply to Help With Error
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

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

BB 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.22628 seconds with 12 queries