| | |||||
| ||||||||
| Programming PHP, Perl, Ruby on Rails, AJAX, HTML, XHTML, CSS, JavaScript, MySQL and any other coding topics. |
![]() |
| | LinkBack | Thread Tools |
| | #2 (permalink) |
| NamePros Regular Join Date: May 2008 Location: England
Posts: 771
![]() ![]() ![]() ![]() ![]() ![]() | Often means you're connecting with the wrong username+password. check they are 100% correct for the database you are connecting to.
__________________ pixelhero Web Development Studios UK |
| | |
| | THREAD STARTER #5 (permalink) |
| Senior Member Join Date: Jun 2008
Posts: 1,029
![]() ![]() ![]() ![]() | Yes its a directory. I think. I don't know why I also have many .htaccess in there. .... Let me try to make the changes to the config. if it will work. The config file is in connections and connections_server. Are those the right folders? I have like 10 .htaccessfiles around too...don't know why they are all there. How would I open the .htaccess ? and would site work if I delete them all? |
| | |
| | #6 (permalink) | ||||
| goof free! Join Date: Mar 2006 Location: Canada
Posts: 9,364
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() |
as far as I know. If I were you, I'd be trying to deal with that first...are they all in one file? | ||||
| | |
| | #7 (permalink) |
| NamePros Regular Join Date: May 2008 Location: England
Posts: 771
![]() ![]() ![]() ![]() ![]() ![]() | what is on line 40 of paging_class.php? How are you connecting to the database?
__________________ pixelhero Web Development Studios UK |
| | |
| | #8 (permalink) |
| goof free! Join Date: Mar 2006 Location: Canada
Posts: 9,364
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() | For the config file, public_html > include > config.php for the mysql stuff - should look something like this? define('LANGUAGE', 'en'); define('DB_DRIVER', 'mysql'); define('DB_HOST', 'localhost'); define('DB_NAME', 'dbname_dbname'); define('DB_USER', 'dbname_username'); define('DB_PASSWORD', 'password'); |
| | |
| | THREAD STARTER #9 (permalink) |
| Senior Member Join Date: Jun 2008
Posts: 1,029
![]() ![]() ![]() ![]() | Thanks for the responses. Yes I have like 10 .htaccess files. But they are in different folders (don't know why) and some of them are a bit different. But since I haven't touch them, I am not going to. ????: NamePros.com http://www.namepros.com/showthread.php?t=647396 Thanks for the advice everyone. Yes the config files are fixed and updated with new password and usernames. The problem was the new host, changed the database name, changed the user name, changed the password and I have a few directories for a few config files. Basically the config files were the same thing, just like Mod Mis_chiff mentioned. I went in there, and changed everyone of them. So problem solve. But I have another one, before I went to the new host, my old host (or programmer) deleted my old database, so I did not make a backup of the few updated files, but still have them I believe. So I am going back to the old host(still have an account) and trying to download a few files to test which ones are updated. Thanks everyone! |
| | |
| | #10 (permalink) | ||||
| goof free! Join Date: Mar 2006 Location: Canada
Posts: 9,364
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() |
| ||||
| | |
| | THREAD STARTER #15 (permalink) |
| Senior Member Join Date: Jun 2008
Posts: 1,029
![]() ![]() ![]() ![]() | You're so right! ????: NamePros.com http://www.namepros.com/showthread.php?t=647396 I got another one! Warning: mkdir() [function.mkdir]: Permission denied in /usr/home/allfoodm/domains....file.php in line 18 What does a warning mean? Why is permission to write denied? Does it have to do with that file.php in line 18? This is what line 18 is How can I fix it? $dir = realpath("../uploadedfiles"); if (is_dir($dir)) { srand(make_seed()); $id = md5(time().rand()); $dir .= DIRECTORY_SEPARATOR.$id.DIRECTORY_SEPARATOR; // $dir .= DIRECTORY_SEPARATOR.$id; Line 18 here>>>>if (!is_dir($dir) && mkdir($dir)) chmod($dir,0777); if (is_dir($dir)) { $filename = $dir.basename($filename); if ($filename && ((file_exists($filename) && unlink($filename)) || !file_exists($filename))) { move_uploaded_file($_FILES['filename'.$i]['tmp_name'],($filename)) ; $uploaded = true; |
| | |
| | THREAD STARTER #17 (permalink) |
| Senior Member Join Date: Jun 2008
Posts: 1,029
![]() ![]() ![]() ![]() | Thanks (I got the answer from Digitalpoint) Problem solved! AGAIN! It was the permission thing. The line said permission set to 0777 while the file permission was set to like 775 or something, so I had to rewrite it to 777. Thanks Mis_chiff |
| | |
![]() |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| |