Re: [PHP] Couple of beginner questions

2009-01-11 Thread Nathan Rixham
Robert Cummings wrote: On Sun, 2009-01-11 at 17:01 +, Nathan Rixham wrote: i love these discussions on pedantics and semantics! personally (when I need to) I always go for a bit of concatenation so in the example above: // somewhere in the business logic / functional layer $imgHTML

Re: [PHP] is_readable(http://.... text file) says not, but I canin browser

2009-01-11 Thread Nathan Rixham
John Allsopp wrote: Nathan Nobbe wrote: On Sun, Dec 28, 2008 at 11:02 AM, John Allsopp wrote: Hi I'm sure this is simple for yous all but I'm not sure I know the answer. $myFileLast = "http://www.myDomain.com/text.txt";; if (is_readable($myFileLast))

Re: [PHP] is_readable(http://.... text file) says not, but I canin browser

2009-01-11 Thread Nathan Rixham
John Allsopp wrote: Daniel Brown wrote: On Sun, Dec 28, 2008 at 13:02, John Allsopp wrote: $myFileLast = "http://www.myDomain.com/text.txt";; if (is_readable($myFileLast)) { $fh = fopen($myFileLast, 'r'); $theDataLast = fread($fh, 200); fclose(

Re: [PHP] is_readable(http://.... text file) says not, but I can in browser

2009-01-11 Thread Nathan Rixham
Daniel Brown wrote: On Sun, Jan 11, 2009 at 13:07, John Allsopp wrote: Thanks, that worked a treat except I was getting warnings on 404. I looked around for solutions to that and it appears curl might handle that better, so I'm currently working on that. Many thanks tho .. let me know if you kn

Re: [PHP] Couple of beginner questions

2009-01-11 Thread Nathan Rixham
Robert Cummings wrote: On Sun, 2009-01-11 at 18:14 +, Nathan Rixham wrote: Robert Cummings wrote: the above means that moving back to the original example(s) I'd simply whatever I'd probably do: Whatever Which would expand to: Whatever Which would expand

Re: [PHP] Couple of beginner questions

2009-01-12 Thread Nathan Rixham
Paul M Foster wrote: But here's a question for those of you who work in a collaborative environment-- are you really ever in a situation where some HTML weenie is coding HTML pages and you're somewhere else doing the PHP work? Or is that some academic's view of the way things *should* be done? P

Re: [PHP] Couple of beginner questions

2009-01-12 Thread Nathan Rixham
Peter Ford wrote: Paul M Foster wrote: (snip) But here's a question for those of you who work in a collaborative environment-- are you really ever in a situation where some HTML weenie is coding HTML pages and you're somewhere else doing the PHP work? Or is that some academic's view of the way t

[PHP] Re: php_value error_log realtive path in 5.2.8

2009-01-12 Thread Nathan Rixham
Andre Hübner wrote: Hi, please can someone try to add a logging with .htaccess and use a relative path to logfile? I always get an open_basedir error... open_basedir and document_root of domain points to: /path/path/ In /path/path/ is located the .htaccess with: php_flag log_errors on php_val

[PHP] Re: php_value error_log realtive path in 5.2.8

2009-01-12 Thread Nathan Rixham
Andre Hübner wrote: - Original Message - From: "Nathan Rixham" To: "Andre Hübner" Cc: Sent: Monday, January 12, 2009 11:19 AM Subject: Re: php_value error_log realtive path in 5.2.8 Andre Hübner wrote: Hi, please can someone try to add a logging with

Re: [PHP] RSS feeder in PHP5?

2009-01-12 Thread Nathan Rixham
Craig Whitmore wrote: On Mon, 2009-01-12 at 11:02 +, Richard Heyes wrote: Is there something in PHP5 which can generate the RSS feed? You don't need an extension to help you generate an XML feed. You dimply output XML data instead of HTML and send an appropriate content type header, eg: he

Re: [PHP] RSS feeder in PHP5?

2009-01-12 Thread Nathan Rixham
Nathan Rixham wrote: here's an example / test code: $title = stripJunkSimple(stripslashes(htmlentities($item['title']))); there are a couple of custom functions in this script i forgot to pull out so stripJunkSimple can be removed and the db lookup replaced with you'

Re: [PHP] RSS feeder in PHP5?

2009-01-12 Thread Nathan Rixham
Richard Heyes wrote: header('Content-Type: text/xml'); You actually mean application/xml not text/xml Well, no. I use text/xml and have done for nearly 5 years, and it works fine. it does, but in 2006 it was upgraded to application/rss+xml for all rss versions; all the ma

[PHP] Re: php_value error_log realtive path in 5.2.8

2009-01-12 Thread Nathan Rixham
Andre Hübner wrote: - Original Message - From: "Nathan Rixham" To: "Andre Hübner" Sent: Monday, January 12, 2009 12:18 PM Subject: Re: php_value error_log realtive path in 5.2.8 Andre Hübner wrote: - Original Message - From: "Nathan Rixham&qu

[PHP] Re: RewriteRules

2009-01-12 Thread Nathan Rixham
Jason Pruim wrote: Hi Everyone, I know it's not a php question... But I know alot of you use rewrite rules and regular expressions and so I thought maybe you would be able to help me. The site: HTTP://purl.raoset.com/test112 test112 doesn't exist.. It's driven by the database using this rew

[PHP] Re: downloading xls files corrupts them

2009-01-12 Thread Nathan Rixham
Chris Ditty wrote: I am using php to download xls files on my server. When I download them, excel is saying they are corrupted. They are not corrupted on the server itself. These are simple xls spreadsheets with no formatting in them. Here is the headers that I am using for the download.

[PHP] Re: downloading xls files corrupts them

2009-01-12 Thread Nathan Rixham
Chris Ditty wrote: I am using php to download xls files on my server. When I download them, excel is saying they are corrupted. They are not corrupted on the server itself. These are simple xls spreadsheets with no formatting in them. Here is the headers that I am using for the download.

Re: [PHP] Couple of beginner questions

2009-01-12 Thread Nathan Rixham
Ashley Sheridan wrote: On Mon, 2009-01-12 at 11:51 -0500, Frank Stanovcak wrote: "Ashley Sheridan" <> wrote in message news:1231681793.3527.2.ca...@localhost.localdomain... On Sun, 2009-01-11 at 08:08 -0500, tedd wrote: At 4:16 PM -0500 1/10/09, Paul M Foster wrote: And let me present an alte

Re: [PHP] Data trasfer between PHP pages

2009-01-12 Thread Nathan Rixham
Eric Butera wrote: On Mon, Jan 12, 2009 at 3:21 PM, Robert Cummings wrote: On Mon, 2009-01-12 at 15:15 -0500, Eric Butera wrote: On Mon, Jan 12, 2009 at 3:03 PM, Ashley Sheridan wrote: I tend to use $_REQUEST to capture a lot of my data, as I end up mixing get and post a lot throughout my co

Re: [PHP] Couple of beginner questions

2009-01-12 Thread Nathan Rixham
Robert Cummings wrote: On Mon, 2009-01-12 at 16:02 -0500, tedd wrote: True, css does not allow numeric classes (like sessions). But, I never need them anyway. As I provided before: http://webbytedd.com/b/color-rows/ this is my solution for alternating row style. abc abc abc

Re: [PHP] Couple of beginner questions

2009-01-12 Thread Nathan Rixham
Robert Cummings wrote: On Mon, 2009-01-12 at 21:36 +, Nathan Rixham wrote: Robert Cummings wrote: On Mon, 2009-01-12 at 16:02 -0500, tedd wrote: True, css does not allow numeric classes (like sessions). But, I never need them anyway. As I provided before: http

Re: [PHP] Couple of beginner questions

2009-01-12 Thread Nathan Rixham
Nathan Rixham wrote: Robert Cummings wrote: On Mon, 2009-01-12 at 21:36 +, Nathan Rixham wrote: Robert Cummings wrote: On Mon, 2009-01-12 at 16:02 -0500, tedd wrote: True, css does not allow numeric classes (like sessions). But, I never need them anyway. As I provided

[PHP] Re: RewriteRules

2009-01-13 Thread Nathan Rixham
Jason Pruim wrote: On Jan 12, 2009, at 2:16 PM, Nathan Rixham wrote: Jason Pruim wrote: Hi Everyone, I know it's not a php question... But I know alot of you use rewrite rules and regular expressions and so I thought maybe you would be able to help me. The site: HTTP://purl.raose

Re: [PHP] switch vs elseif

2009-01-13 Thread Nathan Rixham
Jochem Maas wrote: Micah Gersten schreef: Jochem Maas wrote: switch (true) { should be switch(false) { :-) -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: php session GC error

2009-01-13 Thread Nathan Rixham
Frank Stanovcak wrote: "Shawn McKenzie" wrote in message news:f8.ef.24097.e510d...@pb1.pair.com... Frank Stanovcak wrote: I'm trying to make sure that my sessions are timed out by my server. I'm running it on winxp, and my php.ini contains the following session.gc_probability = 1 session.gc_d

[PHP] Re: php session GC error

2009-01-13 Thread Nathan Rixham
Frank Stanovcak wrote: So from everything I've read there is no real way to assure a session timeout with out timestamping it myself and dealing with it in code by doing a time compare. bummer. you're probably storing the session in a session cookie (which is default) so session.cookie_life

Re: [PHP] ArrayObject - Posibillity to add key => value pair per default?

2009-01-14 Thread Nathan Nobbe
rrayAccess interface. http://www.php.net/~helly/php/ext/spl/interfaceArrayAccess.html -nathan

Re: [PHP] Re: ArrayObject - Posibillity to add key => value pair per default?

2009-01-14 Thread Nathan Nobbe
t ArrayAccess support array notation, such as SimpleXMLElement. Class [ class SimpleXMLElement implements Traversable ] > Or is this functionality introduced with implementing the array > interface? > its ArrayAccess, and yes; however internal classes dont *need* to implement it in order to expose the array notation, afaik. -nathan

Re: [PHP] PHP, Smarty, and Text

2009-01-14 Thread Nathan Rixham
VamVan wrote: On Tue, Jan 13, 2009 at 6:49 PM, Daniel Kolbo wrote: Hello, I've been using PHP and Smarty for several years now and I am happy with this "division" of data from presentation. With this philosophy in mind, i am a bit perplexed as to how to handle the text on my sites. That is,

[PHP] Re: HTML pages are faster then php?

2009-01-14 Thread Nathan Rixham
Lamp Lists wrote: hi, as far as I know (at least I was told so) html page will download faster then the same page made with php getting the same info from mysql, right? let's pretend we are building php/mysq based website of one football team. there are pages of every player, about the team, g

Re: [PHP] Sometime the code works and sometimes doesn't

2009-01-16 Thread Nathan Rixham
Chris Carter wrote: There must be something that I am doing wrong. Otherwise I could have always gotten the password in my mailbox. Please help. when the php mail function sends an email, there is a brief time while the connection to the mail server resets, if you hit again in this time it'l

Re: [PHP] To check for existing user in database

2009-01-16 Thread Nathan Rixham
Eric Butera wrote: $result = mysql_query($query) or die(mysql_error()); You know guys, after seeing all this talk of sql injection over the past few days, I'd also like to point out or die is pretty bad too. Especially when coupled with mysql_error(). It can expose sensitive system info (secur

[PHP] Almost Recursion

2009-01-16 Thread Nathan Rixham
Here's a little recursion problem I'd like some input on - the task, to remove recursion from this little set of 3 classes, without removing any functionality. more classes and interfaces can be added - if I get a solution I'll mail it in. additional question.. quite sure this isn't actually

[PHP] Re: Almost Recursion

2009-01-16 Thread Nathan Rixham
Nathan Rixham wrote: Here's a little recursion problem I'd like some input on - the task, to remove recursion from this little set of 3 classes, without removing any functionality. to be very specific; the problem is caused by a serializer (which cannot change); now this serial

[PHP] Re: function_exists question

2009-01-16 Thread Nathan Rixham
Matt Pagel wrote: Is there a way to check not only if a function exists, but also to check that the number and types of parameters desired match a function definition? The reason being that additional options have been added in php 4 and 5 to various standard function calls, but I'm still run

Re: [PHP] Re: Almost Recursion

2009-01-16 Thread Nathan Rixham
Philip Graham wrote: On January 16, 2009 14:45:13 Nathan Rixham wrote: Nathan Rixham wrote: Here's a little recursion problem I'd like some input on - the task, to remove recursion from this little set of 3 classes, without removing any functionality. to be very specific; the

[PHP] Re: php5 with apache 1.x -> white page

2009-01-17 Thread Nathan Rixham
Merlin Morgenstern wrote: got it :-) Both are needed! --with-mysql=/usr/local/mysql' '--with-pdo-mysql=/usr/local/mysql/' Merlin Morgenstern schrieb: Hi there, after strugling a while with the installation of php5 on an older suse system with mysql 3.x and apache 1.x I got it compiled and i

[PHP] Opinions / Votes Needed

2009-01-17 Thread Nathan Rixham
Afternoon all, I'd love to get some votes from my fellow developers on the following, and indeed some opinions (especially from those who disagree). Recently I've been running in to a lot of frustrations with PHP when dealing with Classes and Objects. Personally I strongly feel that these ne

[PHP] Re: Opinions / Votes Needed

2009-01-17 Thread Nathan Rixham
Tony Marston wrote: "Nathan Rixham" wrote in message a: Optional Static Typing I'm finding an ever increasingly need to be able to staticly type properties, parameters, return types etc (in classes) I know there is type hinting but it's just not enough to do what one

Re: [PHP] Re: Opinions / Votes Needed

2009-01-17 Thread Nathan Rixham
Per Jessen wrote: Tony Marston wrote: If you really *need* to used a staticly typed language then don't use PHP, and don't try to change PHP to match your needs. +1 I do.. mainly Java when I need it (can you tell) point is.. Java let's me easily do 70% of what I need to PHP let's me easil

Re: [PHP] Re: Opinions / Votes Needed

2009-01-17 Thread Nathan Rixham
Per Jessen wrote: Nathan Rixham wrote: Tony Marston wrote: If you really *need* to used a staticly typed language then don't use PHP, and don't try to change PHP to match your needs. why not? Because your desired functionality is already satisfied by other programming languages.

Re: [PHP] Re: Opinions / Votes Needed

2009-01-17 Thread Nathan Rixham
Jochem Maas wrote: Nathan Rixham schreef: Tony Marston wrote: "Nathan Rixham" wrote in message a: Optional Static Typing I'm finding an ever increasingly need to be able to staticly type properties, parameters, return types etc (in classes) I know there is type hinting bu

Re: [PHP] Re: Opinions / Votes Needed

2009-01-17 Thread Nathan Rixham
Stuart wrote: 2009/1/17 Nathan Rixham : Tony Marston wrote: "Nathan Rixham" wrote in message a: Optional Static Typing I'm finding an ever increasingly need to be able to staticly type properties, parameters, return types etc (in classes) I know there is type hinting but it&#x

Re: [PHP] Re: Opinions / Votes Needed

2009-01-17 Thread Nathan Rixham
Stuart wrote: 2009/1/17 Nathan Rixham : Per Jessen wrote: Nathan Rixham wrote: Tony Marston wrote: If you really *need* to used a staticly typed language then don't use PHP, and don't try to change PHP to match your needs. why not? Because your desired functionality is already

Re: [PHP] Re: Opinions / Votes Needed

2009-01-17 Thread Nathan Rixham
Stuart wrote: 2009/1/17 Nathan Rixham : Stuart wrote: 2009/1/17 Nathan Rixham : Tony Marston wrote: "Nathan Rixham" wrote in message a: Optional Static Typing I'm finding an ever increasingly need to be able to staticly type properties, parameters, return types etc (in

Re: [PHP] Re: Opinions / Votes Needed

2009-01-18 Thread Nathan Rixham
Per Jessen wrote: Nathan Rixham wrote: Per Jessen wrote: Nathan Rixham wrote: Tony Marston wrote: If you really *need* to used a staticly typed language then don't use PHP, and don't try to change PHP to match your needs. why not? Because your desired functionality is already

Re: [PHP] Re: Opinions / Votes Needed

2009-01-18 Thread Nathan Rixham
Per Jessen wrote: Nathan Rixham wrote: point is.. Java let's me easily do 70% of what I need to PHP let's me easily do 95% of what I need to I'm curious - can you list what the 25% are? it lacks dynamic typing, the ability to procedural code and its precompiled not interp

Re: [PHP] Re: Opinions / Votes Needed

2009-01-18 Thread Nathan Rixham
Per Jessen wrote: Nathan Rixham wrote: You can't have your cake and eat it. You can't/shouldn't have strong and loose typing in the same language. In my opinion. "Instead of providing programmers with a black or white choice between static or dynamic typing, we shoul

Re: [PHP] Re: Opinions / Votes Needed

2009-01-18 Thread Nathan Rixham
Tony Marston wrote: "Skip Evans" wrote in message news:49723137.2010...@bigskypenguin.com... Wow, Tony, do you think in the future you could try to express yourself with just a bit more civility and in a less condescending tone? Nathan expressed some thoughts he had, politely, an

Re: [PHP] Re: Opinions / Votes Needed

2009-01-18 Thread Nathan Rixham
Tony Marston wrote: "Nathan Rixham" wrote in message news:497354c3.9090...@gmail.com... Per Jessen wrote: Nathan Rixham wrote: point is.. Java let's me easily do 70% of what I need to PHP let's me easily do 95% of what I need to I'm curious - can you list w

Re: [PHP] Re: Opinions / Votes Needed

2009-01-18 Thread Nathan Rixham
Tony Marston wrote: "Nathan Rixham" wrote in message news:497366f5.2030...@gmail.com... Tony Marston wrote: "Skip Evans" wrote in message news:49723137.2010...@bigskypenguin.com... Wow, Tony, do you think in the future you could try to express yourself with just a bit mo

Re: [PHP] Re: Opinions / Votes Needed

2009-01-18 Thread Nathan Rixham
Jochem Maas wrote: Per Jessen schreef: Nathan Rixham wrote: Per Jessen wrote: Nathan Rixham wrote: You can't have your cake and eat it. You can't/shouldn't have strong and loose typing in the same language. In my opinion. "Instead of providing programmers with a b

Re: [PHP] Re: Opinions / Votes Needed

2009-01-18 Thread Nathan Rixham
Tony Marston wrote: "Nathan Rixham" wrote in message news:49737051.9080...@gmail.com... Tony Marston wrote: "Nathan Rixham" wrote in message news:497366f5.2030...@gmail.com... Tony Marston wrote: "Skip Evans" wrote in message news:49723137.2010...@bigskype

Re: [PHP] Re: Opinions / Votes Needed

2009-01-18 Thread Nathan Rixham
Tony Marston wrote: "Stuart" wrote in message news:a5f019de0901181015g5e2db21fn2782839ab9648...@mail.gmail.com... 2009/1/18 Tony Marston : "Nathan Rixham" wrote in message news:497366f5.2030...@gmail.com... Tony Marston wrote: "Skip Evans" wrote

[PHP] optional type hinting enhancements

2009-01-18 Thread Nathan Rixham
Hi All, preface: Having discussed at great length previously and probably completely misnaming and thus misleading the conversation here goes again. question: Would anybody else like to see, or feel the need for, *optional* type hinting of variables and class properties in PHP? examples (al

[PHP] Re: Project management systems

2009-01-18 Thread Nathan Rixham
Skip Evans wrote: Hey all (except Tony), treat others how you want them to treat you *passes all his biscuits* - yet lol. I've been using dotProject for a few years now and have been quite happy with it, and have written my own invoicing module, and a few other mods for the way I track hou

Re: [PHP] optional type hinting enhancements

2009-01-18 Thread Nathan Rixham
Jochem Maas wrote: Nathan Rixham schreef: Hi All, preface: Having discussed at great length previously and probably completely misnaming and thus misleading the conversation here goes again. question: Would anybody else like to see, or feel the need for, *optional* type hinting of variables

Re: [PHP] optional type hinting enhancements

2009-01-18 Thread Nathan Rixham
Török Alpár wrote: I see a problem with this. Scalars are automatically casted by PHP based on a set of rules. In case of a scalar type hint, would jo issue an error, or make the automatic type cast? both approaches have there advantages, but the automatic cast, would go better with the actua

Re: [PHP] Re: Opinions / Votes Needed

2009-01-18 Thread Nathan Rixham
Tony Marston wrote: "Stuart" wrote in message news:a5f019de0901181322i2a4cbfaam4d36eff843f42...@mail.gmail.com... 2009/1/18 Tony Marston : In case you have forgotten what this thread is about, the OP gave a list of suggested "improvements" to PHP and asked for opinions. I merely gave my opini

Re: [PHP] optional type hinting enhancements

2009-01-19 Thread Nathan Rixham
question: Would anybody else like to see, or feel the need for, *optional* type hinting of variables and class properties in PHP? This would all be under the assumption and proviso that an implementation would not break bc, have any markable perfomance hit, or in any other way effect existing

Re: [PHP] Re: Opinions / Votes Needed

2009-01-19 Thread Nathan Rixham
Stuart wrote: Also, PHP is procedural with OO capabilities due to its history never understood this comment more - wish I'd given it more thought when it stuck out the first time. - cheers stut time4work! -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.ph

[PHP] Re: Secure redirection?

2009-01-19 Thread Nathan Rixham
Zoran Bogdanov wrote: 1.When the user is successfully authenticated the login.php sends the header, but the AJAX XMLHttpRequest call is still in progress waiting for a PHP response. So when PHP using the header function redirects to another page that page is outputed to the login form... you

[PHP] Re: How serialize DOMDocument object?

2009-01-19 Thread Nathan Rixham
Михаил Гаврилов wrote: How serialize DOMDocument object? describe: "serialize — Generates a storable representation of a value" note: "It is not possible to serialize PHP built-in objects." see: http://uk2.php.net/serialize solve: $s = DOMDocument->saveXML(); // serialized DOMDocument->loadXML

[PHP] developers life

2009-01-19 Thread Nathan Rixham
well just for the hell of it; and because I'm feeling worn.. anybody else find the following true when you're a developer? - frequent bursts of side-tracking onto more interesting subjects - vast amount of inhuman focus, followed by inability to remain focussed - general tendancy to keep taking

[PHP] Re: How to use SVN + PHP

2009-01-19 Thread Nathan Rixham
Edmund Hertle wrote: Hey, I'm thinking about implementing Subversion to an existing php project for obvious reasons. But I have some trouble when thinking about the usage. there are lots of ways of using svn and I'm sure you'll get different opinions.. personally I always create a script to d

Re: [PHP] developers life

2009-01-19 Thread Nathan Rixham
I'm not alone then (didn't think so :p) Ashley Sheridan wrote: On Mon, 2009-01-19 at 21:28 +0000, Nathan Rixham wrote: well just for the hell of it; and because I'm feeling worn.. anybody else find the following true when you're a developer? - frequent bursts of sid

Re: [PHP] developers life

2009-01-19 Thread Nathan Rixham
Robert Cummings wrote: On Mon, 2009-01-19 at 21:28 +, Nathan Rixham wrote: well just for the hell of it; and because I'm feeling worn.. anybody else find the following true when you're a developer? - frequent bursts of side-tracking onto more interesting subjects - vast amount

Re: [PHP] developers life

2009-01-19 Thread Nathan Rixham
Robert Cummings wrote: On Mon, 2009-01-19 at 21:53 +, Nathan Rixham wrote: Robert Cummings wrote: On Mon, 2009-01-19 at 21:28 +, Nathan Rixham wrote: well just for the hell of it; and because I'm feeling worn.. anybody else find the following true when you

Re: [PHP] developers life

2009-01-19 Thread Nathan Rixham
Robert Cummings wrote: On Mon, 2009-01-19 at 21:53 +, Nathan Rixham wrote: Robert Cummings wrote: On Mon, 2009-01-19 at 21:28 +, Nathan Rixham wrote: well just for the hell of it; and because I'm feeling worn.. anybody else find the following true when you

Re: [PHP] developers life

2009-01-19 Thread Nathan Rixham
Bastien Koert wrote: always, flex & php at the moment ahh great to read, flex is amazing, the best product to hit the developers market in years IMHO, coupled with XMPP (say openfire) it's great as well - there's something about flex and xmpp.. say if you were to implement a kind of http ove

Re: [PHP] developers life

2009-01-19 Thread Nathan Rixham
c...@l-i-e.com wrote: ESTJ Apparently, it's time for me to take on a project manager job and quit coding... Oddly enough, I've been thinking I might like to do that, though more of an architect/manager role, really... didn't you already make that change when you became ceo of an intergala

[PHP] Re: How to use SVN + PHP

2009-01-19 Thread Nathan Rixham
Edmund Hertle wrote: 2009/1/19 Nathan Rixham well the idea of svn is that should you find a problem you either rollback the file(s) to the good version (not rollback the whole site) or you commit updated files with the fix, then redeploy. No need to branch or such like. Well, yes, of course

[PHP] Re: Installation problems on Vista

2009-01-19 Thread Nathan Rixham
lucson pierre-charles wrote: I am having problems installing the zip package (PHP5) on Windows Vista. The output will not come on the browser upon testing. Only the code is being output to the browser. Apache (Apache 2) was properly installed. Your assistance please. Regards, Lucson check th

[PHP] Re: How to use SVN + PHP

2009-01-19 Thread Nathan Rixham
sorry i commented in all the wrong places :| Edmund Hertle wrote: By locally created and tested scripts you will of course not have those probs because you're not comitting everything. But locally developing brings some kind of care-taking like making sure you use everywhere the same version (ph

Re: [PHP] developers life

2009-01-19 Thread Nathan Rixham
c...@l-i-e.com wrote: Apparently, it's time for me to take on a project manager job and quit coding... Oddly enough, I've been thinking I might like to do that, though more of an architect/manager role, really... didn't you already make that change when you became ceo of an intergalactic enter

[PHP] Re: 64bit vs. 32bit

2009-01-19 Thread Nathan Rixham
dbrooke wrote: Hello, I am interested in hearing opinions about if there are reasons to stay with a 32bit php/apache if there is 64bit options available. What are the pros/cons in running in the different architectures? (Fat Binary apache2, *nix platform) Thanks, Donovan just to add in; I us

[PHP] Re: developers life

2009-01-19 Thread Nathan Rixham
Ross McKay wrote: On Mon, 19 Jan 2009 21:28:05 +, Nathan Rixham wrote: well just for the hell of it; and because I'm feeling worn.. anybody else find the following true when you're a developer? [...] Yes. well.. so its common to developers in uk, usa, canada, australia,

Re: [PHP] Re: developers life

2009-01-19 Thread Nathan Rixham
Kyle Terry wrote: On Mon, Jan 19, 2009 at 3:22 PM, Nathan Rixham wrote: Ross McKay wrote: On Mon, 19 Jan 2009 21:28:05 +, Nathan Rixham wrote: well just for the hell of it; and because I'm feeling worn.. anybody else find the following true when you're a developer? [

[PHP] Re: How to use SVN + PHP

2009-01-19 Thread Nathan Rixham
Edmund Hertle wrote: 2009/1/20 Nathan Rixham you don't have to locally develop, you can develop however you want :) svn is just version controlling all your files to make it easier to team work and to rollback code. you then tag good versions of the code in svn so you have a permanent ea

[PHP] maybe we could all?

2009-01-19 Thread Nathan Rixham
Project: PHP Common Objects and Datatypes method: for everybody who wishes to contribute, and for everybody to review, discuss and work on the same classes. what are they: classes we can all use, that have been discussed, reviewed and agreed between many great developers around the world. t

Re: [PHP] maybe we could all?

2009-01-19 Thread Nathan Rixham
Kyle Terry wrote: On Mon, Jan 19, 2009 at 4:09 PM, Edmund Hertle < edmund.her...@student.kit.edu> wrote: 2009/1/20 Nathan Rixham Project: PHP Common Objects and Datatypes method: for everybody who wishes to contribute, and for everybody to review, discuss and work on the same c

[PHP] Re: [PHP-DEV] maybe we could all?

2009-01-19 Thread Nathan Rixham
Daniel Brown wrote: On Mon, Jan 19, 2009 at 19:28, Daniel Brown wrote: Maybe you could call it PEAR. ;-P (Sent too quickly. Meant to include this, too:) A good place to start is by showing how this would benefit from things like PEAR and PECL. care to contrib that info / thou

Re: [PHP] maybe we could all?

2009-01-19 Thread Nathan Rixham
Edmund Hertle wrote: 2009/1/20 Nathan Rixham sounds good; (discussion begins) - but if we're all going to use them in production maybe we'd need to use say php 5.1.6 or the most common accross all os's and servers..? how many servers will have php 5.3 support from the off (think

Re: [PHP] maybe we could all?

2009-01-19 Thread Nathan Rixham
Eric Butera wrote: On Mon, Jan 19, 2009 at 8:00 PM, Kyle Terry wrote: On Mon, Jan 19, 2009 at 4:58 PM, Edmund Hertle < edmund.her...@student.kit.edu> wrote: 2009/1/20 Nathan Rixham sounds like a starting point. and the starting point imho, interfaces and abstracts

Re: [PHP] maybe we could all?

2009-01-19 Thread Nathan Rixham
Kyle Terry wrote: On Mon, Jan 19, 2009 at 5:12 PM, Nathan Rixham wrote: Eric Butera wrote: On Mon, Jan 19, 2009 at 8:00 PM, Kyle Terry wrote: On Mon, Jan 19, 2009 at 4:58 PM, Edmund Hertle < edmund.her...@student.kit.edu> wrote: 2009/1/20 Nathan Rixham sounds like a starting poin

Re: [PHP] maybe we could all?

2009-01-19 Thread Nathan Rixham
Kyle Terry wrote: On Mon, Jan 19, 2009 at 5:42 PM, Eric Butera wrote: On Mon, Jan 19, 2009 at 8:35 PM, Nathan Rixham wrote: and on the other side.. to open things up interface Object { } or abstract class Object { } or class Object { } nothing else for now: reason: to address the

Re: [PHP] maybe we could all?

2009-01-19 Thread Nathan Rixham
Eric Butera wrote: On Mon, Jan 19, 2009 at 8:35 PM, Nathan Rixham wrote: Kyle Terry wrote: and on the other side.. to open things up interface Object { } or abstract class Object { } or class Object { } nothing else for now: reason: to address the current and forseable lack of function

Re: [PHP] maybe we could all?

2009-01-19 Thread Nathan Rixham
Eric Butera wrote: On Mon, Jan 19, 2009 at 9:13 PM, Kyle Terry wrote: On Mon, Jan 19, 2009 at 6:07 PM, Daniel Brown wrote: On Mon, Jan 19, 2009 at 19:58, Edmund Hertle wrote: Well, I think we should not go to fast... maybe we are setting up SVN, webspace, domain, mailing-list and in the en

Re: [PHP] maybe we could all?

2009-01-19 Thread Nathan Rixham
Daniel Brown wrote: On Mon, Jan 19, 2009 at 19:58, Edmund Hertle wrote: Well, I think we should not go to fast... maybe we are setting up SVN, webspace, domain, mailing-list and in the end this is only used by 4-5 people. Because than this can be discussed on this mailinglist. But if there a

Re: [PHP] maybe we could all?

2009-01-19 Thread Nathan Rixham
Bastien Koert wrote: On Mon, Jan 19, 2009 at 9:35 PM, Nathan Rixham wrote: Daniel Brown wrote: On Mon, Jan 19, 2009 at 19:58, Edmund Hertle wrote: Well, I think we should not go to fast... maybe we are setting up SVN, webspace, domain, mailing-list and in the end this is only used by 4

Re: [PHP] maybe we could all?

2009-01-19 Thread Nathan Rixham
Kyle Terry wrote: On Mon, Jan 19, 2009 at 6:31 PM, Nathan Rixham wrote: discuss [ wiki needed? ] wiki will definitely be needed. dan? :-) + a name, cos if we need to start prefixing.. and it can't be 4LC as can't start with a number :p The world's object? "Pobje

Re: [PHP] maybe we could all?

2009-01-19 Thread Nathan Rixham
Daniel Brown wrote: On Mon, Jan 19, 2009 at 21:31, Nathan Rixham wrote: dan - great offer, I'd like to take you up on it [could we install any extra needed software, such as a wiki / list or something that allows discussion and document storage made website available] svn - a must

Re: [PHP] maybe we could all?

2009-01-19 Thread Nathan Rixham
Paul M Foster wrote: On Mon, Jan 19, 2009 at 11:57:25PM +, Nathan Rixham wrote: Project: PHP Common Objects and Datatypes method: for everybody who wishes to contribute, and for everybody to review, discuss and work on the same classes. what are they: classes we can all use, that have

Re: [PHP] maybe we could all?

2009-01-19 Thread Nathan Rixham
Paul M Foster wrote: On Tue, Jan 20, 2009 at 03:29:29AM +, Nathan Rixham wrote: Paul M Foster wrote: On Mon, Jan 19, 2009 at 11:57:25PM +, Nathan Rixham wrote: You really don't have enough to do, do you? Paul actually, way too much - but I like to learn, contribute,

Re: [PHP] maybe we could all?

2009-01-19 Thread Nathan Rixham
Kyle Terry wrote: On Mon, Jan 19, 2009 at 7:14 PM, Eric Butera wrote: On Mon, Jan 19, 2009 at 9:41 PM, Bastien Koert wrote: I'm in, sounds like fun and a great way to learn new stuff This is what I was thinking too. I'm just not sure what sort of contributions I could make to such a thing.

Re: [PHP] maybe we could all?

2009-01-19 Thread Nathan Rixham
Kyle Terry wrote: I demand Dan and Nathan to go to bed now. yeah it's 4am; day job in 5 hours - kinda waiting on the mrs tonight; she just released another mix onto the net and the process is long and slow while she gets everything just so - damn good though - but always seems to do

[PHP] Re: Installation problems on Vista

2009-01-20 Thread Nathan Rixham
lucson pierre-charles wrote: Dear Nathan, The "short_tags" is sure off but when I changed the scripts, they're still being output to the browser. These are the lines I added to the modules section: #LoadModule php5_module c:/php5/php5apache2.dll #AddType appl

Re: [PHP] Re: Installation problems on Vista

2009-01-20 Thread Nathan Rixham
lucson pierre-charles wrote: Nathan, When I remove the #'s, I can't have Apache to restart. I keep receiving error messages. what are the errors? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Military <-> Standard times

2009-01-21 Thread Nathan Rixham
Jochem Maas wrote: tedd schreef: Hi gang: would you stop calling me that, I'll bet it means something rude in korean. :-P What's the slickest way to go from "standard" to military times and back again? wouldn't the slickest way be to carry/store unixtimestamps and then output whatever vers

Re: [PHP] MySQL class. Thoughts?

2009-01-21 Thread Nathan Rixham
c...@l-i-e.com wrote: there is an art to using them, they compliment 'traditional' error handling, and I agree they can hinder if used badly. I don't think I've ever seen Exceptions used well... Invariably, I end up having to write a wrapper function around every function implemented and catc

Re: [PHP] Time Wrong

2009-01-21 Thread Nathan Rixham
Edmund Hertle wrote: 2009/1/21 Gary Im pretty new with php, so this might be a pretty novice mistake, but the time displays wrong on two computers. Shows up 2 hours late...time on both computers is correct. Thanks Do you mean on two computers visiting a php script? PHP is running on th

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