I'm studying web development with the goal of a shopping mall When I use the image (sales product) that I'm going to use on the web page, I set the path, right? I simply set the path with the image stored on my computer, but I'm asking you because I'm wondering if others can see it if I set the image like this way.
If you look at the structure of the Chrome developer tool shopping mall, it was in URL format, but I want to know if I'm doing it wrong. If you can't, I'd appreciate it if you could tell me how to do it.
php html mysql
It's a difficult question to begin with. What should I do to show the image on my PC to someone else, that is, to download it? At least my pc should be in a state where it can be serviced when the user requests the file.
On the Web, you can define a protocol (promise) called http to communicate data. In other words, you can run a server called httpd on the side of the service so that you can use http to process the requested service (typically the browser).
To summarize, by installing an Apache-like http daemon on the questioner pc and disclosing the ip address to the user, the user can download the image to the browser.
In the development stage, it is okay to store images on the server, but in the case of shopping malls, it may be better to separate the function of storing images for performance.
If you're studying, we recommend that you save all your images on the server first, and when you're ready for service later, look at services such as
© 2024 OneMinuteCode. All rights reserved.