Re: Testing php, mysql, html and blobs



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/

.



Relevant Pages

  • Help to create a xml menu using asp.net c#
    ... <header caption="File"> ... I need to render this xml file like a menu using the followin code: ... TableRow tr = new TableRow; ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: procmail and Unicode header lines (RFC 2047)
    ... Mmm, procmail is a delivery agent, it does not render the messages. ... I was talking about e-mail processing (e-mail filtering, header fields ... So no, no end-user client e-mail ...
    (Debian-User)
  • Re: Sending web pages via e mail
    ... The other end could be set to render the entire e-mail into text format. ... The only thing that the person receives is the parts of the page broken down in the header xx.jpeg xxx.gif etc. etc. ... When I try to send a page I click on tools/send page by email ...
    (microsoft.public.office.misc)
  • html email displays as code
    ... This is a simplified example of an html email, including the header. ... It seems to render fine in most situations but for some people it is ... storesite.com - Independence Day Specials ...
    (comp.infosystems.www.authoring.html)
  • Re: Outlook 2010 - Reading HTML and Text
    ... with an occasional sender who I trust, I switch to html when a message ... Leave Outlook configured to display HTML-formatted e-mails. ... "Read all standard mail as plain text" is disabled. ... content and to render ...
    (microsoft.public.outlook)