So im making a blog website and I want to encode ids that look like this:/project/veiw.php?id=659745-145407
this is the code that generates the results
$post = " \"<table class = 'display' style = 'margin-top:50px;'>". "<tr><td id = 'blogTitle'>"."<a href = 'veiw.php?id=".urlencode($rnum)."'>".$title."</a>"."</td></tr>". "<tr><td> Posted on ". date( DATE_RSS ) .' By: '.$_REQUEST['name']. "</td></tr>". "<tr><td class = 'flow'>".$input."</td></tr>". "</table> \" ";
as you can see i tried using urlencode but that does nothing to the code and it is still visible as is to the user. is there anyway to encode this with php other than urlencode?
I am trying to make an API call to Influx db from PHP program. The curl request to be made is -
curl -G 'http://localhost:8086/query?pretty=true' --data-urlencode "q=SHOW MEASUREMENTS"
The code in PHP that I am stuck with is -
$curl = curl_init();curl_setopt_array($curl, array( CURLOPT_URL => "http://localhost:8086/query?pretty=true", CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1, CURLOPT_CUSTOMREQUEST => "GET", CURLOPT_HTTPHEADER => array( "cache-control: no-cache" ),));
I am not sure in which curl_setopt_array should I send the q=SHOW MEASUREMENTS
quick question. I have an AngularJS front end communicating with a Spring REST backend . URL encoding is only necessary for encoding parameters passed in the url (for application/x-www-form-urlencoded). I don't have to worry about the encoding in the body, correct ?
I upload photos to an AWS S3 bucket. I created a unique file name like:
When upload is finished, I can retrieve the same key with my aws bucket.
But when I go to that folder, I see that "NJGB$$5Wz" became "NJGB$5Wz".
UPDATE: If I encode the key, it becomes: NJGB%24%245Wz and S3 creates a folder with the same name. But, If I get link to that folder from AWS console, it encodes again and it became NJGB%2524%25245Wz
Do you think it is a bug? How can I fix that?
I have created a blog with blogger for distributing free templates - https://templatemonstrosity.blogspot.in But the thing is that I need to make it easier for my readers to search through my posts. I have a lot of labels and I think that it would b great if someone can help me to make a filterer like the one right here https://btemplates.com/template-search/. BTW. I am a complete beginner and it would be great if you make it easy to understand. Thanks.