Re: [PHP] moving over to php 5

2007-10-30 Thread Larry Garfield
On Tuesday 30 October 2007, Per Jessen wrote: > Larry Garfield wrote: > > Here's a bigger question: When will people stop using mysql_ as their > > example API, when PDO is more standard in PHP 5 and more secure, and > > mysqli is available as well? > > As always, t

Re: [PHP] Stopping objects from auto-serializing

2007-10-30 Thread Larry Garfield
how to turn serialization off without dabbling with the > configuration file? > > Chrs, > Dav -- Larry Garfield AIM: LOLG42 [EMAIL PROTECTED] ICQ: 6817012 "If nature has made any one thing less susceptible than all others of exclusive property, it

Re: [PHP] PHP ide? Back On Topic

2007-11-08 Thread Larry Garfield
u don't want to be working in HTML. > I want to remote debug like Zend Studio. That is easily my #1 favorite feature. :-) The only worthwhile context-sensitive code-assistance I've yet to find would be a close second. But I highly doubt you'll find a first-class PHP code IDE

Re: [PHP] PHP advice: Tips webpage valid?

2007-11-13 Thread Larry Garfield
t all nicely yet, since I have to manually do it > inside of the WP editor. I thought about pulling it into a separate > page, or even making an interactive page where people can submit their > findings and code and vote based on their own knowledge or experience. -- Larry Garfield

Re: [PHP] IDE

2007-11-16 Thread Larry Garfield
the choice I made 4 years ago is still the right one. A > > well-maintained list of free and commercial PHP IDE's on the php.net site > > would be a great idea, especially if it also had links to reviews, and > > also included the mix-n-match IDE's I see s

Re: [PHP] Basic question - PHP usage of SVG files [SOLVED]

2007-11-21 Thread Larry Garfield
ith SimpleXML or the DOM API functions just as you would any other XML file. It's been a while since I worked with SVG, but I believe you can resize an image just by changing an attribute or two. There's no need for SVG support per se, as SimpleXML provides all you need anyway. That&#

Re: [PHP] Basic question - PHP usage of SVG files

2007-11-21 Thread Larry Garfield
On Wednesday 21 November 2007, Dave M G wrote: > Larry, > > Thank you for responding. > > > I think you missed the point. SVG is just text. ... There's no need > > for SVG support per se, as SimpleXML provides all you need anyway. > > I did miss the poi

Re: [PHP] Structured Code vs. Performance

2007-11-29 Thread Larry Garfield
understand, but will not balloon the memory usage the way the former code will. In practice, though, a modular, pluggable system (most of what I use) is going to end up having conditional includes no matter what you do so I generally don't pay much attention to that type of optim

Re: [PHP] checkbox unchecked

2007-12-02 Thread Larry Garfield
$allowed[]='form'; > $allowed[]='R_a'; > $allowed[]='R_b'; > > $sent = $array_keys($_POST); > if($allowed == $sent) { > ... do some checking ... > } else { > echo "Expected input fields do not match!"; > } >

Re: [PHP] Mysqli support - test or complain?

2007-12-10 Thread Larry Garfield
want and only pick hosts that will support you. Even better, if you are able to do so, write your own thin abstraction layer that uses PDO or mysqli internally. Then you can switch from one to the other more easily if you find you need to, and you can also add whatever syntactic conven

Re: [PHP] Mysqli support - test or complain? [SOLVED]

2007-12-11 Thread Larry Garfield
like it's going to change, and you have to edit that file anyway to install the app. It's part of the database configuration. Most of the open source systems I've seen do that in some form or another. And if you don't know what driver you have on your system, it's n

Re: [PHP] Question about sqli class

2007-12-30 Thread Larry Garfield
thin wrapper API and then use mysqli or PDO under the hood. Then if necessary you can switch from one to another with only minimal impact on your application code. Whether the API is OO or function-oriented doesn't make a huge difference. Prepared statements do. --Larry Garfield On Su

Re: [PHP] utf-8 in $_POST

