| Author |
impossible displaing tag php into browser
|
|
|
| Hi,
I'm not able to run a program in php and html on browser.
I've publicated the file .php in var/www, but when I call back the
file index.php in the browser this:
host://index.php
It's write me:
Protocol not supported
host
I can't control if my program is right or wrong, when have I mistake in
the call the program?
Thank you in advance.
Heba
| |
| David Dorward 2006-04-10, 7:31 pm |
| heba wrote:
> host://index.php
> It's write me:
> Protocol not supported
> host
>
> I can't control if my program is right or wrong, when have I mistake in
> the call the program?
PHP scripts accessed by web browsers are almost invariably run through
webservers over the http protocol.
http://hostname.domain/path/to/index.php
--
David Dorward <http://blog.dorward.me.uk/> <http://dorward.me.uk/>
Home is where the ~/.bashrc is
| |
|
| >PHP scripts accessed by web browsers are almost invariably run through
>webservers over the http protocol.
>
>http://hostname.domain/path/to/index.php
I tried but it write me this error:
Not Found
The requested URL /var/www/mydir/to/index.php was not found on this
server.
Apache/2.0.54 (Debian GNU/Linux) DAV/2 SVN/1.1.4 mod_python/3.1.3
Python/2.3.5 PHP/4.3.10-16 proxy_html/2.4 mod_perl/1.999.21 Perl/v5.8.4
Server at hostname Port 80
| |
| David Dorward 2006-04-18, 12:45 am |
| heba wrote:
> Not Found
>
> The requested URL /var/www/mydir/to/index.php was not found on this
> server.
You need to find out what the server root is, this is specified in your web
server configuration and (looking at your path there) is likely to
be /var/www. This directory corresponds to "/" on the HTTP server.
--
David Dorward <http://blog.dorward.me.uk/> <http://dorward.me.uk/>
Home is where the ~/.bashrc is
| |
|
| I've controlled the server configuration and the path is /var/www.
I'm not understanding whta's wrong, sorry.
Micaela aka heba
| |
|
| up...
nobody's try me a solution?
In the mean time, I'm asking into mailng/forum of apache.configuration
in the case was an error configuration of server.
| |
| phil-news-nospam@ipal.net 2006-04-30, 1:19 pm |
| On 16 Apr 2006 07:34:16 -0700 heba <mat.r.gl@gmail.com> wrote:
| I've controlled the server configuration and the path is /var/www.
|
| I'm not understanding whta's wrong, sorry.
|
| Micaela aka heba
In an early example you used "host:" as a method in the URL. You need
to use "http:". If you get a "not found" error (404), then you have
either named the file wrong on the browser, or on the server, or both.
But in any case "not found" means that when the server tried to open
the file requested (as the name was transformed by the configuration),
it got a system error on the open() function call that takes place in
the program indicating that the file does not exist.
--
-----------------------------------------------------------------------------
| Phil Howard KA9WGN | http://linuxhomepage.com/ http://ham.org/ |
| (first name) at ipal.net | http://phil.ipal.org/ http://ka9wgn.ham.org/ |
-----------------------------------------------------------------------------
| |
| phil-news-nospam@ipal.net 2006-04-30, 1:19 pm |
| On 19 Apr 2006 23:18:32 -0700 heba <mat.r.gl@gmail.com> wrote:
| up...
|
| nobody's try me a solution?
|
| In the mean time, I'm asking into mailng/forum of apache.configuration
| in the case was an error configuration of server.
Post your apache configuration file "conf/httpd.conf" and we can see if
there are any obvious errors in it. Some errors, such as names of files
and directories that should be in your system but are wrong, we cannot
detect.
--
-----------------------------------------------------------------------------
| Phil Howard KA9WGN | http://linuxhomepage.com/ http://ham.org/ |
| (first name) at ipal.net | http://phil.ipal.org/ http://ka9wgn.ham.org/ |
-----------------------------------------------------------------------------
|
|
|
|