Important Notice: Our web hosting provider recently started charging us for additional visits, which was unexpected. In response, we're seeking donations. Depending on the situation, we may explore different monetization options for our Community and Expert Contributors. It's crucial to provide more returns for their expertise and offer more Expert Validated Answers or AI Validated Answers. Learn more about our hosting issue here.

The downloaded go-pear.phar isn parsed by PHP! Why?

downloaded parsed php
0
Posted

The downloaded go-pear.phar isn parsed by PHP! Why?

0

If you have followed the instructions for getting go-pear.phar and you are using e.g. Windows and the Internet Explorer, you might get the strange effect that — although you have named the file go-pear.phar — the file isn’t parsed and the PHP source code of it is shown. The problem is that e.g. the Internet Explorer saves the file as a HTML file with some HTML code around the PHP source code to display the code nicely. To avoid this problem, you should use the source code view of your browser, e.g. by clicking with the right mouse key and selecting “Show source code” from the context menu. If you save now the file that is shown in your editor as go-pear.php, PHP will be able to parse the file properly. Please note that the Windows versions of PHP have a file named go-pear.bat bundled. It is recommended to use this batch file on Windows instead of using go-pear.php.

Related Questions

What is your question?

*Sadly, we had to bring back ads too. Hopefully more targeted.

Experts123