[PHP] Re: expression engine

2010-02-12 Thread Nathan Rixham
Sudhakar wrote: > hi > > i am from auckland new zealand, has anyone worked on expression engine cms > > please advice > > thanks > no but a very high percentage of the good graphic designers I know will use nothing but; all of them really like it. from a programmers point of view, i just don'

Re: [PHP] PHP Manual problems

2010-02-10 Thread Nathan Rixham
tedd wrote: > At 1:38 PM -0500 2/10/10, Robert Cummings wrote: >> Agreed. Those make sense to demarcate the structure layout of the >> document... but still, for styling the class makes more sense since it >> keeps the specificity low and easy to override (especially true for >> skinnable apps). In

Re: [PHP] PHP Manual problems

2010-02-10 Thread Nathan Rixham
Robert Cummings wrote: > Nathan Rixham wrote: >> Robert Cummings wrote: >>> Michael A. Peters wrote: >>>> Nathan Rixham wrote: >>>>> Michael A. Peters wrote: >>>>>> It took very little work since I was essentially doing that

Re: [PHP] PHP Manual problems

2010-02-10 Thread Nathan Rixham
Robert Cummings wrote: > Michael A. Peters wrote: >> Nathan Rixham wrote: >>> Michael A. Peters wrote: >>>> Robert Cummings wrote: >>>> >>>>> Many government documents have the concept of "aside" as appearing >>>>>

Re: [PHP] PHP Manual problems

2010-02-10 Thread Nathan Rixham
Michael A. Peters wrote: > Nathan Rixham wrote: >> Michael A. Peters wrote: >>> Robert Cummings wrote: >>> >>>> Many government documents have the concept of "aside" as appearing >>>> through the document and contextually near to the in

Re: [PHP] PHP Manual problems

2010-02-10 Thread Nathan Rixham
Michael A. Peters wrote: > Robert Cummings wrote: > >> >> Many government documents have the concept of "aside" as appearing >> through the document and contextually near to the information to which >> the aside relates. The entire sidebar seems a bit gratuitous as an >> "aside". Sure it's aside,

[PHP] Re: poll: howto do informative error handling without the fatalities

2010-02-09 Thread Nathan Rixham
Rene Veerman wrote: > Hi, > > I'm looking for a strategy to do informative error handling at all > levels of my code, yet keep these errors non-fatal as often as > possible. error_log - for logging errors throw Exception - for show stoppers try/catch - for when you can handle a potential show sto

[PHP] Re: Issue with blocked socket stream

2010-02-07 Thread Nathan Rixham
Phani Raju wrote: > I am trying to open a blocking stream using fsockopen. I want to write and > read XML input/output from a server. After opening the steam I will send a > XML request to server using the stream. Once this request is sent, I want to > keep listening on the port indefinitely. >

Re: [PHP] stream_select() not working on regular files?

2010-02-04 Thread Nathan Rixham
Dennis J. wrote: > The issue is that once I've hit the EOF I need to continue the loop > using the stream_select() waiting for new data. AFAIK you can't; you see stream_select checks to see if something will be blocked; if EOF is reached it considers this as not blocked; in other words the second

[PHP] Re: OpenID

2010-02-01 Thread Nathan Rixham
Al wrote: > This is a bit off subject, but > > What is your opinion on OpenID? openID & foaf+ssl are the future without a doubt, openid is a step in the right direction; most important factor is giving every person a http identifier (URI); because then you can start linking data together. ar

Re: [PHP] Do you use a public framework or roll your own?

2010-01-29 Thread Nathan Rixham
Michael A. Peters wrote: > Michael A. Peters wrote: >> Daevid Vincent wrote: >>> >>> I'm not looking to start a holy war here or re-hash the tired debate. >>> I just want some hard cold numbers to look at. >>> >>> "Do you use a public framework or roll your own?" >>> http://www.rapidpoll.net/8opn

[PHP] Re: Good source for sample data?

2010-01-28 Thread Nathan Rixham
Brian Dunning wrote: > Hey all - > > I need a few million sample contact records - name, company, address, email, > web, phone, fax. ZIP codes and area codes and street addresses should be > correct and properly formatted, but preferably not real people or companies > or email addresses. But th

[PHP] Re: > 120 meg of json analyzed by the browser...

2010-01-28 Thread Nathan Rixham
Rene Veerman wrote: > Oh, i forgot to mention that firefox takes about a gigabyte of memory > after having stalled at "200mb parsed" in a 330mb document.. > > And despite using setTimeout(), firefox frequently freezes (for about > 2 to 10 minutes), before updating the decoding-status display again

Re: [PHP] Pointers For Newbies, Reminders For Oldies

