PHP

Who says Drupal doesn't scale, Acquia provided 3 million pages an hour without problems

http://acquia.com/blog/acquia-hosting-customer-hits-700-pagessecond-or-w...

Here's a list of many famous Drupal sites: http://buytaert.net/tag/drupal-sites

list includes:

Nike
Yahoo
Intel
AT&T
Reuters
CNN
Mattel
Sony
Playboy
MTV
NATO
Warner Brothers
NASA
Even the United States White House!

Install alternative version of php on a mac with mac ports

Note I've found all these directions on making it work even when installing port php52 it simply does not work. I'm still trying to get this to work. ack.

http://2tbsp.com/content/install_apache_2_and_php_5_macports
http://typofree.org/article/archive/2009/august/title/macports-give-me-b...
http://guide.macports.org/#development.local-repositories

If you need to uninstall MacPorts, and your port command is functioning, have it uninstall all the installed ports by typing this in the Terminal:

install php mysql with: sudo port install php52 +apache2 +php5-mysql +pear +php5-soap
uninstall with:  sudo port -f uninstall installed

-f is to force the install or uninstall.

to uninstall mac ports (this was the only way I could uninstall php 5.3)

sudo rm -rf \
    /opt/local \
    /Applications/DarwinPorts \
    /Applications/MacPorts \
    /Library/LaunchDaemons/org.macports.* \
    /Library/Receipts/DarwinPorts*.pkg \
    /Library/Receipts/MacPorts*.pkg \
    /Library/StartupItems/DarwinPortsStartup \
    /Library/Tcl/darwinports1.0 \
    /Library/Tcl/macports1.0 \
    ~/.macports

conditionally run code on page.tpl.php

I use the following code to conditionally show pieces of the page depending on which page the user is on:

$curr_uri = check_plain(request_uri());
//print $curr_uri;
<?php if ((!preg_match("/contact/i", $curr_uri))&&(!preg_match("/authentication-options/i", $curr_uri))&&(!preg_match("/node\/305/i", $curr_uri))) : ?>
<h1>conditional html code here</h1>
<?php or php code here to be conditionally shown?>
<?php endif; ?>

put a block of html or php code in an if clause in PHP

<?php if ($footer_message): ?>
            <?php print $footer_message; ?>
            <h1>hello, html can go here too</h1>
            <h2>very nice :) </h2>
        <?php endif; ?>