Shadow64456 Posted April 8, 2008 Posted April 8, 2008 ive got a bit of a problem i am using mccodes v2 and ive done everything i think i should hae but i keep getting an error message saying Fatal error: require() [function.require]: Failed opening required 'class/class_db_mysql.php' (include_path='.:/usr/share/php') in /www/10gbfreehost.com/s/h/a/shadow64456/htdocs/login.php on line 6 and for the life of me i can figure out whats wrong with it please help someone i am completely lost on this one Quote
Spudinski Posted April 8, 2008 Posted April 8, 2008 Re: class mysql error in v2 Does the file class_db_mysql.php exist in the class folder? If not - just upload that(class) dir again. Quote
Shadow64456 Posted April 8, 2008 Author Posted April 8, 2008 Re: class mysql error in v2 yea its in a folder called class and in that folder there is class_db_mysql.php and also there one called class_db_mysqli.php Quote
Shadow64456 Posted April 8, 2008 Author Posted April 8, 2008 Re: class mysql error in v2 the error message gives me the impression i have to rewrite the code but i dont know how what the code should be Quote
Spudinski Posted April 8, 2008 Posted April 8, 2008 Re: class mysql error in v2 Check what the permissions is on the file, make sure it is executable, as well as readable. To do this - in cpanel - click on the file, and look on the menu for permissions. Quote
Shadow64456 Posted April 8, 2008 Author Posted April 8, 2008 Re: class mysql error in v2 how do i do that im not very good at finding stuff :-P but i also dont know weather those to files should just be uplaoded onto my host or weather they should be uplaoded onto phpmyadmin into my database? Quote
Shadow64456 Posted April 8, 2008 Author Posted April 8, 2008 Re: class mysql error in v2 oh i found the permisions it has u[ rwx ] g[ rwx ] and theres a tick box next to every r w and x all the boxes are ticked but still the problem hapens Quote
Spudinski Posted April 8, 2008 Posted April 8, 2008 Re: class mysql error in v2 After going to your website - http://shadow64456.10gbfreehost.com - I cannot find the file class_db_mysql.php. Please re-upload the whole website, or just upload the class directory(with the file class_db_mysql.php). Edit You can use FTP to upload the files, or use your control panel, There should be an uplaod feature. Quote
Shadow64456 Posted April 8, 2008 Author Posted April 8, 2008 Re: class mysql error in v2 ive tried that and still the same problem occors how do i post the code i currently have for it then someone might be able to see where ive gone wrong? Quote
Spudinski Posted April 8, 2008 Posted April 8, 2008 Re: class mysql error in v2 There is nothing wrong with your code. Make sure you uploaded the class directory(with it's files) into the htdocs folder. The absolute(complete) path will be /www/10gbfreehost.com/s/h/a/shadow64456/htdocs/ Quote
Shadow64456 Posted April 8, 2008 Author Posted April 8, 2008 Re: class mysql error in v2 it wont let me create that directory it just keeps saying cant create derevtory Quote
Spudinski Posted April 8, 2008 Posted April 8, 2008 Re: class mysql error in v2 Try setting the permissions of the htdocs directory, so that it is writable(w). If that doesn't work - then I suggest you ask/alert your hosting provider about this, they would know what to do better than anyone else. Quote
Shadow64456 Posted April 8, 2008 Author Posted April 8, 2008 Re: class mysql error in v2 i dont have a htdocs directory Quote
Shadow64456 Posted April 8, 2008 Author Posted April 8, 2008 Re: class mysql error in v2 i tried to move it and it said there is no such directory but it wont let me create one what is the exact words i should put in when i create a new directory for the htdocs Quote
Spudinski Posted April 8, 2008 Posted April 8, 2008 Re: class mysql error in v2 What are you using, an FTP client or cPanel? You should create a directory called class in the htdocs directory. Quote
Shadow64456 Posted April 8, 2008 Author Posted April 8, 2008 Re: class mysql error in v2 its ftp Quote
Spudinski Posted April 8, 2008 Posted April 8, 2008 Re: class mysql error in v2 Ok, when you connect to your website, but default it should put you in your directory, it should be shadow64456. In there there should be a folder called htdocs, where you should upload the class folder, if it doesn't want to create a directory, search in your FTP client for and option like "change permissions" or "chmod". Let me know if that works, also, which FTP client are you using? Quote
Shadow64456 Posted April 8, 2008 Author Posted April 8, 2008 Re: class mysql error in v2 ok now i have a directory called htdocs and in that there is a directory called class and in that is class_db_mysql.php and class_db_mysqli.php but i still get the error message Fatal error: require() [function.require]: Failed opening required 'class/class_db_mysql.php' (include_path='.:/usr/share/php') in /www/10gbfreehost.com/s/h/a/shadow64456/htdocs/login.php on line 6 when i try to look at my site and i dont know how to check the ftp client Quote
Magictallguy Posted May 10, 2008 Posted May 10, 2008 Re: class mysql error in v2 On some cPanels the htdocs folder is called public_html or www - both take you to the same place. Create a folder called class inside your public_html and upload the 2 class_db_mysql(i).php files! Quote
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.