Archive for the ‘PHP’ Category

CW9 - June 3, 2007 - Subversion revision control system

One Topic:Subversion, a open-source, cross platform revision control system. Tonight I talk about how to install, configure and understand how to use a Subversion repository.

Don’t forget to E-mail comments and suggestions to compiledweekly AT gmail.com.

File Download (14:46 min / 10.2 MB)

CW7 - July 13, 2006

Two topics: TinyMCE, a cross browser HTML rich text editor and solutions for SPAM. TinyMCE is an excellent html styled text editor that has an endless number of settings and is extendable. In the second topic I address SPAM and talk about two server solutions; SpamAssassin and MIMESweeper. Software recommendation of the week: nLite, web site of the week: nerdvittles.com test

  • nLite :: Update Windows installation CD’s quick and easily.
  • TinyMCE :: TinyMCE, a cross browser html rich text editor.
  • Nerd Vittles :: Awesome site, more than just informaton on TrixBox here!
  • SpamAssassin :: SpamAssassin server based anti-spam tool.
  • MIMESweeper :: MIMESweeper, product of Clearswift, a full blown supported SMTP service with SPAM controls.
  • Thunderbird :: E-mail client with spam filtering built in


CW6 - June 8, 2006

Two topics, ModRewrite for Apache and TrixBox PBX. ModRewrite lets you do some really cool things with Apache you thought you couldn’t do. TrixBox is a Voice Over IP PBX Phone system built on CentOS Linux. Software recommendation, UltraVNC and Web Script recommendation, IMP Webmail.


CW5 - April 20, 2006

This week we look at phpMailer, a PHP E-mailing class and wxWidgets basics. Show also includes 3 useful Firefox extensions for web development, phpMyAdmin recommendations.


CW4 - April 6, 2006

This week, CompiledWeekly explains ghow to make quick and reliable SQL queries with a set of MySQL Assisting functions in PHP. Plus software application of the week 7-Zip, web site of the week foldershare.com and PodProducer podcast software reviewed.


CW3 - March 30, 2006

This week, CompiledWeekly gets you started with the Nullsoft Install System (NSIS) and how to handle PHP magic quotes. Plus software application of the week KeePass and web site of the week is the Javascript sectiono of Codelifter.com


CW2 - March 23, 2006

This week, CompiledWeekly gets you started with wxWidgets and Visual C++ 2005 Express Edition and explains what is E-mail injection and how to prevent it. Plus software application of the week WinMerge and web site of the week www.codeproject.com.


E-mail Injection

E-mail injection is caused when form fields entered by hackers who add unexpected lines of text to the from and/or subject lines of your form.

For instance, many web sites add a contact us page to their web site to allow a web visitor an opportunity to send comments and suggestions. Usually these forms ask the user for a subject and an E-mail address. The risk of injection occurs when these fields are placed into the headers of the E-mail sent from the script to the E-mail address assigned to the contact submission.

The injection works when the hacker adds extra lines to the field before sending it to your script. IF your script does not check the E-mail address entered then the injection will find its way to the PHP mail() function. Then the rest is history.

The PHP mail() function takes multi lines in the to field and may treat them as additional lines for the headers of the E-mail message.

Click here http://securephp.damonkohler.com/index.php/Email_Injectionfor some better detailed examples of E-mail injections.

You can prevent E-mail injections in a number of ways. The easiest is to only place data that is submitted by the user in the message body of the E-mail. If you want your script to automatically generate a response message to the user, then you will need to verify the E-mail address entered is valid and does not contain additional lines of information.

Click here http://www.bl0g.co.uk/?d=060214 for an alternative method for protecting your script from E-mail injections.

CW1 - March 16, 2006

Welcome to the first podcast of Compiled Weekly. Today’s podcast I introduce myself, promote the PodcasterNews.com podcast network, review the open source Ravencore web control panel, recommend the SciTE text editor, and cover Cross Site Scripting XSS and how to prevent it.


Creating PDF reports with PHP

If you have found yourself developing a web site that requires printable reports, then you will love this blog entry.

A year ago I created a PDF reporting system that used the HTMLtoPDF library from RustyParts.com (http://www.rustyparts.com/pdf.php) This is a great HTMLtoPDF converter. It utilizes Ghostscript and a few other nifty Perl scripts to generate the PDFs. The only drawback to this package is it requires a few things to be installed on your server.

Today I came across a new HTMLtoPDF php library on Source Forge (http://html2fpdf.sourceforge.net/). This may be another alternative if you are in need of a report writing library but cannot install or modify the required software for the RustyParts HTMLtoPDF php library.

Blubrry player!