<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0"
    xmlns:dc="http://purl.org/dc/elements/1.1/"
     xmlns:admin="http://webns.net/mvcb/"
     xmlns:content="http://purl.org/rss/1.0/modules/content/"
     xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#">
	<channel>
	  <title>Ask MetaFilter posts tagged with php</title>
      <link>http://ask.metafilter.com/tags/php</link>
      <description>tag posts with php</description>
	  	  <pubDate>Fri, 25 Jul 2008 08:59:34 -0800</pubDate>
      <lastBuildDate>Fri, 25 Jul 2008 08:59:34 -0800</lastBuildDate>

      <language>en-us</language>
	  <docs>http://blogs.law.harvard.edu/tech/rss</docs>
	  <ttl>60</ttl>	  
	<item>
	<title>Cover me!</title>
	<link>http://ask.metafilter.com/97501/Cover-me</link>	
	<description>Anyone know of a good PHP library that will allow me to pull cover art images from Amazon? I&apos;m not much of a coder, but I&apos;m working on a project right now that needs to pull DVD cover art from Amazon. Does anyone know of existing PHP scripts that can help me learn about doing so? I&apos;ve got an amazon web associates key, but I&apos;m not sure what to really do from there. &lt;br&gt;
&lt;br&gt;
Thanks</description>
	<guid isPermaLink="false">tag:ask.metafilter.com,2008:site.97501</guid>
	<pubDate>Fri, 25 Jul 2008 08:59:34 -0800</pubDate>

<category>amazon</category>

<category>php</category>

<category>coverart</category>

	<dc:creator>CXImran</dc:creator>
	</item>
	<item>
	<title>CodeFilter: </title>
	<link>http://ask.metafilter.com/97444/CodeFilter</link>	
	<description>CodeFilter: I am looking for online classes mainly in the area of web programming (PHP, MySQL, AJAX, etc.). I need to brush up on my self taught skills.  I am looking for something on the level of an actual coures, with assignments, deadlines, etc. (I don&apos;t necessarily like those things, but find I learn much better that way than self-paced from a book). Free or paid service is fine - I am mainly concerned with quality. I sort of like the courses and organization offered by eclasses.org, but I have no idea if they are good and credible? Any recommendations would be very much appreciated</description>
	<guid isPermaLink="false">tag:ask.metafilter.com,2008:site.97444</guid>
	<pubDate>Thu, 24 Jul 2008 15:09:41 -0800</pubDate>

<category>PHP</category>

<category>MySQL</category>

<category>Web</category>

<category>Programming</category>

<category>Online</category>

<category>Classes</category>

	<dc:creator>kjl291</dc:creator>
	</item>
	<item>
	<title>Considerations when adding a periodic email update function to my website (with PHP&apos;s mail() function)</title>
	<link>http://ask.metafilter.com/97152/Considerations-when-adding-a-periodic-email-update-function-to-my-website-with-PHPs-mail-function</link>	
	<description>I&apos;m planning to add a feature to my website that will allow users to request periodic updates by email. I&apos;ve cobbled together a little PHP script that uses the mail() function. It works perfectly when I test it myself, but I have no idea how this will work when released to a signficant number of users. One problem - I don&apos;t know how many users I&apos;ll have, so I&apos;m trying to keep my up-front costs to a minimum. Optimistically, I&apos;ll have a few hundred users. In my wildest dreams, I&apos;d have a few thousand.&lt;br&gt;
&lt;br&gt;
Another problem - the email will be dynamically generated based on user-entered criteria - i.e., the user will log in, and enter some parameters. A php page will pull the appropriate data from the MySQL database, assemble the email, and send it out. Also, the emails will be sent on demand (not according to some predetermined schedule). So, I think that rules out something like Campaign Monitor&apos;s newsletter service.&lt;br&gt;
&lt;br&gt;
My site is hosted at Media Temple, on a Grid Server.&lt;br&gt;
&lt;br&gt;
Is this a disaster waiting to happen, or is that kind of demand/load trivial?&lt;br&gt;
&lt;br&gt;
If the former, is there a better way to handle this? A reliable third-party service?&lt;br&gt;
&lt;br&gt;
Many thanks in advance for any advice!&lt;br&gt;
&lt;br&gt;
Cheers,&lt;br&gt;
Matt Stuehler</description>
	<guid isPermaLink="false">tag:ask.metafilter.com,2008:site.97152</guid>
	<pubDate>Mon, 21 Jul 2008 14:56:47 -0800</pubDate>

<category>php</category>

<category>mail</category>

<category>mediatemple</category>

<category>hosting</category>

<category>performance</category>

	<dc:creator>stuehler</dc:creator>
	</item>
	<item>
	<title>I am looking for a simple timeclock/timecard replacement software.</title>
	<link>http://ask.metafilter.com/97086/I-am-looking-for-a-simple-timeclocktimecard-replacement-software</link>	
	<description>I&apos;m a tech for a school district. One of my high schools was hit by lightning. The computer that my faculty uses to clock in every day (a windows 95 machine) died. I need a replacement ASAP. I don&apos;t know if weather had anything to do with the machine going down or not. I do know that the HD clicks grinds when powered up and it isn&apos;t being recognized in BIOS. I&apos;ve built them a new PC and was ready to install the software for them, but no one knows what software they were running. I&apos;ve contacted our helpdesk, software procurement, etc. The software is so old that no one remembers what it was. I seem to recall it was some sort of Microsoft Access DB called Logman. Googling hasn&apos;t provided any answers. I&apos;ve decided to download some free software and hack it to my needs. I found phptimeclock and timetrex. Timetrex requires me to import users from the command line :-/, which is not something I can explain to our database specialist. PHPtimesheet is simple, but there are features I need which I don&apos;t have the time to code myself - i have other schools to get ready and the start of the year is approaching.&lt;br&gt;
