Re: Testing php, mysql, html and blobs
- From: JDS <jeffrey@xxxxxxxxxxxxxxx>
- Date: Fri, 04 Nov 2005 11:19:38 -0500
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@xxxxxxxxxxxxxxx
| http://www.newtnotes.com
DJMBS | http://newtnotes.com/doctor-jeff-master-brainsurgeon/
.
- References:
- Testing php, mysql, html and blobs
- From: Paul
- Testing php, mysql, html and blobs
- Prev by Date: Re: Is there really no one who can help me password protect a page?
- Next by Date: Re: Testing php, mysql, html and blobs
- Previous by thread: Testing php, mysql, html and blobs
- Next by thread: Re: Testing php, mysql, html and blobs
- Index(es):
Relevant Pages
|