2008-01-07 Thread Larry Garfield
ecific encoding. otherwise > i seem forced to do something like this in the beginning of my php > script: > > if(ereg("utf-8", $_SERVER["CONTENT_TYPE"])) { > foreach($_POST as $key => $value) > $_POST["key"] = convert_utf8_to_iso8859($value); >

Re: [PHP] Why is some_function()[some_index] invalid syntax?

2008-01-11 Thread Larry Garfield
t: String, Numeric, Array, etc > > and call it Java ;) More like C#. :-) Java still has primitives. -- Larry Garfield AIM: LOLG42 [EMAIL PROTECTED] ICQ: 6817012 "If nature has made any one thing less susceptible than all others of exclusive property, it i

Re: [PHP] DESC order results

2008-01-13 Thread Larry Garfield
ray($result, MYSQL_ASSOC); > > > // Just for testing > print mysql_num_rows($result); > > > > Thanks, > Dan > > > > > -- > This message has been scanned for viruses and > dangerous content by MailScanner, and is > believed to be clean. -- Lar

Re: [PHP] Closures in PHP

2008-01-14 Thread Larry Garfield
. > If you want something that esoteric, go use Lisp. :-) You are aware that of the "modern" web languages (PHP, Javascript, Python, Ruby, etc.) PHP is the only one that doesn't have at least partial closures and dynamic functions, right? -- Larry Garfield AIM

Re: [PHP] Closures in PHP

2008-01-15 Thread Larry Garfield
user_func_array(), however, lets you pass in an arbitrary number of parameters while the other two do not. -- Larry Garfield AIM: LOLG42 [EMAIL PROTECTED] ICQ: 6817012 "If nature has made any one thing less susceptible than all others of exclusive property,

Re: [PHP] PHPPDO 1.0RC1 released

2008-02-02 Thread Larry Garfield
but default" extension that only a suicidal web host would disable.) -- Larry Garfield AIM: LOLG42 [EMAIL PROTECTED] ICQ: 6817012 "If nature has made any one thing less susceptible than all others of exclusive property, it is the action of the thinking pow

Re: [PHP] how to make multiple website on one host

2008-02-02 Thread Larry Garfield
n point a domain name (www.example1.org) to the server where > www.example.org hosted, > and when user visit www.example1.org, it execute the same scripts as > www.example.org with > with different themes and website configuration. > > anyone have the idea? > > thanks --

Re: [PHP] Recommended ORM for PHP

2008-02-06 Thread Larry Garfield
If you're using an object-centric view of the world that may just happen to tie to an SQL database for its data store, then it's an ORM. Both are useful in different circumstances, but whether or not there is code generation has nothing to do with whether it's AR or ORM. -- La

Re: [PHP] Better DB Class MySQL

2008-02-09 Thread Larry Garfield
um_rows($this->link); > } > > // MySQL Affected Rows > public function select_id() { > return mysql_insert_id($this->link); > } > > // Disconnect from MySQL Server > public function disconnect() { > mysql_close

Re: [PHP] Better DB Class MySQL

2008-02-17 Thread Larry Garfield
On Thursday 14 February 2008, Richard Lynch wrote: > On Sun, February 10, 2008 9:31 am, Jochem Maas wrote: > > Larry Garfield schreef: > >> http://www.php.net/pdo > >> > >> All the cool kids are doing it. > > > > not true - some of them use firebird

Re: [PHP] More than one values returned?

2008-02-18 Thread Larry Garfield
ion foo() { return array(1, 2); } list($a, $b) = foo(); -- Larry Garfield AIM: LOLG42 [EMAIL PROTECTED] ICQ: 6817012 "If nature has made any one thing less susceptible than all others of exclusive property, it is the action of the thinking power called an

Re: [PHP] More than one values returned?

2008-02-18 Thread Larry Garfield
sers() would return a Group object... > > Not rocket science ;) I wouldn't consider an array of user objects to be "multiple things". I consider it a single aggregate thing, and return arrays all the time. That's conceptually different from wanting two separate return v

Re: [PHP] www. not working

2008-02-19 Thread Larry Garfield
> > Those, Christoph, are some of the things incompetent sysops do > and on a surprisingly frequent basis. I see, so because I have garfieldtech.com and www.garfieldtech.com pointing to two entirely different servers in different states because I want them to do different th

[PHP] XML encoding variable simpleXML on Linux

2008-02-22 Thread Larry Brown
Larry -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] XML encoding variable simpleXML on Linux

