Re: [PHP] non static function called as static one

2009-03-11 Thread Nathan Rixham
Nathan Rixham wrote: Jochem Maas wrote: Olivier Doucet schreef: mental though, part of me wishes they'd forked php at 4 to save all the lame syntax and weirdness. after thought.. I wish they'd forked it to OO and procedural, then us OO guys could have phpoo and be happ

Re: [PHP] Re: PHP/Apache: script unexpectedly invoked multiple times in parallel every 30 secs.

2009-03-11 Thread Nathan Rixham
Marc Venturini wrote: Hi all, Thank you all very much for your contributions. I tried to monitor the network with Wireshark: there is only one request from my browser to the server, and not any answer (redirect or otherwise). This means the problem is definitely not with unexpected browser requ

[PHP] today i found the best function I've ever seen

2009-03-20 Thread Nathan Rixham
if( !function_exists('clean_sql_term') ) { function clean_sql_term($term) { return $term; } } beautiful -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] today i found the best function I've ever seen

2009-03-23 Thread Nathan Rixham
Jason Pruim wrote: Daniel Brown wrote: On Mon, Mar 23, 2009 at 09:07, Igor Escobar wrote: Do not try this at home... Sorry, all, I must have yelled. Two days later and my words are still echoing. ;-P Yeah... Would you keep your voice down You self titled oh so important per

Re: [PHP] Namespce operator

2009-03-25 Thread Nathan Rixham
Jochem Maas wrote: Luke schreef: Backslash doesn't sound like it will look very pretty 2009/3/25 Richard Heyes Backslash? Seriously? I'm hurt that my suggestion of "¬" (ASCII170 ?) wasn't used. :-( please kill this thread, the namespace operator was heavily discussed multiple times in the

Re: [PHP] I need ideas for things to code

2009-04-24 Thread Nathan Rixham
Andrew Hucks wrote: I've been coding PHP for about a year, and I'm running out of things to code that force me to learn new things. If you have any suggestions, I'd greatly appreciate it. a: get paid to do it; pick up work on freelance sites and they'll give you the ideas + you'll get paid to

[PHP] Re: Formating Numbers

