7 Replies - 228 Views - Last Post: 11 September 2012 - 06:49 AM Rate Topic: -----

#1 qadeerhussain007  Icon User is offline

  • New D.I.C Head

Reputation: 1
  • View blog
  • Posts: 34
  • Joined: 05-July 12

hello friends xamp problem

Posted 10 September 2012 - 11:15 PM

friends i installed a xamp and i made an php file in which i wrote a.....
<html>
<head>
<title>
WELCOME TO PHP
</title>
</head>
<body>
<? php

echo "welcome to php";
?>
</body>
</html>

....................
but the browser show the following things
Index of /

Name Last modified Size Description
base/ 15-Apr-2012 13:19 -
index.html.back 16-Apr-2012 08:52 177
index2.html 30-May-2012 14:38 483
qec/ 23-Dec-2011 15:50 -
Apache/2.2.16 (Debian) Server at localhost Port 80
please help me how to fix this problem..........

This post has been edited by Dormilich: 10 September 2012 - 11:18 PM
Reason for edit:: please use [code] [/code] tags when posting code


Is This A Good Question/Topic? 0
  • +

Replies To: hello friends xamp problem

#2 Dormilich  Icon User is online

  • 痛覚残留
  • member icon

Reputation: 2936
  • View blog
  • Posts: 7,690
  • Joined: 08-June 10

Re: hello friends xamp problem

Posted 10 September 2012 - 11:19 PM

what is the URL you use? where did you save that file (and under which name)?


PS. it’s <?php not <? php

PPS. HTML files should have a Doctype (DTD)

This post has been edited by Dormilich: 10 September 2012 - 11:22 PM

Was This Post Helpful? 0
  • +
  • -

#3 qadeerhussain007  Icon User is offline

  • New D.I.C Head

Reputation: 1
  • View blog
  • Posts: 34
  • Joined: 05-July 12

Re: hello friends xamp problem

Posted 10 September 2012 - 11:37 PM

i saved the file in xamp which is in c drive, then further i went to htdocs where i made a new folder projects and keep the file inside it, the php file name is basic.php and i gave the url is
localhost/projects/basic.php
Was This Post Helpful? 0
  • +
  • -

#4 Dormilich  Icon User is online

  • 痛覚残留
  • member icon

Reputation: 2936
  • View blog
  • Posts: 7,690
  • Joined: 08-June 10

Re: hello friends xamp problem

Posted 10 September 2012 - 11:55 PM

hm, according to your output it looks like the URL was just localhost. and there are only the directories base and qec, but not projects...
Was This Post Helpful? 0
  • +
  • -

#5 qadeerhussain007  Icon User is offline

  • New D.I.C Head

Reputation: 1
  • View blog
  • Posts: 34
  • Joined: 05-July 12

Re: hello friends xamp problem

Posted 11 September 2012 - 12:49 AM

i corrected the url on your previous post no its giving me
The requested URL /projects/basic.html was not found on this server.

Apache/2.2.16 (Debian) Server at localhost Port 80
Was This Post Helpful? 0
  • +
  • -

#6 Dormilich  Icon User is online

  • 痛覚残留
  • member icon

Reputation: 2936
  • View blog
  • Posts: 7,690
  • Joined: 08-June 10

Re: hello friends xamp problem

Posted 11 September 2012 - 02:02 AM

yepp, because there is no folder projects in your web directory.

do you have an Apache already installed with your OS?

This post has been edited by Dormilich: 11 September 2012 - 02:05 AM

Was This Post Helpful? 0
  • +
  • -

#7 qadeerhussain007  Icon User is offline

  • New D.I.C Head

Reputation: 1
  • View blog
  • Posts: 34
  • Joined: 05-July 12

Re: hello friends xamp problem

Posted 11 September 2012 - 06:40 AM

no its only include in xamp
Was This Post Helpful? 0
  • +
  • -

#8 Dormilich  Icon User is online

  • 痛覚残留
  • member icon

Reputation: 2936
  • View blog
  • Posts: 7,690
  • Joined: 08-June 10

Re: hello friends xamp problem

Posted 11 September 2012 - 06:49 AM

then you definitely saved your file in the wrong directory.

what does dpkg --get-selections | grep apache2 give you?
Was This Post Helpful? 0
  • +
  • -

Page 1 of 1