Page 1 of 1

PHP is now working even thought it was before

PostPosted: 03. July 2021 17:21
by Kaworu
Hello friends. I’m afraid I encountered a problem with my software.

A few day ago I started to learn to program in PHP. The script test.php (containing just the line phpinfo(INFO_GENERAL);) was working just fine and my browser did show the „php table”.

I am sure I did not change anything in my configuration, yet now the script is now working at all. Just like if I did not install XAMPP – but I am sure it is installed and I started both Apache and MySQL.

I feel very lost. Is some of you could help me out with – I presume? - configuration of XAMPP for Win 10, I would be glad.

Re: PHP is now working even thought it was before

PostPosted: 03. July 2021 18:50
by Nobbie
Ok, lets start from the very beginning, as you dont apply any usefull informations.

1) How to do "trigger" test.php script? How do you try to start it?

2) What exactly is happening then? Do you get any response? Is there any message or whatever?

3) Did you start your script exactly the same way before? Or did you change anything?

4) Did you edit your script in the meanwhile?

Re: PHP is now working even thought it was before

PostPosted: 03. July 2021 19:22
by Kaworu
1. I just go into XAMPP/htdocs. There I have saved the script and I use Mozilla to run it - just like I would run any saved/created webpage.

2. No information, I just see the sourcecode, with <?php line, the phpinfo() and the closing tag.

3. I didn't change anything in the sourcecode (that was working earlier) and I believe I did not change anything in my PHP configuration.

4. No.

Also, no PHP is working on my computer currently, not only this file.

Re: PHP is now working even thought it was before

PostPosted: 03. July 2021 21:32
by Altrea
Kaworu wrote:1. I just go into XAMPP/htdocs. There I have saved the script and I use Mozilla to run it - just like I would run any saved/created webpage.

PHP is a serverside scripting language. You need to request the file, you cannot just open it.
Your browser does not know anything about PHP processing. It can just render HTML, CSS, Images and JS.
So your browser url should start with http://localhost/ ...