Jump to content
MakeWebGames

Recommended Posts

Posted

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

Posted

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.

Posted

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?

Posted

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

Posted

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?

Posted

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/

Posted

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.

Posted

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

Posted

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?

Posted

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

  • 1 month later...
Posted

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!

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...