PHPFixing
  • Privacy Policy
  • TOS
  • Ask Question
  • Contact Us
  • Home
  • PHP
  • Programming
  • SQL Injection
  • Web3.0

Thursday, January 20, 2022

[FIXED] Object not found!; Error 404

 January 20, 2022     database, php, phpmyadmin, xampp     No comments   

Issue

this is my code to connect my .php file to my databse:

$serverName="localhost";
$username="root";
$password="ichhya123";
$dbName="teacher";

$conn=mysqli_connect("$serverName","$username","$password","$dbName");
echo "Connected";
if(!$conn){
die("Connection failed:".mysqli_connect_error());}

however, when i try to run it using xampp in google chrome using http://localhost/phpmyadmin/teacher-login.php, it gives me this error message:

Object not found! The requested URL was not found on this server. If you entered the URL manually please check your spelling and try again.

If you think this is a server error, please contact the webmaster.

Error 404 localhost Apache/2.4.29 (Win32) OpenSSL/1.1.0g PHP/7.2.0


Solution

XAMPP cannot find your .php file. Please check:

  1. Your file should be here: xampp\htdocs\
  2. File name (it should be: teacher-login.php)


Answered By - Riccardo Zunino
  • Share This:  
  •  Facebook
  •  Twitter
  •  Stumble
  •  Digg
Newer Post Older Post Home

0 Comments:

Post a Comment

Note: Only a member of this blog may post a comment.

Total Pageviews

Featured Post

Why Learn PHP Programming

Why Learn PHP Programming A widely-used open source scripting language PHP is one of the most popular programming languages in the world. It...

Subscribe To

Posts
Atom
Posts
Comments
Atom
Comments

Copyright © PHPFixing