hosted by liquidweb


Go Back   Web Hosting Talk : Web Hosting Main Forums : Hosting Security and Technology : increase the length of query string
Reply

Hosting Security and Technology Configuring and optimizing web hosting servers and operating systems, developing administration scripts, building servers, protecting against hackers, and general security (SSL certificates, etc.)
Forum Jump

increase the length of query string

Reply Post New Thread In Hosting Security and Technology Subscription
 
Send news tip View All Posts Thread Tools Search this Thread Display Modes
  #1  
Old 07-25-2011, 03:37 AM
prashant1979 prashant1979 is offline
Eternal Learner
 
Join Date: Jul 2007
Posts: 1,776

increase the length of query string


How to increase the length of query string for a website developed in PHP and MySQL and running on Linux?

__________________
Prashant T.

Don't run after Success. Run after Excellence and Success will soon follow.

Reply With Quote


Sponsored Links
  #2  
Old 07-25-2011, 04:07 AM
foobic foobic is online now
Community Liaison 2.0
 
Join Date: Feb 2005
Location: Australia
Posts: 5,119
What limit are you hitting? And are you referring to the url query string or the php-mysql query string (or something else)?

In any event the best option is probably to change your code so you don't need to increase the length of query string beyond standard limits (eg. use http post or split up your mysql queries).

__________________
Chris

"Learn from the mistakes of others. You can never live long enough to make them all yourself." - Groucho Marx

Reply With Quote
  #3  
Old 07-25-2011, 06:36 AM
prashant1979 prashant1979 is offline
Eternal Learner
 
Join Date: Jul 2007
Posts: 1,776
I want to know what is the standard limit and up to what limit is recommended to be set.

__________________
Prashant T.

Don't run after Success. Run after Excellence and Success will soon follow.

Reply With Quote
Sponsored Links
  #4  
Old 07-25-2011, 08:55 AM
drspliff drspliff is offline
Aspiring Evangelist
 
Join Date: Aug 2002
Location: Milton Keynes
Posts: 352
The limit is almost always enforced at the client side and varies between browsers. The Boutell.com FAQ covering maximum URL length.

You know - 1 minute of internet searching would've given you all the information you need... maybe you should try & use your brain next time rather than having WebHostingTalk users to google stuff for you.

Reply With Quote
  #5  
Old 07-26-2011, 01:23 AM
prashant1979 prashant1979 is offline
Eternal Learner
 
Join Date: Jul 2007
Posts: 1,776
Quote:
Originally Posted by drspliff View Post
The limit is almost always enforced at the client side and varies between browsers. The Boutell.com FAQ covering maximum URL length.

You know - 1 minute of internet searching would've given you all the information you need... maybe you should try & use your brain next time rather than having WebHostingTalk users to google stuff for you.
Before advising people on using Google, I think you need to contain your excitement and read carefully what I am searching for. I need the default value of the maximum query length in MySQL and the recommended value. What you have given me is the maximum length of a URL. About people searching on Google for an answer for me, what is wrong in that? I have myself used Google to find answers for people's queries in WHT. If you don't wanna help, it is better not to reply to the thread. If your intention is just to increase your posts, then I don't need your help.

__________________
Prashant T.

Don't run after Success. Run after Excellence and Success will soon follow.

Reply With Quote
  #6  
Old 07-26-2011, 07:51 AM
prashant1979 prashant1979 is offline
Eternal Learner
 
Join Date: Jul 2007
Posts: 1,776
While searching on the net, I get details on max allowed packet size. Is it the same as Max query length?

__________________
Prashant T.

Don't run after Success. Run after Excellence and Success will soon follow.

Reply With Quote
  #7  
Old 07-26-2011, 08:46 AM
prashant1979 prashant1979 is offline
Eternal Learner
 
Join Date: Jul 2007
Posts: 1,776
I found max_allowed_packet is the setting that should be enabled in the my.cnf for setting the maximum query length. The default value is 1 MB. I have set 16 MB for mine.

__________________
Prashant T.

Don't run after Success. Run after Excellence and Success will soon follow.

Reply With Quote
Reply

Similar Threads
Thread Thread Starter Forum Replies Last Post
Getting data out of a database using a query string Jeff - Exceed Programming Discussion 1 05-18-2007 12:22 AM
Value in the query string using Javascript DephNet[Paul] Programming Discussion 3 11-05-2006 04:04 PM
how can i write this query string danielking Programming Discussion 9 04-27-2003 10:42 PM
trimming the length of a string matt2kjones Programming Discussion 2 12-23-2002 08:26 PM

Related posts from TheWhir.com
Title Type Date Posted
Is Assistance with Wiretap Orders Coming? Blog 2013-05-07 10:51:52
Massive Change to the Web Culture is Just around the Corner, Offering Exciting Opportunities to Hosters Blog 2013-03-28 07:50:12
ICANN 45: New gTLD Overview and Information for Applicants with ICANN CSO Kurt Pritz Web Hosting News 2012-10-15 14:01:26
VeriSign's Q2 2012 Domain Name Brief Shows 3.1 Percent Domain Increase Web Hosting News 2012-10-03 16:16:15
Apache Sees Largest Gain in Netcraft December Web Server Survey Web Hosting News 2011-12-12 18:21:22


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes
Postbit Selector

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Forum Jump
Login:
Log in with your username and password
Username:
Password:



Forgot Password?
Advertisement:
Web Hosting News:



 

X

Welcome to WebHostingTalk.com

Create your username to jump into the discussion!

WebHostingTalk.com is the largest, most influentual web hosting community on the Internet. Join us by filling in the form below.


(4 digit year)

Already a member?