&lt;br&gt;
 I need it to be a simple login because my users are not tech-savvy. 1-click logins are great. I also need the ability to clock everyone out at one time. This is the important feature phptimeclock is missing.&lt;br&gt;
&lt;br&gt;
Any suggestions? PM me if you have a solution that you don&apos;t want to release to general pub.</description>
	<guid isPermaLink="false">tag:ask.metafilter.com,2008:site.97086</guid>
	<pubDate>Mon, 21 Jul 2008 05:42:01 -0800</pubDate>

<category>computers</category>

<category>timeclock</category>

<category>software</category>

<category>php</category>

<category>mysql</category>

	<dc:creator>Davaal</dc:creator>
	</item>
	<item>
	<title>Complex SQL Query</title>
	<link>http://ask.metafilter.com/96997/Complex-SQL-Query</link>	
	<description>SQLFilter: I&apos;m struggling with a specific SQL query. I have 2 tables, &apos;questions&apos; and &apos;answers&apos;, which are linked by a field in answers. I would like to select the questions which have the most answers in the last 24 hours. I have wo tables:&lt;br&gt;
&lt;br&gt;
&apos;questions&apos; with columns &apos;id&apos; and other irrelevant fields&lt;br&gt;
&apos;answers&apos; with columns &apos;id&apos;, &apos;ofquestion&apos;, &apos;date&apos;, and other irrelevant fields. The &apos;ofquestion&apos; field is the ID of the question row that it is associated with.&lt;br&gt;
&lt;br&gt;
Each question can be answered multiple times, just as here on the green. I am trying to formulate an SQL query that will select the 5 questions with the most answers in the last 24 hours.&lt;br&gt;
&lt;br&gt;
This is the closest that I&apos;ve been able to come, though it still doesn&apos;t work.&lt;br&gt;
&lt;br&gt;
&lt;pre&gt;SELECT * FROM questions WHERE exists (&lt;br&gt;
	SELECT answers.ofquestion, count(*) FROM answers WHERE answers.ofquestion = answers.ofquestion&lt;br&gt;
	AND answers.id &lt;&gt; answers.id&lt;br&gt;
	AND answers.date &amp;gt; SUBTIME( NOW( ) , &apos;24:0:0.000000&apos; )&lt;br&gt;
	AND answers.ofquestion = questions.id&lt;br&gt;
	GROUP BY answers.ofquestion&lt;br&gt;
	ORDER BY count(*)&lt;br&gt;
)&lt;/&gt;&lt;/pre&gt;&lt;br&gt;
&lt;br&gt;
I&apos;m no SQL expert, so this may not even be close. Anybody have any suggestions? I&apos;m using PHP, so I have that set of tools in my disposal if need be.&lt;br&gt;
&lt;br&gt;
Thanks!</description>
	<guid isPermaLink="false">tag:ask.metafilter.com,2008:site.96997</guid>
	<pubDate>Sat, 19 Jul 2008 13:49:49 -0800</pubDate>

<category>sql</category>

<category>php</category>

<category>programming</category>

	<dc:creator>charmston</dc:creator>
	</item>
	<item>
	<title>Run multiple php websites from a single server?</title>
	<link>http://ask.metafilter.com/96749/Run-multiple-php-websites-from-a-single-server</link>	
	<description>How practical is it to run multiple php websites on multiple servers from a single script on one central server? I wrote a script which is now being used on a few websites, and it has been suggested that to make updates simpler we run it from a central server ie each website will use the script from one source to actually run.  While on the surface this seems like A Very Good Ideas, I am sure there are issues which might make it a very bad idea. Can you convince me one way or the other.</description>
	<guid isPermaLink="false">tag:ask.metafilter.com,2008:site.96749</guid>
	<pubDate>Wed, 16 Jul 2008 11:04:41 -0800</pubDate>

<category>php</category>

<category>web</category>

<category>scripting</category>

	<dc:creator>zingzangzung</dc:creator>
	</item>
	<item>
	<title>Can I edit my Akismet plugin?</title>
	<link>http://ask.metafilter.com/96525/Can-I-edit-my-Akismet-plugin</link>	
	<description>Can I edit the Akismet plugin I use on my Wordpress blog? My host has a firewall which is preventing my Akismet plugin from working properly. They offered me a proxy address and number I can use instead, but I don&apos;t know how to get the plugin to use them. (Alternatively, can you recommend a good comment-spam catcher that won&apos;t run into firewall problems?) I&apos;ve asked the Akismet people for help with this, but they say they don&apos;t provide that level of service. &lt;br&gt;
&lt;br&gt;
I&apos;ve never modified a plug-in before, but would be happy to get my hands dirty if given clear instructions. &lt;br&gt;
&lt;br&gt;
My previous host had no problems with it (just terrible customer service).  I was really happy with how well Akismet worked, so I&apos;d prefer to keep it going if possible.</description>
	<guid isPermaLink="false">tag:ask.metafilter.com,2008:site.96525</guid>
	<pubDate>Mon, 14 Jul 2008 04:08:22 -0800</pubDate>

<category>akismet</category>

<category>wordpress</category>

<category>firewall</category>

<category>php</category>

	<dc:creator>harriet vane</dc:creator>
	</item>
	<item>
	<title>&quot;And all the bells and whistles.&quot;</title>
	<link>http://ask.metafilter.com/96208/And-all-the-bells-and-whistles</link>	
	<description>I&apos;m looking for a way to let members of my forum create an individual &quot;member page&quot; for themselves, or have it created for them automatically upon being accepted into a certain usergroup, that they could fill out with miscellaneous info. To be more precise, the forum revolves an online game, and the member page would have details about their characters, background stories, etc. It doesn&apos;t really have to be tied to their forum account, although it would be a smooth way to handle it from the user standpoint. Except I&apos;m clueless on how to make this work. The board is hosted on space I own, under a domain I own. So theoretically anything is possible in the technical department, minus my lack of knowledge. There are so many forum softwares out there, and gallery softwares, but I don&apos;t even know where to begin to look for something that offers the functionality I want. Is this a feature I&apos;ll have to script in myself (difficulty level: probably high, but if that&apos;s the only way, point me in the right direction!), or is there another way for the php uninitiated?&lt;br&gt;
