You are here: Re: Testing php, mysql, html and blobs « HTML « IT news, forums, messages
Re: Testing php, mysql, html and blobs

Posted by JDS on 11/04/05 18:19

On Fri, 04 Nov 2005 15:14:49 +0000, Paul wrote:

> Next, created a webpage which calls a php script to render the file. Only
> problem is that all that happens is the html is rendered and a few seconds
> later, I get an error "The URL is not valid and cannot be loaded".

Some debugging hints:

1) change the header in thumbnail.php to
header("Content-type: text/plain");
Browse thumbnail.php dierctly:
In your browser, go to "http://your.server.butt/thumbnail.php"

Do you see any errors?

2) take out the reference to "thumbnail.php" in the original file. Does
the file load now?

I mean, remove the <img src="thumbnail.php?id=1" alt="A picture" /> line

3) You may want to rearrange the order of the lines in thumbnail.php.
Won't make too much of a difference, but put the header() line after all
the work is done and just before the "echo $jpg" line -- it just makes
more sense to me.

Also, put exit(); at the end of thumbnail.php. Sometimes that helps.

--
JDS | jeffrey@example.invalid
| http://www.newtnotes.com
DJMBS | http://newtnotes.com/doctor-jeff-master-brainsurgeon/

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация