prosoxi.com | Archive | October

Archive | October, 2009

WP Increasing memory allocated to PHP

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, Programming0 Comments

Ubuntu Networking Configuration Using Command Line

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 Linux0 Comments

How To Enable PEAR Packages In Plesk

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:

/var/www/vhosts/<my domain>/conf/vhost.conf Continue Reading

Posted in Linux0 Comments

Installing PEAR modules necessary on RHEL 3 (or clones)

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 Linux0 Comments

ORDER BY using specific order from IN

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, Programming0 Comments

ISO 3166-1 Languages codes

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 Programming1 Comment

ISO 639 Language Codes (Obsolete)

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 Programming0 Comments

php DATE_RFC822

<?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 PHP0 Comments

Update bios for gigabyte motherboards

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 Windows0 Comments

20 Linux System Monitoring Tools Every SysAdmin Should Know

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:

  1. Finding out bottlenecks.
  2. Disk (storage) bottlenecks.
  3. CPU and memory bottlenecks.
  4. Network bottlenecks.

http://www.cyberciti.biz/tips/top-linux-monitoring-tools.html Continue Reading

Posted in Linux0 Comments

Domain Finder

Domain Finder Tool by Truste.gr

read more for domains

Advertisers

Wedstar all about wedding - gamos - γαμος
Κατασκευή ιστοσελίδων
Domain Names | Hosting

Adds