UPWORK/ODESK guru: Tips and Tricks for clients

skype: odesk.by / upwork.link , email: info@odesk.by/upwork.link

Archive for the ‘Php’ Category

PHP(wordpress): testing wp_mail function

without comments

script in root of WP

Read the rest of this entry »

Written by spectre

February 7th, 2016 at 7:30 pm

Posted in Php

php: save PHP variables to a text file

without comments

Writing $text to a file:

Read the rest of this entry »

Written by spectre

January 30th, 2016 at 3:38 pm

Posted in Php

Protected: PHP: Check me quickly

without comments

This content is password protected. To view it please enter your password below:

Written by spectre

November 19th, 2014 at 10:00 am

Posted in Php

Changing PHP Memory Limit : 3 ways

without comments

If you have seen an error like ”Fatal Error: __PHP Allowed Memory Size Exhausted” in apache logs or in your browser, this means that PHP has exhausted the maximum memory limit. This post will show 3 different ways on how you can increase the php memory limit and also explain when you should use them.

Read the rest of this entry »

Written by spectre

March 16th, 2014 at 5:11 pm

Posted in Php,Tips and Tricks

PHP: How to log errors and warnings into a file?

without comments

Use the following code:

ini_set("log_errors", 1);
ini_set("error_log", "/tmp/php-error.log");
error_log( "Hello, errors!" );

Read the rest of this entry »

Written by spectre

March 11th, 2014 at 7:09 pm

Posted in Php,Tips and Tricks

How to Get Your php.ini Path with SuPHP

without comments

You can specify which php.ini file is used within a certain directory if you have multiple php.ini files.

To do this, edit your .htaccess file located in the directory you wish to use and add the following .htaccess code:

Read the rest of this entry »

Written by spectre

February 18th, 2014 at 1:56 am

Posted in Php

Installation SuPHP/phpSuExec on Apache server with Plesk extension.

without comments

SuPHP Or PHPSuExec is a module that increases the security of the server and executes PHP files under the ownership of the owner of the file instead of the Apache user i.e. “apache”.

Read the rest of this entry »

Written by spectre

December 30th, 2013 at 12:29 pm

Posted in Php,Plesk FUCK

How to turn off php safe_mode off for a particular directory in a shared hosting environment?

without comments

Your service provider might have forgot to tell you that you need to enable your user defined php.ini configuration by adding this line in the .htaccess file that you find in your public_html folder:

Read the rest of this entry »

Written by spectre

December 23rd, 2013 at 9:53 pm

Posted in Php

Tips: execute shell commands in php on Linux server

without comments

Php has multiple functions to do this task. Lets take a look at each of these

1. system

Read the rest of this entry »

Written by spectre

December 16th, 2013 at 4:38 pm

Posted in Php