[PHP] PHP displaying images

2005-01-28 Thread Ian Johnson
Hello I am trying to use GD to create and manipulate images but the statement: header (Content-type: image/jpg); generates the error message: The image http://localhost/gdtst2.php; cannot be displayed, because it contains errors. There is no error message in the ../httpd/error_log

Re: [PHP] PHP displaying images

2005-01-28 Thread Richard Lynch
Ian Johnson wrote: I am trying to use GD to create and manipulate images but the statement: header (Content-type: image/jpg); generates the error message: The image http://localhost/gdtst2.php; cannot be displayed, because it contains errors. contains errors here

Re: [PHP] PHP displaying images

2005-01-28 Thread Jason Wong
On Saturday 29 January 2005 10:13, Ian Johnson wrote: There is no error message in the ../httpd/error_log file. That looks like the Apache error log file, which is most likely not what you want to be looking at. You want the PHP error log, see settings in php.ini, and check phpinfo(). --

Re: [PHP] PHP displaying images

2005-01-28 Thread Ian Johnson
This does the same for png as well. No errors are generated when header () is commented out or other content-types are specified Ian Johnson On Fri, 2005-01-28 at 20:45 -0800, Richard Lynch wrote: Ian Johnson wrote: I am trying to use GD to create and manipulate images but the statement:

Re: [PHP] PHP displaying images

2005-01-28 Thread Ian Johnson
Jason Wong wrote: On Saturday 29 January 2005 10:13, Ian Johnson wrote: There is no error message in the ../httpd/error_log file. That looks like the Apache error log file, which is most likely not what you want to be looking at. You want the PHP error log, see settings in php.ini, and check

Re: [PHP] PHP displaying images

2005-01-28 Thread Jason Wong
On Saturday 29 January 2005 13:42, Ian Johnson wrote: My php is configured to write error messages to the http error_log and not to display errors. OK. In this case the error is displayed and not logged. If you're referring to this ... The image http://localhost/gdtst2.php; cannot be

[PHP] php and images

2004-07-23 Thread Roman Duriancik
I have problem with jpg pictures in php pages. Path and picture is correct but when i want see picture in php script picture don't show. I use PHP4.3.4 on apache server 2.0.44 on Windopws 2000 Server. Thanks for help. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

Re: [PHP] php and images

2004-07-23 Thread Miroslav Hudak (php/ml)
I have a certain difficulties in case of processing large images thru GD2 library. GD2 has some problems with image processing and it results in some exception and GD just crashes. I have to mention, that the crash causes whole php interpreter to crash and execution of the script is terminated

Re: [PHP] PHP MSSQL Images

2003-08-14 Thread Curt Zirzow
* Thus wrote [EMAIL PROTECTED] ([EMAIL PROTECTED]): ... The following is the tag inserted to my webpage: img src=showpic.php?picid=1 View the source of this image to see if any php errors are being displayed. Curt -- I used to think I was indecisive, but now I'm not so sure. -- PHP

[PHP] PHP MSSQL Images

2003-08-12 Thread Chris . Jones
Hey .. I am having a problem when i try to pull an image that has been stored in MS SQL Server from displaying properly. I know, its a waste of space to store the actual image in SQL, but this is the way it needs to be done to be compatible with some of the other systems. Anyway, if you have

[PHP] PHP, DB, images, ODBC

2002-03-26 Thread David JURAS
Hi, I'm working with PHP and ODBC to get images stored in a database (Blob fields). But I experiment little problems to display these pics. Has anyone any information about PHP/ODBC/images ? Thanks, Bilbo

Re: [PHP] PHP and Images stored in mysql

2002-01-10 Thread Rodrigo Peres
How can I echo an image from other location than the mysql using this kind of script?? since I'm using php to output the image from database, there's a way to change it to a ftp link for example if image doesn't exists?? this is my script: ? $sql = SELECT Imagem_data,Imagem_type FROM

[PHP] PHP and Images stored in mysql

2002-01-09 Thread Rodrigo Peres
Hi list, I have some images stored in a blob in mysql. I've made this code to output them to html, but the problem is if there's no image at a given id the page tooks a long time to load and display the broken image, there's a way to avoid this, I mean, there's a way to print a message or

Re: [PHP] PHP and Images stored in mysql

2002-01-09 Thread Bogdan Stancescu
My way around this is using two fallback stages: for one you test mysql_num_rows() after performing the query. If that's 0, use a default image placed in the database beforehand. If that also returns a null mysql_num_rows() then echo an image (probably the same default) from a known location in