2008-02-22 Thread Larry Brown
It is not that I want to generate the document in UTF-8. I just need to specify the correct encoding. My assumption that it was UTF-8 based on what my command line settings are is obviously incorrect. How can I tell what php is encoding in by default? Larry On Fri, 2008-02-22 at 17:20 +0100

Re: [PHP] Cross-Post: Installing on Palm Treo?

2008-02-23 Thread Larry Garfield
d the same, and if > there was any success or stumbling blocks. > > Thanks. > > -- > > > Daniel P. Brown > Senior Unix Geek > -- Larry Garfield AIM: LOLG42 [EMAIL PROTECTED] ICQ: 6817012 "If nature has made any one thing less

Re: [PHP] All Survey leading to PHP

2008-02-23 Thread Larry Garfield
database behind it choose to use closed source? > > If you've got a competitive edge, you don't want to hand it to your > competition free of charge. It's as easy as that. > > > /Per Jessen, Zürich My competitive edge is my own skill and knowledge a

Re: [PHP] Re: When to use design patterns?

2008-02-24 Thread Larry Garfield
ize a give problem as being similar to another, so the solution is probably similar. It also can alert you to common pitfalls and common ways around them. -- Larry Garfield AIM: LOLG42 [EMAIL PROTECTED] ICQ: 6817012 "If nature has made any one thing less sus

[PHP] Mysql vs. Mysqli crash handling

2008-02-25 Thread Larry Garfield
bring the whole server to its knees.) --Larry Garfield -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Mysql vs. Mysqli crash handling

2008-02-25 Thread Larry Garfield
On Monday 25 February 2008, Daniel Brown wrote: > On Mon, Feb 25, 2008 at 3:07 PM, Larry Garfield <[EMAIL PROTECTED]> wrote: > > Hi folks. I've an odd issue. > > Only fair. You're an odd bird, and we're an odd bunch. ;-P > > > If I connect to

Re: [PHP] handling dates before 1901

2008-02-28 Thread Larry Garfield
2-13-1901: -2147529600 > 12-14-1901: -2147443200 > > output of code on new box: > > 12-13-1901: > 12-14-1901: -2147443200 > 1-18-2038: 2147414400 > 1-19-2038: > 12-13-1901: > 12-14-1901: -2147443200 > > thanks much ... > >

[PHP] reading incoming xml

2008-03-01 Thread Larry Brown
again the data isn't there. Does apache/php place the xml in some other location for me to access? Larry -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] reading incoming xml

2008-03-01 Thread Larry Brown
#x27;' in the $data output. I do get the hello so I know I am hitting the server and when it is set to $_SERVER as listed above I get the expected array but $_POST is empty. Larry On Sat, 2008-03-01 at 16:59 -0500, Nathan Nobbe wrote: > On Sat, Mar 1, 2008 at 4:12 PM, Larry Brown <

Re: [PHP] reading incoming xml

2008-03-01 Thread Larry Brown
ed looking at the nusoap code to determine this to no avail. Larry On Sat, 2008-03-01 at 18:08 -0500, Nathan Nobbe wrote: > hmm, it looks to me like you want to post a bunch of raw data to the > server. im not sure exactly how to do that w/ the php curl functions... > every

Re: [PHP] reading incoming xml

2008-03-01 Thread Larry Brown
The incoming message to the server is: POST /vendorXML.html HTTP/1.0 MIME-Version: 1.0 Content-type: text/html Content-length: 114 Content-transfer-encoding: text Request-number: 1 Document-type: Request Interface-Version: Test 1.4 Connection: close vendorCompanyID Larry On Sat, 2008-03-01 at

RE: [PHP] reading incoming xml

