Re: Error with Html code



On May 29, 5:38 am, almatir...@xxxxxxxxx (Alma) wrote:

I am using apache2 & Gentoo linux. . i have a html upload.html

<HTML>
<HEAD></HEAD>
<BODY>
<FORM METHOD="post" ENCTYPE='multipart/form-data'>
Photo to Upload: <INPUT TYPE="file" NAME="photo">
<br>
Your Email Address: <INPUT TYPE="text" NAME="email_address">
<br><br>
<INPUT TYPE="submit" NAME="Submit" VALUE="Submit Form">
</FORM>
</BODY>
</HTML>

but i am not able to view this html on my browser.
All other html pages are getting displayed.

Its giving me this errors

[Tue May 29 09:40:47 2007] [error] syntax error at /var/www/localhost/
perl/upload.html line 2, near "HEAD>"\nBareword found where operator expected

This means that Apache believes the file upload.html is a Perl script
not a static HTML document.

Your Apache config probably states that _all_ files in /var/www/
localhost/perl/ are to be treated as Perl scripts. You should put the
file elsewhere or change the Apache config so that it determines file-
type by examining suffixes. (How you do this is an Apache issue -
nothing to do with Perl).

.



Relevant Pages

  • Re: PHP5 IIS Setup
    ... If there were any html tags, ... Incidentally I'm using Apache 2, ... You haven't added a type association so Apache knows to use PHP to process ... it not processing PHP files. ...
    (alt.php)
  • Re: Content negotiation in Apache
    ... >Someone already mentioned the rewriting rules which will work for you. ... Sorry I hadn't posted anything in awhile, but Apache and I move ... The other is that I'm learning PHP and did not originally have the ... and got 600 visitors this December, and the page ends in ".html" and now ...
    (RedHat)
  • Re: file download using apache on HPUX
    ... Moreover using PRE for tabular data in an HTML 3.2 document is ugly. ... I looked at the source code of Apache 2.2.4 that I directly downloaded from apache.org. ... My statement about tag soup was mainly related to the fact everytime I see an Apache directory on the WWW, it uses the old PRE tag soup.... ...
    (comp.infosystems.www.authoring.html)
  • Re: Secure Unix permissions for an Apache website developer
    ... > the web site's development (an external company in charge of HTML ... I have created a regular user for him, ... > Apache runs with a special no-privilege user and group. ... > directory) and its files to be owned by root, ...
    (comp.os.linux.setup)
  • Re: Secure Unix permissions for an Apache website developer
    ... > the web site's development (an external company in charge of HTML ... I have created a regular user for him, ... > Apache runs with a special no-privilege user and group. ... > directory) and its files to be owned by root, ...
    (comp.os.linux)