Post all HTML related questions here. No support.

Moderator: Project members

500 Command not understood
Posts: 1
Joined: 2014-03-06 13:41
First name: Ken
Last name: Wackerman


#1 Post by w117kjw » 2014-03-06 14:00

I am new to web coding. When I view my website in source code through chrome I am able to see all the code. When I connect to the site in Filezilla, I navigate to that code but there are chunks missing out of the whole code? The site is functioning just fine so it leads me to believe the code is just hiding or I simply am not understanding how this works. Can anyone help me better understand? thank you.

500 Command not understood
Posts: 2
Joined: 2014-03-18 22:40
First name: Dave

Re: Code

#2 Post by SoCalDaveC » 2014-03-19 00:11

I can't say without seeing the code for the page, but chances are the source code has PHP code that generates part of the code.

Code could be "hidden" in several ways:

Code: Select all

<?php include 'othercode.php'; ?>
The above code loads a separate file: othercode.php.

Code: Select all

   /* code that queries a database and loads code into the PHP variable $HTMLOutput */
   echo $HTMLOutput;
The code to query a database varies, but a simple line like "echo $HTMLOutput;" in PHP could send large amounts of code to the browser.

Hope that answers your question.


500 Syntax error
Posts: 15
Joined: 2014-04-09 21:00
First name: Victoria
Last name: Montoya

Re: Code

#3 Post by victoriamon » 2014-04-11 21:12

The server scripts are not shown in the source code in any of the browser. Also as said above if you are making shotscuts of includes etc in page they may be not showing in the file while that appears as html in source code.