&lt;br&gt;
Extra details: I&apos;m using &lt;a href=&quot;http://simplemachines.org/&quot;&gt;Simple Machine Forums&lt;/a&gt;, and ideally I&apos;d like the pages created once someone is of the right usergroup (to differentiate between game members and visitors). Though as I said, being attached as part of the board isn&apos;t a real necessity.&lt;br&gt;
&lt;br&gt;
All help &lt;i&gt;mightily&lt;/i&gt; appreciated. If extra details are needed for you to answer, just poke!</description>
	<guid isPermaLink="false">tag:ask.metafilter.com,2008:site.96208</guid>
	<pubDate>Wed, 09 Jul 2008 23:03:11 -0800</pubDate>

<category>scripting</category>

<category>programming</category>

<category>php</category>

<category>forum</category>

	<dc:creator>Bakuun</dc:creator>
	</item>
	<item>
	<title>Looking for good freelancer script</title>
	<link>http://ask.metafilter.com/95851/Looking-for-good-freelancer-script</link>	
	<description>What&apos;s a good reverse auction/freelance site script? I&apos;m looking to purchase (yes, I&apos;m willing to pay for it), a script like Kubelance, Ilancer, Tukanas, or any other of the other freelancer script, but that actually works.  I&apos;m leaning towards getting Kubelance, but I haven&apos;t found enough reviews of it to convince me yet.  Can anyone suggest another script that would be good?  It&apos;s need to be very customizable.</description>
	<guid isPermaLink="false">tag:ask.metafilter.com,2008:site.95851</guid>
	<pubDate>Sat, 05 Jul 2008 23:12:49 -0800</pubDate>

<category>scripts</category>

<category>freelance</category>

<category>php</category>

<category>programming</category>

<category>auction</category>

<category>shareware</category>

	<dc:creator>Cochise</dc:creator>
	</item>
	<item>
	<title>Generate a nickname from a real name in php</title>
	<link>http://ask.metafilter.com/95631/Generate-a-nickname-from-a-real-name-in-php</link>	
	<description>I am looking for a way to generate nicknames from real names, preferably in PHP. I am setting up a community website that uses facebook for autentication. Facebook sends me the name for every new user but I dont want to show it in full to the whole world so I need to give each user a nickname.&lt;br&gt;
&lt;br&gt;
Of course the user could choose a name themselfs but i I would prefer to have the system giving them a name that sounds a bit like their real name but obfuscates it enough to make it non recognisable online. Preferably it will also be human spokable without any numbers or such.&lt;br&gt;
&lt;br&gt;
I was toying with the idea to take the first syllable in the users first name and then add something random to it. Extracting syllables though seem pretty hard. Anyone have other ideas or even better a finished class or script for this thing.</description>
	<guid isPermaLink="false">tag:ask.metafilter.com,2008:site.95631</guid>
	<pubDate>Thu, 03 Jul 2008 03:11:43 -0800</pubDate>

<category>php</category>

	<dc:creator>ilike</dc:creator>
	</item>
	<item>
	<title>Why isn&apos;t my Facebook embedded Flash form working?</title>
	<link>http://ask.metafilter.com/95449/Why-isnt-my-Facebook-embedded-Flash-form-working</link>	
	<description>PHP gurus, Facebook nerds, lend me your ears: I&apos;m having a problem with an embedded Flash object on a Facebook Page. Here&apos;s the rub: I used to be Comp Sci, I decided I hated it and swapped out to English/Philosophy. Life being what it is, I&apos;m a marketing guy now but my above-average know how lands me in a lot of tech-y marketing things. &lt;br&gt;
&lt;br&gt;
So, we&apos;ve got a Facebook Page. And we&apos;re running a contest. The easiest way to  collect submissions and control the look was with an embedded Flash form. I brewed up a quick test: Flash form goes getURL onClick, submits via POST to a PHP, PHP e-mails my account with the info.&lt;br&gt;
&lt;br&gt;
This works like a charm when I test it here: http://asilenttreatment.org/flashtest/testform.swf&lt;br&gt;
&lt;br&gt;
It does not work when I test it here: http://www.facebook.com/pages/Test-Lab/17009933723&lt;br&gt;
&lt;br&gt;
The embedding code for Flash in FBML is: &lt;br&gt;
fb:swf &lt;br&gt;
swfsrc=&apos;http://asilenttreatment.org/flashtest/testform.swf&apos; &lt;br&gt;
imgsrc=&apos;http://www.ilovepeanutbutter.com/catImages/17010001_lg.jpg&apos;&lt;br&gt;
&lt;br&gt;
It embeds, it looks great, but when I click the button to Submit nothing happens. This is probably an obvious and embarrassing solution, but I&apos;m stumped. Help a rusty tech guy flex his muscle!</description>
	<guid isPermaLink="false">tag:ask.metafilter.com,2008:site.95449</guid>
	<pubDate>Tue, 01 Jul 2008 07:15:35 -0800</pubDate>

<category>php</category>

<category>fbml</category>

<category>facebook</category>

<category>flash</category>

	<dc:creator>GilloD</dc:creator>
	</item>
	<item>
	<title>Am I being overly zealous about &quot;proper SSL implementation?&quot;</title>
	<link>http://ask.metafilter.com/95387/Am-I-being-overly-zealous-about-proper-SSL-implementation</link>	
	<description>Am I being overly zealous about &quot;proper SSL implementation?&quot; We&apos;ve been working with this new collections agency for a few months now.  From the very beginning, I noticed that their PHP-driven website was not secured with SSL so I refused to use it and would instead manually encrypt data (256-bit AES) and submit it to them via email.  My security concerns caused me to question the entire outfit, but I was informed about how reputable the company is, and how much better they would be than our current agency, etc.&lt;br&gt;
