PHP网页显示不了图片,该怎么解决
PHP网页显示不了图片
PHP网页显示不了文件名包含空格和中文的图片
------解决方案--------------------
1.文件名 空格and 中文。。
2.相对 调好。要不就用绝对。
------解决方案--------------------
你把路径地址复制到url上能显示出来吗?
还有确定你的环境支持短标签吗
------解决方案--------------------
web文件不支持中文?具体什么问题俺也说不清楚?
要么是? 系统的问题。要么是?服务器的问题?
坐等大佬解释。。。
再者。文件名木有用中文的。。
------解决方案--------------------
echo $small ?>
你这个用的就是短标签
正常的是
------解决方案--------------------
这个应该不是 短标签的问题。
因为 lz 说的 只是图片不显示。 跟img 一起的 或许有 url title 等等。
可以确定是 文件中文名的导致图片不显示的。
刚才我也搜了下。还是云里雾里。。
坐等高手。解释。哈。
------解决方案--------------------
在吗楼主,是新手吧,加我QQ:617070140
------解决方案--------------------
你用浏览器访问php文件的时候,查看源代码 看 img 里的 src 是什么。如果正确,这个问题和服务器的操作系统有关。与php无关。
------解决方案--------------------
- PHP code
$small="125454455_1532 副本.jpg" <br><font color="#e78608">------解决方案--------------------</font><br>
------解决方案--------------------
又是空格又是中文的,你这个命名.....
可不可以规范点....
------解决方案--------------------
如果是iis 是可以. 是apache不支持中文吧

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

Video Face Swap
Swap faces in any video effortlessly with our completely free AI face swap tool!

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











PHP and Python each have their own advantages, and choose according to project requirements. 1.PHP is suitable for web development, especially for rapid development and maintenance of websites. 2. Python is suitable for data science, machine learning and artificial intelligence, with concise syntax and suitable for beginners.

PHP is a scripting language widely used on the server side, especially suitable for web development. 1.PHP can embed HTML, process HTTP requests and responses, and supports a variety of databases. 2.PHP is used to generate dynamic web content, process form data, access databases, etc., with strong community support and open source resources. 3. PHP is an interpreted language, and the execution process includes lexical analysis, grammatical analysis, compilation and execution. 4.PHP can be combined with MySQL for advanced applications such as user registration systems. 5. When debugging PHP, you can use functions such as error_reporting() and var_dump(). 6. Optimize PHP code to use caching mechanisms, optimize database queries and use built-in functions. 7

PHP is widely used in e-commerce, content management systems and API development. 1) E-commerce: used for shopping cart function and payment processing. 2) Content management system: used for dynamic content generation and user management. 3) API development: used for RESTful API development and API security. Through performance optimization and best practices, the efficiency and maintainability of PHP applications are improved.

PHP and Python each have their own advantages, and the choice should be based on project requirements. 1.PHP is suitable for web development, with simple syntax and high execution efficiency. 2. Python is suitable for data science and machine learning, with concise syntax and rich libraries.

PHP is still dynamic and still occupies an important position in the field of modern programming. 1) PHP's simplicity and powerful community support make it widely used in web development; 2) Its flexibility and stability make it outstanding in handling web forms, database operations and file processing; 3) PHP is constantly evolving and optimizing, suitable for beginners and experienced developers.

PHP and Python have their own advantages and disadvantages, and the choice depends on project needs and personal preferences. 1.PHP is suitable for rapid development and maintenance of large-scale web applications. 2. Python dominates the field of data science and machine learning.

PHP is suitable for web development, especially in rapid development and processing dynamic content, but is not good at data science and enterprise-level applications. Compared with Python, PHP has more advantages in web development, but is not as good as Python in the field of data science; compared with Java, PHP performs worse in enterprise-level applications, but is more flexible in web development; compared with JavaScript, PHP is more concise in back-end development, but is not as good as JavaScript in front-end development.

PHP is mainly procedural programming, but also supports object-oriented programming (OOP); Python supports a variety of paradigms, including OOP, functional and procedural programming. PHP is suitable for web development, and Python is suitable for a variety of applications such as data analysis and machine learning.
