Jump to content

russia5

Members
  • Content count

    94
  • Joined

  • Last visited

Community Reputation

0 Neutral

About russia5

  • Rank
    Regular Member

Profile Information

  • Gender
    Not Telling
  1. russia5

    connection to pear lib problem

    I figured the problem. This is an alternative domain i.e.) public_html/atc-roofing.com/xxx I did not have acc-roofing.com folder included into the path. I did put in acc-roofing/ into it but I still got the error so I took it out. After lots and lots of studying it, and with your help in telling me that there was absolutly something wrong with the path, then I caught it. I owe you a lot of gratitude. Thans so much!!! Greg
  2. russia5

    connection to pear lib problem

    require_once('/home1/nuclearp/public_html/libs/pear/DB.php');I This Is Your Absolute Path: /home1/nuclearp/public_html/atc-roofing.com Warning: require_once(/home1/nuclearp/public_html/libs/pear/DB.php): failed to open stream: No such file or directory in /home1/nuclearp/public_html/atc-roofing.com/includes/ru_connection.php on line 6 Fatal error: require_once(): Failed opening required '/home1/nuclearp/public_html/libs/pear/DB.php' (include_path='.:/opt/php54/lib/php') in /home1/nuclearp/public_html/atc-roofing.com/includes/ru_connection.phpon line 6
  3. russia5

    connection to pear lib problem

    I added the DB.php and I took the : out of the code, as you suggested, and I got the following output: This Is Your Absolute Path: /home1/nuclearp/public_html/atc-roofing.com Warning: require_once(DB.php): failed to open stream: No such file or directory in /home1/nuclearp/public_html/atc-roofing.com/includes/ru_connection.php on line 4 Fatal error: require_once(): Failed opening required 'DB.php' (include_path='.:/opt/php54/lib/php:/home1/nuclearp/public_html/libs/pear/DB.php') in /home1/nuclearp/public_html/atc-roofing.com/includes/ru_connection.php on line 4
  4. I can not find why my pear directory is failing. DB.php which is in the pear directory does not open. I have pasted code to show the path of the server to the secondary website(see the red below for the code and the output). The path that I can see is: /home1/nuclearp/public_html/libs/pear/DB.php Thanks to anyone who can see why I am getting my error. This is the index.php //this script reads the path and is listed in the output below: <?php $path = getcwd(); echo "This Is Your Absolute Path: "; echo $path; ?> <?php require_once("includes/ru_config.php"); require_once("includes/ru_connection.php"); require_once("includes/ru_data.php"); require_once("includes/ru_utils.php"); require_once("libs/ru_multi_smarty.php"); $smarty->display("index.tpl"); ?>This is ru_config.php <?php //require_once(dirname(__FILE__) . 'ru_4pear.php'); ini_set("include_path", ini_get("include_path") . ":/home1/nuclearp/public_html/libs/pear/"); require_once('DB.php'); This is the output from www.atc-roofing.com (the index.php result)
  5. I am setting up Smarty for the first time. (I have the parent site www.xyz.com and within that site's folders, I have a daughter site www.atc-roofing.com The folder list is: public_html/atc-roofing/ public_html/xyz folders and index.php Under the folder public_html/ atc-roofing/ reside the folling folders: smarty/libs/(smarty folders and files atc-roofing/cashe/ atc-roofing/templates/ atc-roofing/templates_c/ acc-roofing/config/ The public_html/atc-roofing/ index.php file reads: <?PHP // put full path to Smarty.class.php require_once ('smarty/libs/Smarty.class.php')> $smarty = new Smarty; $smarty->caching = true; $smarty->cache_lifetime = 120; $smarty->template_dir = './templates'; $smarty->compile_dir = './templates_c'; $smarty->assign('name', 'Ned'); $smarty->display('index.tpl'); ?> The error I am getting is: Fatal error: Class 'Smarty' not found in /home1/nuclearp/public_html/atc-roofing.com/index.php on line 6 Can anyone see what I am doing wrong with my path to the Smarty.Class.php
  6. I have been tasked to find the problem with this site's database connection. The site is a PHP, MySQL, Smarty site. Currently, I am getting the following when www.mysite.com is called. The index.php is located at www.mysite.com/index.php The current locations of the following files are: includes/ru_config.com includes/ru_connection.com All the replaced passwords, usernames, and site specific information worked previously so the problem is not there. One problem there might be, is in ru_connection where the paths for ru_4pear and DB.php might be wrong. There locations are: includes/ru_4pear.com libs/pear/DB.php ru_config.php index.php ru_connection.php DB.php ru_4pear.php
×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.