2009-04-26 Thread Nathan Rixham
Gary wrote: I cant seem to get this to work for me. I want the number to be formated to money (us, 2 decimal points). /** * returns 4.3 as $4.30 (formats us dollars) * * @param $amount * @return string */ function us_dollar_format( $amount ) { return ( '$' . number_format($amount,

[PHP] Re: Help with scandir()

2009-04-26 Thread Nathan Rixham
) you have to do this for samba drives on windows too. $dir = '//machine.local/share/path'; regards, nathan ps: many people just don't answer if they do not know -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] CamelCase conversion to proper_c_style

2009-04-27 Thread Nathan Rixham
tedd wrote: At 9:40 AM +0100 4/27/09, Richard Heyes wrote: Hi, I know it's probably heresy for a lot of coders, but does anyone know a function or class or regexp or somesuch which will scan through a PHP file and convert all the CamelCase code into proper C-type code? That is, "CamelCase"

[PHP] Re: utf-8 ?

2009-04-27 Thread Nathan Rixham
PJ wrote: Since I have to use a number of Western languages that have those annoying accents on many characters, I am already finding some annoyances in my code results; like having to enter the á type of stuff in inputs for searches & queries. MySql db is set up for InnoDB with latin1_swedish_ci

Re: [PHP] Re: utf-8 ?

2009-04-27 Thread Nathan Rixham
Robert Cummings wrote: On Mon, 2009-04-27 at 20:56 +0600, 9el wrote: I looked at http://developer.loftdigital.com/blog/php-utf-8-cheatsheet which suggests this: ALTER DATABASE db_name CHARACTER SET utf8 DEFAULT CHARACTER SET utf8 COLLATE utf8_general_ci DEFAULT COLLATE utf8_general_ci ; ALTER T

[PHP] Re: Unit Testing

2009-04-27 Thread Nathan Rixham
Philip Thompson wrote: Hi. I did some searching in the archives, but didn't quite find what I was looking for. Maybe a few of you can assist me... We have an application that's currently in production, but we're constantly modifying/upgrading it. We did not do unit testing early on because of

Re: [PHP] Re: Unit Testing

2009-04-28 Thread Nathan Rixham
ally describe when is the best time to test according to a certain structure... Simon On Mon, Apr 27, 2009 at 12:16 PM, Nathan Rixham wrote: Philip Thompson wrote: Hi. I did some searching in the archives, but didn't quite find what I was looking for. Maybe a few of you can assist

Re: [PHP] speaking of control structures...

2009-05-06 Thread Nathan Rixham
Robert Cummings wrote: On Wed, 2009-05-06 at 08:41 -0400, Tom Worster wrote: On 5/6/09 7:05 AM, "Robert Cummings" wrote: That seems like an abuse of exceptions. But then we're already abusing loops. I just don't think one could say it's the proper way to do it :) i don't have a lot of intere

[PHP] Re: SimpleXML Class

2009-05-06 Thread Nathan Rixham
Cesco wrote: Could you help me clarify one thing that I don't understand... let's put it simple, just imagine that I have a tiny XML document with a list of movies: Gone with the wind I want to read this XML file and write the name of the first (and only) movie in the lis

[PHP] Re: Remote MySQL Connecton Problems

2009-05-07 Thread Nathan Rixham
Ray Hauge wrote: Hello everyone, I've run into a bit of a sticky situation trying to connect to a remote MySQL database. Here's the background: Connecting from the command line on the web server works. Connecting from a different vhost works. There's no information in mysql_error. In fact

[PHP] Re: Remote MySQL Connecton Problems

2009-05-07 Thread Nathan Rixham
Ray Hauge wrote: Nathan Rixham wrote: Ray Hauge wrote: Hello everyone, I've run into a bit of a sticky situation trying to connect to a remote MySQL database. Here's the background: Connecting from the command line on the web server works. Connecting from a different v

Re: [PHP] speaking of control structures...

2009-05-07 Thread Nathan Rixham
Robert Cummings wrote: On Thu, 2009-05-07 at 09:33 -0400, Tom Worster wrote: On 5/6/09 9:31 PM, "Clancy" wrote: I can understand your reluctance to disregard your mother's advice, but unfortunately she had been brainwashed to accept the dogma of the day. actually, i don't believe so. she did

Re: [PHP] php-general@lists.php.net, Tim-Hinnerk Heuer has invited you to open a Google mail account

2009-05-09 Thread Nathan Rixham
Lenin wrote: Yeah gmail is a nice thing :) The best ever mailing system world has ever seen until now. Because now you can get new LeninMail from phpXperts - it works offline, it works in your fridge, you car, your bath, everywhere conventional mail doesn't work. LeninMail combines all th

[PHP] Re: Can includes be used for head tags?

2009-05-11 Thread Nathan Rixham
Gary wrote: Thank you to everyone again for your help... Gary ""Gary"" wrote in message news:52.b9.21821.82558...@pb1.pair.com... I was thinking of creating a php include for the tags for a site. Is this possible? Gary just an idea.. if you ran the content of the page through a sem

[PHP] Re: Trying to create a colortable - what am I missing here?

2009-05-11 Thread Nathan Rixham
דניאל דנון wrote: I've tried to make a color table, but I am missing something. not in the color-table-code itself, but in somewhere else... I just can't find... untested but try.. // 4096*4096 = 16777216 = FF+1 $im = imagecreate(4096, 4096); $white = imagecolorallocate($im, 0, 0, 0); $r =

[PHP] Re: Nasty hacker spammer script

2009-05-12 Thread Nathan Rixham
The Doctor wrote: Has anyone seen this before? if (trim($_GET['x'])!=''){...@include($_GET['x']);exit();} lol - that's really bad if you're going to waste your time exploiting peoples stuff at least: make it so it'll actually run something don't include your personal email in the script encry

[PHP] Re: [php] tcp server connection

2009-05-12 Thread Nathan Rixham
Andrew Williams wrote: Can someone help me about how to retrieve data using TCP server connection you'll need to be a bit more specific to get any useful help back mate.. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: [php] tcp server connection

2009-05-12 Thread Nathan Rixham
Hi Andrew, You'll be needing the stream functions I'd guess (this si how I always do it, with no problems) http://php.net/stream_socket_client is your starting point. Many Regards, Nathan Andrew Williams wrote: I need to connect to server using IP connection to get raw data, p

Re: [PHP] Re: Can includes be used for head tags?

2009-05-12 Thread Nathan Rixham
tedd wrote: At 9:32 PM +0100 5/11/09, Nathan Rixham wrote: Gary wrote: Thank you to everyone again for your help... Gary ""Gary"" wrote in message news:52.b9.21821.82558...@pb1.pair.com... I was thinking of creating a php include for the tags for a site. Is t

Re: RES: [PHP] CURL problems still

2009-05-12 Thread Nathan Rixham
Miller, Terion wrote: Well I tried it and still it stopped at the "C's" 1: your script is timing out, you need to set the time limit higher set_time_limit(0); 2: foreach($html->find('table') as $table) { $rows = explode('' , $table ); $headerCells = explode('', array_shift($rows)); $struct =

Re: RES: [PHP] CURL problems still

2009-05-12 Thread Nathan Rixham
Nathan Rixham wrote: Miller, Terion wrote: Well I tried it and still it stopped at the "C's" 1: your script is timing out, you need to set the time limit higher set_time_limit(0); 2: foreach($html->find('table') as $table) { $rows = explode('&#x

[PHP] Re: irrational behavior

2009-05-12 Thread Nathan Rixham
PJ wrote: Could somebody please explain this? When the line - sort($category) is commented out, the output returns Notice: Undefined offset: in the line "36" for all the repeats (29 in this case) The code below: ", $cat, ""; $ii++; } $ii = $lastIndex; //echo $category[$ii]['category']; w

Re: [PHP] handling chunked input from php://stdin

2009-05-13 Thread Nathan Rixham
Shawn McKenzie wrote: whisperstream wrote: I have a server running that receives xml formatted events from other services I have no control over. For certain events the transfer-encoding is chunked. I was just doing $input = file_get_contents('php://stdin'); and this works well until there i

[PHP] Re: [PHP ADVANCE] tcp CLIENT server connection and authentication

2009-05-13 Thread Nathan Rixham
Andrew Williams wrote: Hi All, please, I need to connect to IP via a specific port en validate my user name and password to get data. Port : XXX7X Andrew, You're going to have some real fun with this one making the tcp connection is the least of your worries, sounds very much like a raw

[PHP] Re: [PHP ADVANCE] tcp CLIENT server connection and authentication

2009-05-13 Thread Nathan Rixham
ed, May 13, 2009 at 12:22 PM, Nathan Rixham wrote: Andrew Williams wrote: Hi All, please, I need to connect to IP via a specific port en validate my user name and password to get data. Port : XXX7X Andrew, You're going to have some real fun with this one making the tcp connection is th

Re: [PHP] SMS gateway

2009-05-13 Thread Nathan Rixham
Daniel Brown wrote: On Wed, May 13, 2009 at 10:00, Manoj Singh wrote: Hi All, I need to create the SMS functionality in PHP. Do you have any idea of Open Source SMS gateway which i can use? http://google.com/search?q=open+source+sms+gateway If you have any idea of how SMS works, yo

[PHP] Re: Adding corners to image

2009-05-13 Thread Nathan Rixham
דניאל דנון wrote: I am currently searching for the most efficient way to add corners to existing images. Not just round corners - pre-made colorful with "pattern" images. So first thing I'm thinking about what I'll need, and I think that for each corner I'll need: - Corner pattern - Strai

Re: [PHP] Sending SMS through website

2009-05-13 Thread Nathan Rixham
Andrew Ballard wrote: On Wed, May 13, 2009 at 1:55 PM, Per Jessen wrote: kyle.smith wrote: Most carriers have email-to-sms bridges. For example, I use AT&T Wireless and you can text me by sending an email to myphonenum...@txt.att.net. Do you end up paying for that then - or who pays for it?

Re: [PHP]Cannot output the same data from text file in PHP

2009-05-14 Thread Nathan Rixham
as far as i know you just send an email to: php-general-unsubscr...@lists.php.net and then reply to the confirmation - its a standard mailing list which you subscribed to at some point, no profiles or such like. Mike Roberts wrote: Is there a moderator or some responsible party who is in char

[PHP] Re: suggestion required

2009-05-14 Thread Nathan Rixham
. If you really come up short you can look at using alchemy to embed some C processing code in there, it really speeds up the process of working with huge ByteArrays as the c code is preoptimised and runs much faster. Many Regards, Nathan -- PHP General Mailing List (http://www.ph

Re: [PHP] Software to read/write Excel to CD?

2009-05-14 Thread Nathan Rixham
Paul M Foster wrote: On Thu, May 14, 2009 at 03:22:12PM -0500, Skip Evans wrote: Hey all, I'm inheriting a project that was unsuccessfully off-shored and is now in such bad shape (I've seen the code. It's awful) that they are firing the off-shore company and starting over. One of the things t

[PHP] Re: php ssl connection timeout issue

2009-05-14 Thread Nathan Rixham
Jerry Zhao wrote: Hi, I am having trouble connecting to https sites using php's builtin ssl functions. I tried: file_get_contents('https://securesite') fsockopen('ssl://securesite', 443, $errno, $errstr,20) and same errors every time: SSL: connection timeout Failed to enable crypto Call to ope

[PHP] Re: php ssl connection timeout issue

2009-05-14 Thread Nathan Rixham
Jerry Zhao wrote: I tried different combination of ssl clients and servers, it all points to problems on the client side of my new php build. The same code worked on an older php build. checked the output of print_r( stream_get_wrappers() );? -- PHP General Mailing List (http://www.php.net/)

[PHP] Re: php ssl connection timeout issue

2009-05-14 Thread Nathan Rixham
Jerry Zhao wrote: On Thu, May 14, 2009 at 5:05 PM, Nathan Rixham wrote: Jerry Zhao wrote: I tried different combination of ssl clients and servers, it all points to problems on the client side of my new php build. The same code worked on an older php build. checked the output of print_r

Re: [PHP] CSS & tables

2009-05-15 Thread Nathan Rixham
tedd wrote: At 2:06 PM -0400 5/15/09, Tom Worster wrote: for one thing, a table is a great way of representing relations (http://mathworld.wolfram.com/Relation.html). data tables are the canonical example but very often a form's structure is a relation, e.g. between labels and input fields, o

[PHP] Re: read the last line in a file?

2009-05-15 Thread Nathan Rixham
Tom Worster wrote: imagine writing a script to run as a daemon reading data off the bottom of a log file that gets updated every few minutes and processing each new log line as they arrive. i could exec("tail $logfile", $lines, $status) every now and then. or poll the file mtime and run exec("ta

Re: [PHP] CSS & tables

2009-05-17 Thread Nathan Rixham
Ashley Sheridan wrote: On Sat, 2009-05-16 at 09:15 -0400, Robert Cummings wrote: On Sat, 2009-05-16 at 10:48 +0100, Ashley Sheridan wrote: On Sat, 2009-05-16 at 02:25 -0400, Paul M Foster wrote: On Fri, May 15, 2009 at 01:25:42PM -0400, PJ wrote: I know of no better place to ask. This may no

Re: [PHP] CSS & tables

2009-05-17 Thread Nathan Rixham
tedd wrote: At 11:28 PM +0100 5/15/09, Nathan Rixham wrote: tedd wrote: However, there are occasions such as in a calendar where not using a table would be more than difficult. I haven't received a decree yet as to IF that would be considered column data or not. I'm gonna differ o

Re: [PHP] CSS & tables

2009-05-17 Thread Nathan Rixham
tedd wrote: At 10:48 AM +0100 5/16/09, Ashley Sheridan wrote: Trust me, semantics are gonna be the next big thing, Semantics? What do you mean by that? And therein lies the problem -- what means something to me, may not to you. For example, if I make my header (or whatever) what makes it

Re: [PHP] CSS & tables

2009-05-17 Thread Nathan Rixham
tedd wrote: At 7:48 PM -0400 5/16/09, Stephen wrote: PJ wrote: I know of no better place to ask. This may not be strictly a PHP issue, but... I am busting my hump trying to format rather large input pages with CSS and trying to avoid tables; but it looks to me like I am wasting my time as posit

Re: [PHP] CSS & tables

2009-05-17 Thread Nathan Rixham
Paul M Foster wrote: On Sun, May 17, 2009 at 08:40:33PM +0100, Nathan Rixham wrote: tedd wrote: At 11:28 PM +0100 5/15/09, Nathan Rixham wrote: tedd wrote: However, there are occasions such as in a calendar where not using a table would be more than difficult. I haven't received a d

Re: [PHP] CSS & tables

2009-05-17 Thread Nathan Rixham
Paul M Foster wrote: On Sun, May 17, 2009 at 11:20:19PM +0100, Nathan Rixham wrote: Paul M Foster wrote: On Sun, May 17, 2009 at 08:40:33PM +0100, Nathan Rixham wrote: tedd wrote: At 11:28 PM +0100 5/15/09, Nathan Rixham wrote: tedd wrote: However, there are occasions such as in a

Re: [PHP] CSS & tables

2009-05-18 Thread Nathan Rixham
tedd wrote: At 4:05 AM +0100 5/18/09, Nathan Rixham wrote: Paul M Foster wrote: And by the way, this attitude of "My code is fine; your browser sucks; upgrade" can be the worst kind of arrogance, and people react to it exactly as though it were arrogance. There used to be the sa

Re: [PHP] CSS & tables

2009-05-18 Thread Nathan Rixham
tedd wrote: At 8:52 PM +0100 5/17/09, Nathan Rixham wrote: semantics already are the next big thing and have been for a year or three. google aquired the leading semantic analysis software many years ago and have been using it ever since, likewise with yahoo and all the majors. further we&#x

Re: [PHP] CSS & tables

2009-05-18 Thread Nathan Rixham
tedd wrote: At 5:14 PM +0100 5/18/09, Nathan Rixham wrote: -- computing ... .. . hows the childhood memories? I had a childhood? Cheers, tedd not sure? check the photo album - that's what I do - then look on like a 3rd person -- PHP General Mailing List (http://www.ph

Re: [PHP] CSS & tables

2009-05-19 Thread Nathan Rixham
I just wanted to run this past you guys for thoughts and opinions or even just to get brains ticking, it's all web development related and touched on throughout this thread. At the core of this we have a single problem, we create websites and web based applications, which we want to be deliver

Re: [PHP] CSS & tables

2009-05-19 Thread Nathan Rixham
PJ wrote: Nathan Rixham wrote: lol Glad as they say did you ever get any help explaining css? just in case here's the ultra basics you have selectors and declarations selectors can be: .classname (a class, to be applied to many objects) #someid (a single object) p (redefine an

Re: [PHP] CSS & tables

2009-05-19 Thread Nathan Rixham
Shawn McKenzie wrote: Nathan Rixham wrote: I just wanted to run this past you guys for thoughts and opinions or even just to get brains ticking, it's all web development related and touched on throughout this thread. At the core of this we have a single problem, we create websites an

Re: [PHP] CSS & tables

2009-05-19 Thread Nathan Rixham
Shawn McKenzie wrote: Nathan Rixham wrote: Shawn McKenzie wrote: Nathan Rixham wrote: I just wanted to run this past you guys for thoughts and opinions or even just to get brains ticking, it's all web development related and touched on throughout this thread. At the core of this we h

Re: [PHP] CSS & tables

2009-05-19 Thread Nathan Rixham
Shawn McKenzie wrote: Nathan Rixham wrote: Java anyone? eh? how do you get java from that? . user requests content sub-client required and application location are sent to users client. sub-client is launched within users client sub-client loads required application application connects

Re: [PHP] Posting values to a URL

2009-05-19 Thread Nathan Rixham
dele454 wrote: hi, I am working on integrating a credit payment service from setcom. on completion of transaction setcom sends bunch of post variables that my script has to send back to setcom to get the details of the transaction as an xml file. I am using the pecl_http extension(http_post_fie

Re: [PHP] Re: Parsing of forms

2009-05-19 Thread Nathan Rixham
Daniele Grillenzoni wrote: On 19/05/2009 18.09, Andrew Ballard wrote: On Tue, May 19, 2009 at 10:11 AM, Ford, Mike wrote: On 19 May 2009 14:37, Daniele Grillenzoni advised: My complaint is this: a I can have a select multiple with a normal name, which is allowed by every spec, but PHP requi

Re: [PHP] Re: Parsing of forms

2009-05-20 Thread Nathan Rixham
Daniele Grillenzoni wrote: On 20/05/2009 2.45, Nathan Rixham wrote: Daniele Grillenzoni wrote: On 19/05/2009 18.09, Andrew Ballard wrote: On Tue, May 19, 2009 at 10:11 AM, Ford, Mike wrote: On 19 May 2009 14:37, Daniele Grillenzoni advised: My complaint is this: a I can have a select

[PHP] Re: Accepting Credit Card Payments

2009-05-20 Thread Nathan Rixham
Gary wrote: Sorry, the first post were put in the wrong place... Not sure this is a direct PHP question, however I know I will get some answers here. I have a customer that I am bidding a small project for. They want to be able to accept credit card payments for enrollment into a class. The

[PHP] Re: Accepting Credit Card Payments

2009-05-20 Thread Nathan Rixham
Nathan Rixham wrote: 4: all of that is unless you go paypal, a simple paypal buynow button would be a piece of cake and just the ticket also as mentioned google checkout - or you could go with e-junkie.com who offer a cart with either paypal or google checkout and its a nice robust solution

[PHP] Re: PHP5 based Web-Chat?

2009-05-21 Thread Nathan Rixham
yours, not of a very strong opinion, nathan -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[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

[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: 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: PHP class question

2009-05-21 Thread Nathan Rixham
a design pattern issue and really can't help any more unless you give some specifics. (like the source of your classes and the framework class you need to extend) regards, nathan incidentally, I play inheritance vs composition as game with my 4 year old son, and he's really good - the

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

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

[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: 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] templating engine options

2009-05-23 Thread Nathan Rixham
't be part of a framework, (or if it is easily extracted with no framework dependencies), and not xslt (love xslt, but not many designers do!). many regards, Nathan -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

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

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] 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] 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

[PHP] php dev environment

2009-05-24 Thread Nathan Rixham
somebody! regards, nathan -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

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] 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] 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

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] 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] 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
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] 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] 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] 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

[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] 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

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
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

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-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

[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
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

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] [php] php_network_getaddresses: getaddrinfo failed: No such host is known

2009-05-28 Thread Nathan Nobbe
so put the port after the hostname ;) -nathan

Re: [PHP] [php] php_network_getaddresses: getaddrinfo failed: No such host is known

2009-05-28 Thread Nathan Nobbe
r is '^]'. SSH-2.0-OpenSSH_4.5 again, you may want to consult the docs on your system to hunt down the issue.. -nathan

Re: [PHP] PHP vs ASP.NET

2009-05-28 Thread Nathan Nobbe
practically the same, the performance should also be practically the same?? this year, i actually had a self-proclaimed .net guy essentially admit that it was just a bunch of propaganda, like everything else they push. -nathan

Re: Re: [PHP] Re: PHP, OOP and AJAX

2009-05-28 Thread Nathan Nobbe
. (and of course ci is written w/ php4 support in mind, which obviously eliminates __autoload in their scenario) im also skeptical of the advantages dynamic loading offers in systems running an opcode cache. essentially after initially caching a scripts opcodes, successive include/require calls are a hit to the cache to see its already there. im sure dynamic loading is offers dramatic performance gains systems not running opcode caches though. -nathan

Re: [PHP] PHP, OOP and AJAX

2009-05-28 Thread Nathan Nobbe
cs of php, you may want to peak at the prado framework. originally (and likely still) its modeled after ASP.net. might ease the pain of your trasistion a bit, but im not sure, b/c i dont know asp.net and ive not used prado. just a thought, really. http://www.pradosoft.com/ -nathan

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