&lt;br&gt;
They have a &quot;Place Accounts&quot; page on their website where you are expected to fill out a full-blown help-us-skip-trace form (including social security numbers) which was not secured.  You also have the option of uploading CSV files.  In either event, the page was not secured.&lt;br&gt;
&lt;br&gt;
I asked them to implement SSL (and secure FTP, if possible).  A month later, you go to their &quot;Place Accounts&quot; page and are told by IE &quot;this page contains secure and non secure items...&quot;  The page itself was an https resource, but the &quot;action&quot; property of the form redirected to a non-secure URL, meaning that when you filled out the form (or uploaded the file) the transaction was not encrypted (correct?).&lt;br&gt;
&lt;br&gt;
So I complained about this, and they changed the &quot;action&quot; property of the form to redirect to a secure resource, but then changed the way they link to the &quot;Place Accounts&quot; page, so that their &quot;Place Accounts&quot; page was once again a standard http resource, eliminating the &quot;secure and non-secure items&quot; warning from IE but giving the user no visual cue (no padlock icon, or https) that the site is secure.&lt;br&gt;
&lt;br&gt;
I complained again; a month later we&apos;re back to an https &quot;Place Accounts&quot; page, the &quot;action&quot; property of the form is secure, but the page still contains &quot;secure and non-secure items,&quot; which causes a warning, does not present a padlock icon, and therefore requires a careful user to scrutinize the source to truly know that the page is &quot;secure enough.&quot;  Sure, it&apos;s probably usable at this point, but this is sort of like dealing with terms and conditions that can change at any time; if I can&apos;t just glance and see a padlock, how do I know, each and every time I use the page, that it hasn&apos;t been tweaked and broken again?  &lt;br&gt;
&lt;br&gt;
At this point I feel I should inform them that their web administrator / developer is incompetent.  Am I being overzealous?  How should I approach this?  I&apos;ve been working with their IT manager who I&apos;d expect should be able to communicate with the web team, but do I need to grab the bull by the horns and talk to these guys directly?  Should it really be this complicated?  Why not just secure the entire site and use SSL everywhere to eliminate all doubt?&lt;br&gt;
&lt;br&gt;
I&apos;ve explained what I&apos;m looking for many times (the entire &quot;Place Accounts&quot; page should be secured in order to present the padlock icon and no warnings) and it seems they take an entire month to make a change and get back to me, and it&apos;s a different, less-than-ideal result each time.&lt;br&gt;
&lt;br&gt;
I&apos;m also curious about your general attitudes towards encryption of data in transit.  I deal with HIPAA a lot, which contains &quot;addressable&quot; requirements for encryption.  I am often told by different folks that my approach to security is paranoid; &quot;nobody&apos;s going to intercept that file!  That&apos;d be too hard!&quot;  In the case of email there are plenty of ways to breach security without intercepting individual packets (i.e. guessing a webmail password), whereas in an HTTPS situation, there isn&apos;t a cheesy Yahoo account on the other end, and you&apos;re more specifically concerned about interception in transit.&lt;br&gt;
&lt;br&gt;
This isn&apos;t the first business I&apos;ve encountered that deals with confidential information yet can&apos;t seem to properly implement SSL.  Back me up here or tell me how you see it.  I don&apos;t want this to become chatfilter, but I need your help in calibrating my security perspective.</description>
	<guid isPermaLink="false">tag:ask.metafilter.com,2008:site.95387</guid>
	<pubDate>Mon, 30 Jun 2008 08:49:43 -0800</pubDate>

<category>ssl</category>

<category>https</category>

<category>security</category>

<category>confidential</category>

<category>hipaa</category>

<category>compliance</category>

<category>ssn</category>

<category>encryption</category>

<category>php</category>

	<dc:creator>aydeejones</dc:creator>
	</item>
	<item>
	<title>Customizing a Wordpress function</title>
	<link>http://ask.metafilter.com/95376/Customizing-a-Wordpress-function</link>	
	<description>Wordpress/PHP question. I&apos;m working on a Wordpress theme and want to use an algorithm to alter some of the HTML it emits. I&apos;ve got a general idea of how to do this, and could probably manage a brutish implementation on my own, but my PHP-fu is weak and there is probably a better way. Here&apos;s what&apos;s going on. I&apos;m using the &lt;a href=&quot;http://code.google.com/p/blueprintcss/&quot;&gt;blueprint css&lt;/a&gt; approach for a gridded layout. And I&apos;ve got a &quot;bottom-bar&quot; of widgets, laid out in three columns. With blueprint css, the div for the third column needs &lt;tt&gt;class=&quot;last&quot;&lt;/tt&gt; added to it in (in addition to class declarations that apply to all divs) order for everything to line up right.&lt;br&gt;
&lt;br&gt;
What I want to do is get the count of widgets each time a widget is emitted, and if count mod 3 = 0, insert &apos;last&apos; into the class. Barring that, if I could insert &lt;tt&gt;class=&quot;widget-N&quot;&lt;/tt&gt; (where N=count) in all divs, I could manage, although it would be less elegant. Ideally, all browsers would magically support CSS3 and obviate this problem, but I&apos;m not holding my breath.&lt;br&gt;
&lt;br&gt;
Obviously I don&apos;t want to touch the core code. I don&apos;t mind inserting an altered version of whatever function is necessary into my functions.php file; but if there&apos;s a callback that lets me avoid doing that, so much the better.</description>
	<guid isPermaLink="false">tag:ask.metafilter.com,2008:site.95376</guid>
	<pubDate>Mon, 30 Jun 2008 06:36:19 -0800</pubDate>

<category>wordpress</category>

<category>blog</category>

<category>blogging</category>

<category>programming</category>

<category>scripting</category>