2008-03-01 Thread Larry Brown
the raw data coming in and it looks like this was it. I really do appreciate the help... Larry On Sat, 2008-03-01 at 22:06 -0500, Andrés Robinet wrote: > You can get what you post either with: > > $postText = trim(file_get_contents('php://input'); > > Or with: >

[PHP] validating mysql bound date

2008-03-04 Thread Larry Brown
Does anyone know if there is a builtin function for checking the formatting of an incoming date to verify it is /MM/DD. I know how to convert between formats but want a quick way to check an incoming variable to ensure it will be handled properly by mysqld. Larry -- PHP General Mailing

Re: [PHP] validating mysql bound date

2008-03-04 Thread Larry Brown
Its been a long week already... -MM-DD. On Tue, 2008-03-04 at 20:16 -0500, Larry Brown wrote: > Does anyone know if there is a builtin function for checking the > formatting of an incoming date to verify it is /MM/DD. I know how > to convert between formats but want a quick way

Re: [PHP] validating mysql bound date

2008-03-04 Thread Larry Brown
eople have to verify correct format of the date when working with mysql that there might be some built in that is faster etc. Thanks though... On Wed, 2008-03-05 at 14:34 +1100, Chris wrote: > Larry Brown wrote: > > Its been a long week already... -MM-DD. > > > > On

Re: [PHP] validating mysql bound date

2008-03-07 Thread Larry Brown
$month, $day, $year); > list($y, $m, $d) = date('Y-m-d', $unix); > if ($year != $y || $month != $m || $day != $d){ > //handle invalid date input here > } > > If you do all of that (which is really 5 lines of code) you should be > pretty sure it's a correct/valid

Re: [PHP] SOAP PHP 5.2.5 and Outside WSDL's

2008-03-08 Thread Larry Garfield
> Is this truly considered a bug ? If so has it been resolved in the current > releases of PHP ? > > If not does anyone have a simple solution ? I can figure out a way to code > the XML myself and send it but honestly was hoping for a simplier solution > that didn't envolv

Re: [PHP] PHP5 strtotime

2008-03-10 Thread Larry Garfield
ed, that is, right before the Epoc. That happens when you feed strtotime a string it can't parse, for instance. Looking at the string you list, the year is listed twice. I very much doubt strtotime can grok that. You'll need to do at least some manual parsing of the date string.

Re: [PHP] CSV speed

2008-03-10 Thread Larry Garfield
o an SQL db and then just grab what I need > > from there? I'm starting to think it would make a lot of sense. What do > > you guys think? > > > > Thanks, > > Dan -- Larry Garfield AIM: LOLG42 [EMAIL PROTECTED] ICQ: 6817012 "If

[PHP] Web host with SOAP

2008-03-13 Thread Larry Garfield
g to pay for quality service (so I don't need a cheapo $5/month site). --Larry Garfield -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] General use of rewrite / redirect

2008-03-18 Thread Larry Garfield
trace and debug that workflow is overshadow any advantage it could otherwise offer. (IMO, YMMV, etc.) -- Larry Garfield AIM: LOLG42 [EMAIL PROTECTED] ICQ: 6817012 "If nature has made any one thing less susceptible than all others of exclusive property, it

Re: [PHP] General use of rewrite / redirect

2008-03-18 Thread Larry Garfield
gator that merges all queued CSS files into one and caches it, then sends just the one file. Just switching that aggregator on, I can easily cut page load time in half. -- Larry Garfield AIM: LOLG42 [EMAIL PROTECTED] ICQ: 6817012 "If nature has made any one thin

Re: [PHP] Re: selling gpl software?

2008-03-19 Thread Larry Garfield
legal. Whether or not it is polite or acting with the "spirit" of the community, etc. is a question of community ethics, not law, and something you'll have to decide for yourself. -- Larry Garfield AIM: LOLG42 [EMAIL PROTECTED] ICQ: 6817012 "

Re: [PHP] Re: selling gpl software?

2008-03-19 Thread Larry Garfield
On Wednesday 19 March 2008, jeffry s wrote: > what is the difference between gpl, gplv2 and gplv3 ? http://www.fsf.org/licensing/licenses/quick-guide-gplv3.html -- Larry Garfield AIM: LOLG42 [EMAIL PROTECTED] ICQ: 6817012 "If nature has made any one th

Re: [PHP] Re: selling gpl software?

2008-03-20 Thread Larry Garfield
On Thursday 20 March 2008, Colin Guthrie wrote: > Larry Garfield wrote: > > On Wednesday 19 March 2008, Colin Guthrie wrote: > >> Also as it's GPL and as you are "supplying" the modifications you make > >> to your client, you are obliged to release the

Re: [PHP] Re: selling gpl software?

2008-03-23 Thread Larry Garfield
On Saturday 22 March 2008, Nilesh Govindrajan wrote: > Larry, read the GPL license. It has can be used, distributed, modified > under GPL only. And where have I said otherwise? -- Larry Garfield AIM: LOLG42 [EMAIL PROTECTED] ICQ: 6817012 "If natu

Re: [PHP] Dates Again

2008-03-31 Thread Larry Garfield
ill handle all the timezone, daylight savings, leap year, and similar weirdness for you. It also supports 64-bit dates internally so you can cover the entire span of human history and then some. -- Larry Garfield AIM: LOLG42 [EMAIL PROTECTED] ICQ: 6817012 &q

Re: [PHP] autoload with namespace

2008-04-02 Thread Larry Garfield
uld hope to be able to say "me!" once I am able to upgrade my work to 5.3, but the debate over the separator character is one of those guaranteed to start a flame war so I've just resigned myself to probably not being able to use namespaces in most places. -- Larry Ga

Re: [PHP] Re: autoload with namespace

2008-04-03 Thread Larry Garfield
On Thursday 03 April 2008, Colin Guthrie wrote: > Larry Garfield wrote: > > I believe the decision from -internals was "seriously, who uses static > > methods and functions in the same code base that would use namespaces?" > > Of course, I would hope to be able

Re: [PHP] everything as classes

2008-04-05 Thread Larry Garfield
chever makes sense for your use case. In a language like PHP that has strong support for both, both the "everything is an object" and "never use objects" viewpoints are, well, ignorant. :-) -- Larry Garfield AIM: LOLG42 [EMAIL PROTECTED] ICQ: 6817

Re: [PHP] Common PHP functions benchmarks

2008-04-10 Thread Larry Garfield
I have run tests on > Arrays and PHP5's SPL ArrayObject, as well as loops and some networking > functions. > > > Here is a link to the code used for the benchmarks. > http://www.synthable.com/benchmarks/ > > Thanks, > Jason <http://www.synthable.com/> -- L

Re: [PHP] What is the practical use of "abstract" and "interface"?

2008-04-15 Thread Larry Garfield
ces where having a formal interface just makes things a lot easier; like, say, when you're reading someone else's code and trying to make sense of what it's supposed to do and what assumptions are being made. Having that built right into the syntax can be quite useful, even in a

Re: [PHP] What is the practical use of "abstract" and "interface"?

2008-04-16 Thread Larry Garfield
On Wednesday 16 April 2008, Daevid Vincent wrote: > > -Original Message- > > From: Larry Garfield [mailto:[EMAIL PROTECTED] > > > > If your code doesn't have an API and clear separation of > > parts, then neither > > abstract classes nor interf

Re: [PHP] Database abstraction?

2008-04-16 Thread Larry Garfield
otally sure how to ask it right yet :) PDO syntax: $result = $db->query("SELECT * FROM mytable ORDER BY ". $order_field); $result->setFetchMode(PDO::FETCH_ASSOC); foreach ($result as $record) { print "OMG, I have an associative array!"; } http://us3.php.net/manual/e

Re: [PHP] PHP console script vs C/C++/C#

2008-04-19 Thread Larry Garfield
counts the operations. (An over-simplification, but that's the general idea.) In practice, each operation does not have equal cost, and the cost of different primitive operations varies widely between languages and even versions of languages. -- Larry Garfield AIM: LOLG42 [EM

Re: [PHP] Cron php & refresh

2008-04-20 Thread Larry Garfield
haven't found anything - > possibly I am searching on the wrong terms. > > Your help will be much appreciated. Why not just have the cron task itself run every 5 minutes? Every 5 minutes, hit a PHP script that will pull the next 50 messages to send and send them, then exit. In 5

Re: [PHP] Should This Newbie Learn From Dreamweaver?

2008-04-22 Thread Larry Garfield
: > $theNotDefinedValue; > break; > } > return $theValue; > } > } > > $colname_get_Recordset1 = "-1"; > if (isset($_SESSION['mem_id'])) { > $colname_get_Recordset1 = $_SESSION['mem_id']; > } > mysql_select_db($database_webl

Re: [PHP] Fun with SOAP.

2008-04-30 Thread Larry Brown
silver bullet, but I would highly recommend looking at nusoap if only as a test. Larry On Wed, 2008-04-30 at 08:21 -0400, Eric Butera wrote: > On Wed, Apr 30, 2008 at 7:35 AM, Eric Butera <[EMAIL PROTECTED]> wrote: > > On Tue, Apr 29, 2008 at 5:07 PM, Nathan Nobbe <[EMAIL PRO

Re: [PHP] Best practices for using MySQL index

2008-04-30 Thread Larry Garfield
Having too many indexes rarely if ever costs on read (as far as I am aware), but it does cost on write to update the index. How much that matters is use-case specific. -- Larry Garfield AIM: LOLG42 [EMAIL PROTECTED] ICQ: 6817012 "If nature has made any one thing les

Re: [PHP] Plugins... (like wordpress?)

2008-05-16 Thread Larry Garfield
t... > > Thanks in advance! > R > > -- > - The faulty interface lies between the chair and the keyboard. > - Creativity is great, but plagiarism is faster! > - Smile, everyone loves a moron. :-) -- Larry Garfield AIM: LOLG42 [EMAIL PROTECTED]

Re: [PHP] Persistent state applications

2008-05-17 Thread Larry Garfield
the application. > > This is especially an issue for me when it comes to maintaining things > like persistent connections to SQL servers. > > Thanks! > > James -- Larry Garfield AIM: LOLG42 [EMAIL PROTECTED] ICQ: 6817012 "If nature has made any o

[PHP] Job: Wanted, Dead or Alive: PHP/Drupal programmers in Chicago

2008-05-18 Thread Larry Garfield
ooking for full time on-site programmers, but are open to summer interns as well. If you have questions, contact me off-list. To apply, see the link above. -- Larry Garfield AIM: LOLG42 [EMAIL PROTECTED] ICQ: 6817012 "If nature has made any one thing less su

Re: [PHP] which costs more ?

2008-05-24 Thread Larry Garfield
hing locally (disk, local MySQL DB, etc.) can help a great deal, depending on your data. So the answer is "you've not given enough information to make an intelligent recommendation". :-) -- Larry Garfield AIM: LOLG42 [EMAIL PROTECTED] ICQ: 6817012

