Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

Xampp SQL /php: when preview "websitename/index.php" web browser goes to localhost/index.php

New Here ,
Nov 14, 2010 Nov 14, 2010

This is a beginner question.

I started to build a practice website in xampp/htdocs folder. however, when I preview a page "index.php" of the website, the browser goes to "localhost/index.php" and it displays an error message:

"Warning

: require_once(Connections/connQnpTest.php) [

function.require-once]: failed to open stream:  No such file or directory in

C:\xampp\htdocs\index.php on line

1

Fatal error: require_once() [function.require]: Failed opening required  'Connections/connQnpTest.php' (include_path='.;\xampp\php\PEAR') in  C:\xampp\htdocs\index.php on line 1"

It will display the correct webpage if I manually type in "localhost/"practiceWebsiteName"/index.php .

any idea, please?

TOPICS
Server side applications
991
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 1 Correct answer

Deleted User
Nov 14, 2010 Nov 14, 2010

It sounds like you might have your site definitions not set up correctly, from what I see, it should be:

Testing Server Folder C:\xampplite\htdocs\practiceWebsiteName\

URL Prefix http://localhost/practiceWebsiteName/

Check your settings.

Gary

Translate
Guest
Nov 14, 2010 Nov 14, 2010

It sounds like you might have your site definitions not set up correctly, from what I see, it should be:

Testing Server Folder C:\xampplite\htdocs\practiceWebsiteName\

URL Prefix http://localhost/practiceWebsiteName/

Check your settings.

Gary

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Nov 18, 2010 Nov 18, 2010
LATEST

Thanks, Gary. that is the cause!

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines