Category : php-5.6

Environment: I followed the guide from this link https://medium.com/@daniel.bui/multiple-php-version-with-apache-on-centos-7-17078c66692c and has several PHP versions 5.6, 7.0 and 7.4 In a SOAP service I need to read from "php://input", but is always empty, the php in that directory is 5.6, and the php.ini is a copy of another server in witch all goes right, but it ..

Read more

I want to download xml from api and save it on my server with new name and finally return name function SendInfo($URL,$Username,$Password,$API) { $CH = curl_init(); curl_setopt($CH,CURLOPT_URL,$URL); curl_setopt($CH,CURLOPT_POSTFIELDS,"username=$Username&password=$Password&api=$API"); curl_setopt($CH, CURLOPT_SSL_VERIFYPEER, FALSE); curl_setopt($CH,CURLOPT_RETURNTRANSFER,false); $Result = curl_exec($CH); $err = curl_error($CH); curl_close($CH); return $Result; } $me=SendInfo($URL,$Username,$Password,$API); in my server function generateRandomString($length = 10) { $characters = ‘0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ’; $charactersLength ..

Read more