FOr performance I have seen sites like facebook and some other sites use things like this instead of GET
<PHP arams_request(array( 'q' => null, //query 'st' => null)); //search type ?>
does anyone understand what is going on and how this would improve performance
Who says it's anything to do with performance? It's more likely to be for safety/security, which is a bit more important.
the owner of a large site who uses this method says its good performance and yes security to but will not disclose any details of how it works
oh well, looks like this one is a loose end then 😛
It's almost impossible for anybody to say how anything works from that line of code.
its a bit like me saying, what does this code do
<?php mySuperSecretFunction(); ?>
All you've shown us so far is a statement that appears to be a (misspelled?) call to a function to which is being supplied an array as the one function parameter, that array being an associative array consisting of two null values. There is no indication as to what it has to do with get/post data or performance, since we have no idea what the function actually does.
jasondavis wrote:FOr performance I have seen sites like facebook and some other sites use things like this instead of GET <PHP arams_request(array( 'q' => null, //query 'st' => null)); //search type ?> does anyone understand what is going on and how this would improve performance
Hi! If you have access to those lines of code you may even be able to get the code, where this function is declared. This will give a possibility to explain what it is.
My guess: It is a function to check an URI string, and sort out what is requested. Most probably in a search submission.
Regards 🙂