H
Hope
Guest
I have a theory and trying to figure it out.
You load your browser (i.e. Internet Explorer, Firefox, Safari) to view a website (http://example.com). You view a PHP file under the \htdocs directory (http://example.com/htdocs/example.php. The PHP file refers to a database connection file and a CSS file in a different directory. The page displays like you expect it to, in different browsers. The table is populated from the database connection, and the layout is perfect.
Now if you try to access that same site via FTP, your browser typically turns into an FTP session. You can upload/download files using the FTP protocol inside the browser without the need of an external FTP program.
You then try to view the same PHP file by navigating to the \htdocs\ directory and clicking on the file. My question is, should it display with the same layout and table populated?
I've tested this theory with a couple PHP files of my own, and depending on the browser, was asked to open or save the file. Every time, I was faced with errors and an incomplete page is populated, or the page would not display at all. It seems as if it would try to download the into a temporary cache for viewing and the directories and files get screwed up (it would look for /connections/connect.php inside the file and it thinks the root directory is C:\local\ie5\internetcache\ ..... resulting in a file not found error)
So.... am I doing something wrong? Is there something wrong in the PHP code that is preventing seeing the page as it's supposed to in an FTP session? Maybe a setting inside a browser? Should it display the same in FTP as it would if you viewed it via HTTP?
When responding, I would appreciate an explanation of why you say what you say, as opposed to "it doesn't work" answer.
If you do have an argument for it working in FTP, could you please provide a detailed explanation or references?
The best answer will be given to someone who is most detailed in their answer, proving for or against the idea that you are able to view the same PHP file via FTP browser as you would via HTTP.
DO NOT SAY "Use an external FTP program because it's easier". I am trying to test a theory within browser FTP functionality.
You load your browser (i.e. Internet Explorer, Firefox, Safari) to view a website (http://example.com). You view a PHP file under the \htdocs directory (http://example.com/htdocs/example.php. The PHP file refers to a database connection file and a CSS file in a different directory. The page displays like you expect it to, in different browsers. The table is populated from the database connection, and the layout is perfect.
Now if you try to access that same site via FTP, your browser typically turns into an FTP session. You can upload/download files using the FTP protocol inside the browser without the need of an external FTP program.
You then try to view the same PHP file by navigating to the \htdocs\ directory and clicking on the file. My question is, should it display with the same layout and table populated?
I've tested this theory with a couple PHP files of my own, and depending on the browser, was asked to open or save the file. Every time, I was faced with errors and an incomplete page is populated, or the page would not display at all. It seems as if it would try to download the into a temporary cache for viewing and the directories and files get screwed up (it would look for /connections/connect.php inside the file and it thinks the root directory is C:\local\ie5\internetcache\ ..... resulting in a file not found error)
So.... am I doing something wrong? Is there something wrong in the PHP code that is preventing seeing the page as it's supposed to in an FTP session? Maybe a setting inside a browser? Should it display the same in FTP as it would if you viewed it via HTTP?
When responding, I would appreciate an explanation of why you say what you say, as opposed to "it doesn't work" answer.
If you do have an argument for it working in FTP, could you please provide a detailed explanation or references?
The best answer will be given to someone who is most detailed in their answer, proving for or against the idea that you are able to view the same PHP file via FTP browser as you would via HTTP.
DO NOT SAY "Use an external FTP program because it's easier". I am trying to test a theory within browser FTP functionality.