archive-com.com » COM » B » BENRAMSEY.COM

Total: 425

Choose link from "Titles, links and description words view":

Or switch to "Titles and links view".
  • Atlanta PHP Podcast, by Ben Ramsey
    create the recording my PowerBook s internal microphone Yet the Q A session we had following Kevin Roberts s presentation had to be cut for two reasons a time and b it was too hard to hear most of the discussion PHP Frameworks slides PDF Atlanta PHP March 2 2006 Podcast NOTE The podcast is in MPEG 4 m4a format You can use iTunes or Winamp to listen to it

    Original URL path: https://benramsey.com/blog/2006/03/atlanta-php-podcast/ (2016-04-26)
    Open archived version from archive

  • Vaporware No More: Zend Framework Available, by Ben Ramsey
    one of the other features I was looking forward to was the Zend InputFilter framework I know that Chris will undoubtedly write much more about this but I wanted to point out one very cool feature the strict mode The strict mode works like this you pass an array of tainted data let s say the POST array to Zend InputFilter to create a new object to access the data in a safe manner and then by default POST is set to NULL for the remainder of the script you simply cannot access the raw tainted data from POST Here s an example php filterPost new Zend InputFilter POST username filterPost isAlpha username var dump username will either contain the value of POST username if it contains only alphabetic characters or FALSE var dump POST will print NULL This strict mode could be very useful in an environment with a team of application developers Just set auto prepend file in php ini to load up a script that grabs all autoglobal variables POST GET COOKIE etc and stores them to Zend InputFilter objects and you never have to worry about your team accessing raw data they must always use the

    Original URL path: https://benramsey.com/blog/2006/03/zend-framework-available/ (2016-04-26)
    Open archived version from archive

  • EFF stickers in "The IT Crowd", by Ben Ramsey
    an IT department is hilarious Plus their office is littered with Electronic Frontier Foundation EFF stickers Just check out the door in this pic The IT Crowd Channel 4 Atariboy has links to torrents By Ben Ramsey Posted on 8 Feb 2006 Luke Welling s Blog Vaporware No More Zend Framework Available Tweet Vote on Hacker News Please enable JavaScript to view the comments powered by Disqus Twitter Github LinkedIn

    Original URL path: https://benramsey.com/blog/2006/02/eff-stickers-in-the-it-crowd/ (2016-04-26)
    Open archived version from archive

  • Luke Welling's Blog, by Ben Ramsey
    Thomson Luke Welling has started blogging Luke and Laura are the authors of the bestselling PHP and MySQL Web Development They re from Down Under and as such have cool accents By Ben Ramsey Posted on 5 Feb 2006 PRO PHP Interview With Andi EFF stickers in The IT Crowd Tweet Vote on Hacker News Please enable JavaScript to view the comments powered by Disqus Twitter Github LinkedIn Email Copyright

    Original URL path: https://benramsey.com/blog/2006/02/luke-wellings-blog/ (2016-04-26)
    Open archived version from archive

  • PRO::PHP Interview With Andi, by Ben Ramsey
    decided to undertake this project Andi said that Zend feels there are three things needed to take PHP to the next level the PHP Collaboration Project is made up of these three things a solid framework development environment enriched development tools Eclipse best practices Zend is using the PHP Collaboration Project as a vehicle to promote and accomplish these goals to advance PHP PHP Competing With NET Marcus asked Andi why he has been quoted in the past as saying that Java is not PHP s main competition but rather NET provides the most competition Andi elaborated on this saying that the Web is moving toward a more agile development model which is why he feels that Java is not particularly suited for the Web Instead NET and PHP are both particularly suited to solve the Web problem and so it is only natural for NET to be PHP s main competition PHP Strengths Andi continued his discussion of PHP vs NET by highlighting the major strength of PHP and the main weakness of Microsoft and thus NET He said that the greatest strength PHP has is its large community base while Microsoft has never been able to solidify itself

    Original URL path: https://benramsey.com/blog/2006/01/prophp-interview-with-andi/ (2016-04-26)
    Open archived version from archive

  • Technical Vocabulary and Grammar, by Ben Ramsey
    bushels is a good yield A unit Right A thousand bushels were created Individual items Right The data is sound A unit Right The data have been carefully collected Individual items Thus a company name could possibly use either form depending on the context I can t think of an example off the top of my head that would illustrate the differences As for periods and commas within quotation marks I think this is often a confusing issue for professionals much less students In American English though commas and periods go inside the quotation marks period semicolons and colons never go inside quotation marks Question marks and exclamation points depend on the context Contrary to popular belief about usage of commands etc there are no exceptions to this rule See section 2 7 7 in the MLA Handbook pg 92 in Comma and pg 334 in Stylebook I agree that this can lead to confusion in technical writing when explaining something to enter at the command prompt etc However to resolve this I would personally not place the command in quotation marks Instead I would set it in a monospaced typeface to indicate that it is a command Then delete a line from the file by typing dd Now for computer jargon The one thing that has been bothering me lately is this PC Windows PC x86 processor The term PC refers to a personal computer which could be any computer running Windows OR Macintosh operating systems x86 OR PowerPC processors What s going to happen to this term now that Macs are running on an Intel x86 processor Nothing Everyone at my office will still call their computers PCs and mine a Mac Even the publishing community refers to Windows based computers as PCs I can t find any

    Original URL path: https://benramsey.com/blog/2006/01/technical-vocabulary-and-grammar/ (2016-04-26)
    Open archived version from archive

  • Peruser MPM for Apache, by Ben Ramsey
    also looked at and tested mod security the goal of which is to secure applications from the Apache Web server and the Hardened PHP Project s Hardening Patch which secures PHP applications from the language engine Both of these are excellent tools and should be assessed by anyone seeking to harden their server configuration Still I wanted to find something that would split off Apache so that each user s site was running as that user instead of the general Apache user that could read and execute all user files This global user serving and processing all pages is where the root of the problem lies Yet if Apache could serve each site as the owner of the site then the owner s file permissions could essentially be set to 700 instead of being world group readable for the Apache user and Apache would still serve the pages since it s running as the privileged user Even better run Apache with this configuration and place it and the system users in a jail no one would then be able to access any system files or the files of other users No matter how many people I asked I couldn t find an easy answer for how to do this Around that time someone suggested I look into Metux MPM for Apache but from what I understand Metux uses threading and running PHP in a threaded environment is not recommended so the solution needed to be non threaded Finally via a comment on Christopher Kunz s blog I ve found something that at least sounds like what I m looking for It s the Peruser MPM by Telena Internet Services and it seems that it was created with PHP in mind Here s what the site says about Peruser The fundamental

    Original URL path: https://benramsey.com/blog/2005/12/peruser-mpm-for-apache/ (2016-04-26)
    Open archived version from archive

  • PECL Input Filter, by Ben Ramsey
    fundamental part of the PHP language The Input Filter extension right now is only just that an extension Yet recently 15 Nov I noticed that Jani Taskinen a k a sniper checked in some revisions with the comment Prepare for including in PHP core This got me thinking so I asked Derick and Derick confirmed that the Input Filter extension will be a part of the PHP core in versions 5 1 1 and 6 0 So there s one of your built in security tools right there So now let s take a look at some code Let s assume that we have a form On that form are four fields name age email and list These are fairly self explanatory With name we expect a string with age a number email an e mail address and with list a value of either 1 0 yes or no to determine whether you want to be on the mailing list it s a radio button and for the sake of argument let s assume that the values are yes and no but they could be 1 0 true false on or off any of these will filter as a BOOLEAN value Our processing form might start out like this php clean array clean name input get INPUT POST name FL REGEXP array regexp w clean age input get INPUT POST age FL INT clean email input get INPUT POST email FL EMAIL clean list input get INPUT POST list FL BOOLEAN The constants passed to the function determine the type of filtering and if the input variable matches the filter then it returns the raw and unchanged value If it doesn t match then it returns NULL So at worst clean in this implementation will contain a NULL value You

    Original URL path: https://benramsey.com/blog/2005/11/pecl-input-filter/ (2016-04-26)
    Open archived version from archive



  •