Re: [PHP] which costs more ?

2008-05-24 Thread Larry Garfield
On Saturday 24 May 2008, Feris wrote: > Hi Larry, > > On Sat, May 24, 2008 at 10:52 AM, Larry Garfield <[EMAIL PROTECTED]> > > wrote: > > For what definition of "third party"? The cost of connecting to a MySQL > > database on the same network segment as th

Re: [PHP] Re: array recursion from database rows

2008-05-25 Thread Larry Garfield
rent_id, name FROM menu_items ORDER BY name"); foreach ($result as $record) { $items[$record->parent_id][$record->menu_id] = $record; } $output = _print_menu($items, 0); return $output; } function _print_menu($items, $parent_id) { $output = ''; if (!empty($items[$pa

Re: [PHP] How to structure code for forms

2008-06-08 Thread Larry Garfield
ou can read > > the manuals of any good PHP framework also like Joomla, CakePHP > > These frameworks are also follow MVC design pattern. > > > > --- > > Nirmalya Lahiri > > [+91-9433113536] > > > > > > > > > > -- > > PHP Genera

Re: [PHP] Class & Type Casting

2008-06-10 Thread Larry Garfield
n't know if there's a technical reason for that or if just no one implemented it, but the short answer is "The language doesn't do that." (What may be confusing you is __toString(), which only works for *reading* if you *already have an object* and then use it in a strin

Re: [PHP] class? package?

2008-06-10 Thread Larry Garfield
e namespaces as implemented in PHP 5.3, but that's not out yet. Many systems emulate packages with verbose class naming (eg, Database_Connection, Database_Query, Database_Transaction, Database_Query_Select, etc.), but I personally find that ugly. :-) -- Larry Garfield AI

Re: [PHP] What does "<<<" mean?

2007-04-30 Thread Larry Garfield
majority of web apps frameworks out there in any language. The web just doesn't lend itself to MVC. Sun just likes to get their terminology wrong and confuse everyone for the next decade. http://www.garfieldtech.com/blog/mvc-vs-pac -- Larry Garfield AIM: LOLG42 [EMAIL

Re: [PHP] Best way to format double as money?

2007-05-05 Thread Larry Garfield
D Street Ext > Petaluma, CA 94952 > (707) 773-4523 -- Larry Garfield AIM: LOLG42 [EMAIL PROTECTED] ICQ: 6817012 "If nature has made any one thing less susceptible than all others of exclusive property, it is the action of the thinking power called an idea

Re: [PHP] sorting via PHP or MySQL?

2007-05-10 Thread Larry Garfield
} > } > > > (2) two query method: > SELECT * from collection WHERE set_type_id=22; > ...do query... > while( $row = $this->db->fetch_array_row() ){ > $array_a[] = $row; > } > > SELECT * from collection WHERE set_type_id=21; > ...do

