Re: [PHP] Require error

2008-12-19 Thread Philip Graham
ine 13? > PHP Fatal error: require(): Failed opening required '1' > (include_path='/var/php/inc/') in /webs/www.zootboy.com/sl/testing.php on > line 13 > > I have no idea what's going on. All the files have 777 perms. What happens if you remove the die() statement? r

Re: [PHP] de-bug no input file specified

2008-12-19 Thread Philip Graham
he error? > > PHP5 with MySQL adn IIS7 > > Thanks > > - Gary -- Philip Graham Lightbox Technologies Suite 312 240 Catherine St. Ottawa, ON, K2P 2G8 613-686-1661 ext. 102 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] de-bug no input file specified

2008-12-19 Thread Philip Graham
die(mysql_error()); $row_rsSearch = mysql_fetch_assoc($rsSearch); > > $totalRows_rsSearch = mysql_num_rows($rsSearch); > > ?> > > > > - Gary It doesn't look like your code is the problem, how is the file being executed. Through the command line or IIS? In either case it sounds like either you have don't have permissions on the file, you're pointing at the wrong file or you've got a bad config setting somewhere. You can always try searching 'php no input file specified' and see if others before you have had the same problem for a quick fix. Other than that I'm sorry I can't be of more help but unfortunately I'm not at all familiar with PHP on windows/IIS. -- Philip Graham -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Re: Almost Recursion

2009-01-16 Thread Philip Graham
n actually has an id in the TownInformation class before trying to add it to the pool. -- Philip Graham Lightbox Technologies www.lightbox.ca -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] MySQL class. Thoughts?

2009-01-21 Thread Philip Graham
above: $db = DB::getInstance(); $value = 'value'; $db->prepare('SELECT * FROM wherever WHERE field=:val, 'getData'); $db->execute('getData', array(':val' => $value)); foreach($db->getResults('getData') AS $row) { // Do stuff } Resulting in a reduction of 5 lines of code. I may not sound that impressive for a small example but over the number of times you generally access a database it will really add up. -- Philip Graham Lightbox Technologies www.lightbox.org -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] RecursiveDirectoryIterator and foreach

2009-02-23 Thread Philip Graham
Here's a RecursiveDirectoryIterator class I've written and find quite useful: mailto:phi...@lightbox.org";>Philip Graham */ class Util_RecursiveFileIterator implements Iterator { CONST SHOW_DOT_FILES = true; private $_basePath; private $_curDirIter;

Re: [PHP] RecursiveDirectoryIterator and foreach

2009-02-23 Thread Philip Graham
7;ve finished iterating over the sub-directory the current iterator is pushed onto a stack. Then once the iteration of the sub-directory is finished the iterator for the parent directory is popped off the stack and the iteration over that directory continues from where it was interrupted. Doe

Re: [PHP] Having Trouble With Session Variable in Query Statement

2009-02-23 Thread Philip Graham
mt WHERE id={$_SESSION['thisid']}"; or even better: $updateSQL ="UPDATE `mytable` SET thetotal=".mysql_real_escape_string($amt). " WHERE id=".mysql_real_escape_string($_SESSION['thisid']); substituting mysql_real_escape_string with the escape func