• I downloaded a file with the PHP extension from the Internet. What extension is this? How, what to open? How to open .PHP file

    Let's look at various situations related to the php extension. In general, such a file can easily be opened in Notepad, but it will not always be informative. If this is the result of a programmer's work on PHP language, then we get the source file with scripts and commands for execution. If you downloaded something from the Internet - a movie, music or a web page - then you can also receive a PHP file.

    Two ways to open a PHP document

    Let's try to open a file with the .php extension in the first case (the file with the code). It is impossible to run or view the result of executing a file without a server. But this is not big problem. Installing a server will cause difficulties even for novice programmers. Instructions:

    1. We install the Denver package on the PC - local server and other tools for comfortable work with scripts in PHP in offline mode, without any active access to the Internet at all. It can be downloaded from the official build.
    2. Then we take our file, call it filename.php, and place it in the web server folder.
    3. and in the line enter the path to the file.
    4. We observe the result of executing the code.

    Read more about the second and third points of the instructions. We go to the directory “C:\WebServers\home”, here by default there is a folder called “test”. Now at your discretion: you can select this folder, you can create your own here (for example, 123). Go to the folder and create another one called “www”. Now we place our file “filename.php” into it. The full path to the file will be as follows: “C:\WebServers\home\123(or test)\www\filename.php”.

    It is worth paying attention to the fact that you must create a www folder; you should not skip this point.

    We launch Denver using the Run button. A message should appear in a black window command line that host 123 (test) has been added. If in version local server there are no icons, then look for them in “C:\WebServers\denwer\utils\”.

    You should not change the default settings after installing Denver, everything is already debugged and configured, Magic, GD, FDPF and others modules are included.

    If you are not involved in program development and you have a file with the extension .php, music, then feel free to try opening it in Notepad. You may receive an error. In this case, disable the download manager and try again. In other cases, it is highly likely that the saved page of the site from which you started downloading the movie/music, etc. will open in the browser. Those. instead of directly downloading the content, you saved it to hard drive the page itself.

    Programs for working with PHP files on different OSes

    The most in a simple way viewing a php document means opening it in Notepad, as mentioned earlier.

    IN Windows php The file can be opened in the following programs:

    • Notebook;
    • PHPEdit;
    • Notepad++;
    • Microsoft Wordpad;
    • EditPlus;
    • Any text editor;

    PhpEdit - professional program, with which you can not only open, but also create entire projects in PHP.

    We recommend paying special attention to the Notepad++ program, which is very convenient to use when it comes to editing source codes of programs and scripts. If you open a PHP file in Notepad++, the syntax will be automatically recognized and highlighted, it is possible to collapse and expand code blocks, convenient search and extended replacement functionality based on regular expressions- far from it full functionality useful options, which this editor provides.

    On Mac open in:

    • Bare Bones Software BBEdit;
    • TextEdit;
    • TextMate;
    • Another text editor convenient for you.
    • Gedit;
    • BlueFish;
    • Eclipse PHP Development Tools;
    • Any text editor.

    So, we looked at several options for how to open a file with a PHP extension. In the first case, you will have the opportunity to familiarize yourself with the result of such a script; the second is suitable for making changes and editing the script code itself.

    Answers:

    Pavel Elagin:
    Why did you download the file if you don’t know how to open it?

    Axel:
    This is the php language file used on web servers. If you don’t know what it is, then believe me, there’s no point in launching it.

    Forward:
    Internet Explorer"om or any other Internet browser. PHP is a format for dynamic Internet pages.

    Shurovik:
    Alas, it's just a script. Obviously, the program you downloaded something with was unable to process the script correctly and downloaded this script instead of the required file. Try downloading what you are looking for again, but in a different way.

    TU-154:
    This is a script executed on the server side. That is, you downloaded the wrong thing - you had to download the result generated by this script.

    Roman Gural:
    PHP is an interpretable programming language that is used to build web pages. To run this file for execution you need a web server running on your computer. And so you can see the downloaded file, just open it text editor.

    Spider:
    It depends on how and where you downloaded it, if via FTP or from a server that does not support PHP, then this is a script (or part) in the PHP language. Then you can open it with any editor, for example, Notepad. If from a server that supports PHP, then this regular page, generated by this script. Then - any browser

    Kle:
    Sometimes downloaders make mistakes and do not give files correct name. If Internet Explorer shows nonsense (it’s better not to open files larger than several hundred kilobytes), it makes sense to try opening it in WinRAR. At worst, attribute the extension to .exe (if you are not afraid to run unknown things on your computer).

    Therodactel:
    Dear sirs, think again about the meaning of the question. It is asked by a person completely far from WEB servers. I just tried to download a program or game from a link, and the browser transferred the download to the rocking chair. Disable browser downloader integration. Or download the same link using another browser. You'll probably end up on the Rapida or Deposit download page or something like that.

    The PHP file contains source code, implemented using the PHP programming language. The file has a PHP extension and can be a script or a web page. This format file requires a specialized software on the user's computer. The advantage of the PHP language is its server-side execution.

    To correctly open a PHP file, as well as subsequent debugging of the code stored in it, operating system must have a local server installed.
    There are several applications that can fully open a file with a PHP extension. Such utilities include software editors like Dreamweaver, PHPEdit, and Eclipse PHP Development Tools, they can quickly open a PHP file. If the user wants to view the content that carries the PHP file extension, you can use a text editor, while experts recommend the use of editors such as Adobe Dreamweaver, Notepad++ or PSPad editor.

    The file extension PHP is common in the web programming environment World Wide Web, clear advantages PHP script, lie in its simplicity, rich functionality and high execution speed. The PHP extension is used by a very large number of developers from all over the world. Quite often, the PHP programming language is used in conjunction with MySQL databases.

    The PHP page code is dynamically processed by the server, after which the user receives the generated HTML code. If the computer owner wants to execute the .php file, they should use local PHP servers such as Denver, Apache-PHP or WampServer. To open PHP this way, just put this type file to the web server folder by launching it by typing the address in the browser line.

    - Extension (format) is the characters at the end of the file after the last dot.
    - The computer determines the file type by its extension.
    - By Windows default does not show file name extensions.
    - Some characters cannot be used in the file name and extension.
    - Not all formats are related to the same program.
    - Below are all the programs that can be used to open a PHP file.

    Many MS Windows users have long noticed that standard notepad- This is a rather inconvenient program to use. This free text file editor, which provides syntax support, can replace it large quantity programming languages. The program contains a fairly wide range of options and is characterized by minimal consumption of processor resources. The program makes it possible to simultaneously view several documents at once and edit them, without closing unnecessary windows. An option such as editing the same document in different places which is very convenient...

    Notepad2 is a simple application that allows you to type and edit text. It will help in creating HTML pages, programming in various languages ​​(CSS, Java, JavaScript, Python, SQL, Perl, PHP) as it can highlight code. The program is built on the principle a simple notepad, it is lightweight and compact. This text editor checks all parentheses for pairs and supports auto-indentation. Notepad2 not only supports ASCII encodings and UTF-8, but also knows how to convert them. Allows you to roll back unwanted operations many levels back. Supports block selection of text elements and has numbered...

    One of the best programs for creating web applications for WEB 2.0 developers. Includes a convenient and simple operation interface, convenient HTML editors, PHP, Ruby, CSS, Python and JavaScript, supports HTML5, has a built-in Debugger, with a wide range of capabilities, support different browsers such as Mozilla Firefox,Opera, Google Chrome, Internet Explorer and Safari, quickly supports all new technologies, such as Adobe AIR and even development for IPhone 5. The help system is quite rich and without a doubt this right choice for any developer. The program runs on the Eclipse platform and has a lot of plugins for...

    Bluefish – powerful program for programming and web development. It has many functions for developing websites, scripts and program codes. The program runs at high speed and can download hundreds of files in a matter of seconds. Open more than 500+ documents simultaneously without any problems. There are very useful features, How good search by files as well as without limit functions “Undo” and “Redo”. Automatic recovery in case of unplanned shutdown. Integration external programs and external filters. Language support, namely background information online. The program is under development, but already supports 17 languages...

    PSPad is a very useful editor program code, suitable for coders who write in multiple languages. Suitable for those who need program code highlighting. Can easily replace popular tools. The PSPad will prove its worth when working with complex code syntax. It was created to help all types of users. The program comes with an impressive list of templates. There are features like syntax highlighting, macro recording, or search and replace functions that are common in such applications. It comes with a HEX editor, FTP client, so the user can edit the code directly...

    PHP is a server-side scripting language designed specifically for web development. Supports HTML language and is capable of generating and passing information to an HTML file. PHP integrates into many platforms (Windows, Linux, Unix). Its main task is to create active dynamic web pages. It is one of the most user-friendly programming languages. PHP is known for its reliability, speed, stability and enhanced security. Code written in script language PHP, interpreted by the web server using PHP module dynamic web pages are generated.

    Komodo Edit is a convenient code editor that supports a wide range of various languages programming. The program gives users the opportunity to work with several files at once; writing code will become more efficient using the autocomplete function and hints. The application allows you to automatically highlight variables when you select them. Using the editor, you can view files in other programming languages. The program supports syntax coloring and indentation. Can check syntax parameters, snippets used to store source column code. Has a mode easy editing and supports drag and drop elements...

    There are a lot of programs on the Internet that allow you to edit the source code of another program, file, etc. However, most of these programs are just a text editor like Notepad. They differ from the above editor only in that they have syntax highlighting. However, in some cases, this program functionality is not enough. A programmer may need to quickly find different parts of a document. And now, finally, a program has appeared that allows you to solve this problem. The program is called SynWrite. Her distinctive feature– the presence of a navigation panel with a tree...

    Free Opener is a fairly functional viewer of the most popular files, including Winrar archives, Microsoft documents Office, PDF, Photoshop documents, torrent files, icons, web pages, text documents, audio and video files, graphic files including Flash and much more. The number of supported files exceeds seventy. The program does not have the usual settings and options except for changing the design. It is also necessary to note that there is no Russian language, but given the simplicity, do not underestimate the program. Free Opener is a universal and very convenient program for reading various types files.

    In this article you will get acquainted with the best program for opening php files, its name is Notepad++. Due to its simplicity and versatility, it is extremely popular among computer users. Judge for yourself, the program is absolutely free, and most importantly it opens almost any text files, including php. This program makes life easier for Webmasters, and ordinary users computer. Standard editor doesn't do half as much as Notepad++, just try it and you'll understand everything yourself.

    Main advantages of the program:

    1. The entire interface has been translated into Russian.
    2. Completely free and without advertising.
    3. Function that supports viewing and editing several at once open documents.
    4. Supports most popular formats, for example, WEB developers actively use this program when creating websites.
    5. Syntax highlighting, great possibilities when working with text.

    So, we figured it out, the program is excellent! Now let's see how she opens php files. The screenshot shows that the program not only opens php files, but also highlights the syntax, and has a function for collapsing individual blocks of code, just a godsend for a programmer.


    Attention! Comrade programmer, you will soon find out how to open php, but do you know? No?! Well, then let's read it faster - this little program is the best of the best for PDF files.

    You can download the program from the official website using the link below.

    Download Notepad++ from the official website