Category Archives: WebTechnology

Migrating from PHP4 to PHP5

PHP 5 Gotchas – Some Common Error Messages Call-time pass-by-reference has been deprecated calling a variable by reference during the function call instead of in the function definition: $conn =&getConnection(); OCIBindByName($stmt,”EMPLID”,&$eeid, strlen($eeid) ) script declaration required (may be php.ini or … Continue reading

Posted in MySQL, WebTechnology | Leave a comment

Recursively chmod directories only

The -type d switch is the key: >  find . -type d -exec chmod 755 {} \; This will recursively search your directory tree (starting at the current directory) and chmod 755 all directories only. Similarly, the following will chmod … Continue reading

Posted in Linux, WebTechnology | Leave a comment

find html files modified in last 7 days

#!/bin/csh #change to working directory cd /Library/WebServer/Documents/website #find html files modified in last 7 days in web directory # pipe output to text file find . -name “*.html” -mtime -7 > /Users/gare/files_modified7days #Attach and Email (cat /Users/gare/files_modified7days.EmailBody.txt; uuencode /Users/gare/files_m odified7days … Continue reading

Posted in Linux, WebTechnology | Leave a comment