Re: PHP-GD not work

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



You are right. This code works. Thanks for the help.
But the upload still not work, and there is no error message in the logs.
So what might be the problem?

Andy Green írta:
Andy Green wrote:
Laci wrote:
OK
http://mega-feltoltes.tx.hu/index.php?page=image
This is a free image hosting script. The page is not english. Select an image, and press "feltoltes" button to start upload.
After the upload it"s try to create a thumbial of the image using GD.
This is the full source code of the script:
http://mega-feltoltes.tx.hu/basic.zip

Hum something is broken with the script somewhere, it does not produce an <img> tag in the HTML in order to show the image, and the HTML is in fact incomplete like the script dropped dead in the middle. I would really expect something about it in /var/log/httpd/error_log

Hm does the apache user have write permissions in the directory this is being served from?

Seems this script touches a lot of things outside of gd that can be making the trouble. Why don't you make a quick php page using this example

<?php

header("Content-type: image/png");
$string = $_GET['text'];
$im    = imagecreatefrompng("images/button1.png");
$orange = imagecolorallocate($im, 220, 210, 60);
$px    = (imagesx($im) - 7.5 * strlen($string)) / 2;
imagestring($im, 3, $px, 9, $string, $orange);
imagepng($im);
imagedestroy($im);

?>

taken from

http://www.php.net/gd

and see if even that works? Than you know your problem comes from file saving, the upload action, selinux, etc.

-Andy

--
fedora-list mailing list
fedora-list@xxxxxxxxxx
To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list
[Index of Archives]     [Older Fedora Users]     [Fedora Announce]     [Fedora Package Announce]     [EPEL Announce]     [Fedora Magazine]     [Fedora News]     [Fedora Summer Coding]     [Fedora Laptop]     [Fedora Cloud]     [Fedora Advisory Board]     [Fedora Education]     [Fedora Security]     [Fedora Scitech]     [Fedora Robotics]     [Fedora Maintainers]     [Fedora Infrastructure]     [Fedora Websites]     [Anaconda Devel]     [Fedora Devel Java]     [Fedora Legacy]     [Fedora Desktop]     [Fedora Fonts]     [ATA RAID]     [Fedora Marketing]     [Fedora Management Tools]     [Fedora Mentors]     [SSH]     [Fedora Package Review]     [Fedora R Devel]     [Fedora PHP Devel]     [Kickstart]     [Fedora Music]     [Fedora Packaging]     [Centos]     [Fedora SELinux]     [Fedora Legal]     [Fedora Kernel]     [Fedora OCaml]     [Coolkey]     [Virtualization Tools]     [ET Management Tools]     [Yum Users]     [Tux]     [Yosemite News]     [Gnome Users]     [KDE Users]     [Fedora Art]     [Fedora Docs]     [Asterisk PBX]     [Fedora Sparc]     [Fedora Universal Network Connector]     [Libvirt Users]     [Fedora ARM]

  Powered by Linux