Posted on 23 October 2009.
Also released with Version 2.5, the WP_MEMORY_LIMIT option allows you to specify the maximum amount of memory that can be consumed by PHP. This setting may be necessary in the event you receive a message such as “Allowed memory size of xxxxxx bytes exhausted”.
This setting increases PHP Memory only for WordPress, not other applications. By default, WordPress will attempt to increase memory allocated to PHP to 32MB (code is at beginning of wp-settings.php), so the setting in wp-config.php should reflect something higher than 32MB.
Please note, this setting may not work if your host does not allow for increasing the PHP memory limit–in that event, contact your host to increase the PHP memory limit. Also, note that many hosts set the PHP limit at 8MB.
Increase PHP Memory to 64MB
define('WP_MEMORY_LIMIT', '64M');
Increase PHP Memory to 96MB
define('WP_MEMORY_LIMIT', '96M');
thanks http://codex.wordpress.org/Editing_wp-config.php#Increasing_memory_allocated_to_PHP
Posted in PHP, Programming
Posted on 23 October 2009.
The basics for any network based on *nix hosts is the Transport Control Protocol/ Internet Protocol (TCP/IP) combination of three protocols. This combination consists of the Internet Protocol (IP),Transport Control Protocol (TCP), and Universal Datagram Protocol (UDP).
By Default most of the users configure their network card during the installation of Ubuntu. You can however, use the ifconfig command at the shell prompt or Ubuntu’s graphical network configuration tools, such as network-admin, to edit your system’s network device information or to add or remove network devices on your system Continue Reading
Posted in Linux
Posted on 22 October 2009.
By default, Plesk will install PEAR and a lot of packages, but block any access to it for PHP scripts. It’s fairly easy to enable this, though.
First of all, you need to edit the VirtualHost of whatever domain you’re trying to enable this for. Seeing as Plesk would just overwrite your httpd.conf with the next change you make in the controlpanel, you need to use a seperate vhost.conf file.
The file to edit can be found in the following directory:
Posted in Linux
Posted on 22 October 2009.
Installing PEAR modules necessary on RHEL 3 (or clones)
# first change to the framework directory and get the framework PEAR packages installed
cd /var/www/html/horde/framework/
php install-packages.php Continue Reading
Posted in Linux
Posted on 19 October 2009.
You can use FIND_IN_SET to do that:
SELECT * FROM tablename WHERE id IN (1,10,8,5) ORDER BY FIND_IN_SET(id, ’1,10,8,5′)
Posted in MySQL, PHP, Programming
Posted on 19 October 2009.
http://en.wikipedia.org/wiki/ISO_3166-1
Officially assigned code elements
The following is a complete ISO 3166-1 encoding list of the countries which are assigned official codes. It is listed in alphabetical order by the English short country names officially used by the ISO 3166/MA, which are all from United Nations sources.[7] For example, Macedonia is listed as “Macedonia, the former Yugoslav Republic of” due to the Macedonia naming dispute, and Taiwan is listed as “Taiwan, Province of China” due to its political status within the UN.
Click on the button in the header to sort each column. For more information on each country and the assignment of its code elements, see the corresponding table in ISO 3166-1 alpha-2. Continue Reading
Posted in Programming
Posted on 19 October 2009.
ISO 639 Language Codes (Obsolete)
NOTE: This page is obsolete! Please see the Codes for the representation of names of languages maintained by the Library of Congress or the W3C Internationalization Activity for further and up-to-date information about language codes. Continue Reading
Posted in Programming
Posted on 19 October 2009.
<?php
echo(“Result with date():<br />”);
echo(date(“l”) . “<br />”);
echo(date(“l dS \of F Y h:i:s A”) . “<br />”);
echo(“Oct 3,1975 was on a “.date(“l”, mktime(0,0,0,10,3,1975)).”<br />”);
echo(date(DATE_RFC822) . “<br />”);
echo(date(DATE_ATOM,mktime(0,0,0,10,3,1975)) . “<br /><br />”);
echo(“Result with gmdate():<br />”);
echo(gmdate(“l”) . “<br />”);
echo(gmdate(“l dS \of F Y h:i:s A”) . “<br />”);
echo(“Oct 3,1975 was on a “.gmdate(“l”, mktime(0,0,0,10,3,1975)).”<br />”);
echo(gmdate(DATE_RFC822) . “<br />”);
echo(gmdate(DATE_ATOM,mktime(0,0,0,10,3,1975)) . “<br />”);
?>
thanks http://www.w3schools.com/PHP/func_date_date.asp
Posted in PHP
Posted on 16 October 2009.
1) κατεβαζουμε το προγραμμα bios update ver.2.2 απο εδω : http://www.gigabyte.com.tw/Support/M…lity_List.aspx
2) στην συνεχεια απο το site της gigabyte κατεβαζετε το τελευταιο bios αρχειο για την μητρικη σας. (π.χ οπως το δικο μου εδω) :http://www.gigabyte.com.tw/Support/M…ProductID=2740
και το σωζετε σε καποιον δισκο. (ξεζιπαρετε το σε φακελο να το εχετε ετοιμο για αργοτερα). Continue Reading
Posted in Windows
Posted on 15 October 2009.
Need to monitor Linux server performance? Try these built-in command and a few add-on tools. Most Linux distributions are equipped with tons of monitoring. These tools provide metrics which can be used to get information about system activities. You can use these tools to find the possible causes of a performance problem. The commands discussed below are some of the most basic commands when it comes to system analysis and debugging server issues such as:
- Finding out bottlenecks.
- Disk (storage) bottlenecks.
- CPU and memory bottlenecks.
- Network bottlenecks.
http://www.cyberciti.biz/tips/top-linux-monitoring-tools.html Continue Reading
Posted in Linux