Here is an extension / plugin for mediawiki to authenticate against a Radius server. I couldn’t find one anywhere else, which is surprising. I can’t believe I am the first person to want to do this. Anyway, this is just bare bones, but it works for an internal mediawiki setup.
First, get Pure [...]
<?= $variable ?> is depreciated in PHP5 (along w/ all other tags that are not <?php ?>). I don’t care so much about the others, but I actually use this one. <?= $title ?> just makes more sense than <?php echo $title; ?>
The last instruction before a closing tag does not require a semicolon; however, [...]
If you are wondering what a dateCellEditor and asyncSubmitter are go check out http://developer.yahoo.com/yui/examples/datatable/dt_cellediting.html. See the last_login column? Click on that, you will get a cool calendar that pops up for you to change the date. Pretty handy. That Inline Cell Editing page touches on how to implement that, but it doesn’t cover the actual [...]
In the past I had a mediawiki setup on my local MBP that I would use to keep notes. This is a copy/paste of this article. The ToC links do not work, but the rest of the links should work. If you need to setup MAMP on a Mac, keep on reading after the break.
Contents
(these [...]
I have some more PHP Performance notes somewhere, but this is all that I can find right now.
Use for loops over foreach loops
Use ‘ over “, unless you are parsing variables
Use echo over print
For Loops
Use either of the following syntax for your for loops. They take about the same amount of time to execute
$count = [...]
Install MySQL on Mac OS X if you haven’t already
Install XCode if you haven’t already
Do either this:
Open NetInfo Manager
Modify /groups/wheel/users, add a new value for your login id, this will come into play later
or this:
$ niutil -appendprop / /groups/wheel users yourloginid
Get PHP Complete Source Code from php.net – http://php.net/get/php-5.2.2.tar.gz/from/a/mirror (more current versions are out now)
Open [...]
10.4.9
Edit the httpd.conf file
Uncomment the lines that contain php
Restart apache
Confirm it works via phpinfo.php
fix PEAR – see Enable PEAR on Mac OS X 10.4.x
command summary of the above (assuming you know what to do in vim)
$ sudo vim /etc/httpd/httpd.conf
$ sudo apachectl restart
$ vim /Library/WebServer/Documents/phpinfo.php
phpinfo.php contents
<?php phpinfo(); ?>