Web Serving

Oracle and PHP on your Mac

Setting Up Oracle and PHP on Mac OS X

If you are a developer who works with Oracle applications and has been itching for an alternative to Windows or Linux—or if you are an experienced OS X user and are looking at basing your next project on Oracle—this article is for you. It assumes that you are comfortable working in the shell environment and have a working installation of OS X 10.3 (Panther) or 10.2 (Jaguar), including the developer tools and an administrator account.

Web Serving

PHP and Friends – Panther

Add the simple include line at the end of /etc/httpd/httpd.conf

Include /usr/local/php/httpd.conf.php

Started WebServer

Voila – after an upgrade Apache is happy, and MySQL was already started up.

Web Serving

Transforming XML Transforming XML with PHP [Jun. 18, 2003]

Need PEAR, but that’s why we did the latest update from Marc Liyanage

Web Serving


I fiddled around with my access_log file for Apache. Specifically I removed all lines containing .jpg and .gif

What I didn’t do was restart Apache. I lost all of the log entries for the past week – pointing to a non-existent log file.

Web service still worked, just the log entries went to data heaven.

If you fool around with your Apache log files it is probably best to restart Apache when the modifying is done.

Web Serving

PHP – FTP timeouts

Warning: ftp_site(): Transfer completed. 23188 (8) bytes transferred. in /Library/WebServer/Include/ on line 102 Error: Site command failed.

I think I’m experiencing a timeout on a long running query. I found a couple of references to commands to address this issue and tried them to no avail.

$old_max_execution_time = ini_set(“max_execution_time”, 6000);
$fn = rdb_query($conn_block, $host, $db, $query);
ini_set(“max_execution_time”, $old_max_execution_time);

the fix

ftp_set_option($conn_id, FTP_TIMEOUT_SEC, $runtime);