English 中文(简体)
php eclipse我似乎无法从eclipse打开我的网站
原标题:php eclipse I can t seem to open my website from eclipse
  • 时间:2012-01-16 06:10:35
  •  标签:
  • php
  • eclipse

我正在eclipse中编写一个网站,并试图从eclipse内部运行它,但我不断收到未找到对象的错误。

我正在使用ubuntu和examplep。我一直在移动eclipse工作区,但找不到它应该在哪里。我读到它应该放在htdocs文件夹中,所以我把它放在那里,但我仍然无法打开和页面。

So my method would be to right click on the page in the explorer run as configure set the file to /practice/page.html set the url to /htdocs/practice/page.html run

我得到了这个错误

找不到对象

在此服务器上找不到请求的URL。如果您手动输入URL,请检查拼写,然后重试。

如果您认为这是服务器错误,请联系网站管理员。

Error 404
localhost
Mon 16 Jan 2012 05:09:10 PM EST
Apache/2.2.21 (Unix) DAV/2 mod_ssl/2.2.21 OpenSSL/1.0.0c PHP/5.3.8 mod_apreq2-20090110/2.7.1 mod_perl/2.0.5 Perl/v5.10.1 

有人知道我做错了什么吗?

问题回答

If the DocumentRoot is /htdocs, shouldn t you set the URL to /practice/page.html instead of /htdocs/practice/page.html? According to this,

所有WWW文档的主目录都是examplephtdocs。如果你把一个文件“test.html”放在这个目录中,你可以用URI来访问它http://localhost/test.html".





相关问题
Brute-force/DoS prevention in PHP [closed]

I am trying to write a script to prevent brute-force login attempts in a website I m building. The logic goes something like this: User sends login information. Check if username and password is ...

please can anyone check this while loop and if condition

<?php $con=mysql_connect("localhost","mts","mts"); if(!con) { die( unable to connect . mysql_error()); } mysql_select_db("mts",$con); /* date_default_timezone_set ("Asia/Calcutta"); $date = ...

定值美元

如何确认来自正确来源的数字。

Generating a drop down list of timezones with PHP

Most sites need some way to show the dates on the site in the users preferred timezone. Below are two lists that I found and then one method using the built in PHP DateTime class in PHP 5. I need ...

Text as watermarking in PHP

I want to create text as a watermark for an image. the water mark should have the following properties front: Impact color: white opacity: 31% Font style: regular, bold Bevel and Emboss size: 30 ...

How does php cast boolean variables?

How does php cast boolean variables? I was trying to save a boolean value to an array: $result["Users"]["is_login"] = true; but when I use debug the is_login value is blank. and when I do ...

热门标签