w3designstudios Posted March 10, 2007 Share Posted March 10, 2007 All of my lists are blank. See below. It shows that I have records in the text, but doesn't actually show them. I am using PHP5, and I've got php.ini files in both the installation directory as well as the admin folder. phpinfo shows that register_globals are on. Am I missing something? Any help would be great! Thanks. 0 Quote Link to comment Share on other sites More sharing options...
PPH Posted March 10, 2007 Share Posted March 10, 2007 might want to put your php.ini file in the rest of the folders. register globals needs to be enabled. We are using the same set up that you are and works great for us. If you look at your php.info you will see it is using your root php.ini. 0 Quote Link to comment Share on other sites More sharing options...
w3designstudios Posted March 10, 2007 Author Share Posted March 10, 2007 might want to put your php.ini file in the rest of the folders. register globals needs to be enabled. We are using the same set up that you are and works great for us. If you look at your php.info you will see it is using your root php.ini. See that's just it. In the Admin area when I click on the phpinfo link under utilities it shows the custom location of my Configuration File Path, in the Admin Folder. Did you place the custom script php.ini file in every single directory? That just seems like overkill for this, I mean if it works I'm all for it, I just wouldn't think you'd have to do that. Any advice is much appreciated. Thanks, Russ 0 Quote Link to comment Share on other sites More sharing options...
w3designstudios Posted March 10, 2007 Author Share Posted March 10, 2007 Oops, didn't look at the functionality of the script too closely. If I have php.ini files in multiple directories, would I have to modify that script to copy the revised php.ini file to each directory? 0 Quote Link to comment Share on other sites More sharing options...
PPH Posted March 10, 2007 Share Posted March 10, 2007 Yes The script in reference that creates a duplicate of the server php.ini file with the needed changes is <?php // Put all the php.ini parameters you want to change below. One per line. // Follow the example format $parm[] = "parameter = value"; $parm[] = "register_globals = Off"; $parm[] = "session.use_trans_sid = 0"; // full unix path - location of the default php.ini file at your host // you can determine the location of the default file using phpinfo() $defaultPath = '/usr/local/lib/php.ini'; // full unix path - location where you want your custom php.ini file $customPath = "/home/user/public_html/php.ini"; // nothing should change below this line. if (file_exists($defaultPath)) { $contents = file_get_contents($defaultPath); $contents .= "\n\n; USER MODIFIED PARAMETERS FOLLOW\n\n"; foreach ($parm as $value) $contents .= $value . " \n"; $handle = fopen($customPath, 'w'); if (fwrite($handle, $contents)) { fclose($handle); if (chmod($customPath,0600)) $message = "The php.ini file has been modified and copied"; else $message = "Processing error - php.ini chmod failed"; } else { $message = "Processing error - php.ini write failed"; } } else { $message = "Processing error - php.ini file not found"; } echo $message; ?> It can also be found at http://tips-scripts.com/?tip=php_ini#tip 0 Quote Link to comment Share on other sites More sharing options...
WHMCS CEO Matt Posted March 10, 2007 WHMCS CEO Share Posted March 10, 2007 The php.ini files only have to be in the main and admin folders. Matt 0 Quote Link to comment Share on other sites More sharing options...
w3designstudios Posted March 10, 2007 Author Share Posted March 10, 2007 Now not only is my backend messed up, but so is the front end. I have no clue what is going on here. Screenshot of the front end attached. In my title it is not pulling the company name that was entered in the Admin panel. It also isn't populating that information in the Admin panel. 0 Quote Link to comment Share on other sites More sharing options...
w3designstudios Posted March 11, 2007 Author Share Posted March 11, 2007 Turns out the tblconfiguration table in the DB got messed up somehow. I went in and updated that file in PHPMyAdmin and we were good to go. I then exported the DB and created a new install just to be on the safe side, imported the old DB field and we were fine. 0 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.