Re: [PHP] displaying image from MySQL DB using HTML/PHP



On Tue, March 13, 2007 9:07 pm, Jim Lucas wrote:
DON'T USE REQUEST
only use it from where you expect it to be, in this case, $_GET

Unless you actually WANT your web application to be flexible and allow
other users to have links or POST forms to interface with it...

It's not like you can trust the data of POST or GET any more or less
than the other, really.

They both come from the big bad internet world outside, and are
equally suspect.

I'm just suggesting that not using REQUEST is not an absolute.

In this particular scenario, it's hard to imagine why you'd want a
JPEG as a response to a POST, of course, so definitely use $_GET here.

But if you have a web app that works equally well for other pages to
link to, or to send POST data to, using REQUEST is quite nice, imho.

--
Some people have a "gift" link here.
Know what I want?
I want you to buy a CD from some starving artist.
http://cdbaby.com/browse/from/lynch
Yeah, I get a buck. So?
.



Relevant Pages

  • Re: upload 50M file to web service got 500 internal server error
    ... Try looking at the response in the trace. ... if the trace never shows a request, ... Right now maxRequestLength property of Web App and Webservcie are all set to ... But in trace.axd of the Webservice, ...
    (microsoft.public.dotnet.framework.webservices)
  • Re: HTML email with hidden image request for website statistics gathering?
    ... Websphere and a J2EE web app. ... This web app produces an HTML email ... mean they read it, but opened it, and the request is ... But won't the proxy server end up caching the image after the 1st or ...
    (comp.lang.java.programmer)
  • Re: FORM data in cgi
    ... to send pre-encoded POST data; you'll have to check that yourself. ... you'll have to do the HTTP request processing by yourself. ... As you describe it, since the data stream in the request body will be exactly the same in both cases (though the HTTP request line and headers will differ) is possible to handle the request by having the CGI script a direct connection to the intended destination server, parsing the incoming headers, generating the outgoing ones, and then just relaying the request body. ...
    (comp.lang.python)
  • Re: HTTP POST from PHP using a link
    ... ..oO(Manuel Lemos) ... I tried the Class and it looks to be able to send POST data to a page ... I think you can submit a GET request using that class to an URL without ... There are also buffer limits in the web servers. ...
    (comp.lang.php)
  • Re: Asynchronous HttpWebRequest
    ... you are starting a async request ... | I found an example of making an async request on MSDN and numerous other ... I was easy enough to incorporate the code into my web app - the ... | End Sub ...
    (microsoft.public.dotnet.framework.aspnet)