The scenario looks like this
$data=$_REQUEST['data'];
echo $data
the url is www.mysite.com/service.php?data=
and the possible value for the key will be `100005772653,0|102795882836,0|100005772653,0|102795882836,0|100005772653,0|102795882836,0|100005772653,0|102795882836,0|100005772653,0|102795882836,0|100005772653,0|102795882836,0|100005772653,0|102795882836,0|100005772653,0|102795882836,0|100005772653,0|102795882836,0|100005772653,0|102795882836,0|100005772653,0|102795882836,0|100005772653,0|102795882836,0|100005772653,0|102795882836,0|100005772653,0|102795882836,0|100005772653,0|102795882836,0|100005772653,0|102795882836,0`
I am writing a simple Insert query. The code fails when the length of the data field exceeds 512 characters. So this situation provoked me to post such a question with limit value.
If i echo the $data it just shows a null (empty data). If the given data is less then it gets inserted.
Who said PHP can only store 512 characters? you are doing something wrong, you can store whatever amount of data you want to store in a variable..
As Alvin Wong Shared A Link, it says PHP
stringcan be as large as 2GBTest Case, Try to run this