E
E
Evgeniy2020-05-23 12:59:42
PHP
Evgeniy, 2020-05-23 12:59:42

Where does the php server get the information from?

Good afternoon. A few months ago I changed the layout of a site that was made using php. Now I started to learn php and ran into a problem. I turn on my built-in server and set a port for it, after that I go to localhost and select the port I need. And here all the data from the project that I did a few months ago begins to connect, and what is interesting is that it is from a completely different port. What can be done in this situation?

Answer the question

In order to leave comments, you need to log in

3 answer(s)
E
Evgeniy, 2020-05-24
@Evdokim001

Problem solved. It turns out that my old project was left in C:\Users\Admin
And every time I turned on the server, it took files from there. Deleted those files and everything works now.

F
FanatPHP, 2020-05-23
@FanatPHP

the port is not some kind of "storage" in which you write down your "projects". projects are stored on disk.
The port is just part of the address where the browser connects to the server.
But the files remain the same.

T
ThunderCat, 2020-05-23
@ThunderCat

I turn on my embedded server
what is it and what is it built into you?
all the data from the project that I did a few months ago begin to connect, and it's interesting that it's from a completely different port.
In the computer sense, a port is not a parking lot for ships and containers, but a conditional addressing to an area of ​​RAM that a certain program "listens" or uses. In this case, your "embedded server". It "heard" the request on the specified port and returned the same content that you had in its default display folder (document root).
What can be done in this situation?
Almost all "built-in servers" have configuration files that allow you to set up both the main document root and "aliases" - many domains on the same server, each with its own document root. See settings for your "embedded server".

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question