2010-01-28 Thread Nathan Rixham
Ford, Mike wrote: >> -Original Message- >> From: Rene Veerman [mailto:rene7...@gmail.com] >> Sent: 27 January 2010 22:46 >> >> And if your script needs to pass large (> 5Mb) arrays around to >> functions, be sure to use passing-by-reference; failing to do so can >> double your memory requir

Re: [PHP] Pointers For Newbies, Reminders For Oldies

2010-01-27 Thread Nathan Rixham
Nathan Rixham wrote: > Daniel Egeberg wrote: >> On Wed, Jan 27, 2010 at 18:13, Daniel Brown wrote: >>> On Wed, Jan 27, 2010 at 12:08, Daniel Egeberg wrote: >>>> There is virtually no difference nowadays. It's a long time since >>>> anything like

Re: [PHP] Pointers For Newbies, Reminders For Oldies

2010-01-27 Thread Nathan Rixham
Richard Quadling wrote: > 2010/1/27 Richard Quadling : >> 2010/1/27 Michael A. Peters : >>> Paul M Foster wrote: "... should be obvious - but are often overlooked - points within coding practice that can cause the programmer to develop bad habits and bad code." - Dan Brown

Re: [PHP] Pointers For Newbies, Reminders For Oldies

2010-01-27 Thread Nathan Rixham
Daniel Egeberg wrote: > On Wed, Jan 27, 2010 at 18:13, Daniel Brown wrote: >> On Wed, Jan 27, 2010 at 12:08, Daniel Egeberg wrote: >>> There is virtually no difference nowadays. It's a long time since >>> anything like that has mattered. >>Actually, that's not true enough to be dismissive. I

[PHP] Re: Multiple Class Inheritance

2010-01-27 Thread Nathan Rixham
Ashley Sheridan wrote: > Hi All, > > I know that a class can only inherit from one other single class in PHP, > but how would I go about simulating a multiple class inheritance? For > example, if I had several small classes that dealt with things like form > generation, navbar generation, etc, how

[PHP] Re: Question on XML/XSL/PHP/MySQL

2010-01-27 Thread Nathan Rixham
Ryan Park wrote: > Hypothetically say that I have MySQL with petabytes of data. I want to > use XSL as my template language. But in order to use XSL, I need to make > XML filled with petabytes of data. This does not sound elaborate way to > use XSL/XML; I would rather use PHP/MySQL/Smarty. Is there

[PHP] Re: MySQL ID -- what happens when you run out of range?

2010-01-25 Thread Nathan Rixham
Parham Doustdar wrote: > Hello there, > A friend called me today and was wondering what happens if the ID colomn of > an MYSQL database, set to autoinc reaches the int limit. Will it return and > begin choosing the ID's that have been deleted, or... what? you change it to bigint before that happ

[PHP] Re: Recursion issue with Zend_Soap_AutoDiscovery.

2010-01-25 Thread Nathan Rixham
Richard Quadling wrote: > Hi. > > I'm in the process of building a web service which incorporates the > ability for the server to inform the client that a particular call has > been superseded by another. > > So, cut down (I've removed all the other details), ... > > class ServiceDetails >

[PHP] Re: Users, groups, and permissions

