Giter Site home page Giter Site logo

require(classes/mysqli.class.php) about huge HOT 8 CLOSED

panique avatar panique commented on July 18, 2024
require(classes/mysqli.class.php)

from huge.

Comments (8)

the4ndy avatar the4ndy commented on July 18, 2024

Seems like your host provider does not have the needed PHP classes
installed. Check the version they offer compared to the one needed by the
script. check the paths in your code and make sure they arent absolute
paths that no longer apply when they are uploaded to the server. try and
use relative paths.

On Thu, Mar 28, 2013 at 12:04 AM, Bhadresh Arya [email protected]:

error shown when I uploaded the login script to the live server. It worked
beautifully on local server.
the errors are:
Warning: require(classes/mysqli.class.php) [function.require]: failed to
open stream: No such file or directory in /path/index.php on line 18

Warning: require(classes/mysqli.class.php) [function.require]: failed to
open stream: No such file or directory in /path/index.php on line 18

Fatal error: require() [function.require]: Failed opening required
'classes/mysqli.class.php'
(include_path='.:/usr/lib/php:/usr/local/lib/php') in /path/index.php on
line 18


Reply to this email directly or view it on GitHubhttps://github.com//issues/40
.

from huge.

panique avatar panique commented on July 18, 2024

Hey, there is no "mysqli.php" is the original script, so i think you have changed some things ;)
By the way, class names are (afaik) always in Uppercase. The script contains a Database.php, so there is no need to change this name... But i you send me your code, i maybe can help you

from huge.

 avatar commented on July 18, 2024

@panique i didn't change anything. I tried uploading your original code to the live server and it still shows error. but it runs in my local server.

from huge.

panique avatar panique commented on July 18, 2024

@bhadresharya Hey... sorry, but there is no mysqli.php in the script. So you have changed something. Please don't get me wrong, but i get soooo many mails & "bug reports" by people who change filenames, move files, rename folder or simply use PHP 4 and then say "your script does not work". Please send me your code if you like and i ll have a look, okay ? ;)

from huge.

Aresinho avatar Aresinho commented on July 18, 2024

@bhadresharya MySQLi is part of PHP. The error you are getting is caused because your server's php was not compiled with MySQLi. It has nothing to do with the script. What does your /path/index.php look like? Specially on and around line 18.

from huge.

panique avatar panique commented on July 18, 2024

Ah, i think i know what has happened: You are using an extremely old and outdated version of PHP. The readme and the github page says you need PHP 5.3 for the script, and PHP 5.2 is outdated since 2009 (!). PHP 5.2 didn't had the mysqli extension.

from huge.

 avatar commented on July 18, 2024

Create a page with this code:

  <?php phpinfo(); ?>    

Then load the page with your browser and search for 'mysqli' you shoud find a section with specification about mysqli. This prove that mysqli module is loaded.

In the same page, you will also find your php version. As panique said 5.3 is the minimum.

from huge.

 avatar commented on July 18, 2024

@border0464111 @panique @Aresinho Thank you guys. I got it. The problem caused because I'm new to this programming stuff. :p I'm sorry.

from huge.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.