Re: [PHP] Need a new shared host with php

2007-05-10 Thread Larry Garfield
mping ship because of their old PHP version (latest PHP 4, but still PHP 4). If they're going to be upgrading to a real PHP platform, that would kick ass. Now, if I could get APC without a dedicated box... :-) -- Larry Garfield AIM: LOLG42 [EMAIL PROTECTED] ICQ:

Re: [PHP] scrolling HTML tables

2007-05-13 Thread Larry Garfield
ything useful with these goofy tags... > > But the Designers seem to luv them... > > If you really want scrolling, you'd better put them in a DIV or > IFRAME, I think. > > -- > Some people have a "gift" link here. > Know what I want? > I want you to bu

Re: [PHP] Making code public -- What steps to take? GPL?

2007-05-13 Thread Larry Garfield
ead-up on the MIT license after I get some zzZZzz's! > > > > Don't forget the MIT license allows people to incorporate your code into > > commercial products and sell for profit without having to give anything > > back (money/improved code/etc). > > > >

Re: [PHP] Random SELECT SQL list

2007-05-16 Thread Larry Garfield
. etc > > any experience on how to do this ? This is really an SQL question, but it's quite easy. Assuming MySQL: $result = mysql_query("SELECT * FROM foo WHERE bar='baz' ORDER BY RAND()"); // Do stuff here. -- Larry Garfield AIM: LOLG42 [EMAIL PROT