2010-01-24 Thread Nathan Rixham
clanc...@cybec.com.au wrote: > I am using a Quadra Hosting Multi Domain (http://www.quadrahosting.com.au/) > to host five > different domains. As site owner I have FTP access to the root directory, and > to > everything underneath it. There is no domain directly attached to the root. > Each doma

[PHP] Re: http vs https

2010-01-23 Thread Nathan Rixham
Ben Miller wrote: > Is there a PHP function that will return whether the request was http or > https? I have functions that need to cURL other servers - sometimes over > SSL, sometimes not, depending whether the function is called from > http://www.mydomain.com/script_that_calls_function.php or >

Re: [PHP] Cookies & sessions

2010-01-23 Thread Nathan Rixham
clanc...@cybec.com.au wrote: > On Thu, 21 Jan 2010 22:00:30 +, a...@ashleysheridan.co.uk (Ashley > Sheridan) wrote: > >> On Fri, 2010-01-22 at 08:58 +1100, clanc...@cybec.com.au wrote: >> >>> On Thu, 21 Jan 2010 08:54:44 -0500, tedd.sperl...@gmail.com (tedd) wrote: >>> At 12:15 PM +1100

Re: [PHP] Subversion Ubuntu client

2010-01-23 Thread Nathan Rixham
shiplu wrote: > On Sat, Jan 23, 2010 at 10:58 AM, Skip Evans wrote: >> Hey all, >> >> Can anyone recommend a good Subversion client for Ubuntu? >> > > If you use an ide, there should be a subversion client for it. its > better to manage from ide. eclipse + pdt2 + subversive/svnkit = works (very

Re: [PHP] Formatting Decimals Further Help

2010-01-22 Thread Nathan Rixham
Rick Dwyer wrote: > On Jan 22, 2010, at 7:30 PM, Nathan Rixham wrote: > Thanks Nathan I'll give it a shot. > np - here's a more condensed version: function round_to_half_cent( $value ) { $value = ($value*100) + 0.3; $out = number_format( floor($value)/100 ,

Re: [PHP] Formatting Decimals Further Help

2010-01-22 Thread Nathan Rixham
Rick Dwyer wrote: > > On Jan 22, 2010, at 4:24 PM, tedd wrote: > >>> Hello List. >>> >>> In an earlier post, I received help with a custom function to round >>> decimals off (the custom function provided by Adam Richardson is below). >>> >>> However in my MySQL db, when I have values with only 1

Re: [PHP] Formatting Decimals

2010-01-22 Thread Nathan Rixham
Paul M Foster wrote: > On Mon, Jan 11, 2010 at 04:56:03PM -0500, tedd wrote: > >> --Rick: >> >> The above described rounding algorithm introduces more bias than >> simply using PHP's round() function, which always rounds down. IMO, >> modifying rounding is not worth the effort. >> >> The "best" ro

Re: [PHP] Close MySQL Result

2010-01-22 Thread Nathan Rixham
ta set, or that the interface I was using to get to my MS-SQL tables > was inefficient in some other way. > > I may not have "proof", but I will be inclined to use this for a > performance boost when working with large sets of data. > > > > On 1/21/2010 6:45

Re: [PHP] Close MySQL Result

2010-01-21 Thread Nathan Rixham
Shawn McKenzie wrote: > Daevid Vincent wrote: >>> -Original Message- >>> From: Nathan Rixham [mailto:nrix...@gmail.com] >>> >>> you'll also find a performance upgrade if you load all sql >>> results in to >>> an array and clo

[PHP] linked data

2010-01-21 Thread Nathan Rixham
just a quick scoping mail - Anybody else doing anything linked data oriented, working with a lot of RDF, or using variants of the EAV/CR datamodel in PHP? regards! -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: Open Source CMS

2010-01-21 Thread Nathan Rixham
Hendry wrote: > Hi, > > Anyone can share your favorite PHP open source CMS to work with and > what's the reason? I'm looking for something that easily extensible. > I've googled and found severals but I'm still confused, some from the > lists: > - Drupal > - Tomato CMS > - modx > - xoops > - Symph

Re: [PHP] Close MySQL Result

2010-01-21 Thread Nathan Rixham
Ashley Sheridan wrote: > On Wed, 2010-01-20 at 13:24 -0800, Daevid Vincent wrote: > >> http://www.php.net/manual/en/function.mysql-free-result.php >> >> mysql_free_result($myresult); >> >> NOTE: mysql_free_result() only needs to be called if you are concerned >> about how much memory is being use

[PHP] Re: How do I remove unused GET parameters from the URL?

2010-01-20 Thread Nathan Rixham
Daevid Vincent wrote: > BTW, I want to use GET so that the page can be bookmarked for future > searches of the same data (or modified easily with different dates, etc.), > so that's why I don't use POST. > to do as you say on the clientside you'd probably be best to write a short js script to bui

[PHP] Re: IDE -> SVN -> dev server -> live server

2010-01-14 Thread Nathan Rixham
John Corry wrote: > I am working on designing an documenting a process for our team to use to > manage code updates/changes. > > What we've been doing has been ghastly: a bunch of developers using > dreamweaver's 'check in/out' functions, all using the same FTP login, to FTP > files to the product

[PHP] Re: POLL: To add the final ?> or not...

2010-01-13 Thread Nathan Rixham
Daevid Vincent wrote: > I'm having a debate with a co-worker about adding the final ?> on a PHP > page... > > To be honest, I am the lead, and I could pull rank and be done with the > discussion, however I don't like to be that way. I would rather do the > right thing. If my way of thinking is old

Re: [PHP] What server am I authenticating to?

2010-01-13 Thread Nathan Rixham
Hansen, Mike wrote: > > >> -Original Message- >> From: daniel.egeb...@gmail.com >> [mailto:daniel.egeb...@gmail.com] On Behalf Of Daniel Egeberg >> Sent: Wednesday, January 13, 2010 11:39 AM >> To: Hansen, Mike >> Cc: php-general@lists.php.net >> Subject: Re: [PHP] What server am I auth

[PHP] Re: First time PHP user question

2010-01-07 Thread Nathan Rixham
Rick Dwyer wrote: > Hello List. > I have been playing around with PHP, running a few tutorials and I came > across an error message I could not resolve. > > The tutorial is Generating One Time URL's by Oreilly: > http://www.oreillynet.com/pub/a/php/2002/12/05/one_time_URLs.html > > Basically the

[PHP] Re: Resin/Quercus

2010-01-07 Thread Nathan Rixham
Mattias Thorslund wrote: > Hi, > > I wonder if anyone has experience with running PHP on the Resin server. > Opinions, good, bad? Gotchas? Similar projects? > > http://www.caucho.com/projects/resin/ > > Thanks, > > Mattias Resin is excellent - especially if you need to integrate in with java a

Re: [PHP] efficiency of include()

2009-12-20 Thread Nathan Rixham
Daniel Kolbo wrote: > Larry Garfield wrote: >> On Sunday 20 December 2009 10:45:45 am Daniel Kolbo wrote: >>> Hello PHPers, >>> >>> This is a two part question: >>> >>> 1) Is it faster to include one file with lots of code, or many separate >>> smaller individual files? Assume the one massive file

[PHP] Re: PHP and XML

2009-11-24 Thread Nathan Rixham
Juan wrote: > El día 23 de noviembre de 2009 13:25, Nathan Rixham > escribió: >> Juan Marcelo Rodríguez Monti wrote: >>> Hi people, >>> I have some doubts about this topic that I'm gonna explain. >>> >>> I have a few sites in flash, and I was

[PHP] Re: PHP and XML

2009-11-23 Thread Nathan Rixham
Juan Marcelo Rodríguez Monti wrote: > Hi people, > I have some doubts about this topic that I'm gonna explain. > > I have a few sites in flash, and I was requested to write a PHP frontend > to send news. I have this already done and it works perfect. It's a LAMP > App to send and edit news, post v

[PHP] Re: PHP sessions, AJAX, authentication and security.

2009-11-21 Thread Nathan Rixham
Angus Mann wrote: > Hi all. > > A question about PHP sessions and their interaction with AJAX. > > I have a database containing sensitive information and users need to log in > to my PHP script and be authenticated before they are granted access. > > For one of the forms I would like to retriev

Re: [PHP] Which query is more correct?

2009-11-21 Thread Nathan Rixham
Rick Pasotto wrote: > On Fri, Nov 20, 2009 at 04:41:58PM -0600, LAMP wrote: >> Hi, >> I need to pull all records from the table Registrants they are NOT >> in the table ToBeRecleared >> >> Registrants.Reg_ID is PK >> ToBeRecleared.tbrc_Reg_ID is PK >> >> Which query is more correct? >> >> SELECT r.

[PHP] Re: Extracting a time zone from a latitude longitude

2009-11-21 Thread Nathan Rixham
Haig Davis wrote: > Good Morning all, > > Having a look at the time zone functions in PHP you can enter a time zone > city and get it's lat long. Does anybody know how you can run the function > in reverse (or know of a similar function) i.e. get the time zone city from > the geographic coordinate

[PHP] Re: DOM append to the top

2009-11-20 Thread Nathan Rixham
Matthew Croud wrote: > The XML looks like: > > > ... > ... > ... > <- new items are added here > > > This is what my code looks like: > > $y = $dom -> getElementsByTagName("item"); > $dom -> documentElement -> insertBefore($Xitem,$y); > > If trying to pass the top most "item" node to inse

Re: [PHP] Noob question: Making search results clickable.

2009-11-20 Thread Nathan Rixham
Ford, Mike wrote: >> -Original Message- >> From: Nisse Engström [mailto:news.nospam.0ixbt...@luden.se] >> Sent: 19 November 2009 14:54 >> To: php-general@lists.php.net >> Subject: Re: [PHP] Noob question: Making search results clickable. >> >> On Wed, 18 Nov 2009 10:31:59 -0500, Paul M Fost

[PHP] Re: need a find/replace command to fix my require_once

2009-11-20 Thread Nathan Rixham
Daevid Vincent wrote: > I was reading this: http://pear.php.net/manual/en/standards.including.php > and it states: > > "Note: include_once and require_once are statements, not functions. > Parentheses should not surround the subject filename." > > I never knew that. I've always (wrongly)

[PHP] Re: need browser auto-form predictable fill-in randomizer addon

2009-11-20 Thread Nathan Rixham
Daevid Vincent wrote: > I have a form with probably 100+ elements from input, checkbox, select > boxes, textareas, etc. It's extremely tedious to fill these in all the time > and submit while developing/testing. > > Anyone know of a plugin to Firefox (or IE for that matter) that will fill in > th

Re: [PHP] PHP httpd debug question

2009-11-17 Thread Nathan Rixham
John Beaulaurier -X (jbeaulau - Advanced Network Info at Cisco) wrote: > That’s sounds like what I’m looking for. I don’t want to interfere with the > current httpd process serving content while running the debug. > http://www.google.com/search?q=multiple+apache+instances note: setting only th

[PHP] Re: How to call DLL in Javascript

2009-11-17 Thread Nathan Rixham
Peter wrote: > Hi All, > > I want to call dll in javascript > > I tried the following script, but i got the error message 'ActiveXObject > is undefined' > (Note : i have the feedback.dll in the same path only) > > > > > > function comEventOccured() > { > >try{ >var myobject; >

[PHP] Re: How to make the PHP know the real SCRIPT_FILENAME?

2009-11-17 Thread Nathan Rixham
Dong Wang wrote: > I am trying to use PHP as backend, which communicate with apache-2.3's > mod_proxy_fcgi > > But I have noticed that the SCRIPT_FILENAME has been changed to > "proxy:balancer://xx", it cann't be recognized by the remote PHP > backend. So the request failed. > In my opinion,

[PHP] Re: Need suggestions on PHP frameworks

2009-11-12 Thread Nathan Rixham
Dhanushka Samarakoon wrote: > Hi, > > I need to select a PHP framework for a small project about 20-25 pages (but > expected to grow in the future). I was looking at the comparison chart at > http://www.phpframeworks.com/. > > After browsing through some forums seems like CodeIgniter is the popul

[PHP] Re: Form Validation filter - Regex Q

2009-11-10 Thread Nathan Rixham
Haig Davis wrote: > alone work fine as does the foreach loop the only issue I have is the IF > statement comparing $key to expected varieable names. > > if($key != ("$customerServiceEmail") || ("$billingEmail") || multiple points here.. 1: is the key name held in a php variable calle

Re: [PHP] Carriage Returns

2009-11-08 Thread Nathan Rixham
Dan Shirah wrote: >> My guess is that you are getting an SQL error returned to you. What does >> that >> say? Is it talking about a broken SQL statement? >> >> Also, an example of the actual insert statement with example data would be >> helpful. >> >> >> > > I'm getting the generic error messag

[PHP] Re: Die Page, Die! (Was: Preview button to show PDF without submittingpost data?)

2009-11-08 Thread Nathan Rixham
Dave M G wrote: > Ashley, > > Thank you for responding. > >> I think you do, or where else would you show the PDF? Unless you force >> the PDF to download when the user clicks the preview button, you are >> left with the default option of the users browser, which will most >> usually be to displa

Re: [PHP] Need unrounded precision

2009-11-04 Thread Nathan Rixham
Matthew McKay wrote: Kim Madsen wrote: Hello Andre Dubuc wrote on 2010-01-02 02:20: Hi, I need to extract the first digit after the decimal point from a number such as 28.56018, which should be '5'. Since no one came up with the simple solution: $num = "28.56018"; ereg("^[0-9]+\.([0-9]){1

Re: [PHP] Custom function for inserting values into MySQL

2009-11-04 Thread Nathan Rixham
Shawn McKenzie wrote: Allen McCabe wrote: Do you see any major hangups or screwups on first glance? And is my fear of trying this out on my database unfounded? Does this even seem that useful? in all honesty.. loads of screwups - don't try it out on your database & ultimately if it isn't re

[PHP] Re: Using remote include config file and class in a local file

2009-11-04 Thread Nathan Rixham
Shawn McKenzie wrote: Anton Heuschen wrote: Question is wrt to including a config file on an external server in a local include Lets say that on 127.0.0.1 I have test.php with include http://200.200.1.1/Folder/Config.php $obj = new RemoteClass() do stuff and on server 200.200.1.1 I have my

Re: [PHP] It's not behaving. Error reporting, that is

2009-11-04 Thread Nathan Rixham
Ashley Sheridan wrote: On Wed, 2009-11-04 at 08:52 -0600, Philip Thompson wrote: On Nov 3, 2009, at 11:24 AM, Kim Madsen wrote: Hi Philip Try to post a link to a page, that prints phpinfo() -- Kind regards Kim Emax Philip Thompson wrote on 2009-11-03 17:11: Hi all. This seems like a tr

[PHP] Re: PHP String convention

2009-11-04 Thread Nathan Rixham
Nick Cooper wrote: Hi, I was just wondering what the difference/advantage of these two methods of writing a string are: 1) $string = "foo{$bar}"; 2) $string = 'foo'.$bar; 1) breaks PHPUnit when used in classes (need to bug report that) 2) [concatenation] is faster (but you wouldn't notice)

[PHP] Re: Apache file order

2009-11-04 Thread Nathan Rixham
Skip Evans wrote: Hey all, I modified an Apache config file to list the HTML file first, after the PHP file, it still pulls up the PHP file first. Is there another setting in Apache I should be looking for? I need it to check for the HTML file first. Thanks, Skip DirectoryIndex index.

[PHP] Re: Classes and Functions

2009-11-04 Thread Nathan Rixham
Daniel Kolbo wrote: Hello, Is there a way to see what objects and functions a script loaded/required/used? I could recursively loop through the globals, but if objects were unset, then i may miss some. I could make a 'tracking' object and every time i load/include a file (which contains a clas

Re: [PHP] Two Parser Passes

2009-11-04 Thread Nathan Rixham
Daniel Kolbo wrote: Steve wrote: Daniel Kolbo wrote: Hello, Is it possible to get a list (array) of classes not found in a script before the fatal error exits the parser. I realize that PHP parses the script twice. It would be nice at the end of the first parsing pass to check to see which c

[PHP] Re: What PHP version are you using?

2009-11-04 Thread Nathan Rixham
Israel Ekpo wrote: Hi Guys, I just want to conduct a quick survey to find out what version of PHP people are using in their production environments. I have a PHP extension for Solr that I have set the minimum required version as 5.2.11. http://pecl.php.net/package/solr/ However, most of the P

[PHP] Re: shell_exec fails to compile java class?

2009-11-04 Thread Nathan Rixham
דניאל דנון wrote: Hello! I need to use shell_exec (or any other similar function) in order to compile a java class-file. I have all the needed components installed on my computer (Windows XP with Java SDK) - I can use "java c:\path" in order to compile using Start->Run. When I try to do th

[PHP] Re: Anyone know whats the best way to learn PHP

2009-06-01 Thread Nathan Rixham
Muhammad Hassan Samee wrote: Hi Anyone know whats the best way to learn PHP? Every time I open an php book or look the codes online, my mind goes "oh man, So many stuffs to learn and gets frustrated before i even start" but on the other hand, I don't know why some how the brain keep on nagging m

Re: [PHP] templating engine options

2009-05-26 Thread Nathan Rixham
Tom Worster wrote: On 5/25/09 8:48 PM, "Nathan Rixham" wrote: Sancar Saran wrote: 0 ) { $content = ''; foreach( $comments as $index => $comment ) : $content. = "".$comment->title.""; endforeach; } ?> Comments index.php ob_start(); re

Re: [PHP] templating engine options

2009-05-26 Thread Nathan Rixham
Tom Worster wrote: thanks for taking the trouble to write your requirements. it made interesting reading. and thanks for taking the time to read it! it was a big one. i've questions on three points below... On 5/25/09 6:44 PM, "Nathan Rixham" wrote: XSL Templates are near

[PHP] Re: Background Process

2009-05-26 Thread Nathan Rixham
shahrzad khorrami wrote: Hi, I have two php scripts, first one must pass arguments to second(the php script that will take more time to process for example inserting 100 records to db, data come from first script). I search around web and find below function: function execInBackground($pat

Re: [PHP] templating engine options

2009-05-26 Thread Nathan Rixham
Andrea Giammarchi wrote: Finally somebody mentioned XSL Transformations. Time is relative because as you need time to learn an API to produce quickly only after a while, thanks to knowledge and confidence, XSL is the same with the advantage that you transform a data structure, rather than work

Re: [PHP] templating engine options

2009-05-25 Thread Nathan Rixham
Sancar Saran wrote: 0 ) { $content = ''; foreach( $comments as $index => $comment ) : $content. = "".$comment->title.""; endforeach; } ?> Comments index.php ob_start(); require('template.php'); echo ob_get_clean(); I'm still do not understand for complex template s

Re: [PHP] templating engine options

2009-05-25 Thread Nathan Rixham
Stuart wrote: 2009/5/25 Robert Cummings : I continued the discussion with Nathan. I too have had an off-list discussion with Nathan on this topic, and a productive one at that. which would probably be a good time for me to step back in; having had a nice little inside in to both Robert an

Re: [PHP] templating engine options

2009-05-25 Thread Nathan Rixham
Tom Worster wrote: On 5/25/09 10:04 AM, "Stuart" wrote: Quick question, how would you implement the following using your XML-based template syntax... ... It's worth noting that I'm simply suggesting a different way of looking at the world. If you have a templating system you're happy with

Re: [PHP] templating engine options

2009-05-25 Thread Nathan Rixham
Robert Cummings wrote: On Mon, 2009-05-25 at 15:04 +0100, Stuart wrote: 2009/5/25 Robert Cummings : Have I done something to annoy you lately? You seem to be directing a lot of hostility my way recently. Just wondering. I'm sorry you're taking it personally... you may want to invest some time

[PHP] Re: Comparing strings (revisited)

2009-05-24 Thread Nathan Rixham
Clancy wrote: For some time I have been working on a text based database, in which each entry contains one or more lines of data, with the various fields delimited by semicolons, e.g. A;b;20GM;Restaurant;090508 n;;;Arintji;; a;Federation Square;;; p;9663 9900;;;9663 9901;;i...@arintji.com.a

Re: [PHP] Fractions

2009-05-24 Thread Nathan Rixham
Mark Kelly wrote: Hi. On Sunday 24 May 2009, Ron Piggott wrote: Is there a way to remove the trailing '0'? $width = number_format($width,2); Also is there a way to have the original fraction display (1/4), as well as have provision for 1/8 and 3/8 and 1/2, etc. display? On this one I susp

Re: [PHP] Container or Calling Class

2009-05-24 Thread Nathan Rixham
Eddie Drapkin wrote: You can call methods from a classes's parents like so class foo { protected method bar() { echo "in foo!"; } } class foobar extends foo { public function bar() { parent::bar(); } } $fb = new foobar(); $fb->bar(); will output "in foo!"; wrong way round.. he's asking f

Re: [PHP] templating engine options

2009-05-24 Thread Nathan Rixham
tedd wrote: At 1:54 PM -0600 5/24/09, LinuxManMikeC wrote: You're missing the point just because he threw in some old HTML styling attributes. The main issue is the overhead of added parsing layers to find where content goes in the HTML. I may be missing the point, but I know where content go

Re: [PHP] templating engine options

2009-05-24 Thread Nathan Rixham
tedd wrote: At 9:43 PM +0100 5/24/09, Nathan Rixham wrote: and now I'm questioning myself - not on the client scenario based decisions - but on my own personal projects and things only I work on.. why do I use a template engine? habit? some old logical decision I made based on abstra

Re: [PHP] php dev environment

2009-05-24 Thread Nathan Rixham
Eric Butera wrote: On Sun, May 24, 2009 at 5:32 AM, Nathan Rixham wrote: Hi All, A recent post just reminded me of something I did a while ago that may be of use to many of you (and its sitting doing nothing), it's a kind of how to for getting a full development environment up and ru

Re: [PHP] templating engine options

2009-05-24 Thread Nathan Rixham
Stuart wrote: 2009/5/24 Nathan Rixham : LinuxManMikeC wrote: On Sun, May 24, 2009 at 11:09 AM, tedd wrote: At 12:01 AM +0100 5/24/09, Nathan Rixham wrote: LinuxManMikeC wrote: I was recently researching template engines for a small in-house project, with a bias toward simple and

Re: [PHP] templating engine options

2009-05-24 Thread Nathan Rixham
LinuxManMikeC wrote: On Sun, May 24, 2009 at 11:09 AM, tedd wrote: At 12:01 AM +0100 5/24/09, Nathan Rixham wrote: LinuxManMikeC wrote: I was recently researching template engines for a small in-house project, with a bias toward simple and lightweight. I found this interesting article in my

Re: [PHP] Container or Calling Class

2009-05-24 Thread Nathan Rixham
Stuart wrote: 2009/5/24 phphelp -- kbk : If so, can the bar_handler->bar_toast() function call a function in the container class (foo_handler)? "Parent" is used in some OOP languages for this type of hierarchy, but not PHP. I have fooled around with the scope resolution operator, but either that

[PHP] help : getting float max

2009-05-24 Thread Nathan Rixham
Afternoon all, This is a quick survey, think it would be useful to have the values of MAX_FLOAT for each platform, and indeed see if it does differ. to do this can you please run the following code (bc* required) and reply back with the output (and your platform / php version) code: my re

Re: [PHP] fgets function for very large files

2009-05-24 Thread Nathan Rixham
shahrzad khorrami wrote: :-o I want to divide this large csv file with programming to small one! 1: http://php.net/fgetcsv 2: if( ($row % 1) == 0 ) { 3: http://php.net/fputcsv csv split in to multiple csv's of 10k rows each -- PHP General Mailing List (http://www.php.net/) To unsubscribe

[PHP] php dev environment

2009-05-24 Thread Nathan Rixham
Hi All, A recent post just reminded me of something I did a while ago that may be of use to many of you (and its sitting doing nothing), it's a kind of how to for getting a full development environment up and running simply. Eclipse PDT 2 + extras http://wiki.voom.me/wiki/Eclipse-PDT2-Perfec

Re: [PHP] General Web Development Editor/IDE

2009-05-24 Thread Nathan Rixham
Lester Caine wrote: Casey wrote: Hi list, I'm looking for a nice, user (i.e. me) friendly general-purpose IDE, where most of my work will be done in PHP. I'm considering using Dreamweaver CS4 as my IDE, where I will disable most of the WYSIWYG elements and use all of the other features that I

Re: [PHP] conditional classes

2009-05-24 Thread Nathan Rixham
kranthi wrote: thanks for the comments, what i m planning to do is function _autoload($class) { if($class == 'Database') { if(class_exis('PDO') { include_once('Database_PDO.php'); } else { include_once('Database.php'); } } where in Database_PDO.php contains class Database

Re: [PHP] templating engine options

2009-05-23 Thread Nathan Rixham
LinuxManMikeC wrote: On Sat, May 23, 2009 at 4:21 PM, Nathan Rixham wrote: Hi All, Just a quick one, can anybody recommend any decent templating engines other than smarty. I've got no problem with smarty and it does the job - but if there is something newer and lighter out there tha

Re: [PHP] templating engine options

2009-05-23 Thread Nathan Rixham
Kevin Waterson wrote: On Sat, 2009-05-23 at 23:21 +0100, Nathan Rixham wrote: Hi All, Just a quick one, can anybody recommend any decent templating engines other than smarty. I've got no problem with smarty and it does the job - but if there is something newer and lighter out there

[PHP] templating engine options

2009-05-23 Thread Nathan Rixham
Hi All, Just a quick one, can anybody recommend any decent templating engines other than smarty. I've got no problem with smarty and it does the job - but if there is something newer and lighter out there that I'm missing then I'd be a fool not to at least consider it! can't be part of a f

Re: [PHP] Re: Rogue 'if - elseif' code

2009-05-23 Thread Nathan Rixham
LinuxManMikeC wrote: On Fri, May 22, 2009 at 2:50 PM, Nathan Rixham wrote: Andre Dubuc wrote: Hi, I'm having problems with a chunk of 'rogue' code that does not perform as expected (it does not pass the expected date, but an empty value). Most of the time, it works - so I'

[PHP] Re: Rogue 'if - elseif' code

2009-05-22 Thread Nathan Rixham
Andre Dubuc wrote: Hi, I'm having problems with a chunk of 'rogue' code that does not perform as expected (it does not pass the expected date, but an empty value). Most of the time, it works - so I'm wondering whether it might be a browser issue. (The latest failure occurred with Firfeox 3.0

Re: [PHP] Re: PHP class question

2009-05-21 Thread Nathan Rixham
Shawn McKenzie wrote: Shawn McKenzie wrote: Peter van der Does wrote: On Thu, 21 May 2009 14:08:11 -0500 Shawn McKenzie wrote: This doesn't make sense. You say "class A needs to be extended with another class", however what you show below is "class A extending framework_class". I worded

Re: [PHP] -less layouts; Ideas welcome

2009-05-21 Thread Nathan Rixham
Benjamin Hawkes-Lewis wrote: On 21/5/09 09:02, Jim Lucas wrote: I have been toying with the idea of doing a -less layouts involving tabular data, calendars, etc... [snip] But, not knowing how the various types of accessibility applications work, I am guessing that the layout to an applicatio

[PHP] Re: PHP class question

2009-05-21 Thread Nathan Rixham
Peter van der Does wrote: I have the following situation. I wrote some software and split it up into functionality: class core { function go{ } } class A extends core { // PHP4 constructor function A { $this->go(); } } class B extends core { } In core I define functions and va

[PHP] Re: Azure SDK for PHP

2009-05-21 Thread Nathan Rixham
haliphax wrote: Microsoft's Azure cloud computing framework has now been exposed to PHP. I haven't tested any of the features myself, but it seems like a pretty interesting (and leverage-able) concept to work with... figured I'd pass the word along. http://phpazure.codeplex.com/ cheers for th

[PHP] Re: PHP5 based Web-Chat?

2009-05-21 Thread Nathan Rixham
Michelle Konzack wrote: Hello Nathan, Am 2009-05-21 13:44:38, schrieb Nathan Rixham: Nothing :D - anything php based would involve polling which will kill any server when trying to create a realtime chat environment (1 request per second per chatter + 1 for each message send + normal

[PHP] Re: MYSQL 5 auto increment not working

2009-05-21 Thread Nathan Rixham
Leidago !Noabeb wrote: Hi All I know this is not strictly a PHP question, but i have a problem whenever i insert a record using PHP. Basically the auto increment field does not work at all. Here's the structure of the table that i'm using: CREATE TABLE `children` ( `cid` int(4) NOT NULL auto

<    1   2   3   4   5   6   7   8   9   10   >