New answers tagged

5

You should be able to use the disable functions feature built into PHP. That will prevent them from even calling ini_set or error_reporting in the first place. Add to php.ini: disable_functions = error_reporting,ini_set,shell_exec,etc...


-1

If you add these lines to your .htaccess it should do the job for the entire site. php_flag display_startup_errors off php_flag display_errors off php_flag html_errors off php_flag log_errors off If you want to do it on a script by script basis From the PHP manual at http://php.net/manual/en/function.error-reporting.php and found by doing a search for ...


0

You do not need a SSL certificate in order to send a secure email, the same way desktop computers, tablets and mobiles phones don't need one either. This could be happening because your server doesn't have OpenSSL installed, or your script is at fault. You can check if you have OpenSSL installed by doing: openssl version. If you need to install OpenSSL ...


0

You need to get a sms package from SMS gateway providers. They will provide you a package depending upon your usage and expose a http api through which you can call with relevant details to send sms on desired events. These providers are generally paid but the amount is not that huge and all depends on package you go for. As your volume of sms increases -> ...


0

Your PHP code will not need to be same as PHP will populate the superglobals you are interested in based on PHP's link to the web server software. The underlying technology should be of minimal consequence to your coding except where the difference is between Linux and Windows as there are some minor differences to file access functions and some PHP ...


1

Unfortunately there is no way to submit a single URL using cURL or anything automated such as what you are suggesting and there is no way to speed up the indexing process for either the content or the images. Neither sitemap submission nor manual URL submission guarantee the content will be added to the index. With the manual fetch it can update the index a ...


1

Many hosting companies have in their terms and conditions bans on any background processes which just sit there waiting for connections, additionally they firewalls servers against incoming connections on ports not used as standard on the server for what they believe the server should be used for. As I recall GoDaddy has this restriction on all shared and ...


0

I replicated the issue on a PLESK 12 node and solved it. file_put_contents('**./test.txt**', date("d.m.Y H:i:s"), FILE_APPEND); Apply the full path to the PHP file for the output script: The PHP file: <?php file_put_contents('/var/www/vhosts/domain.tld/webroot/test.txt', date(" 'd.m.Y H:i:s' "), FILE_APPEND); ?> Output after 3 Crons: ...



Top 50 recent answers are included