<category>php</category>

	<dc:creator>adamrice</dc:creator>
	</item>
	<item>
	<title>It&apos;s a piece of cake to bake a pretty cake / if the way is hazy...</title>
	<link>http://ask.metafilter.com/95185/Its-a-piece-of-cake-to-bake-a-pretty-cake-if-the-way-is-hazy</link>	
	<description>I&apos;m fed up with CakePHP taunting me like a disobedient two year-old. What&apos;s a better PHP framework built around &lt;a href=&quot;http://en.wikipedia.org/wiki/Model-view-controller&quot;&gt;model-view-controller&lt;/a&gt;? I started out writing raw, sloppy PHP in a text editor, but discovered I&apos;d be doing myself a favour by giving it some structure. &lt;a href=&quot;http://www.cakephp.org&quot;&gt;CakePHP&lt;/a&gt; was my first choice because of its support base and low code-to-results ratio. I still think it&apos;s pretty cool, but it&apos;s caused nothing but technical hurdles for me. Instead of spending my time learning cool things, I&apos;m on IRC&apos;s #cakephp begging for help identifying why code that should work doesn&apos;t. And I don&apos;t mean &apos;should&apos; in the Computer Science 101 &apos;&lt;em&gt;Teeeeeeeeacher!&lt;/em&gt; Why doesn&apos;t this code &lt;em&gt;woooooooooork?!&lt;/em&gt;&apos; sense. I mean, CakePHP has gained sentience and has been making my life miserable. One project, &lt;a href=&quot;http://api.cakephp.org/class_controller.html#8d64f371009811f1d5662a491ba5cf82&quot;&gt;set()&lt;/a&gt; stopped working. After trashing that and starting over, it refused to save specific columns to my database, and made up names for columns that didn&apos;t exist. More often than not, responses to my questions have been &apos;Well gee, that&apos;s weird.&apos; I have been humiliated by a folder filled with text files, and I&apos;m on the brink of DTMFA.&lt;br&gt;
&lt;br&gt;
I want a PHP framework that&apos;s like CakePHP but with a better user experience. I&apos;m a programmer and not a content manager, so Joomla!-type apps are not what I&apos;m looking for. I want get my hands dirty with documentation and code. Model-view-controller structure is desirable but not mandatory. Personal experiences with your framework of choice highly welcome.&lt;br&gt;
&lt;br&gt;
Sorry for the half-rant-half-question, but I truly am feeling what can only be described as the PHP equivalent of trying to feed broccoli to a surly, alcoholic toddler.</description>
	<guid isPermaLink="false">tag:ask.metafilter.com,2008:site.95185</guid>
	<pubDate>Fri, 27 Jun 2008 10:19:28 -0800</pubDate>

<category>php</category>

<category>framework</category>

<category>cakephp</category>

<category>programming</category>

	<dc:creator>spamguy</dc:creator>
	</item>
	<item>
	<title>Problem with regex order</title>
	<link>http://ask.metafilter.com/94441/Problem-with-regex-order</link>	
	<description>RegExFilter: Can any regular expression ninjas help me with my this teensy problem? I&apos;m validating an input in cakephp as follow:&lt;br&gt;
&lt;br&gt;
&apos;rule&apos; =&amp;gt; array(&apos;custom&apos;, &apos;/^[a-zA-Z\&apos;&amp;amp;.\s]{1,40}$/&apos;)&lt;br&gt;
&lt;br&gt;
It works great in that it allows letters, spaces, ampersand, apostrophe, period and numbers.&lt;br&gt;
&lt;br&gt;
For example: &lt;strong&gt;Jim&apos;s Number 1 Tackle &amp;amp; Rod Shop.&lt;/strong&gt; validates.&lt;br&gt;
&lt;br&gt;
The problem arises when there is a number first, for example &lt;strong&gt;2you delivery services&lt;/strong&gt; will not validate.&lt;br&gt;
&lt;br&gt;
I know it has something to do with the order in which the expression is written, but I can&apos;t figure it out. Anyone know what I&apos;m doing wrong?&lt;br&gt;
&lt;br&gt;
Thanks, as always.</description>
	<guid isPermaLink="false">tag:ask.metafilter.com,2008:site.94441</guid>
	<pubDate>Wed, 18 Jun 2008 16:03:11 -0800</pubDate>

<category>regex</category>

<category>programming</category>

<category>php</category>

	<dc:creator>ReiToei</dc:creator>
	</item>
	<item>
	<title>Need simple php flat file cms. </title>
	<link>http://ask.metafilter.com/94362/Need-simple-php-flat-file-cms</link>	
	<description>I need a simple php  cms. I&apos;m building a site for someone and they have a simple site. They only occasionally need to change the content, things like links in the side bar , content on the front page and adding and deleting images. I don&apos;t really need a database for this, but he user doesn&apos;t know any html and isn&apos;t interested in learning any. Any ideas?</description>
	<guid isPermaLink="false">tag:ask.metafilter.com,2008:site.94362</guid>
	<pubDate>Tue, 17 Jun 2008 18:14:09 -0800</pubDate>

<category>cms</category>

<category>php</category>

	<dc:creator>zorro astor</dc:creator>
	</item>
	<item>
	<title>Which PHP CMS?</title>
	<link>http://ask.metafilter.com/93869/Which-PHP-CMS</link>	
	<description>I&apos;m involved with an arts festival, and want to use a CMS. I think one (possibly any) of the following would be suitable, to varying degrees: Joomla, Drupal, Textpattern, Expression Engine, Wordpress. (I&apos;ve deliberately gone for PHP.) Which would you recommend and why? Here are the functions that are vital:&lt;br&gt;
