ahmed
ahmed

Reputation: 9

php file downloading instead of showing up on browser?

I'm running this from Filezilla remote server anyone have any solution

<?php

echo "what a lab";

?>

Upvotes: -2

Views: 90

Answers (1)

Quentin
Quentin

Reputation: 944202

For a web browser to load the output of a PHP file you need to make an HTTP request to an HTTP server which supports PHP.

FileZilla is an FTP client. It connects to FTP servers. FireZilla, if it comes into it at all, will be used only to copy the PHP file to the computer which is running both an FTP and HTTP server.

You need to enter the matching HTTP URL (e.g. http://example.com/your.php) into the address bar of your browser.

Upvotes: 1

Related Questions