That's Geeky

Engage your cerebral cortex

Login

Main menu

Skip to primary content
Skip to secondary content
  • Home
  • About
  • CLI #Ref
  • Privacy Policy

Tag Archives: php

Capturing Termination Signals in PHP

Posted on November 18, 2011 by cyberx86
Reply

Consider the scenario of a PHP script which can be run for a period of time, stopped, and continue its task later on. A common necessity for such a script may be to detect when the script is terminated, and … Continue reading →

Posted in: Code Snippets Tagged: php, signals

PHP-FPM on Amazon’s Linux

Posted on July 4, 2011 by cyberx86
4

Update (Oct 1, 2011): The release notes for the newest version of Amazon’s Linux (2011.09) state that “PHP scripts have the option of using PHP-FPM.” PHP-FPM is now included in the amzn-main repository, and can be installed via yum install … Continue reading →

Posted in: Systems Admin Tagged: aws, fastcgi, php, php-fpm, rpmbuild

Prime Factoring with PHP

Posted on March 28, 2011 by cyberx86
4

A surprisingly large number of math based computer problems appear to require factorization, finding prime number, or prime factoring. Presented below is a reasonably fast algorithm for prime factoring a number – it is limited to the integer size on … Continue reading →

Posted in: Code Snippets Tagged: factors, math, php

Hardening PHP with Suhosin

Posted on November 12, 2010 by cyberx86
Reply

Suhosin is a package designed to harden PHP, in the sense that it addresses potential vulnerabilities that might be introduced through user scripts. It comes as both a patch which can be applied directly to the PHP source code and … Continue reading →

Posted in: Systems Admin Tagged: hardening, php, suhosin

Fractions

Posted on November 11, 2010 by cyberx86
Reply

For many people the mere mention of fractions elicits a wince, and while these lovely math constructs played a notable role in our early years of math, they are reasonably simple entities. While most humans revisit fractions over many years … Continue reading →

Posted in: Code Snippets, Random Tagged: fractions, math, php

Setting the timezone on PHP

Posted on October 23, 2010 by cyberx86
Reply

Versions of PHP after 5.10 include the date.timezone directive in php.ini. Many applications which reference time need this directive to be set. A list of accepted values can be found at: http://www.php.net/manual/en/timezones.php The timezone is set as a quoted string, … Continue reading →

Posted in: Code Snippets Tagged: php, time

Installing mcrypt (PHP) on AWS Linux AMI

Posted on October 2, 2010 by cyberx86
1

Update: with the update of PHP to v5.3.3, the amzn repository now includes php-mcrypt, rendering the steps below unnecessary. At the moment, the amzn repository has v5.3.2 of PHP (while the latest version is v5.3.3) – it also does not … Continue reading →

Posted in: Code Snippets Tagged: aws, mcrypt, php

Installing APC on AWS Linux AMI

Posted on October 2, 2010 by cyberx86
2

Update: Current versions of Amazon’s Linux AMI include the package php-pecl-apc (v3.1.9 – the same as the latest from PECL) in the repository. Using a package manager is usually preferable to using PECL- it will help you keep up to … Continue reading →

Posted in: Code Snippets Tagged: apc, aws, php
January 2021
M T W T F S S
« Aug    
 123
45678910
11121314151617
18192021222324
25262728293031

Popular Posts

  • Installing ApacheBench without Apache on Amazon’s Linux
  • Connect to Amazon’s Linux via WinSCP as root
  • Directly connecting to PHP-FPM
  • Physical Activity Ratios
  • Basic Diagnostics for Hibernate and Sleep
  • FileZilla’s Quickconnect List
  • Using Telnet with an SMTP Server
  • Easy Windows-Linux File Sharing with a LiveCD
  • Autoscaling with custom metrics
  • Root Autologin on CentOS

Tags

apache audio aws backup cache cdn cloudfront command prompt cron diagnostics dkim dns domainkeys EC2 Elastic Block Store email fastcgi filezilla flash ftp hard drive httpd ide linux math named nginx nodejs php postfix rsyslog s3 sata security ssh ssl suhosin time tls varnish virtualbox virtualmin vsftpd windows wordpress

Categories

  • Computers
    • Audio
    • Hardware
    • Internet
    • Multiboot
    • Software
      • Code Snippets
    • Systems Admin
      • Cluster
    • Video
  • Electronics
  • Random
    • Philosophy
  • Science
    • Biology
    • Chemistry
    • Stories

Content copyright © 2021 · That's Geeky

Privacy Policy