- managing several mailing lists, with customisable fields to gather data on subscribers&lt;br&gt;
- a discussion forum&lt;br&gt;
- facility to upload files such as PDFs and Word Docs&lt;br&gt;
- events programme (with dates, times, venues, ideally with option of pictures)&lt;br&gt;
- picture gallery&lt;br&gt;
(I&apos;m aware that some of these things will need plug-ins.)&lt;br&gt;
&lt;br&gt;
Design doesn&apos;t matter so much - probably an out-of-the-box template will be fine with minor tweaking. One crucial thing is that the users of the site are very non-techie, so will need to have something easy to use (this is to save me having to do it for them all the time!).&lt;br&gt;
&lt;br&gt;
Sorry - I know there have been a lot of CMS questions at AskMe already, but I wanted to narrow down the question more precisely. Each package seems to attract love and venom in equal measures. Thanks for your ideas!</description>
	<guid isPermaLink="false">tag:ask.metafilter.com,2008:site.93869</guid>
	<pubDate>Thu, 12 Jun 2008 03:56:11 -0800</pubDate>

<category>cms</category>

<category>events</category>

<category>festival</category>

<category>software</category>

<category>website</category>

<category>php</category>

	<dc:creator>hatmandu</dc:creator>
	</item>
	<item>
	<title>Apache2, mod_php, suexec security confusion.</title>
	<link>http://ask.metafilter.com/93680/Apache2-modphp-suexec-security-confusion</link>	
	<description>Apache2 security theory; mod_php versus CGI php and the use of suExec: What is the non-theoretical problem with running Apache2 with mod_php and thus without using suexec on a dedicated system? I&apos;m setting up a typical LAMP environment. I&apos;ve used &lt;a href=&quot;http://phpsec.org/projects/phpsecinfo/index.html&quot;&gt;phpsecinfo&lt;/a&gt; to evaluate my current environment and implemented all of the recommended changes except for two, &lt;a href=&quot;http://phpsec.org/projects/phpsecinfo/tests/group_id.html&quot;&gt;Group ID&lt;/a&gt; and &lt;a href=&quot;http://phpsec.org/projects/phpsecinfo/tests/user_id.html&quot;&gt;User ID&lt;/a&gt;.&lt;br&gt;
&lt;br&gt;
The distribution is the most recent Ubuntu Server with the mostly-default Apache2 configuration, and the mostly-default PHP installation, with the exception of the changes recommended by &lt;strong&gt;phpsecinfo&lt;/strong&gt;.&lt;br&gt;
&lt;br&gt;
These warnings indicate that my group and user ID numbers are below 100 (33 to be specific), and therefore may be a problem. I am not sure how to interpret this.&lt;br&gt;
&lt;br&gt;
I followed the documentation links and was about to implement SuExec when I realized that this meant doing a lot of other reconfiguration, like not using mod_php, and that meant changing a lot of &lt;em&gt;other&lt;/em&gt; things, etc.&lt;br&gt;
&lt;br&gt;
This is not a shared system. It will only be used to host one company&apos;s applications through several virtual hosts. The applications will be PHP-based, and most frequently will use the &lt;a href=&quot;http://www.symfony-project.com&quot;&gt;Symfony&lt;/a&gt; framework. Apache currently runs as www-data, whose shell is /bin/false. SSH access to the system is by public-key authentication only and is further restricted at the daemon level to only specific real users.&lt;br&gt;
&lt;br&gt;
What do I need to do to run this securely? Resources, guides and real-world examples would be greatly appreciated.</description>
	<guid isPermaLink="false">tag:ask.metafilter.com,2008:site.93680</guid>
	<pubDate>Tue, 10 Jun 2008 06:58:46 -0800</pubDate>

<category>apache2</category>

<category>php</category>

<category>phpsecinfo</category>

<category>security</category>

<category>apache</category>

<category>web</category>

<category>www</category>

<category>http</category>

<category>httpd</category>

<category>server</category>

<category>webserver</category>

	<dc:creator>odinsdream</dc:creator>
	</item>
	<item>
	<title>PHP intro and reference texts?</title>
	<link>http://ask.metafilter.com/93665/PHP-intro-and-reference-texts</link>	
	<description>I want to learn PHP. Fast. Recommend a book or online resources, please. I know C, C++, Java, SQL. I know my Design Patterns, most of the stuff in &lt;i&gt;Code Complete&lt;/i&gt; is second-nature to me. I emailed Stroustrup to point out a (very very minor) error in &lt;i&gt;The C++ Programming Language&lt;/i&gt;. (He actually emailed back.)&lt;br&gt;
&lt;br&gt;
All this to say that I want an thorough explication of PHP, &lt;i&gt;not&lt;/i&gt; an introduction to programming text. There should be chart of operator precedence and arity, a list of what&apos;s a first class object, a consideration of the primitive types and their ranges, a basic explication of the underlying object model.&lt;br&gt;
&lt;br&gt;
So I don&apos;t want a &quot;Programming 101 using PHP&quot;; that&apos;ll bore me with stuff I already know.  I need something complex enough to keep my interest, complete and &lt;i&gt;concise&lt;/i&gt;. But not completely theoretical, there should be examples and exercises. Something like K&amp;amp;R or Stroustrup&apos;s &lt;i&gt;The C++ Programming Language&lt;/i&gt;, that doubles as a text and a reference.  Or even Eckel&apos;s &lt;i&gt;Thinking in C++.&lt;br&gt;
&lt;br&gt;
Ideally, I should be able to do most things I want to do in PHP in a week.&lt;br&gt;
&lt;br&gt;
Ok, suggestions? Thanks!&lt;/i&gt;</description>
	<guid isPermaLink="false">tag:ask.metafilter.com,2008:site.93665</guid>
	<pubDate>Tue, 10 Jun 2008 00:03:20 -0800</pubDate>

<category>PHP</category>

<category>programming</category>

<category>reference</category>

	<dc:creator>orthogonality</dc:creator>
	</item>
	<item>
	<title>wordpress template is screwed up</title>
	<link>http://ask.metafilter.com/92901/wordpress-template-is-screwed-up</link>	
	<description>Wordpress/web design problem-my custom template is screwed up and I can&apos;t figure out how to fix it. Please help. I just started a wordpress site for my blog. I created a custom template for the page. However, while the code is right, the design is screwed up. The sidebar is at the bottom instead of being at the side. You can see it at &lt;a href=&quot;http://raillery.tv/blog&quot;&gt;raillery.tv/blog &lt;/a&gt;&lt;br&gt;
