Thread Content
I have a question: how do I open files in PHP format? I tried to view the files I downloaded recently, but I don’t know what to do. Please let me know, those who are up-to-date with the latest trends – how can I view the content?
There are generally two methods: 1. Apache + PHP + MySQL; 2. IIS + PHP + MySQL. The installation method for the first option is easier to set up, while for the second option it is necessary to modify the IIS configuration so that it can run PHP. Installation components: Apache 2.0, PHP 5.0, MySQL 3.23.46-nt. 1. Install MySQL: Download the appropriate version of MySQL and extract it to the C:\mysql directory on the C drive; Add c:\mysql\bin to the environment variable path ; 2. Install PHP 5.0: download the corresponding version of PHP ; Unzip it to the c:\php directory ; 3. Install Apache by downloading the appropriate version and clicking to start the installation ; 4. Settings: In PHP, copy the c:\php\fdftk.dll file to the c:\php\pear directory ; Change the name of the php.ini-recommended file in the c:\php\ directory to php.ini. Configure Apache so that it can locate the .\conf\httpd.conf file in the Apache installation directory; once opened, add the following lines at the end of that file: ScriptAlias /php/ “c:/php/” AddType application/x-httpd-php .php Action application/x-httpd-php “/php/php-cgi.exe”. If you want to change the server name, find the ServerName keyword and modify the value that follows it ; Find the DocumentRoot keyword and replace the content after it with the directory in which you want to store your web pages; pay attention to the direction of the slashes ; Configure PHP to support MySQL ; Find the php.ini file in the c:\php directory, locate the extension_dir keyword within it, and change the path that follows it to the directory where the extension files are located. By default, this is the c:\php\ext directory; however, after making the change in php.ini, the direction of the slashes must be reversed ; Then find the line ;extension=php_mysql.dll, remove the semicolon in front of it, and this dynamic link library will be activated ; Okay, after setting all of this up, shut down the Apache server and then restart it – once that’s done, it will be ready to run. You can now start writing your PHP programs ; 2. 1. Download the IIS installation package, or use the installation disc that comes with Windows. 2. Install PHP 4 or later; it can be downloaded from http://www.php.net (note that there are two versions: one is a zip file and the other is an installer). 3. Open Internet Services/Web Sites/Default Web Site, right-click on it, select Properties/Home Directory/Configurations/Add, choose the php.exe file that was just installed for the Executable file field, enter”.php” as the file extension, and click OK. 4. The entire process is now complete. 5. Testing: Create a new virtual directory site named test in IIS; create a file called test.php within that site with the following content. Then open http://localhost/test/test.php – if the PHP configuration page appears, then everything is working correctly. Everything successful! The above describes the installation of the decompressed version of PHP. If php4-installer is used, IIS is configured by default, but this is only possible if IIS has already been installed.
LZ, I guess the *.php file might not be what you’re looking for. Look at the link to this post: http://bbs.hcbbs.com/viewthread.php?tid=562249&extra=page%3D1%26amp%3Borderby%3Ddateline. PHP is a programming language used for creating dynamic websites (as mentioned in the comments above). Often, when we try to download something from a website, we end up with an empty link, or the site simply doesn’t allow downloading, and what we get is a *.php file. The thing that was brought back can probably be used with IIS as mentioned above, but it might not be very useful anyway. . . .
I downloaded the materials from a mechanical CAD forum. I had downloaded them before, and they were always in RAR compressed format; once extracted, the contents could be viewed. I hadn’t visited that forum for a few months, and when I went to download things there recently, they were in PHP format. It shouldn’t be that downloads aren’t allowed.
So there’s no need to use a downloader; it can be downloaded directly via TE. I already know that, thanks