PHP is now working even thought it was before

Problems with the Windows version of XAMPP, questions, comments, and anything related.

PHP is now working even thought it was before

Postby Kaworu » 03. July 2021 17:21

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.
Kaworu
 
Posts: 8
Joined: 19. June 2021 14:14
XAMPP version: 3.3.0
Operating System: Win 10

Re: PHP is now working even thought it was before

Postby Nobbie » 03. July 2021 18:50

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?
Nobbie
 
Posts: 13170
Joined: 09. March 2008 13:04

Re: PHP is now working even thought it was before

Postby Kaworu » 03. July 2021 19:22

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.
Kaworu
 
Posts: 8
Joined: 19. June 2021 14:14
XAMPP version: 3.3.0
Operating System: Win 10

Re: PHP is now working even thought it was before

Postby Altrea » 03. July 2021 21:32

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/ ...
We don't provide any support via personal channels like PM, email, Skype, TeamViewer!

It's like porn for programmers 8)
User avatar
Altrea
AF Moderator
 
Posts: 11926
Joined: 17. August 2009 13:05
XAMPP version: several
Operating System: Windows 11 Pro x64


Return to XAMPP for Windows

Who is online

Users browsing this forum: No registered users and 113 guests