图片显示,该如何处理
图片显示
php读取出数据库的路径G:/network/upload_files/2008/1331734471966.jpg,然后放到中为什么无法显示图片?是不能使用全路径吗?
------解决方案--------------------
/network/upload_files/2008/1331734471966.jpg 这样呢
------解决方案--------------------
少年,G:/network/upload_files/2008/1331734471966.jpg存在文件吗
用相对路径吧,这样不好的。
------解决方案--------------------
先弄清楚网站的目录是在什么地方 然后从那个地方开始 使用/
例如 web 目录是 network
那么正确的地址就是
./upload_files/2008/1331734471966.jpg
------解决方案--------------------
将你要显示的图片拖到显示页面,就会看看此时图片显示的路径,自己在整合下当前网站的根目录。
------解决方案--------------------
G://network//upload_files//2008//1331734471966.jpg
或者
G:\network\upload_files\2008\1331734471966.jpg
同样建议使用相对路径:
http://localhost/upload_files/2008/1331734471966.jpg
"http://localhost/" /path/Apache/htdocs/
------解决方案--------------------

Hot AI Tools

Undresser.AI Undress
AI-powered app for creating realistic nude photos

AI Clothes Remover
Online AI tool for removing clothes from photos.

Undress AI Tool
Undress images for free

Clothoff.io
AI clothes remover

AI Hentai Generator
Generate AI Hentai for free.

Hot Article

Hot Tools

Notepad++7.3.1
Easy-to-use and free code editor

SublimeText3 Chinese version
Chinese version, very easy to use

Zend Studio 13.0.1
Powerful PHP integrated development environment

Dreamweaver CS6
Visual web development tools

SublimeText3 Mac version
God-level code editing software (SublimeText3)

Hot Topics

Some players are experiencing a strange issue on PS4 or PS5 at launch. For example, this can cause distress when their PlayStation Network login fails, but their internet connection is fine. You may encounter errors when entering your login information and may not be able to join PSParty chat. If you encounter a similar problem, this guide may help you solve it. Next to PlayStationNetworkSign-in, you will see the error message ‘AnErrorHaveAreAre’ and it will say ‘Failure’. Other parameters like getting IP address, internet connection and connection speed were successful. So, what could be the problem here? I will give you a job

In the Java programming language, it is often necessary to perform operations such as reading, writing, copying, and deleting files. Java provides a set of functions of the Files class to perform file operations. This article will introduce how to use the Files function in Java for file operations. Import the required packages. Before performing file operations, you must first import Java's io package and nio package: importjava.io.File;importjava.io.IOException;import

"Files" itself is not a specific file type, but a general concept.

The process of installing RocketMQ in Docker is as follows: Create a Docker network: Execute the following command in the terminal to create a Docker network for communication between containers: dockernetworkcreaterocketmq-network Download the RocketMQ image: Execute the following command in the terminal to download RocketMQ Docker image: dockerpullrocketmqinc/rocketmq Start the NameServer container: Execute the following command in the terminal to start the NameServer container: dockerrun -d --namermqnamesrv --

What is the ParticleNetwork chain abstraction project? Understand the chain abstraction project ParticleNetwork in one article! Do you feel like you are stumbling around in the complex Web3 world, full of cross-chain challenges and liquidity issues? Ever thought there was a way to make it all clearer? Next, let us take a look at the concept of ChainAbstraction. Today, the editor of this site will share with you a detailed introduction to the chain abstraction project ParticleNetwork. Friends who need it can take a look! What is the Chain Abstraction Project ParticleNetwork Chain Abstraction aims to solve multi-chain fragmentation by providing a unified user experience across all blockchains

Open KDE's settings panel First, open KDE's settings panel. You can click the settings icon on the desktop, or search for "Settings" in the start menu and open it. Click the "Network" option in the settings panel. Next, you will see a "NetworkConnections" window. In this window, you need to click the "Add" button to add a new network connection. In the CreateNewConnection dialog box, select Manual&rdquo

After the PiNetwork main network was launched, its currency fluctuations attracted much attention. Bybit founder BenZhou recently criticized PiCoin as a scam, causing an uproar. PiNetwork immediately issued a statement denied the allegations and clarified the misunderstanding. Since then, PiCoin prices have rebounded strongly, with an increase of up to 96%, and are currently hovering around $1.5. The dispute between Bybit and PiNetwork originated from Zhou's comments, citing a warning issued by Chinese police in 2023, pointing out that PiNetwork is suspected of fraud and said that PiNetwork collects user data, causing economic losses. Zhou also denied Bybit and PiNetwor

Gate.io will launch pre-market spot trading at 12:00 on February 6, 2025 (UTC 8). Users can mint AI3 points by collateralizing USDT and trade in advance in the pre-market market. AI3 is the basic layer of AI3.0, aiming to build super dApps and on-chain proxy. AutonomysNetwork (AI3) Project Overview Project Name: AutonomysNetwork Project Code: AI3 Project Positioning: Financing of modular blockchain platform focusing on serving the AI Web3 ecosystem: Acquisition of Pantera, CoinbaseVentures and other institutions
