Re: [PHP] Mac 10.7 Install/Copy fresh PHP over Pre-Installed PHP
save yourself the trouble and setup a virtualized Linux box using Vagrant http://vagrantup.com. I think this is the way to go on Mac. On Jul 31, 2012, at 6:34 PM, tamouse mailing lists wrote: Ugh. This is why I no longer want an apple computer. On Jul 31, 2012 8:26 AM, JeffPGMT jeffp...@gmail.com wrote: AGAIN - THANKS TO ALL... IT installed XCode, here's another? command line tools sans XCode available from Kenneth's github, https://github.com/kennethreitz/osx-gcc-installer However another irony, now that XCode is installed, in the new XCode 4.4 command line tools are not installed by default, so I found my way to Preferences, Downloads, Command Line tools Install checkbox... it's downloading (similar to watching paint dry) JeffP... Simon J Welsh si...@simon.geek.nz wrote in message news:2a4921bf-db43-464b-8bbe-5ea1e3665...@simon.geek.nz... On 31/07/2012, at 10:54 PM, Jason Pruim li...@pruimphotography.com wrote: On Jul 30, 2012, at 12:01 PM, JeffPGMT jeffp...@gmail.com wrote: Thanks All, now I have to tell the business owner to let the IT guy update to 10.8 if he likes, which will buy me time to sort out all of what you folks contributed. I wasn't aware that Mamp free installed anything more than basic and Yes, setup so that Apache, MySql and PHP work well together was what I had wanted to learn using the stock install and was able to do w/exception of imap being available. Perhaps I will install XCode as it's the law of worst case probably will occur if I don't, that is I'll need it in a pinch later on. JeffPGMT... Hey Jeff, Unless its changed in mt lion, you will need to install Xcode to use make or any other program assembler... O You can download just the command line tools from https://developer.apple.com/downloads, which is ~100 MB instead of a couple of gigs. Has been like this for some time now. You just have to be careful with some older code not compiling properly with LLVM. --- Simon Welsh Admin of http://simon.geek.nz/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] How to alter the schema of a database to introduce new features or change the current features
I'm developing an app using Zend Framwork using Git for version control. What is the best approach for updating the schema and the database when one of us makes an update to the db structure? currently, we have to blow out the tables and recreate them manually to reflect the new updates. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] determine date range
I'm working on hotel type booking script where prices will vary depending on the season. prices are updated every year so i need to take a user inputed date and determine which season the date falls under. i figured i can convert all dates into a timestamp and then run a series conditional statements to see which returns true. something like this: // date ranges $dates[1]['start'] = mktime(0, 0, 0, '01', '04', date('Y')); $dates[1]['end'] = mktime(0, 0, 0, '04', '14', date('Y')); $dates[2]['start'] = mktime(0, 0, 0, '04', '15', date('Y')); $dates[2]['end'] = mktime(0, 0, 0, '08', '18', date('Y')); $dates[3]['start'] = mktime(0, 0, 0, '08', '19', date('Y')); $dates[3]['end'] = mktime(0, 0, 0, '12', '23', date('Y')); $dates[4]['start'] = mktime(0, 0, 0, '12', '14', date('Y')); $dates[4]['end'] = mktime(0, 0, 0, '01', '03', date('Y') + 1); // tstamp is user inputed date if($tstamp = $dates[1]['start'] $tstamp = $dates[1]['end']){ return 1; } if($tstamp = $dates[2]['start'] $tstamp = $dates[2]['end']){ return 2; } if($tstamp = $dates[3]['start'] $tstamp = $dates[3]['end']){ return 3; } if($tstamp = $dates[4]['start'] $tstamp = $dates[4]['end']){ return 4; } now, not sure why this isn't working...but it's not returning true for any of these. also i'm realizing i need to account for people who decide to book a date a year ahead, in which case this approach will break since all timestamp date ranges (except for $date[4]['end']) are set to the current year. any suggestions on how i should approach this problem? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] determine date range
yes, i was trying to keep things simple and avoid using a database but i think may go that route like you suggested. Andrew Ballard wrote: Will the boundary dates for each season change from one year to the next? If so, I would probably store the seasons in a database table and then just query from that table where the user-entered date is between the season start and end dates. The table of seasons could have dates configured as far out into the future as desired. If the boundary dates are the same every year, you can ignore the year and just compare the month/day of the user-entered date with the month/day of the season boundaries. Andrew -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Re: How to handle rows of checkboxes upon form submit?
foreach($_POST['selected_fld'] as $key = $val){ echo 'KEY:' $key . ' - VALUE:' . $val . 'br /'; } Rob Gould wrote: Let's say I have a PHP script which lists a series of objects for sale at a yard sale, each with a checkbox to the left of the name of the item. If I wanted to have a submit button, and run through the list of items that were checked and act on them, how would I do that? To gain some knowledge, I went into phpMyAdmin and looked at their checkboxes, and I see their code: input type=checkbox id=checkbox_row_6 value=apples name=selected_fld[] input type=checkbox id=checkbox_row_7 value=oranges name=selected_fld[] input type=checkbox id=checkbox_row_8 value=bananas name=selected_fld[] So it looks like they do something with name=select_fld[], which must be part of the secret to making this work. Any advice is greatly appreciated. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] php on irc
i was just wondering if there is an irc channel for php? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] html to xml?
i need to parse an html page for tabular data which i can then import into mysql so i thought converting the html to xml might be a feasible thing to do, however, other than using tidy from the command line i can't find a way to do this from php. does anyone know of any class (or other) that would allow me to do this? or maybe i just need a different approach. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] pdo_mysql segfault error
i'm trying to enable pdo_mysql extension, however i keep getting the following segfault error when i restart apache: httpd[20567]: segfault at 0020abef8f07 rip 0020abef8f07 rsp 006e6ad0 error 14 my setup is the following: Apache 1.3.37 php 5.2.2 mysql 5.0.41 not sure wether this problem is cause by my newer mysql version or 64bit server. has any gotten PDO_MYSQL on 64bit server? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php