Long URL hangs up PHP page -
Long URL hangs up PHP page -
i'm hosting php web site on shared web hosting account, i'm not sure may causing since don't have direct access server.
the page in question simple. php script receives info via request , fills out form on page (as defaults before user fills out rest.)
for instance, may take url such:
http://www.example.com/test.php?id=sendform&name=somename&ver=1.0&desc=some%20description
then php script reads parameters passed (via functions stripslashes($_request['desc']);
) , creates html markup form fields filled out info passed it.
so working fine, until noticed if pass long url (i don't know exact limit, instance test url 1,280 characters long) script in test.php
not execute , page hangs long time until browser times out error.
i first thought stripslashes($_request['desc']);
phone call blame, , stripped out except line:
print("got end");
which still got hung long url.
so i'm curious, why happening? , how prevent "hang up"?
you ideally shouldn't have long urls recommended limit not have more 256 characters including host well. hard figure out based on info have provided, perchance because of
browser (check request trapping tools , see if request beingness sent or getting blocked browser itself. server (server may have limit on url length in configuration, can check access log or error log details) settings @ firewall (firewall @ server may preventing such longer url)a suggestion avoid longer url , if possible utilize post method send data.
php url get
Comments
Post a Comment