Comments (8)
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 18Warning: require(classes/mysqli.class.php) [function.require]: failed to
open stream: No such file or directory in /path/index.php on line 18Fatal 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.
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.
@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.
@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.
@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.
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.
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.
@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)
- [QUESTION] PostgreSQL HOT 4
- MySQL connection error HOT 3
- [NOTE] bootstrap.sh HOT 1
- ❤ ! HOT 1
- Changes for Postgres
- Calling model on view?
- Session validation improvement
- Q
- Configuration files
- Configuration files HOT 5
- New user registration issue
- A question about data sent to the view from the controllers HOT 1
- in the encryption.php file HOT 1
- Pagination Class
- Agregar AJAX al proyecto
- Trying to get in touch regarding a security issue HOT 4
- ErrorController redeclaration HOT 2
- PHP code analizing does not work. HOT 3
- Connection problems with MySql (MariaDb)
- Contact details
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from huge.