&lt;br&gt;
What am I doing wrong?&lt;br&gt;
&lt;br&gt;
You can see the code here &lt;a href=&quot;http://forums.somethingawful.com/showthread.php?threadid=2718078&amp;pagenumber=26#post344233403&quot;&gt;http://forums.somethingawful.com/showthread.php?threadid=2718078&amp;amp;pagenumber=26#post344233403&lt;/a&gt;</description>
	<guid isPermaLink="false">tag:ask.metafilter.com,2008:site.92901</guid>
	<pubDate>Sun, 01 Jun 2008 11:47:28 -0800</pubDate>

<category>wordpress</category>

<category>php</category>

<category>web</category>

<category>design</category>

<category>html</category>

<category>css</category>

	<dc:creator>clockworkjoe</dc:creator>
	</item>
	<item>
	<title>Help me pick a web dev language to learn.</title>
	<link>http://ask.metafilter.com/92718/Help-me-pick-a-web-dev-language-to-learn</link>	
	<description>I am trying to decide which web language + framework to focus on for learning this summer. I am stuck between PHP, Python (with Django maybe) or Ruby (on Rails). Basically, I am asking for people&apos;s input on all languages. They all have their ups and downs and I&apos;m pretty sure I&apos;ll have to learn all of them at some point but I have start somewhere. Here is my initial perspective on all. Correct me, add relevant info and make suggestions.&lt;br&gt;
&lt;br&gt;
&lt;strong&gt;PHP&lt;/strong&gt;&lt;br&gt;
+I actually have a passing knowledge of PHP. Not enough maybe to create something big but I have added small features, worked on cleaning other people&apos;s code&lt;br&gt;
+It&apos;s very common.&lt;br&gt;
-It somewhat seems unprofessional, probably because I feel like everyone and their mom has done something with it.&lt;br&gt;
&lt;br&gt;
&lt;strong&gt;Ruby&lt;/strong&gt;&lt;br&gt;
+It&apos;s the new cool.&lt;br&gt;
-It&apos;s the new cool.&lt;br&gt;
+It seems very elegant and easy to learn, especially for developing something for the web with Rails.&lt;br&gt;
+For some reason, the RoR community seems very friendly and I approve of their ideas a lot.&lt;br&gt;
&lt;br&gt;
&lt;strong&gt;Python&lt;/strong&gt;&lt;br&gt;
+It&apos;s a lot more serious than Ruby, I feel like. It might be more useful for other things too as a standalone language&lt;br&gt;
+Similar outlook on stuff with RoR community.&lt;br&gt;
-Maybe not as big community for learning as it is with PHP and RoR. Not sure about this but others definitely have a lot of stuff.&lt;br&gt;
&lt;br&gt;
Anyway, thanks a lot for reading along. &lt;br&gt;
&lt;br&gt;
Also, if you would care to make a suggestion, I&apos;d appreciate some books or websites to start things off with.</description>
	<guid isPermaLink="false">tag:ask.metafilter.com,2008:site.92718</guid>
	<pubDate>Thu, 29 May 2008 14:31:15 -0800</pubDate>

<category>ruby</category>

<category>ror</category>

<category>python</category>

<category>php</category>

<category>webdevelopment</category>

<category>language</category>

<category>rubyonrails</category>

<category>django</category>

	<dc:creator>the_dude</dc:creator>
	</item>
	<item>
	<title>gmail doesn&apos;t like multipart/alternative MIME type?</title>
	<link>http://ask.metafilter.com/92692/gmail-doesnt-like-multipartalternative-MIME-type</link>	
	<description>Does gmail not like the multipart/alternative MIME type? I&apos;m trying to use php&apos;s mail() function to send a multipart/alternative email out to some users. As far as I can tell, I&apos;ve got the headers and body text right, but when I test it on myself the mail appears blank in the gmail client. Thunderbird (set up to check the same gmail account) seems to like it ok, displaying the html section without issue. What gives?&lt;br&gt;
&lt;br&gt;
Here&apos;s an example message (actually generated, but with names/content replaced) for your perusal:&lt;br&gt;
From: someone@somewhere.net&lt;br&gt;
MIME-Version: 1.0&lt;br&gt;
Content-Type: multipart/alternative; boundary=&quot;bufu8040bufu8040&quot;&lt;br&gt;
&lt;br&gt;
&lt;br&gt;
--bufu8040bufu8040&lt;br&gt;
Content-Type: text/plain; charset=&quot;iso-8859-1&quot;&lt;br&gt;
&lt;br&gt;
text version of message&lt;br&gt;
&lt;br&gt;
--bufu8040bufu8040&lt;br&gt;
Content-Type: text/html; charset=&quot;iso-8859-1&quot;&lt;br&gt;
&lt;br&gt;
html version of message&lt;br&gt;
&lt;br&gt;
--bufu8040bufu8040</description>
	<guid isPermaLink="false">tag:ask.metafilter.com,2008:site.92692</guid>
	<pubDate>Thu, 29 May 2008 09:30:30 -0800</pubDate>

<category>gmail</category>

<category>mime</category>

<category>email</category>

<category>php</category>

<category>mail</category>

<category>multipart</category>

<category>alternative</category>

	<dc:creator>invitapriore</dc:creator>
	</item>
	<item>
	<title>Wordpress post time minus 13 hours?</title>
	<link>http://ask.metafilter.com/92274/Wordpress-post-time-minus-13-hours</link>	
	<description>I need Wordpress to display the_time as well as the_time - X. I maintain a blog that runs on Japan time.  It&apos;s easy to have the template contain a call to the_time and it displays just fine.  I want to change my template so that the time fields would show &quot;2:00 PM (1:00 PM EST)&quot;.&lt;br&gt;
