programming:php
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
programming:php [2017/06/14 14:03] – ↷ Page moved from php to programming:php skipidar | programming:php [2023/11/02 07:11] (current) – skipidar | ||
---|---|---|---|
Line 194: | Line 194: | ||
$toolbar = @file_get_contents($ROOT.'/ | $toolbar = @file_get_contents($ROOT.'/ | ||
</ | </ | ||
+ | |||
+ | |||
+ | ====INSTALLATION, | ||
+ | |||
+ | This Page is about tips and fallpits while configurating PHP: | ||
+ | |||
+ | ===Find out, which User Account PHP uses=== | ||
+ | **Problem: | ||
+ | < | ||
+ | <?php | ||
+ | echo 'Name des Benutzers: ' . get_current_user(); | ||
+ | ?> | ||
+ | </ | ||
+ | |||
+ | |||
+ | ===Install modules=== | ||
+ | |||
+ | < | ||
+ | sudo apt-get install php5-mysql php5-curl php5-gd php5-idn php-pear php5-imagick php5-imap php5-mcrypt php5-memcache php5-mhash php5-ming php5-ps php5-pspell php5-recode php5-snmp php5-sqlite php5-tidy php5-xmlrpc php5-xsl php5-json | ||
+ | </ | ||
+ | ====Usage==== | ||
+ | |||
+ | ===Findout the path to the current directory=== | ||
+ | When including other files, they can't be refered relatively to the current dir. To do so use | ||
+ | < | ||
+ | define(' | ||
+ | $path = (__ROOT__ . '/ | ||
+ | </ | ||
+ | |||
+ | |||
+ | === Php Script as a cron job === | ||
+ | < | ||
+ | */20 * * * * / | ||
+ | </ |
programming/php.1497449027.txt.gz · Last modified: (external edit)