How to view PHP source from server in a minute

Asked By 0 points N/A Posted on -
qa-featured

 

Hi, I have to develop a PHP application. Last time when I am completing a PHP application I got some errors on my PC. So, I want to view PHP source from server a minute to do it appropriately. Can you help me on this project?

SHARE
Answered By 0 points N/A #170408

How to view PHP source from server in a minute

qa-featured

Hello Edward,

You need to know that php codes can't be seen on a website since the PHP code is run server side, but this can be possible if you get access of server files before they are hosted and put in the browser.To do this, open the preferred text editor ie.dreamweaver or notepad.Use it to view the PHP file.Make desired corrections within the tags in the coding then upload the amended file to the webserver.This will refresh and show the renewed file with its' desired change.All the best!

Answered By 590495 points N/A #314649

How to view PHP source from server in a minute

qa-featured

PHP stands for “Hypertext Preprocessor”. It is an interpreter and script language freely available and used primarily on Linux web servers. The term was originally derived from “Personal Home Page” Tools but now stands for the recursive acronym “PHP: Hypertext Preprocessor”. It executes on the server while an equivalent alternative, JavaScript, executes on the client.

It is a server-side scripting language designed mainly for web development and also used as a general-purpose programming language. PHP was created originally by Rasmus Lerdorf in 1994 and now the PHP reference implementation is produced by The PHP Group. The PHP code can be embedded in the HTML code or can be used in combination with different web template systems, web content management systems, and web frameworks.

The code is normally processed by a PHP interpreter applied as a module in the web server or as a CGI executable (Common Gateway Interface). Now, if you want to view the PHP source code right in the web browser by pressing CTRL + U, unfortunately, it is not possible. The only viewable source code on the browser is the HTML.

Related Questions