<?xml version="1.0" encoding="UTF-8"?> <rss
version="2.0"
xmlns:content="http://purl.org/rss/1.0/modules/content/"
xmlns:wfw="http://wellformedweb.org/CommentAPI/"
xmlns:dc="http://purl.org/dc/elements/1.1/"
xmlns:atom="http://www.w3.org/2005/Atom"
xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
> <channel><title>Frequently Asked Questions About Linux / UNIX &#187; PHP</title> <atom:link href="http://www.cyberciti.biz/faq/category/php/feed/" rel="self" type="application/rss+xml" /><link>http://www.cyberciti.biz/faq</link> <description>Every answer asks a more beautiful question.</description> <lastBuildDate>Sun, 19 May 2013 18:24:07 +0000</lastBuildDate> <language>en-US</language> <sy:updatePeriod>hourly</sy:updatePeriod> <sy:updateFrequency>1</sy:updateFrequency> <generator>http://wordpress.org/?v=3.5.1</generator> <item><title>Apache / Nginx / Lighttpd: PHP Disable File Upload</title><link>http://www.cyberciti.biz/faq/php-disable-file-upload-using-php-ini/</link> <comments>http://www.cyberciti.biz/faq/php-disable-file-upload-using-php-ini/#comments</comments> <pubDate>Sun, 14 Apr 2013 07:31:55 +0000</pubDate> <dc:creator>nixCraft</dc:creator> <category><![CDATA[Apache]]></category> <category><![CDATA[Lighttpd]]></category> <category><![CDATA[Linux]]></category> <category><![CDATA[Nginx]]></category> <category><![CDATA[PHP]]></category> <category><![CDATA[UNIX]]></category> <category><![CDATA[/etc/php.ini]]></category> <category><![CDATA[/etc/php5/apache2/php.ini]]></category> <category><![CDATA[/etc/php5/cgi/php.ini]]></category> <category><![CDATA[/usr/local/etc/php.ini]]></category> <category><![CDATA[php file_uploads = Off]]></category> <category><![CDATA[php ini]]></category> <category><![CDATA[restart php.ini]]></category> <guid
isPermaLink="false">http://www.cyberciti.biz/faq/?p=13218</guid> <description><![CDATA[<div
style="float:right;margin-top:0px;margin-left:5px;"><a
title="See all PHP related FAQ" href="http://www.cyberciti.biz/faq/category/php/"><img
src="http://s0.cyberciti.org/images/category/old/php-logo.png" alt="" border="0" /></a></div><span
class="drop_cap">I</span> am in the process of setting Apache and PHP for my small business server. I'm not utilizing file upload functionality in any of my PHP scripts. How do I disallow uploading files under CentOS or Ubuntu Linux based LAMP server?<p>Read answer to: "<strong><A
href="http://www.cyberciti.biz/faq/php-disable-file-upload-using-php-ini/">Apache / Nginx / Lighttpd: PHP Disable File Upload</a></strong>"</p><p><a
title="Post to Twitter" href="http://twitter.com/share?related=nixcraft&text=Apache / Nginx / Lighttpd: PHP Disable File Upload&url=http://www.cyberciti.biz/faq/php-disable-file-upload-using-php-ini/&via=nixcraft" target="_blank" border="0"><img
border="0" src="http://s0.cyberciti.org/images/misc/feed.tweet.png" alt="Tweet this" /></a> &nbsp;&nbsp;&nbsp;<a
title="Share on Facebook" href="http://www.facebook.com/sharer.php?u=http://www.cyberciti.biz/faq/php-disable-file-upload-using-php-ini/" target="_blank"><img
border="0" src="http://s0.cyberciti.org/images/misc/feed.fb.png" alt="Share on Facebook" /></a></p>]]></description> <wfw:commentRss>http://www.cyberciti.biz/faq/php-disable-file-upload-using-php-ini/feed/</wfw:commentRss> <slash:comments>1</slash:comments> </item> <item><title>PHP: Disable APC Module At Command Line CLI Scripts / Cron Scripts</title><link>http://www.cyberciti.biz/faq/unix-linux-bsd-appleosx-php-disable-apc-ini/</link> <comments>http://www.cyberciti.biz/faq/unix-linux-bsd-appleosx-php-disable-apc-ini/#comments</comments> <pubDate>Mon, 05 Nov 2012 17:13:24 +0000</pubDate> <dc:creator>nixCraft</dc:creator> <category><![CDATA[PHP]]></category> <category><![CDATA[UNIX]]></category> <category><![CDATA[/etc/php.d/apc.ini]]></category> <category><![CDATA[apc.enabled = 1|0]]></category> <category><![CDATA[bytecode compiler]]></category> <category><![CDATA[grep command]]></category> <guid
isPermaLink="false">http://www.cyberciti.biz/faq/?p=12874</guid> <description><![CDATA[<div
style="float:right;margin-top:0px;margin-left:5px;"><a
title="See all PHP related FAQ" href="http://www.cyberciti.biz/faq/category/php/"><img
src="http://s0.cyberciti.org/images/category/old/php-logo.png" alt="" border="0" /></a></div><span
class="drop_cap">I</span> have a PHP application developed and running on LAMP. I have APC installed on the server. APC is a free, open, and robust framework for caching and optimizing PHP intermediate code. The APC based caching is good for my web site, but my cron jobs and php cli scripts fail to<div
style="float:right;margin-top:0px;margin-left:5px;"><a
title="See all UNIX related articles/faq" href="http://www.cyberciti.biz/faq/category/unix/"><img
src="http://s0.cyberciti.org/images/category/old/unix-logo.gif" alt="" border="0" /></a></div>fetch correct data due to caching. How do I disable APC module at the command line (php-cli) under Linux or Unix like operating systems for all my cron jobs?<p>Read answer to: "<strong><A
href="http://www.cyberciti.biz/faq/unix-linux-bsd-appleosx-php-disable-apc-ini/">PHP: Disable APC Module At Command Line CLI Scripts / Cron Scripts</a></strong>"</p><p><a
title="Post to Twitter" href="http://twitter.com/share?related=nixcraft&text=PHP: Disable APC Module At Command Line CLI Scripts / Cron Scripts&url=http://www.cyberciti.biz/faq/unix-linux-bsd-appleosx-php-disable-apc-ini/&via=nixcraft" target="_blank" border="0"><img
border="0" src="http://s0.cyberciti.org/images/misc/feed.tweet.png" alt="Tweet this" /></a> &nbsp;&nbsp;&nbsp;<a
title="Share on Facebook" href="http://www.facebook.com/sharer.php?u=http://www.cyberciti.biz/faq/unix-linux-bsd-appleosx-php-disable-apc-ini/" target="_blank"><img
border="0" src="http://s0.cyberciti.org/images/misc/feed.fb.png" alt="Share on Facebook" /></a></p>]]></description> <wfw:commentRss>http://www.cyberciti.biz/faq/unix-linux-bsd-appleosx-php-disable-apc-ini/feed/</wfw:commentRss> <slash:comments>0</slash:comments> </item> <item><title>PHP Warning:  fread(): Length parameter must be greater than 0 in setoptions.php on line 311 Error and Solution</title><link>http://www.cyberciti.biz/faq/unix-linux-php-warning-fread-length-parametermust-be-0/</link> <comments>http://www.cyberciti.biz/faq/unix-linux-php-warning-fread-length-parametermust-be-0/#comments</comments> <pubDate>Sat, 20 Oct 2012 19:29:58 +0000</pubDate> <dc:creator>nixCraft</dc:creator> <category><![CDATA[PHP]]></category> <category><![CDATA[Troubleshooting]]></category> <category><![CDATA[Apache]]></category> <category><![CDATA[php error]]></category> <category><![CDATA[php script]]></category> <guid
isPermaLink="false">http://www.cyberciti.biz/faq/?p=12824</guid> <description><![CDATA[<div
style='float:right;margin-top:0px;margin-left:5px;'><a
href='http://www.cyberciti.biz/faq/category/php/' title='See all PHP related FAQ'><img
src='http://s0.cyberciti.org/images/category/old/php-logo.png' border='0' /></a></div> <span
class="drop_cap">O</span>ne of my php script called setoptions.php is hosted on my new vps server. However, it is not working so <a
href="http://www.cyberciti.biz/tips/php-howto-turn-on-error-log-file.html">I setup php error log as described here</a> and, and I see the following warning repeated in my log file: <kbd>PHP Warning:  fread(): Length parameter must be greater than 0 in /var/www/html/scripts/setoptions.php on line 311</kbd> The line no # 311 is as follows in my php script: <kbd>$fname = 'myappconfig.php';
$content = fread($fhandle,filesize($fname));</kbd> How do I fix this problem under Unix/Apache/php5 server?<p>Read answer to: "<strong><A
href="http://www.cyberciti.biz/faq/unix-linux-php-warning-fread-length-parametermust-be-0/">PHP Warning:  fread(): Length parameter must be greater than 0 in setoptions.php on line 311 Error and Solution</a></strong>"</p><p><a
title="Post to Twitter" href="http://twitter.com/share?related=nixcraft&text=PHP Warning:  fread(): Length parameter must be greater than 0 in setoptions.php on line 311 Error and Solution&url=http://www.cyberciti.biz/faq/unix-linux-php-warning-fread-length-parametermust-be-0/&via=nixcraft" target="_blank" border="0"><img
border="0" src="http://s0.cyberciti.org/images/misc/feed.tweet.png" alt="Tweet this" /></a> &nbsp;&nbsp;&nbsp;<a
title="Share on Facebook" href="http://www.facebook.com/sharer.php?u=http://www.cyberciti.biz/faq/unix-linux-php-warning-fread-length-parametermust-be-0/" target="_blank"><img
border="0" src="http://s0.cyberciti.org/images/misc/feed.fb.png" alt="Share on Facebook" /></a></p>]]></description> <wfw:commentRss>http://www.cyberciti.biz/faq/unix-linux-php-warning-fread-length-parametermust-be-0/feed/</wfw:commentRss> <slash:comments>1</slash:comments> </item> <item><title>CentOS / RHEL: Install and Configure phpMyAdmin Administration Of MySQL Database Server</title><link>http://www.cyberciti.biz/faq/centos-fedora-redhat-linux-installing-phpmyadmin-webtool/</link> <comments>http://www.cyberciti.biz/faq/centos-fedora-redhat-linux-installing-phpmyadmin-webtool/#comments</comments> <pubDate>Wed, 25 Jul 2012 08:58:11 +0000</pubDate> <dc:creator>nixCraft</dc:creator> <category><![CDATA[CentOS]]></category> <category><![CDATA[MySQL]]></category> <category><![CDATA[PHP]]></category> <category><![CDATA[RedHat and Friends]]></category> <category><![CDATA[/etc/httpd/conf.d/phpMyAdmin.conf]]></category> <category><![CDATA[/etc/phpMyAdmin/config.inc.php]]></category> <category><![CDATA[enterprise linux]]></category> <category><![CDATA[phpmyadmin]]></category> <category><![CDATA[service httpd restart]]></category> <category><![CDATA[yum command]]></category> <guid
isPermaLink="false">http://www.cyberciti.biz/faq/?p=12646</guid> <description><![CDATA[<div
style="float: right; margin-top: 0px; margin-left: 5px;"><a
title="See all Redhat/CentOS/Fedora Core related FAQ" href="http://www.cyberciti.biz/faq/category/redhat-and-friends/"><img
src="http://s0.cyberciti.org/images/category/old/rhlogo.gif" border="0" alt="" /></a></div> <span
class="drop_cap">H</span>ow do I install phpMyAdmin to handle the administration of MySQL database server over the World Wide Web under Fedora / Scientific / CentOS / RHEL / Red Hat Enterprise Linux 6.x server systems?<p>Read answer to: "<strong><A
href="http://www.cyberciti.biz/faq/centos-fedora-redhat-linux-installing-phpmyadmin-webtool/">CentOS / RHEL: Install and Configure phpMyAdmin Administration Of MySQL Database Server</a></strong>"</p><p><a
title="Post to Twitter" href="http://twitter.com/share?related=nixcraft&text=CentOS / RHEL: Install and Configure phpMyAdmin Administration Of MySQL Database Server&url=http://www.cyberciti.biz/faq/centos-fedora-redhat-linux-installing-phpmyadmin-webtool/&via=nixcraft" target="_blank" border="0"><img
border="0" src="http://s0.cyberciti.org/images/misc/feed.tweet.png" alt="Tweet this" /></a> &nbsp;&nbsp;&nbsp;<a
title="Share on Facebook" href="http://www.facebook.com/sharer.php?u=http://www.cyberciti.biz/faq/centos-fedora-redhat-linux-installing-phpmyadmin-webtool/" target="_blank"><img
border="0" src="http://s0.cyberciti.org/images/misc/feed.fb.png" alt="Share on Facebook" /></a></p>]]></description> <wfw:commentRss>http://www.cyberciti.biz/faq/centos-fedora-redhat-linux-installing-phpmyadmin-webtool/feed/</wfw:commentRss> <slash:comments>8</slash:comments> </item> <item><title>PHP: Require_once(): Unable To Allocate Memory For Pool Error and Solution</title><link>http://www.cyberciti.biz/faq/linux-unix-php-warning-unable-to-allocate-memory-for-pool/</link> <comments>http://www.cyberciti.biz/faq/linux-unix-php-warning-unable-to-allocate-memory-for-pool/#comments</comments> <pubDate>Fri, 20 Jul 2012 12:08:10 +0000</pubDate> <dc:creator>nixCraft</dc:creator> <category><![CDATA[Linux]]></category> <category><![CDATA[PHP]]></category> <category><![CDATA[Troubleshooting]]></category> <category><![CDATA[UNIX]]></category> <category><![CDATA[/etc/php.d/apc.ini]]></category> <category><![CDATA[apache 2]]></category> <category><![CDATA[apc]]></category> <category><![CDATA[cache entry]]></category> <category><![CDATA[CentOS]]></category> <category><![CDATA[debian]]></category> <category><![CDATA[fedora]]></category> <category><![CDATA[FreeBSD]]></category> <category><![CDATA[garbage collection]]></category> <category><![CDATA[memory segment]]></category> <category><![CDATA[mmap module]]></category> <category><![CDATA[NetBSD]]></category> <category><![CDATA[Nginx]]></category> <category><![CDATA[Openbsd]]></category> <category><![CDATA[pecl]]></category> <category><![CDATA[PHP apc.mmap_file_mask=/tmp/apc.XXXXXX]]></category> <category><![CDATA[PHP apc.shm_size=96M]]></category> <category><![CDATA[PHP apc.ttl=3600]]></category> <category><![CDATA[php cache]]></category> <category><![CDATA[rhel]]></category> <category><![CDATA[server log]]></category> <category><![CDATA[ubuntu]]></category> <category><![CDATA[web server service]]></category> <guid
isPermaLink="false">http://www.cyberciti.biz/faq/?p=12638</guid> <description><![CDATA[<div
style="float:right;margin-top:0px;margin-left:5px;"><a
title="See all PHP related FAQ" href="http://www.cyberciti.biz/faq/category/php/"><img
src="http://s0.cyberciti.org/images/category/old/php-logo.png" alt="" border="0" /></a></div><span
class="drop_cap">I</span>'m running PHP version 5.3.3 on CentOS / RHEL 6.x with APC  php-pecl-apc-3.1.9. However, I'm getting the following warnings in my <a
href="http://www.cyberciti.biz/tips/php-howto-turn-on-error-log-file.html">php server log file</a>:<blockquote>[01-Jul-2012 10:50:49] PHP Warning:  require_once(): Unable to allocate memory for pool. in /var/www/html/includes/admin.php on line 57
[18-Jul-2012 17:00:08] PHP Warning:  include_once(): Unable to allocate memory for pool. in //var/www/html/includes/xmlrpc.php on line 55
[18-Jul-2012 17:00:40] PHP Warning:  require(): Unable to allocate memory for pool. in /var/www/html/includes/geshi.php on line 2307</blockquote> How do I fix these php warnings?<p>Read answer to: "<strong><A
href="http://www.cyberciti.biz/faq/linux-unix-php-warning-unable-to-allocate-memory-for-pool/">PHP: Require_once(): Unable To Allocate Memory For Pool Error and Solution</a></strong>"</p><p><a
title="Post to Twitter" href="http://twitter.com/share?related=nixcraft&text=PHP: Require_once(): Unable To Allocate Memory For Pool Error and Solution&url=http://www.cyberciti.biz/faq/linux-unix-php-warning-unable-to-allocate-memory-for-pool/&via=nixcraft" target="_blank" border="0"><img
border="0" src="http://s0.cyberciti.org/images/misc/feed.tweet.png" alt="Tweet this" /></a> &nbsp;&nbsp;&nbsp;<a
title="Share on Facebook" href="http://www.facebook.com/sharer.php?u=http://www.cyberciti.biz/faq/linux-unix-php-warning-unable-to-allocate-memory-for-pool/" target="_blank"><img
border="0" src="http://s0.cyberciti.org/images/misc/feed.fb.png" alt="Share on Facebook" /></a></p>]]></description> <wfw:commentRss>http://www.cyberciti.biz/faq/linux-unix-php-warning-unable-to-allocate-memory-for-pool/feed/</wfw:commentRss> <slash:comments>4</slash:comments> </item> <item><title>PHP: GeSHi Syntax Highlighter Enable / Disable Line Numbers</title><link>http://www.cyberciti.biz/faq/unix-linux-appleosx-bsde-php-geshi-enabledisable-line-numbers/</link> <comments>http://www.cyberciti.biz/faq/unix-linux-appleosx-bsde-php-geshi-enabledisable-line-numbers/#comments</comments> <pubDate>Mon, 25 Jun 2012 10:06:38 +0000</pubDate> <dc:creator>nixCraft</dc:creator> <category><![CDATA[PHP]]></category> <category><![CDATA[$geshi->enable_line_numbers($flag);]]></category> <category><![CDATA[geshi]]></category> <category><![CDATA[GESHI_FANCY_LINE_NUMBERS]]></category> <category><![CDATA[GESHI_NORMAL_LINE_NUMBERS]]></category> <category><![CDATA[GESHI_NO_LINE_NUMBERS]]></category> <category><![CDATA[line numbers]]></category> <category><![CDATA[source code]]></category> <category><![CDATA[syntax]]></category> <guid
isPermaLink="false">http://www.cyberciti.biz/faq/?p=12597</guid> <description><![CDATA[<div
style='float:right;margin-top:0px;margin-left:5px;'><a
href='http://www.cyberciti.biz/faq/category/php/' title='See all PHP related FAQ'><img
src='http://s0.cyberciti.org/images/category/old/php-logo.png' border='0' /></a></div> <span
class="drop_cap">I</span>'m using GeSHi under php to highlight a source code. How do I turn on or off line numbers using GeSHi?<p>Read answer to: "<strong><A
href="http://www.cyberciti.biz/faq/unix-linux-appleosx-bsde-php-geshi-enabledisable-line-numbers/">PHP: GeSHi Syntax Highlighter Enable / Disable Line Numbers</a></strong>"</p><p><a
title="Post to Twitter" href="http://twitter.com/share?related=nixcraft&text=PHP: GeSHi Syntax Highlighter Enable / Disable Line Numbers&url=http://www.cyberciti.biz/faq/unix-linux-appleosx-bsde-php-geshi-enabledisable-line-numbers/&via=nixcraft" target="_blank" border="0"><img
border="0" src="http://s0.cyberciti.org/images/misc/feed.tweet.png" alt="Tweet this" /></a> &nbsp;&nbsp;&nbsp;<a
title="Share on Facebook" href="http://www.facebook.com/sharer.php?u=http://www.cyberciti.biz/faq/unix-linux-appleosx-bsde-php-geshi-enabledisable-line-numbers/" target="_blank"><img
border="0" src="http://s0.cyberciti.org/images/misc/feed.fb.png" alt="Share on Facebook" /></a></p>]]></description> <wfw:commentRss>http://www.cyberciti.biz/faq/unix-linux-appleosx-bsde-php-geshi-enabledisable-line-numbers/feed/</wfw:commentRss> <slash:comments>0</slash:comments> </item> <item><title>Find Out PHP Version installed On Unix / Linux Server</title><link>http://www.cyberciti.biz/faq/howto-tell-version-php-running-on-unix-linux-server/</link> <comments>http://www.cyberciti.biz/faq/howto-tell-version-php-running-on-unix-linux-server/#comments</comments> <pubDate>Sat, 21 Jan 2012 19:52:49 +0000</pubDate> <dc:creator>nixCraft</dc:creator> <category><![CDATA[BASH Shell]]></category> <category><![CDATA[Linux]]></category> <category><![CDATA[PHP]]></category> <category><![CDATA[UNIX]]></category> <category><![CDATA[CentOS]]></category> <category><![CDATA[debian]]></category> <category><![CDATA[dpkg command]]></category> <category><![CDATA[fedora]]></category> <category><![CDATA[FreeBSD]]></category> <category><![CDATA[NetBSD]]></category> <category><![CDATA[Openbsd]]></category> <category><![CDATA[php command]]></category> <category><![CDATA[php-cgi command]]></category> <category><![CDATA[php-cli command]]></category> <category><![CDATA[rhel]]></category> <category><![CDATA[rpm command]]></category> <category><![CDATA[ubuntu]]></category> <guid
isPermaLink="false">http://www.cyberciti.biz/faq/?p=13123</guid> <description><![CDATA[<div
style="float:right;margin-top:0px;margin-left:5px;"><a
title="See all PHP related FAQ" href="http://www.cyberciti.biz/faq/category/php/"><img
src="http://s0.cyberciti.org/images/category/old/php-logo.png" alt="" border="0" /></a></div><span
class="drop_cap">H</span>ow do I find out php version under Linux operating systems? How do I find out php version under Unix like systems? How to find out what version of PHP is installed on my server?<p>Read answer to: "<strong><A
href="http://www.cyberciti.biz/faq/howto-tell-version-php-running-on-unix-linux-server/">Find Out PHP Version installed On Unix / Linux Server</a></strong>"</p><p><a
title="Post to Twitter" href="http://twitter.com/share?related=nixcraft&text=Find Out PHP Version installed On Unix / Linux Server&url=http://www.cyberciti.biz/faq/howto-tell-version-php-running-on-unix-linux-server/&via=nixcraft" target="_blank" border="0"><img
border="0" src="http://s0.cyberciti.org/images/misc/feed.tweet.png" alt="Tweet this" /></a> &nbsp;&nbsp;&nbsp;<a
title="Share on Facebook" href="http://www.facebook.com/sharer.php?u=http://www.cyberciti.biz/faq/howto-tell-version-php-running-on-unix-linux-server/" target="_blank"><img
border="0" src="http://s0.cyberciti.org/images/misc/feed.fb.png" alt="Share on Facebook" /></a></p>]]></description> <wfw:commentRss>http://www.cyberciti.biz/faq/howto-tell-version-php-running-on-unix-linux-server/feed/</wfw:commentRss> <slash:comments>0</slash:comments> </item> <item><title>PHP: &lt;? ?&gt; Tags Not Working in PHP 5.3.x under UNIX / Linux</title><link>http://www.cyberciti.biz/faq/php-5-3-tags-not-working-in-php-linux-unix-apple-osx/</link> <comments>http://www.cyberciti.biz/faq/php-5-3-tags-not-working-in-php-linux-unix-apple-osx/#comments</comments> <pubDate>Tue, 18 Jan 2011 11:19:14 +0000</pubDate> <dc:creator>nixCraft</dc:creator> <category><![CDATA[PHP]]></category> <category><![CDATA[UNIX]]></category> <category><![CDATA[/etc/php.ini]]></category> <category><![CDATA[apache web server]]></category> <category><![CDATA[apachectl]]></category> <category><![CDATA[apachectl -k restart]]></category> <category><![CDATA[apachectl command]]></category> <category><![CDATA[deployment]]></category> <category><![CDATA[libraries]]></category> <category><![CDATA[Linux]]></category> <category><![CDATA[php short_open_tag = On]]></category> <category><![CDATA[php tags]]></category> <category><![CDATA[redistributable code]]></category> <category><![CDATA[servers]]></category> <category><![CDATA[short_open_tag = On]]></category> <guid
isPermaLink="false">http://www.cyberciti.biz/faq/?p=9771</guid> <description><![CDATA[<div
style='float:right;margin-top:0px;margin-left:5px;'><a
href='http://www.cyberciti.biz/faq/category/php/' title='See all PHP related FAQ'><img
src='http://s0.cyberciti.org/images/category/old/php-logo.png' border='0' /></a></div> <span
class="drop_cap">I</span>'ve recently installed php 5.3.5 in my UNIX box and my old working php code not working. It displays code in pages which is in &#60;? ... my code ... ?&#62; php tags. How do I fix this problem?<p>Read answer to: "<strong><A
href="http://www.cyberciti.biz/faq/php-5-3-tags-not-working-in-php-linux-unix-apple-osx/">PHP: &lt;? ?&gt; Tags Not Working in PHP 5.3.x under UNIX / Linux</a></strong>"</p><p><a
title="Post to Twitter" href="http://twitter.com/share?related=nixcraft&text=PHP: &lt;? ?&gt; Tags Not Working in PHP 5.3.x under UNIX / Linux&url=http://www.cyberciti.biz/faq/php-5-3-tags-not-working-in-php-linux-unix-apple-osx/&via=nixcraft" target="_blank" border="0"><img
border="0" src="http://s0.cyberciti.org/images/misc/feed.tweet.png" alt="Tweet this" /></a> &nbsp;&nbsp;&nbsp;<a
title="Share on Facebook" href="http://www.facebook.com/sharer.php?u=http://www.cyberciti.biz/faq/php-5-3-tags-not-working-in-php-linux-unix-apple-osx/" target="_blank"><img
border="0" src="http://s0.cyberciti.org/images/misc/feed.fb.png" alt="Share on Facebook" /></a></p>]]></description> <wfw:commentRss>http://www.cyberciti.biz/faq/php-5-3-tags-not-working-in-php-linux-unix-apple-osx/feed/</wfw:commentRss> <slash:comments>3</slash:comments> </item> <item><title>Linux: phpinfo() system&#8217;s timezone error date.timezone</title><link>http://www.cyberciti.biz/faq/unix-phpinfo-it-isnot-safeto-rely-on-systems-timezone-settings/</link> <comments>http://www.cyberciti.biz/faq/unix-phpinfo-it-isnot-safeto-rely-on-systems-timezone-settings/#comments</comments> <pubDate>Tue, 18 Jan 2011 00:58:05 +0000</pubDate> <dc:creator>nixCraft</dc:creator> <category><![CDATA[Linux]]></category> <category><![CDATA[PHP]]></category> <category><![CDATA[UNIX]]></category> <category><![CDATA[/etc/sysconfig/clock]]></category> <category><![CDATA[cat command]]></category> <category><![CDATA[date_default_timezone_set("America/Chicago"); php phpinfo()]]></category> <category><![CDATA[home servers]]></category> <category><![CDATA[php date.timezone]]></category> <category><![CDATA[php file]]></category> <category><![CDATA[timezone settings]]></category> <category><![CDATA[web server]]></category> <guid
isPermaLink="false">http://www.cyberciti.biz/faq/?p=9758</guid> <description><![CDATA[<div
style='float:right;margin-top:0px;margin-left:5px;'><a
href='http://www.cyberciti.biz/faq/category/php/' title='See all PHP related FAQ'><img
src='http://files.cyberciti.biz/cbzcache/3rdparty/php-logo.png' border='0' /></a></div> <span
class="drop_cap">I</span>'m getting the following errors in my log file whenever I use phpinfo() function:<blockquote><span
style='color: rgb(0, 153, 0);'>[10-Jan-2011 18:39:08] PHP Warning: <strong> phpinfo(): It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function</strong>. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected 'America/Chicago' for 'CST/-6.0/no DST' instead in /home/servers/http/dev/testpc.php on line 2</span></blockquote> How do I fix this problem under UNIX / Linux php running Apache or lighttpd web server?<p>Read answer to: "<strong><A
href="http://www.cyberciti.biz/faq/unix-phpinfo-it-isnot-safeto-rely-on-systems-timezone-settings/">Linux: phpinfo() system&#8217;s timezone error date.timezone</a></strong>"</p><p><a
title="Post to Twitter" href="http://twitter.com/share?related=nixcraft&text=Linux: phpinfo() system&#8217;s timezone error date.timezone&url=http://www.cyberciti.biz/faq/unix-phpinfo-it-isnot-safeto-rely-on-systems-timezone-settings/&via=nixcraft" target="_blank" border="0"><img
border="0" src="http://s0.cyberciti.org/images/misc/feed.tweet.png" alt="Tweet this" /></a> &nbsp;&nbsp;&nbsp;<a
title="Share on Facebook" href="http://www.facebook.com/sharer.php?u=http://www.cyberciti.biz/faq/unix-phpinfo-it-isnot-safeto-rely-on-systems-timezone-settings/" target="_blank"><img
border="0" src="http://s0.cyberciti.org/images/misc/feed.fb.png" alt="Share on Facebook" /></a></p>]]></description> <wfw:commentRss>http://www.cyberciti.biz/faq/unix-phpinfo-it-isnot-safeto-rely-on-systems-timezone-settings/feed/</wfw:commentRss> <slash:comments>3</slash:comments> </item> <item><title>HowTo: PHP Compare Two Text Strings</title><link>http://www.cyberciti.biz/faq/howto-php-compare-two-text-strings/</link> <comments>http://www.cyberciti.biz/faq/howto-php-compare-two-text-strings/#comments</comments> <pubDate>Thu, 06 Jan 2011 18:41:15 +0000</pubDate> <dc:creator>nixCraft</dc:creator> <category><![CDATA[PHP]]></category> <category><![CDATA[strcmp() PHP]]></category> <category><![CDATA[string comparison]]></category> <guid
isPermaLink="false">http://www.cyberciti.biz/faq/?p=12882</guid> <description><![CDATA[<div
style="float:right;margin-top:0px;margin-left:5px;"><a
title="See all PHP related FAQ" href="http://www.cyberciti.biz/faq/category/php/"><img
src="http://s0.cyberciti.org/images/category/old/php-logo.png" alt="" border="0" /></a></div><span
class="drop_cap">H</span>ow can I compare two strings using php? How do I use php to compare two strings?<p>Read answer to: "<strong><A
href="http://www.cyberciti.biz/faq/howto-php-compare-two-text-strings/">HowTo: PHP Compare Two Text Strings</a></strong>"</p><p><a
title="Post to Twitter" href="http://twitter.com/share?related=nixcraft&text=HowTo: PHP Compare Two Text Strings&url=http://www.cyberciti.biz/faq/howto-php-compare-two-text-strings/&via=nixcraft" target="_blank" border="0"><img
border="0" src="http://s0.cyberciti.org/images/misc/feed.tweet.png" alt="Tweet this" /></a> &nbsp;&nbsp;&nbsp;<a
title="Share on Facebook" href="http://www.facebook.com/sharer.php?u=http://www.cyberciti.biz/faq/howto-php-compare-two-text-strings/" target="_blank"><img
border="0" src="http://s0.cyberciti.org/images/misc/feed.fb.png" alt="Share on Facebook" /></a></p>]]></description> <wfw:commentRss>http://www.cyberciti.biz/faq/howto-php-compare-two-text-strings/feed/</wfw:commentRss> <slash:comments>0</slash:comments> </item> <item><title>Mediawiki Fix Internal Server Host Names / Redirection In shared Hosting or Proxy Setup</title><link>http://www.cyberciti.biz/faq/mediawiki-fix-internal-server-host-names-redirect-using-wgserver/</link> <comments>http://www.cyberciti.biz/faq/mediawiki-fix-internal-server-host-names-redirect-using-wgserver/#comments</comments> <pubDate>Sun, 19 Dec 2010 21:57:17 +0000</pubDate> <dc:creator>nixCraft</dc:creator> <category><![CDATA[Apache]]></category> <category><![CDATA[Linux]]></category> <category><![CDATA[Nginx]]></category> <category><![CDATA[PHP]]></category> <category><![CDATA[UNIX]]></category> <category><![CDATA[$wgServer = 'http://support.example.com/wiki';]]></category> <category><![CDATA[192 168 1 100]]></category> <category><![CDATA[apache server]]></category> <category><![CDATA[base url]]></category> <category><![CDATA[customer support]]></category> <category><![CDATA[host ip]]></category> <category><![CDATA[host names]]></category> <category><![CDATA[internal host]]></category> <category><![CDATA[internal server]]></category> <category><![CDATA[LocalSettings.php]]></category> <category><![CDATA[mediawiki $wgServer]]></category> <category><![CDATA[mediawiki $wgServer stop internal redirection]]></category> <category><![CDATA[protocol]]></category> <category><![CDATA[proxy server]]></category> <category><![CDATA[redirection]]></category> <category><![CDATA[server host]]></category> <category><![CDATA[server name]]></category> <category><![CDATA[timeouts]]></category> <category><![CDATA[websever]]></category> <category><![CDATA[wiki]]></category> <guid
isPermaLink="false">http://www.cyberciti.biz/faq/?p=9650</guid> <description><![CDATA[<div
style='float:right;margin-top:0px;margin-left:5px;'><a
href='http://www.cyberciti.biz/faq/category/php/' title='See all PHP related FAQ'><img
src='http://files.cyberciti.biz/cbzcache/3rdparty/php-logo.png' border='0' /></a></div> <span
class="drop_cap">O</span>ur customer support wiki runs on an internal host (ip:192.168.1.100:300, hostname <strong>a-node100.:300</strong>) and it is behind the <a
href="http://www.cyberciti.biz/faq/rhel-linux-install-nginx-as-reverse-proxy-load-balancer/">nginx reverse proxy server</a>. However, our Apache server end up displaying internal server name http://a-node100.:300/, which results into an unexpected redirection and timeouts as http://a-node100.:300/ is not accessible over the Internet. How do I force nginx or apache to use the base URL of our server (http://support.example.com/wiki/)?<p>Read answer to: "<strong><A
href="http://www.cyberciti.biz/faq/mediawiki-fix-internal-server-host-names-redirect-using-wgserver/">Mediawiki Fix Internal Server Host Names / Redirection In shared Hosting or Proxy Setup</a></strong>"</p><p><a
title="Post to Twitter" href="http://twitter.com/share?related=nixcraft&text=Mediawiki Fix Internal Server Host Names / Redirection In shared Hosting or Proxy Setup&url=http://www.cyberciti.biz/faq/mediawiki-fix-internal-server-host-names-redirect-using-wgserver/&via=nixcraft" target="_blank" border="0"><img
border="0" src="http://s0.cyberciti.org/images/misc/feed.tweet.png" alt="Tweet this" /></a> &nbsp;&nbsp;&nbsp;<a
title="Share on Facebook" href="http://www.facebook.com/sharer.php?u=http://www.cyberciti.biz/faq/mediawiki-fix-internal-server-host-names-redirect-using-wgserver/" target="_blank"><img
border="0" src="http://s0.cyberciti.org/images/misc/feed.fb.png" alt="Share on Facebook" /></a></p>]]></description> <wfw:commentRss>http://www.cyberciti.biz/faq/mediawiki-fix-internal-server-host-names-redirect-using-wgserver/feed/</wfw:commentRss> <slash:comments>1</slash:comments> </item> <item><title>WordPress Rename Image URL For a CDN Usage</title><link>http://www.cyberciti.biz/faq/wordpress-offloading-old-static-images-urls-to-cdn-urls/</link> <comments>http://www.cyberciti.biz/faq/wordpress-offloading-old-static-images-urls-to-cdn-urls/#comments</comments> <pubDate>Sat, 20 Nov 2010 20:41:47 +0000</pubDate> <dc:creator>nixCraft</dc:creator> <category><![CDATA[Apache]]></category> <category><![CDATA[Lighttpd]]></category> <category><![CDATA[Nginx]]></category> <category><![CDATA[PHP]]></category> <category><![CDATA[/etc/httpd/conf/httpd.conf]]></category> <category><![CDATA[/etc/lighttpd/lighttpd.conf]]></category> <category><![CDATA[/usr/local/etc/nginx/nginx.conf]]></category> <category><![CDATA[Apache HTTP 301 redirect]]></category> <category><![CDATA[assets]]></category> <category><![CDATA[backup database]]></category> <category><![CDATA[blog]]></category> <category><![CDATA[cdn]]></category> <category><![CDATA[Content Delivery Network]]></category> <category><![CDATA[expression search]]></category> <category><![CDATA[HTTPD HTTP 301 redirect]]></category> <category><![CDATA[Lighttpd HTTP 301 redirect]]></category> <category><![CDATA[Linux]]></category> <category><![CDATA[MySQL]]></category> <category><![CDATA[mysqldump]]></category> <category><![CDATA[mysqldump command]]></category> <category><![CDATA[nginx HTTP 301 redirect]]></category> <category><![CDATA[php code]]></category> <category><![CDATA[regular expression]]></category> <category><![CDATA[regular expressions]]></category> <category><![CDATA[static images]]></category> <category><![CDATA[supercache]]></category> <category><![CDATA[tar command]]></category> <category><![CDATA[UNIX]]></category> <guid
isPermaLink="false">http://www.cyberciti.biz/faq/?p=9427</guid> <description><![CDATA[<div
style='float:right;margin-top:0px;margin-left:5px;'><a
href='http://www.cyberciti.biz/faq/category/php/' title='See all PHP related FAQ'><img
src='http://files.cyberciti.biz/cbzcache/3rdparty/php-logo.png' border='0' /></a></div> <span
class="drop_cap">R</span>ecently, we moved all our static assets to a <a
href="http://www.cyberciti.biz/tips/wordpress-cdn-content-delivery-network-configuration.html">CDN as described here</a>. However, we have over 8000+ old blog posts and we need to point static images url to our CDN account hosted at http://MyACCOUNT.cloudfront.net/images/ folder. How do I rename all image urls stored in wordpress posts? How do I offload static images to a CDN urls under Wordpress?<p>Read answer to: "<strong><A
href="http://www.cyberciti.biz/faq/wordpress-offloading-old-static-images-urls-to-cdn-urls/">WordPress Rename Image URL For a CDN Usage</a></strong>"</p><p><a
title="Post to Twitter" href="http://twitter.com/share?related=nixcraft&text=WordPress Rename Image URL For a CDN Usage&url=http://www.cyberciti.biz/faq/wordpress-offloading-old-static-images-urls-to-cdn-urls/&via=nixcraft" target="_blank" border="0"><img
border="0" src="http://s0.cyberciti.org/images/misc/feed.tweet.png" alt="Tweet this" /></a> &nbsp;&nbsp;&nbsp;<a
title="Share on Facebook" href="http://www.facebook.com/sharer.php?u=http://www.cyberciti.biz/faq/wordpress-offloading-old-static-images-urls-to-cdn-urls/" target="_blank"><img
border="0" src="http://s0.cyberciti.org/images/misc/feed.fb.png" alt="Share on Facebook" /></a></p>]]></description> <wfw:commentRss>http://www.cyberciti.biz/faq/wordpress-offloading-old-static-images-urls-to-cdn-urls/feed/</wfw:commentRss> <slash:comments>23</slash:comments> </item> <item><title>Linux / UNIX: PHP mail() Error Log File</title><link>http://www.cyberciti.biz/faq/php-mail-error-log/</link> <comments>http://www.cyberciti.biz/faq/php-mail-error-log/#comments</comments> <pubDate>Fri, 12 Nov 2010 20:58:55 +0000</pubDate> <dc:creator>nixCraft</dc:creator> <category><![CDATA[Linux]]></category> <category><![CDATA[PHP]]></category> <category><![CDATA[UNIX]]></category> <category><![CDATA[/var/log/mail.err]]></category> <category><![CDATA[/var/log/mail.log]]></category> <category><![CDATA[/var/log/maillog]]></category> <category><![CDATA[fedora]]></category> <category><![CDATA[log directory]]></category> <category><![CDATA[mail errors]]></category> <category><![CDATA[mail log]]></category> <category><![CDATA[mail server]]></category> <category><![CDATA[php /var/log/mail.err]]></category> <category><![CDATA[php /var/log/mail.log]]></category> <category><![CDATA[php test]]></category> <category><![CDATA[redhat]]></category> <category><![CDATA[server log]]></category> <category><![CDATA[test mail]]></category> <guid
isPermaLink="false">http://www.cyberciti.biz/faq/?p=9326</guid> <description><![CDATA[<div
style='float:right;margin-top:0px;margin-left:5px;'><a
href='http://www.cyberciti.biz/faq/category/php/' title='See all PHP related FAQ'><img
src='http://files.cyberciti.biz/cbzcache/3rdparty/php-logo.png' border='0' /></a></div> <span
class="drop_cap">H</span>ow do I view PHP mail() errors? How do I see php mail() error log file under UNIX or Linux?<p>Read answer to: "<strong><A
href="http://www.cyberciti.biz/faq/php-mail-error-log/">Linux / UNIX: PHP mail() Error Log File</a></strong>"</p><p><a
title="Post to Twitter" href="http://twitter.com/share?related=nixcraft&text=Linux / UNIX: PHP mail() Error Log File&url=http://www.cyberciti.biz/faq/php-mail-error-log/&via=nixcraft" target="_blank" border="0"><img
border="0" src="http://s0.cyberciti.org/images/misc/feed.tweet.png" alt="Tweet this" /></a> &nbsp;&nbsp;&nbsp;<a
title="Share on Facebook" href="http://www.facebook.com/sharer.php?u=http://www.cyberciti.biz/faq/php-mail-error-log/" target="_blank"><img
border="0" src="http://s0.cyberciti.org/images/misc/feed.fb.png" alt="Share on Facebook" /></a></p>]]></description> <wfw:commentRss>http://www.cyberciti.biz/faq/php-mail-error-log/feed/</wfw:commentRss> <slash:comments>1</slash:comments> </item> <item><title>WordPress Install Memcached Object Cache Plugin To Speed Up Blog</title><link>http://www.cyberciti.biz/faq/linux-unix-bsd-wordpress-memcached-cache-plugin/</link> <comments>http://www.cyberciti.biz/faq/linux-unix-bsd-wordpress-memcached-cache-plugin/#comments</comments> <pubDate>Mon, 13 Sep 2010 09:32:59 +0000</pubDate> <dc:creator>nixCraft</dc:creator> <category><![CDATA[PHP]]></category> <category><![CDATA[/etc/sysconfig/memcached]]></category> <category><![CDATA[apache web server]]></category> <category><![CDATA[apache web servers]]></category> <category><![CDATA[chkconfig command]]></category> <category><![CDATA[database load]]></category> <category><![CDATA[dynamic web applications]]></category> <category><![CDATA[ip connection]]></category> <category><![CDATA[load balancer]]></category> <category><![CDATA[memcached display usage stats]]></category> <category><![CDATA[memcached dump keys and values]]></category> <category><![CDATA[memcached-tool 10.10.1.5:11211 stats]]></category> <category><![CDATA[memcached-tool command]]></category> <category><![CDATA[Nginx]]></category> <category><![CDATA[object cache]]></category> <category><![CDATA[php session]]></category> <category><![CDATA[proxy server]]></category> <category><![CDATA[redundancy]]></category> <category><![CDATA[service command]]></category> <category><![CDATA[unzip command]]></category> <category><![CDATA[yum command]]></category> <guid
isPermaLink="false">http://www.cyberciti.biz/faq/?p=8771</guid> <description><![CDATA[<div
style='float:right;margin-top:0px;margin-left:5px;'><a
href='http://www.cyberciti.biz/faq/category/php/' title='See all PHP related FAQ'><img
src='http://files.cyberciti.biz/cbzcache/3rdparty/php-logo.png' border='0' /></a></div> <span
class="drop_cap">H</span>ow do I install memcached cache plugin under UNIX / Linux to speed up my dynamic database-driven wordpress blog by caching data and objects in RAM to reduce the number of times an external data source must be read?<p>Read answer to: "<strong><A
href="http://www.cyberciti.biz/faq/linux-unix-bsd-wordpress-memcached-cache-plugin/">WordPress Install Memcached Object Cache Plugin To Speed Up Blog</a></strong>"</p><p><a
title="Post to Twitter" href="http://twitter.com/share?related=nixcraft&text=WordPress Install Memcached Object Cache Plugin To Speed Up Blog&url=http://www.cyberciti.biz/faq/linux-unix-bsd-wordpress-memcached-cache-plugin/&via=nixcraft" target="_blank" border="0"><img
border="0" src="http://s0.cyberciti.org/images/misc/feed.tweet.png" alt="Tweet this" /></a> &nbsp;&nbsp;&nbsp;<a
title="Share on Facebook" href="http://www.facebook.com/sharer.php?u=http://www.cyberciti.biz/faq/linux-unix-bsd-wordpress-memcached-cache-plugin/" target="_blank"><img
border="0" src="http://s0.cyberciti.org/images/misc/feed.fb.png" alt="Share on Facebook" /></a></p>]]></description> <wfw:commentRss>http://www.cyberciti.biz/faq/linux-unix-bsd-wordpress-memcached-cache-plugin/feed/</wfw:commentRss> <slash:comments>2</slash:comments> </item> <item><title>PHP Increase Upload File Size Limit</title><link>http://www.cyberciti.biz/faq/linux-unix-apache-increase-php-upload-limit/</link> <comments>http://www.cyberciti.biz/faq/linux-unix-apache-increase-php-upload-limit/#comments</comments> <pubDate>Fri, 11 Jun 2010 12:06:23 +0000</pubDate> <dc:creator>nixCraft</dc:creator> <category><![CDATA[Apache]]></category> <category><![CDATA[PHP]]></category> <category><![CDATA[/etc/php.ini]]></category> <category><![CDATA[change php memory limit]]></category> <category><![CDATA[increase php upload limit]]></category> <category><![CDATA[limit resources]]></category> <category><![CDATA[max size]]></category> <category><![CDATA[maximum size]]></category> <category><![CDATA[memory limit]]></category> <category><![CDATA[php file size limit]]></category> <category><![CDATA[php ini]]></category> <category><![CDATA[php max upload size]]></category> <category><![CDATA[php memory_limit]]></category> <category><![CDATA[php post_max_size]]></category> <category><![CDATA[php upload_max_filesize]]></category> <category><![CDATA[php_value memory_limit]]></category> <category><![CDATA[php_value post_max_size]]></category> <category><![CDATA[php_value upload_max_filesize]]></category> <category><![CDATA[web server service]]></category> <guid
isPermaLink="false">http://www.cyberciti.biz/faq/?p=7653</guid> <description><![CDATA[<div
style='float:right;margin-top:0px;margin-left:5px;'><a
href='http://www.cyberciti.biz/faq/category/php/' title='See all PHP related FAQ'><img
src='http://files.cyberciti.biz/cbzcache/3rdparty/php-logo.png' border='0' /></a></div> <span
class="drop_cap">H</span>ow do I increase upload file limit from 2MB to 10MB under Apache 2 UNIX / Linux web server?<p>Read answer to: "<strong><A
href="http://www.cyberciti.biz/faq/linux-unix-apache-increase-php-upload-limit/">PHP Increase Upload File Size Limit</a></strong>"</p><p><a
title="Post to Twitter" href="http://twitter.com/share?related=nixcraft&text=PHP Increase Upload File Size Limit&url=http://www.cyberciti.biz/faq/linux-unix-apache-increase-php-upload-limit/&via=nixcraft" target="_blank" border="0"><img
border="0" src="http://s0.cyberciti.org/images/misc/feed.tweet.png" alt="Tweet this" /></a> &nbsp;&nbsp;&nbsp;<a
title="Share on Facebook" href="http://www.facebook.com/sharer.php?u=http://www.cyberciti.biz/faq/linux-unix-apache-increase-php-upload-limit/" target="_blank"><img
border="0" src="http://s0.cyberciti.org/images/misc/feed.fb.png" alt="Share on Facebook" /></a></p>]]></description> <wfw:commentRss>http://www.cyberciti.biz/faq/linux-unix-apache-increase-php-upload-limit/feed/</wfw:commentRss> <slash:comments>25</slash:comments> </item> <item><title>PHP Security: Limit Resources Used By Script</title><link>http://www.cyberciti.biz/faq/php-resources-limits/</link> <comments>http://www.cyberciti.biz/faq/php-resources-limits/#comments</comments> <pubDate>Sun, 07 Feb 2010 18:01:12 +0000</pubDate> <dc:creator>nixCraft</dc:creator> <category><![CDATA[PHP]]></category> <category><![CDATA[amount of time]]></category> <category><![CDATA[apache web server]]></category> <category><![CDATA[filesize]]></category> <category><![CDATA[input time]]></category> <category><![CDATA[Lighttpd]]></category> <category><![CDATA[limit resources]]></category> <category><![CDATA[max input]]></category> <category><![CDATA[max size]]></category> <category><![CDATA[maximum execution time]]></category> <category><![CDATA[maximum size]]></category> <category><![CDATA[memory limit]]></category> <category><![CDATA[php allow_url_fopen = Off]]></category> <category><![CDATA[php cgi.force_redirect = 0]]></category> <category><![CDATA[php file_uploads = Off]]></category> <category><![CDATA[php max_execution_time = 30]]></category> <category><![CDATA[php max_input_time = 30]]></category> <category><![CDATA[php memory_limit = 40M]]></category> <category><![CDATA[php post_max_size = 8M]]></category> <category><![CDATA[php scripts]]></category> <category><![CDATA[php sql.safe_mode = On]]></category> <category><![CDATA[php upload_max_filesize = 2M]]></category> <category><![CDATA[request data]]></category> <category><![CDATA[resource limits]]></category> <category><![CDATA[uploaded files]]></category> <category><![CDATA[web server service]]></category> <guid
isPermaLink="false">http://www.cyberciti.biz/faq/?p=6425</guid> <description><![CDATA[<div
style='float:right;margin-top:0px;margin-left:5px;'><a
href='http://www.cyberciti.biz/faq/category/php/' title='See all PHP related FAQ'><img
src='http://files.cyberciti.biz/cbzcache/3rdparty/php-logo.png' border='0' /></a></div> <span
class="drop_cap">H</span>ow do I control and put limits on php scripts such as maximum execution time of each script and upload file size?<p>Read answer to: "<strong><A
href="http://www.cyberciti.biz/faq/php-resources-limits/">PHP Security: Limit Resources Used By Script</a></strong>"</p><p><a
title="Post to Twitter" href="http://twitter.com/share?related=nixcraft&text=PHP Security: Limit Resources Used By Script&url=http://www.cyberciti.biz/faq/php-resources-limits/&via=nixcraft" target="_blank" border="0"><img
border="0" src="http://s0.cyberciti.org/images/misc/feed.tweet.png" alt="Tweet this" /></a> &nbsp;&nbsp;&nbsp;<a
title="Share on Facebook" href="http://www.facebook.com/sharer.php?u=http://www.cyberciti.biz/faq/php-resources-limits/" target="_blank"><img
border="0" src="http://s0.cyberciti.org/images/misc/feed.fb.png" alt="Share on Facebook" /></a></p>]]></description> <wfw:commentRss>http://www.cyberciti.biz/faq/php-resources-limits/feed/</wfw:commentRss> <slash:comments>6</slash:comments> </item> <item><title>RHEL / CentOS Xcache: /usr/include/php/ext/date/lib/timelib_structs.h:24:28: error: timelib_config.h: No such file or directory Error and Soultion</title><link>http://www.cyberciti.biz/faq/usrincludephpextdatelibtimelib_structs-h2428-error-timelib_config-h-no-such-file-or-directory/</link> <comments>http://www.cyberciti.biz/faq/usrincludephpextdatelibtimelib_structs-h2428-error-timelib_config-h-no-such-file-or-directory/#comments</comments> <pubDate>Thu, 24 Dec 2009 15:43:53 +0000</pubDate> <dc:creator>nixCraft</dc:creator> <category><![CDATA[CentOS]]></category> <category><![CDATA[PHP]]></category> <category><![CDATA[RedHat and Friends]]></category> <category><![CDATA[/usr/local/etc/php/xcache.ini]]></category> <category><![CDATA[centos install php xcache]]></category> <category><![CDATA[fedora install php xcache]]></category> <category><![CDATA[redhat install php xcache]]></category> <category><![CDATA[rhel install php xcache]]></category> <category><![CDATA[xcache]]></category> <category><![CDATA[xcache source code installation]]></category> <guid
isPermaLink="false">http://www.cyberciti.biz/faq/?p=6124</guid> <description><![CDATA[<div
style='float:right;margin-top:0px;margin-left:5px;'><a
href='http://www.cyberciti.biz/faq/category/php/' title='See all PHP related FAQ'><img
src='http://files.cyberciti.biz/cbzcache/3rdparty/php-logo.png' border='0' /></a></div> <span
class="drop_cap">I</span>'m trying to configure and install <a
href="http://www.cyberciti.biz/faq/howto-rhel-install-xcahce-php-opcode-cacher/">xcache under CentOS / Redhat</a> enterprise Linux v5.4 and getting the following error:<br
/><br
/><blockquote><strong><span
style='color: rgb(255, 0, 0);'>/usr/include/php/ext/date/lib/timelib_structs.h:24:28: error: timelib_config.h: No such file or directory</span></strong></blockquote><br
/><br
/> How do I fix this problem and install xcache?<p>Read answer to: "<strong><A
href="http://www.cyberciti.biz/faq/usrincludephpextdatelibtimelib_structs-h2428-error-timelib_config-h-no-such-file-or-directory/">RHEL / CentOS Xcache: /usr/include/php/ext/date/lib/timelib_structs.h:24:28: error: timelib_config.h: No such file or directory Error and Soultion</a></strong>"</p><p><a
title="Post to Twitter" href="http://twitter.com/share?related=nixcraft&text=RHEL / CentOS Xcache: /usr/include/php/ext/date/lib/timelib_structs.h:24:28: error: timelib_config.h: No such file or directory Error and Soultion&url=http://www.cyberciti.biz/faq/usrincludephpextdatelibtimelib_structs-h2428-error-timelib_config-h-no-such-file-or-directory/&via=nixcraft" target="_blank" border="0"><img
border="0" src="http://s0.cyberciti.org/images/misc/feed.tweet.png" alt="Tweet this" /></a> &nbsp;&nbsp;&nbsp;<a
title="Share on Facebook" href="http://www.facebook.com/sharer.php?u=http://www.cyberciti.biz/faq/usrincludephpextdatelibtimelib_structs-h2428-error-timelib_config-h-no-such-file-or-directory/" target="_blank"><img
border="0" src="http://s0.cyberciti.org/images/misc/feed.fb.png" alt="Share on Facebook" /></a></p>]]></description> <wfw:commentRss>http://www.cyberciti.biz/faq/usrincludephpextdatelibtimelib_structs-h2428-error-timelib_config-h-no-such-file-or-directory/feed/</wfw:commentRss> <slash:comments>0</slash:comments> </item> <item><title>PHP Fatal error:  Allowed Memory Size of 20971520 Bytes exhausted (tried to allocate 131072 bytes)  Error and Solution</title><link>http://www.cyberciti.biz/faq/linux-php-fatal-error-allowed-memory-size/</link> <comments>http://www.cyberciti.biz/faq/linux-php-fatal-error-allowed-memory-size/#comments</comments> <pubDate>Mon, 23 Nov 2009 12:31:29 +0000</pubDate> <dc:creator>nixCraft</dc:creator> <category><![CDATA[Debian / Ubuntu]]></category> <category><![CDATA[Linux]]></category> <category><![CDATA[PHP]]></category> <category><![CDATA[Security]]></category> <category><![CDATA[Troubleshooting]]></category> <category><![CDATA[Ubuntu Linux]]></category> <category><![CDATA[/etc/php5/apache2/php.ini]]></category> <category><![CDATA[/etc/php5/cgi/php.ini]]></category> <category><![CDATA[/etc/php5/conf.d/suhosin.ini]]></category> <category><![CDATA[fatal error allowed memory size]]></category> <category><![CDATA[Freebsd restart apache]]></category> <category><![CDATA[mediawiki]]></category> <category><![CDATA[php5]]></category> <category><![CDATA[restart lighttpd]]></category> <category><![CDATA[security patch]]></category> <category><![CDATA[server apache]]></category> <category><![CDATA[sudo command]]></category> <category><![CDATA[suhosin]]></category> <guid
isPermaLink="false">http://www.cyberciti.biz/faq/?p=5834</guid> <description><![CDATA[<div
style='float:right;margin-top:0px;margin-left:5px;'><a
href='http://www.cyberciti.biz/faq/category/php/' title='See all PHP related FAQ'><img
src='http://files.cyberciti.biz/cbzcache/3rdparty/php-logo.png' border='0' /></a></div> <span
class="drop_cap">I</span>'ve brand new Ubuntu Linux server (Apache + PHP5 FastCGI + Lighttpd image only server)  installed for my wordpress, mediawiki and vBullietin software. I can load forntpage but user cannot edit any wiki pages or post anything and I get the following error in log file:<br
/><br
/><blockquote><strong><span
style='color: rgb(255, 0, 0);'>PHP Fatal error:  Allowed Memory Size of 20971520 Bytes exhausted (tried to allocate 131072 bytes) in /usr/share/mediawiki/includes/OutputHandler.php on line 81</span></strong></blockquote><br
/><br
/> How do I fix this problem?<p>Read answer to: "<strong><A
href="http://www.cyberciti.biz/faq/linux-php-fatal-error-allowed-memory-size/">PHP Fatal error:  Allowed Memory Size of 20971520 Bytes exhausted (tried to allocate 131072 bytes)  Error and Solution</a></strong>"</p><p><a
title="Post to Twitter" href="http://twitter.com/share?related=nixcraft&text=PHP Fatal error:  Allowed Memory Size of 20971520 Bytes exhausted (tried to allocate 131072 bytes)  Error and Solution&url=http://www.cyberciti.biz/faq/linux-php-fatal-error-allowed-memory-size/&via=nixcraft" target="_blank" border="0"><img
border="0" src="http://s0.cyberciti.org/images/misc/feed.tweet.png" alt="Tweet this" /></a> &nbsp;&nbsp;&nbsp;<a
title="Share on Facebook" href="http://www.facebook.com/sharer.php?u=http://www.cyberciti.biz/faq/linux-php-fatal-error-allowed-memory-size/" target="_blank"><img
border="0" src="http://s0.cyberciti.org/images/misc/feed.fb.png" alt="Share on Facebook" /></a></p>]]></description> <wfw:commentRss>http://www.cyberciti.biz/faq/linux-php-fatal-error-allowed-memory-size/feed/</wfw:commentRss> <slash:comments>2</slash:comments> </item> <item><title>PHP Add Captcha Protection To Web Forms</title><link>http://www.cyberciti.biz/faq/php-captcha-class-simple-php-captcha-example/</link> <comments>http://www.cyberciti.biz/faq/php-captcha-class-simple-php-captcha-example/#comments</comments> <pubDate>Wed, 24 Jun 2009 09:37:59 +0000</pubDate> <dc:creator>nixCraft</dc:creator> <category><![CDATA[Anti Spam]]></category> <category><![CDATA[Apache]]></category> <category><![CDATA[CentOS]]></category> <category><![CDATA[Debian / Ubuntu]]></category> <category><![CDATA[Fedora Linux]]></category> <category><![CDATA[FreeBSD]]></category> <category><![CDATA[Linux]]></category> <category><![CDATA[PHP]]></category> <category><![CDATA[Programming]]></category> <category><![CDATA[RedHat and Friends]]></category> <category><![CDATA[Security]]></category> <category><![CDATA[Windows]]></category> <category><![CDATA[api library]]></category> <category><![CDATA[challenge response]]></category> <category><![CDATA[php captcha]]></category> <category><![CDATA[php captcha class]]></category> <category><![CDATA[php captcha code]]></category> <category><![CDATA[php captcha download]]></category> <category><![CDATA[php captcha script]]></category> <category><![CDATA[php captcha tutorial]]></category> <category><![CDATA[php forms]]></category> <category><![CDATA[php library]]></category> <category><![CDATA[php script]]></category> <category><![CDATA[public keys]]></category> <category><![CDATA[recaptcha]]></category> <category><![CDATA[simple php captcha]]></category> <category><![CDATA[wget]]></category> <category><![CDATA[wget command]]></category> <guid
isPermaLink="false">http://www.cyberciti.biz/faq/?p=4176</guid> <description><![CDATA[<div
style='float:right;margin-top:0px;margin-left:5px;'><a
href='http://www.cyberciti.biz/faq/category/php/' title='See all PHP related FAQ'><img
src='http://files.cyberciti.biz/cbzcache/3rdparty/php-logo.png' border='0' /></a></div> <span
class="drop_cap">I</span> own a small business website. However, bots started to abusing my forms such as contact.php. How do I stop bots bots from abusing my site? How do I tell if PHP form is submitted by a person or a script?<p>Read answer to: "<strong><A
href="http://www.cyberciti.biz/faq/php-captcha-class-simple-php-captcha-example/">PHP Add Captcha Protection To Web Forms</a></strong>"</p><p><a
title="Post to Twitter" href="http://twitter.com/share?related=nixcraft&text=PHP Add Captcha Protection To Web Forms&url=http://www.cyberciti.biz/faq/php-captcha-class-simple-php-captcha-example/&via=nixcraft" target="_blank" border="0"><img
border="0" src="http://s0.cyberciti.org/images/misc/feed.tweet.png" alt="Tweet this" /></a> &nbsp;&nbsp;&nbsp;<a
title="Share on Facebook" href="http://www.facebook.com/sharer.php?u=http://www.cyberciti.biz/faq/php-captcha-class-simple-php-captcha-example/" target="_blank"><img
border="0" src="http://s0.cyberciti.org/images/misc/feed.fb.png" alt="Share on Facebook" /></a></p>]]></description> <wfw:commentRss>http://www.cyberciti.biz/faq/php-captcha-class-simple-php-captcha-example/feed/</wfw:commentRss> <slash:comments>24</slash:comments> </item> <item><title>Explain: php_self or $_SERVER[&#039;PHP_SELF&#039;] Usage</title><link>http://www.cyberciti.biz/faq/php_self-_serverphp_self-usage/</link> <comments>http://www.cyberciti.biz/faq/php_self-_serverphp_self-usage/#comments</comments> <pubDate>Wed, 18 Mar 2009 21:11:54 +0000</pubDate> <dc:creator>nixCraft</dc:creator> <category><![CDATA[CentOS]]></category> <category><![CDATA[Linux]]></category> <category><![CDATA[PHP]]></category> <category><![CDATA[Programming]]></category> <category><![CDATA[$_SERVER['PHP_SELF']]]></category> <category><![CDATA[array element]]></category> <category><![CDATA[document root]]></category> <category><![CDATA[execution environment]]></category> <category><![CDATA[html forms]]></category> <category><![CDATA[information server]]></category> <category><![CDATA[php programming]]></category> <category><![CDATA[php script]]></category> <category><![CDATA[predefined variables]]></category> <category><![CDATA[server array]]></category> <guid
isPermaLink="false">http://www.cyberciti.biz/faq/?p=3529</guid> <description><![CDATA[<div
style='float:right;margin-top:0px;margin-left:5px;'><a
href='http://www.cyberciti.biz/faq/category/php/' title='See all PHP related FAQ'><img
src='http://files.cyberciti.biz/cbzcache/3rdparty/php-logo.png' border='0' /></a></div> <span
class="drop_cap">C</span>an you explain usage of predefined variables called $_SERVER['PHP_SELF']?<p>Read answer to: "<strong><A
href="http://www.cyberciti.biz/faq/php_self-_serverphp_self-usage/">Explain: php_self or $_SERVER['PHP_SELF'] Usage</a></strong>"</p><p><a
title="Post to Twitter" href="http://twitter.com/share?related=nixcraft&text=Explain: php_self or $_SERVER['PHP_SELF'] Usage&url=http://www.cyberciti.biz/faq/php_self-_serverphp_self-usage/&via=nixcraft" target="_blank" border="0"><img
border="0" src="http://s0.cyberciti.org/images/misc/feed.tweet.png" alt="Tweet this" /></a> &nbsp;&nbsp;&nbsp;<a
title="Share on Facebook" href="http://www.facebook.com/sharer.php?u=http://www.cyberciti.biz/faq/php_self-_serverphp_self-usage/" target="_blank"><img
border="0" src="http://s0.cyberciti.org/images/misc/feed.fb.png" alt="Share on Facebook" /></a></p>]]></description> <wfw:commentRss>http://www.cyberciti.biz/faq/php_self-_serverphp_self-usage/feed/</wfw:commentRss> <slash:comments>2</slash:comments> </item> </channel> </rss>