使用GD支持配置PHP [英] Configuring PHP with GD support

查看:106
本文介绍了使用GD支持配置PHP的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,


首先,我必须说明我的PHP知识有限,但我是一个快速学习者。由于他的不合时宜的过去,我承担了完成朋友网站的任务,并且在完成工作时遇到了问题。


该网站涉及上传图片,jpg ,png或gif。作为订单流程的一部分。所涉及的文件称为order.php,step1.php,然后是step2.php。


图片上传到上传文件夹,(称为上传),ok和step1.php被调用/启动但后来没有移动到第2步。一旦上传图片,它应该生成一个缩略图,该缩略图存储在一个名为thumbs的serperate文件夹中,这在step2.php中使用。没有创建缩略图,也没有调用step2。


一些可能有用的信息是,该网站刚被移动到专用服务器。我不确定这是否会产生任何影响。


这是一个基于Linux的服务器,但旧的服务器也是如此。


上传文件夹有完全权限


我已经添加了

Hi to all,

Firstly I must state my knowledge of php is limited but I am a quick learner. I have taken on the task of finishing a friends website due to his untimely passing and have hit a problem with the completion of his work.

The site involves the uploading of a picture, jpg, png or gif. as part of an order process. The files involved are called order.php, step1.php and then step2.php.

The picture uploads to the upload folder, (called uploads), ok and step1.php is called/initiated but then fails to move to step 2. Once the picture is uploaded it is supposed to have a thumbnail produced which is to be stored in a serperate folder, called thumbs, and this is used in step2.php. The thumbnail is not being created and step2 is not called.

Some info that may be useful, is that the site has just been moved to a dedicated server. I''m not sure if this would make any difference.

It is a linux based server but then the old one was too.

The upload folders have full permissions

I have added the

展开 | 选择 | Wrap | 行号

推荐答案

附加。


我在phpmyadmin注意到我有2条警告信息。我不确定他们是否与我的问题有任何关系。


Additional.

I have noticed in phpmyadmin that i have 2 warning messages. I''m not sure if they will have anything to do with my problem.



找不到mbstring PHP扩展名而你好像在使用多字节字符集。如果没有mbstring扩展名,phpMyAdmin无法正确拆分字符串,可能会导致意外结果。
The mbstring PHP extension was not found and you seem to be using a multibyte charset. Without the mbstring extension phpMyAdmin is unable to split strings correctly and it may result in unexpected results.





and


您的PHP MySQL库版本5.0.27与您的MySQL服务器不同版本5.0.22。这可能会导致不可预测的行为
Your PHP MySQL library version 5.0.27 differs from your MySQL server version 5.0.22. This may cause unpredictable behavior



再次感谢

Again many thanks


Yikes。那个帖子太长了,所以我没有读完全部内容。我注意到你说你得到一个错误,说明imagecreatefromjpeg()不存在。这意味着GD库没有正确设置。


您使用的是什么PHP版本?
Yikes. That post is too long, so I didn''t read all of it. I did notice that you said that you got an error stating that imagecreatefromjpeg() doesn''t exist. This means that the GD library is not properly set up.

What PHP version are you using?



Yikes。那个帖子太长了,所以我没有读完全部内容。我注意到你说你得到一个错误,说明imagecreatefromjpeg()不存在。这意味着GD库未正确设置。


您使用的是什么PHP版本?
Yikes. That post is too long, so I didn''t read all of it. I did notice that you said that you got an error stating that imagecreatefromjpeg() doesn''t exist. This means that the GD library is not properly set up.

What PHP version are you using?



再次,我为长度道歉。我查看了发布代码图片,但没有锻炼。


感谢您的回复。


我打电话phpinfo.php,它说PHP版本5.1.6。


这是您需要的正确信息吗?

Again I do apologise for the lenght. I looked into posting an image of the code but it didn''t workout.

Thanks for the response though.

I have called phpinfo.php and it says php version 5.1.6.

Is this the right info you require?


这篇关于使用GD支持配置PHP的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