Re: [PHP] Re: Tipos about which CMS use

2007-05-17 Thread Larry Garfield
private (and in this case which users can access) > > - use AJAX (not mandatory) but since some access to the page will come > > from dial-up to reduce the need to transfer entire html just to update > > a search or list contents.. > > > > thanks -- Larry Garfield

Re: [PHP] Re: Adserver programming with php

2007-05-19 Thread Larry Garfield
> > Do you guys think that a php build webserver would be able to scale and > > perform well enough for serving millions of adimpressions daily? > > > > Thank you for any advice, > > > > Merlin -- Larry Garfield AIM: LOLG42 [EMAIL PROTECTED

Re: [PHP] php5 cert

2007-05-20 Thread Larry Garfield
as phparch asserted? -- Larry Garfield AIM: LOLG42 [EMAIL PROTECTED] ICQ: 6817012 "If nature has made any one thing less susceptible than all others of exclusive property, it is the action of the thinking power called an idea, which an individual may exc

Re: [PHP] Uploading Files Should I use MySQL or Server for storage?

2007-05-20 Thread Larry Garfield
-: > : > | An application and templating framework for PHP. Boasting | > | a powerful, scalable system for accessing system services | > | such as forms, properties, sessions, and caches. InterJinn | > | also provides an extremely flexible architecture for

Re: [PHP] Uploading Files Should I use MySQL or Server for storage?

2007-05-20 Thread Larry Garfield
On Sunday 20 May 2007, Robert Cummings wrote: > On Sun, 2007-05-20 at 23:11 -0500, Larry Garfield wrote: > > A well-optimized and load balanced database-based setup will beat a badly > > configured file system setup, sure. But will it beat a well-optimized > > and load balan

[PHP] XSLT and DocBook

2007-06-06 Thread Larry Garfield
sing, so performance isn't a huge issue. Thanks. [1] http://www.docbook.org/tdg/en/html/docbook.html [2] http://www.sagehill.net/docbookxsl/ [3] http://xml.apache.org/ [4] http://us.php.net/manual/en/ref.xsl.php -- Larry Garfield AIM: LOLG42 [EMAIL PROTECTED] ICQ:

Re: [PHP] PHP5 or PHP4 this is the question

2007-06-09 Thread Larry Garfield
l my scripts work in PHP 4 > ? or should I re-write all of them? or will it affect the speed of queries? > > Thank you > > > - > Be a better Globetrotter. Get better travel answers from someone who knows. > Yahoo! Answers - Check it out. -- L

Re: [PHP] XSLT and DocBook

2007-06-09 Thread Larry Garfield
is pretty darn good. > > If you're in PHP 4, forget it... > There's like 3 different XML libraries, all with warts, and I'm pretty > sure none of them support the fancy stuff you need. > > On Thu, June 7, 2007 1:02 am, Larry Garfield wrote: > > Hi all. I have a

Re: [PHP] PHP5 or PHP4 this is the question

2007-06-10 Thread Larry Garfield
On Saturday 09 June 2007, Robert Cummings wrote: > On Sat, 2007-06-09 at 19:18 -0500, Larry Garfield wrote: > > You should get a new server that supports PHP 5.2.1. PHP 4 is dead. > > Must be a zombie then because I see it running almost EVERYWHERE. Yep, it is. PHP 4 is try

Re: [PHP] PHP5 or PHP4 this is the question

2007-06-10 Thread Larry Garfield
On Sunday 10 June 2007, tedd wrote: > At 10:05 PM -0400 6/9/07, Robert Cummings wrote: > >On Sat, 2007-06-09 at 19:18 -0500, Larry Garfield wrote: > >> You should get a new server that supports PHP 5.2.1. PHP 4 is dead. > > > >Must be a zombie then because I se

Re: [PHP] MySQL UTF-8 vs Extended ASCII

2007-06-11 Thread Larry Garfield
ended ASCII into space and > move on with life... But that is not what I would like to end up with > in the long run. > > And why is MySQL not just taking these extended ASCII chars in the > first place? Seems to me that UTF-8 encoding should accept them, no? > > Disc

Re: [PHP] Previous and Next Month and Year

2007-06-17 Thread Larry Garfield
ear of 2007. > > For example ($month -7) would be December 2006, > and ($month +7) would be January 2006. > > Please help... Thank you. > > Keith -- Larry Garfield AIM: LOLG42 [EMAIL PROTECTED] ICQ: 6817012 "If nature has made any one thin

Re: [PHP] Re: php framework, large site

2007-06-17 Thread Larry Garfield
ou're already skilled and have experience with other similar systems. If you have no prior experience with other systems (Drupal, Cake, Symfony, Propel, ezComponents, Zend Framework, whatever) then you're going to be coding yourself into oblivion and get nothing done. I speak from ex

Re: [PHP] possible to "move_uploaded_file" to a variable instead a file?

2007-06-17 Thread Larry Garfield
that`s > not safe. however i do want to store it inside a variable and than run the > database query. > > any idea`s on this? > > Thanx alot in favor, > Mark -- Larry Garfield AIM: LOLG42 [EMAIL PROTECTED] ICQ: 6817012 "If nature has

Re: [PHP] Controlling project version

2007-06-17 Thread Larry Garfield
version? CVS? Is there a > point in using some linux script versus a "proper" program? > > Would really appreciate some input on this. On everything works, etc. > Thanks. > > > Miguel Vaz -- Larry Garfield AIM: LOLG42 [EMAIL PROTECTED]

Re: [PHP] Controlling project version

2007-06-18 Thread Larry Garfield
you > didn't set it up properly in the first place (which I never thought I'd > have to do for a version control system). > > Anyway thanks for the tip ;) SVN's architecture for branching and tagging is a lot nicer. CVS's UI primitives for branching and tagging ar

Re: [PHP] Comparing string to array

2007-06-18 Thread Larry Garfield
n in the code above won't play because it's got a > totally useless array key passed to it. > > I need a way to turn the string: > > "test['sam'][]" > > into something I can look into $_POST for. > > Any ideas? The coffee boost is wearing off

Re: [PHP] Date

2007-06-18 Thread Larry Garfield
tion for > more information. Just be meta about it. strtotime('+7 days', strtotime($expiry_date)); Ta da! :-) (Note: strtotime() is probably not the fastest to execute way of doing it, but it's the fastest to write. Choose wisely.) -- Larry Garfield AIM:

Re: [PHP] HTML tags in MySQL

2007-06-22 Thread Larry Garfield
nd suggestions welcomed. > > Cheers, > > tedd > > > -- > --- > http://sperling.com http://ancientstones.com http://earthstones.com -- Larry Garfield AIM: LOLG42 [EMAIL PROTECTED] ICQ: 6817012 "If nature has made any one thing less su

<    1   2   3   4   5   6   7   8   9   >