&lt;br&gt;
I&apos;ve tried many variants like:&lt;br&gt;
&lt;br&gt;
the_time(&apos;g:i&apos;) + 1&lt;br&gt;
the_time(&apos;g&apos;+1)&lt;br&gt;
the_time(&apos;g&apos;)+1&lt;br&gt;
&lt;br&gt;
Nothing seems to display what I want.  I&apos;ve googled it, and there are tons of hits on how to use the PHP time() function, but this seems different to me.  This really has nothing to do with the current server time, I&apos;m just transforming the result of a database call.</description>
	<guid isPermaLink="false">tag:ask.metafilter.com,2008:site.92274</guid>
	<pubDate>Sat, 24 May 2008 01:27:38 -0800</pubDate>

<category>wordpress</category>

<category>php</category>

<category>time</category>

	<dc:creator>mysterious1der</dc:creator>
	</item>
	<item>
	<title>LAMP to WISA</title>
	<link>http://ask.metafilter.com/91763/LAMP-to-WISA</link>	
	<description>After working in a mostly LAMP (Linux, Apache, MySQL, PHP) environment the last few years, I need to make a quick switch to WISA (Windows, IIS, MS SQL, ASP). I have very little experience with WISA. Give me some tips to make a smooth transition. What is different and what is the same?</description>
	<guid isPermaLink="false">tag:ask.metafilter.com,2008:site.91763</guid>
	<pubDate>Sun, 18 May 2008 18:18:53 -0800</pubDate>

<category>lamp</category>

<category>wisa</category>

<category>php</category>

<category>asp</category>

<category>mysql</category>

<category>mssql</category>

<category>apache</category>

<category>iis</category>

	<dc:creator>gringoese</dc:creator>
	</item>
	<item>
	<title>Book &apos;em Danno</title>
	<link>http://ask.metafilter.com/91651/Book-em-Danno</link>	
	<description>Suggest an offline booking system, no wait... Suggest a one-click  WAMP solution, no wait...  Flash and flat files mebbe? Scroll right down to skip the rambling details and answer the &lt;a href=&quot;#esv&quot;&gt;short version&lt;/a&gt; of this question.&lt;br&gt;
&lt;br&gt;
&lt;br&gt;
&lt;strong&gt;Situation:&lt;/strong&gt;&lt;br&gt;
I have 25 computers each handed out for up to an hour twice per am and twice per pm.&lt;br&gt;
I have 500 users competing for these resources on a first come first served basis.&lt;br&gt;
I am required to know who was using what computer when for legal purposes.&lt;br&gt;
&lt;br&gt;
&lt;strong&gt;Present solution:&lt;/strong&gt;:&lt;br&gt;
At present the doors open and people come and queue for a &quot;ticket&quot;, we hand them the ticket for their computer and then choose their name from a dropdown in this excel file&lt;a href=&quot;http://xs.to/xs.php?h=xs227&amp;d=08206&amp;f=excel981.jpg&quot;&gt;(screendump)&lt;/a&gt;.&lt;br&gt;
This was fine when there was 50 of them, but the list is getting a little nuts now, and we sometimes get a ticket back in less than an hour and so pass it out again, so there is a lot of farting around in the file basically. The only actual problem with this system (apart from it being insane!) is that it takes too much time.&lt;br&gt;
&lt;br&gt;
&lt;strong&gt;Suggested solution?&lt;/strong&gt;&lt;br&gt;
We are looking at various long-term solutions, but in the meantime I need a better short-term one than the one we patched together above. I like the aspect of the physical tickets as people don&apos;t forget they have booked, and also it gives me a physical notification that they are done at their machine when they hand it back (I am not, nor want to be, deskbound). Giving each person a user-id and password is probably what the long-term solution will be, and installing some sort of internet-caf&amp;#0233;/library software, but that&apos;s outside my perogative. I also like the aspect of having the userlist as I learn each persons name, and I also would like to use that to tie to some other aspects of the users account, for example &quot;needs help&quot; or whatever.&lt;br&gt;
&lt;br&gt;
What I ideally want is to have a user-database with a few fields, and then drop it into a similar setup as we have, but where I can just start typing their name to get the list (as opposed to having to click in excel), and where I can see a clear visual representation of the entire fleet of puters and their status. I rekon I can do this myself easily as a web-based solution, but I absolutly cannot have this online, the userbase is confidential, and yet myself and my colleauge both need to be able to access it from our own computers at work. We have a common folder on the server where the excel file presently sits. Is that something I can do with xampp or easyphp or wamp5 or what? WITSuite looks like the smallest all-in-one solution, but is it safe to run like this and can it be run in the way I am describing?&lt;br&gt;
&lt;br&gt;
I am also open to the thought of doing it in Flash as a standalone, and am also happy for suggestions of actual software to deal with this in a simple way, I don&apos;t want the bells and whistles that I have seen on some cafe/library/resourse management progs.&lt;br&gt;
&lt;br&gt;
&lt;strong&gt;&lt;a&gt;EXTREMELY SHORT VERSION&lt;/a&gt;&lt;/strong&gt;&lt;br&gt;
What is the smallest, best, lightest, oneclickiest version of a local WAMP solution that I can keep offline and run from a shared folder on our server for a simple ajax based site. Xampp, easyphp, WITSuite?</description>
	<guid isPermaLink="false">tag:ask.metafilter.com,2008:site.91651</guid>
	<pubDate>Sat, 17 May 2008 05:18:01 -0800</pubDate>

<category>booking</category>

<category>reservation</category>

<category>asset</category>

<category>internetcafe</category>

<category>offline</category>

<category>fast</category>

<category>xamp</category>

<category>php</category>

<category>apache</category>

<category>mysql</category>

	<dc:creator>Iteki</dc:creator>
	</item>
	
	</channel>
</rss>

