There it is in the PHP manual for return():
Note: since return() is a language construct and not a function, the parentheses surrounding its arguments are not required. It is common to leave them out, and you actually should do so as PHP has less work to do in this case.
I knew the parentheses were optional, but I’ve [...]
Posted May 5, 2009 by Casey Bisson
Categories: Technology. Tags: documentation, parentheses, php, programming, return(). Be the first one.
Yum up some packages:
yum install php-pear php-devel httpd-devel
Install APC using pear (the pear installer is smarter than the pecl installer):
When the installer asks about APXS, say ‘no’.Â
pear install pecl/apc
Tell PHP to load APC:
echo extension=apc.so > /etc/php.d/apc.ini
Restart Apache:
/sbin/service httpd graceful
Posted September 14, 2008 by Casey
Categories: Technology. Tags: apc, Centos, documentation, install, linux, php, rhel, system administration. 9 Comments.
Using info from CentOS forums, Sunny Walia and Ryan Boren, here’s how I got memcached running on my Dotster VPS:
Install libevent:
wget http://www.monkey.org/~provos/libevent-1.3e.tar.gz
tar zxvf libevent-1.3e.tar.gz
cd libevent-1.3e
./configure
make
make install
Install memcached
wget http://danga.com:80/memcached/dist/memcached-1.2.5.tar.gz
tar zxvf memcached-1.2.5.tar.gz
cd memcached-1.2.5
./configure
make
make install
We will start the server to use 30 megs of ram (-m 30), listen on ip 127.0.0.1 (-l 127.0.0.1) and run on port 11211 [...]
Posted September 7, 2008 by Casey Bisson
Categories: Technology. Tags: Centos, documentation, install, memcached, red hat, rhel, step by step, vps. Be the first one.
Found in the MySQL 5.0 Reference Manual:
Related(g1,g2,pattern_matrix)
Returns 1 or 0 to indicate whether the spatial relationship specified by pattern_matrix exists between g1 and g2. Returns –1 if the arguments are NULL. The pattern matrix is a string. Its specification will be noted here if this function is implemented.
(emphasis mine.)
Posted June 8, 2008 by Casey Bisson
Categories: Dispatches, Technology. Tags: documentation, funny, mysql, MySQL spatial functions, spatial functions, unimplemented. One Comment.
Stuck with PHP 5.1.6 on RHEL or even CentOS (and a sysadmin who insists on using packages)? Need JSON? I did. The solution is easy:
yum install php-devel
pecl install json
The pecl install failed when it hit an 8MB memory limit, and I was clueless about how to fix it until I learned that the pecl installer [...]
Posted May 28, 2008 by Casey Bisson
Categories: Technology. Tags: documentation, install, json, linux, php, red hat, rhel, system administration, yum. 6 Comments.
Update: bugfix release b2v6 available.
Some conversations with Chow Kah Soon, who’s site is full of diversions from work , finally convinced encouraged me to solve some small problems that were giving him big trouble. Chow Kah Soon is in the lucky, but rare, position of having over 20,000 unique daily visitors to his site, [...]
Posted April 5, 2006 by Casey Bisson
Categories: Technology. Tags: bstat, bsuite, Chow Kah Soon, documentation, KahSoon.com, mysql, optimization, update, wordpress. 4 Comments.
Peter Caputa dropped a comment on Jeff Nolan’s post about Zvents. The discussion was about how online event/calendar aggregators did business in a world where everything is rather thinly distributed. Part of the problem is answering how do you get people to contribute content — post their events — to a site that has little traffic, and how do you build traffic without content? The suggestion is that you have editorial staff scouring for content to build the database until reader contributions can catch up, and that’s where Peter comes in, suggesting that content and traffic aren’t where the value and excitement are: it’s the opportunity to involve fans in the event planning and marketing process.
Posted March 27, 2006 by Casey Bisson
Categories: Libraries & Networked Information, Technology. Tags: collaboration, commons, community, conversation, decision making, documentation, inclusion, involvement, jeff nolan, pete caputa, promotion, social calendaring, social software. Be the first one.
Everybody likes documentation. The Zend folks posted this overview and SimpleXML introduction The O’Reilly folks at ONLamp offered this guide to using SimpleXML. Of course, there’s always the SimpleXML docs at PHP.net.
Two problems: I haven’t encountered CDATA in my XML yet, but I do hope to develop a better solution than offered here when I [...]
Posted November 22, 2005 by Casey Bisson
Categories: Technology. Tags: cdata, docs, documentation, php, php5, simplexml, xml, xml server. 5 Comments.
The following pages from the WordPress Codex were surprisingly helpful recently:
Creating a Static Front Page « WordPress Codex
Creating Tables with Plugins « WordPress Codex
Alphabetizing Posts « WordPress Codex
tags: documentation, wordpress, wordpress codex, wordpress development, wordpress documentation
Posted September 25, 2005 by Casey Bisson
Categories: Blink, Technology. Tags: documentation, wordpress, wordpress codex, wordpress development, wordpress documentation. 36 Comments.
I’m going out on a limb to say MySQL’s full-text indexing and searching features are underused. They appeared in MySQL 3.23.23 (most people are using 4.x, and 5 is in development), but it’s been news to most of the people I know.
Here’s the deal, the MATCH() function can search a full-text index for a string [...]
Posted September 6, 2005 by Casey Bisson
Categories: Technology. Tags: boolean search, boolean searches, boolean searching, database, db, docs, documentation, full text, full text index, full text search, full text searching, fulltext, fulltext search, keywords, match(), mysql, rank, relevance, relevance rank, relevance ranked, relevance ranking, search, search full text. 8 Comments.