Saturday, January 25, 2014

POST request to https server php

POST request to https server php

Use following PHP function to make a POST request to https server <?php /* Online PHP Examples with Source Code website: http://4evertutorials.blogspot.in/ */ $sock = fsockopen("ssl://secure.yoursite.com", 443, $errno, $errstr, 30); if (!$sock) die("$errstr ($errno)\n"); $data = "var1=" . urlencode("Value for var1") . "&var2=" . urlencode("Value for var2"); fwrite($sock, "POST...
how to protect against cross site scripting php

how to protect against cross site scripting php

PHP includes the mysql_real_escape_string() operate, that makes a string safe by adding escaping so it may be employed by alternative MySQL-related functions without concern of SQL injections. By escaping, I mean adding a slash ahead of any special characters. as an example, one quote (') would be regenerate...

 

© 2014 4everTutorials. All rights resevered.

Back To Top