Re: [PHP] Re: Opinions / Votes Needed
Hello guys, It seems most of you very tallended programmers. Could you generate someting like php-- withouth OO just namespaces ? and make 95% of php programmers very happy... this Object Orgy going to blow that language which makes us productive programmers. and My vote goes to Tony... Regards...
Re: [PHP] optional type hinting enhancements
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 applications or new applications that did not use the functionality (in the same way the existing type hinting implementation doesn't) scrap that seems like it is impossible; only thing that may be remotely possible is scalar type hinting. not worth the debating convo's were fun though; thanks. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Re: Opinions / Votes Needed
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.php.net/unsub.php
Re: [PHP] optional type hinting enhancements
On 19.01.2009, at 00:00, Nathan Rixham wrote: 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 and class properties in PHP? examples (all optional, and syntax may differ): class Example { private TypeHint $var; } Example $var = new Example(); in addition the ability to type hint primatives/scalars/[type object] in the existing implementation: function(bool $flag) { } function(object $flag) { } 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 applications or new applications that did not use the functionality (in the same way the existing type hinting implementation doesn't) Any +1's? can I give a +1 for you making a request to start a RFC on the matter ... I'm sure LKS will give you perms to set up one on wiki.php.net/rfc. lukas, thoughts? [ini proposals coming in a minute, just diff'ing] i do not determine what things are worthy of an RFC. i just handle granting the karma to anyone who wants to write one. so just register .. btw: http://wiki.php.net/rfc/typehint regards, Lukas -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Re: Opinions / Votes Needed
On Sun, 2009-01-18 at 18:10 +, Nathan Rixham wrote: 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 black or white choice between static or dynamic typing, we should instead strive for softer type systems. That is, static typing where possible, dynamic typing when needed. Unfortunately there is a discontinuity between contemporary statically typed and dynamically typed languages as well as a huge technical and cultural gap between the respective language communities. I'm not sure whether to take you seriously now - you're quoting from a Microsoft research paper? :-) lol well picked up - for all I'm a linux fan M$ aren't all bad and hell they must have some very good programmers in the various teams, seems a shame to invalidate thier hard work and research just because they work for satan. Completely agree, I just thought I'd score an easy point ... +1 to you both :-) omfg positivety returns to the list :-D cheers guys! BoooOOO! If it doesn't degrade again soon, I tossing my popcorn and going outside to play! :) Cheers, Rob. -- http://www.interjinn.com Application and Templating Framework for PHP -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] optional type hinting enhancements
On Sun, 2009-01-18 at 23:09 +, Nathan Rixham wrote: 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 actual features of the language, but in this case, object could also cast an array to stdClass, and i am not sure that's how you imagined it. Besides this i am not against it along as it doens't create implementaion nor performance problems, and this problem is solved. I see what you mean with the casts; and a very good point on why scalars aren't already implemented.. On the one hand i see scope for a set of primative wrappers (class String, Integer, Boolean etc) which those who wished could use (with an auto cast). Whilst on the other hand it could be argued that the current is_xxx functionality could be copied so an integer in a string is still a string, likewise 1 is an integer not a boolean true etc etc. defintaly needs some thought and practical examples though.. rfc time one thinks. with the specific array example, this is already implemented so no problems there, what is not implemented though is the ability to function(object $obj) which seems strange. as for the error, same as it is currently E_RECOVERABLE_ERROR and def not automatic type casting; last thing you want when trying to be strict is anything like that :p Some of you really need to go trawl the internals archives. This stuff was discussed in poignant detail about a year or so ago. Cheers, Rob. -- http://www.interjinn.com Application and Templating Framework for PHP -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Re: Opinions / Votes Needed
On Sun, Jan 18, 2009 at 11:44 AM, Per Jessen p...@computer.org wrote: I think that's at best an example of someone having chosen the wrong tool. I can easily appreciate the frustration. My own rule-of-thumb - scripts are for small things and rapid prototyping. Once when a script (regardless of language) grows towards 1000 lines, start thinking about writing it in C (or whatever else is appropriate). I know of too many situations where thousands of lines of script code have turned into maintenance nightmares. Sorry to deviate from the thread, but I wanted to talk about this point for a second. Are you serious? Do you write php extensions for every app and have tons of them on your server? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] phpMailer Problem!
On Mon, Jan 19, 2009 at 12:28 AM, shahrzad khorrami shahrzad.khorr...@gmail.com wrote: I tested with port 25, but it didn't work. I confuse, I don't know what problem is it works well with gmail... thanks for reply :) http://mail.google.com/support/bin/answer.py?hl=enanswer=13287 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Need List Advice
I have been looking but can't find which PHP list is best to post info regarding a new PHP tool. I have seen new product/service announcements on this list, but thought there might be a better list. Any suggestions? Thanks in advance. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Need List Advice
On Mon, Jan 19, 2009 at 11:33 AM, c...@wizzyweb.com wrote: I have been looking but can't find which PHP list is best to post info regarding a new PHP tool. I have seen new product/service announcements on this list, but thought there might be a better list. Any suggestions? Thanks in advance. Try it and see if you get flamed. ;) Seriously though, I think this one is fine. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Re: phpMailer Problem!
shahrzad khorrami wrote: hi all, I want to send email using SMTP Authentication with PHPMailer, I searched more and more but I can't find anything of my problem /// include_once('class.phpmailer.php'); include(class.smtp.php); // optional, gets called from within class.phpmailer.php if not already loaded $mail = new PHPMailer(); $mail-IsSMTP(); $mail-Host = mail.xx.com; // sets GMAIL as the SMTP server $mail-Port = 80; $mail-Username = webs...@xxx.com; // SMTP username $mail-Password = x; // SMTP password $mail-From = webs...@xx.com; $mail-FromName = First Last; $mail-Subject= PHPMailer Test Subject via smtp; $mail-AltBody= To view the message, please use an HTML compatible email viewer!; // optional, comment out and test $mail-MsgHTML(h); $mail-AddAddress(xx...@gmail.com, John Doe); //$mail-AddAttachment(images/phpmailer.gif); // attachment if(!$mail-Send()) { echo Mailer Error: . $mail-ErrorInfo; } else { echo Message sent!; } result is nothing, no error but didn't send then I remove Username password, but didn't work!... thanks, shahrzad khorrami I'd suggest using the Pear Mail package http://pear.php.net/package/Mail. It's easier to use and provides excellent error reporting. Turn on the debug flag -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Need List Advice
On Mon, Jan 19, 2009 at 8:36 AM, Eric Butera eric.but...@gmail.com wrote: On Mon, Jan 19, 2009 at 11:33 AM, c...@wizzyweb.com wrote: I have been looking but can't find which PHP list is best to post info regarding a new PHP tool. I have seen new product/service announcements on this list, but thought there might be a better list. Any suggestions? Thanks in advance. Try it and see if you get flamed. ;) Seriously though, I think this one is fine. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php * Prepares flame thrower * -- Kyle Terry | www.kyleterry.com
Re: [PHP] Re: Opinions / Votes Needed
Eric Butera wrote: On Sun, Jan 18, 2009 at 11:44 AM, Per Jessen p...@computer.org wrote: I think that's at best an example of someone having chosen the wrong tool. I can easily appreciate the frustration. My own rule-of-thumb - scripts are for small things and rapid prototyping. Once when a script (regardless of language) grows towards 1000 lines, start thinking about writing it in C (or whatever else is appropriate). I know of too many situations where thousands of lines of script code have turned into maintenance nightmares. Sorry to deviate from the thread, but I wanted to talk about this point for a second. Are you serious? Do you write php extensions for every app and have tons of them on your server? Yes, I am serious, and no, I don't write php extensions etc. I don't write many web apps anyway. I do use PHP quite a bit for command line stuff, in fact for 95% of my scripts. /Per Jessen, Zürich -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Need List Advice
On Mon, Jan 19, 2009 at 11:33, c...@wizzyweb.com wrote: I have been looking but can't find which PHP list is best to post info regarding a new PHP tool. I have seen new product/service announcements on this list, but thought there might be a better list. Any suggestions? As long as it's an announcement and not a commercial advertisement, you'll be fine. One thing that we generally consider bad etiquette as well would be only posting to this list to announce your product or project. Being a helpful contributor to the list in general will buy you some Brownie Points[tm]. -- /Daniel P. Brown daniel.br...@parasane.net || danbr...@php.net http://www.parasane.net/ || http://www.pilotpig.net/ Unadvertised dedicated server deals, too low to print - email me to find out! -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Need List Advice
On Mon, 2009-01-19 at 12:25 -0500, Daniel Brown wrote: On Mon, Jan 19, 2009 at 11:33, c...@wizzyweb.com wrote: I have been looking but can't find which PHP list is best to post info regarding a new PHP tool. I have seen new product/service announcements on this list, but thought there might be a better list. Any suggestions? As long as it's an announcement and not a commercial advertisement, you'll be fine. One thing that we generally consider bad etiquette as well would be only posting to this list to announce your product or project. Being a helpful contributor to the list in general will buy you some Brownie Points[tm]. We get brownie points for helping? Crap, who's keeping track of mine? I had no idea!! Can they be cashed in for treats? :B Cheers, Rob. -- http://www.interjinn.com Application and Templating Framework for PHP -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Need List Advice
On Mon, Jan 19, 2009 at 12:42 PM, Robert Cummings rob...@interjinn.com wrote: On Mon, 2009-01-19 at 12:25 -0500, Daniel Brown wrote: On Mon, Jan 19, 2009 at 11:33, c...@wizzyweb.com wrote: I have been looking but can't find which PHP list is best to post info regarding a new PHP tool. I have seen new product/service announcements on this list, but thought there might be a better list. Any suggestions? As long as it's an announcement and not a commercial advertisement, you'll be fine. One thing that we generally consider bad etiquette as well would be only posting to this list to announce your product or project. Being a helpful contributor to the list in general will buy you some Brownie Points[tm]. We get brownie points for helping? Crap, who's keeping track of mine? I had no idea!! Can they be cashed in for treats? :B Cheers, Rob. -- http://www.interjinn.com Application and Templating Framework for PHP -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php Oh man... 3312 msg http://marc.info/?a=10639834826r=1w=4 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Need List Advice
On Mon, Jan 19, 2009 at 12:42:31PM -0500, Robert Cummings wrote: On Mon, 2009-01-19 at 12:25 -0500, Daniel Brown wrote: On Mon, Jan 19, 2009 at 11:33, c...@wizzyweb.com wrote: I have been looking but can't find which PHP list is best to post info regarding a new PHP tool. I have seen new product/service announcements on this list, but thought there might be a better list. Any suggestions? As long as it's an announcement and not a commercial advertisement, you'll be fine. One thing that we generally consider bad etiquette as well would be only posting to this list to announce your product or project. Being a helpful contributor to the list in general will buy you some Brownie Points[tm]. We get brownie points for helping? Crap, who's keeping track of mine? I had no idea!! Can they be cashed in for treats? :B Well... they would be, except that yours are negative. ;-} Paul -- Paul M. Foster -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Re: Opinions / Votes Needed
On Sun, Jan 18, 2009 at 12:36, Tony Marston t...@marston-home.demon.co.uk wrote: Really? In 2007 I single-handedly designed and built an ERP system with 130 database tables, 230 relationships and 1000 screens, all with PHP and without an ORM and static typing. This took me 6 months. If you can't equal that then either you are not much of a programmer, or your development style is not as good as you think it is. And yet, just a few months ago, you couldn't figure out how to launch a background process from PHP[1]. Lesson: Alzheimer's is a bitch. If you want a good ORM then write one yourself, or is that beyond your capabilities? Personally I wouldn't touch an ORM with a barge pole. I develop applications using the 3 Tier Architecture (no, it's not the same as MVC) with a Data Access layer that I can easily switch between MySQL, PostgreSQL and Oracle. If I can do it then why can't you? The pattern I note here is, I have been the best programmer since 1977, and the standard of 'Good v. Bad' must be judged by me. In your section My career history - disasters I have encountered[2], you list three projects that didn't go as expected. That's a great ratio, considering the level of success you've probably had in counter. I'd admit at least a dozen projects over the years that ended in failure or less-than-successfully. The issue I see is that, in the three examples, your summary of what led to the failure was the fault of others. Question: Why hath they forsaken Thee, Lord?!? If you spend a year writing useless code, then it's your fault, not PHPs. It's a bad workman who blames his tools. For this statement, I completely agree. I'm not entirely sure where I see blame being placed on the language, but perhaps I've missed something. What I do see is that PHP is an adaptable language, intended to be molded, customized, and extended for each individual scenario. While changing the language in its core and releasing that as the official package will affect thousands of developers and countless lines of code, it is irresponsible and counterproductive to tell someone that they can not garner the opinions of others who would be interested to join in a project, outside of the core, to effect those changes; worse still to belittle someone in public. As the saying goes, 'tis better to keep one's mouth closed and be thought a fool than to open it and remove all doubt. In writing, this is even truer. Observation: It is a bad workman who blames his tools, but it is a feeble-minded workman who shits where he eats: one who wastes billions of processor cycles to insult someone's intelligence in the same forum in which he announces his own framework. KEY: 1: http://article.gmane.org/gmane.comp.php.general/190836/match= 2: http://www.tonymarston.net/aboutme/disasters.html -- /Daniel P. Brown daniel.br...@parasane.net || danbr...@php.net http://www.parasane.net/ || http://www.pilotpig.net/ Unadvertised dedicated server deals, too low to print - email me to find out! -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Need List Advice
Daniel Brown wrote: On Mon, Jan 19, 2009 at 11:33, c...@wizzyweb.com wrote: I have been looking but can't find which PHP list is best to post info regarding a new PHP tool. I have seen new product/service announcements on this list, but thought there might be a better list. Any suggestions? As long as it's an announcement and not a commercial advertisement, you'll be fine. One thing that we generally consider bad etiquette as well would be only posting to this list to announce your product or project. Being a helpful contributor to the list in general will buy you some Brownie Points[tm]. Hey, are those Brownie Points calculated by your software? Isn't that a little weighted to your favor? On a side note: Are you going to bring the weekly summary tool back online any time soon? -- Jim Lucas Some men are born to greatness, some achieve greatness, and some have greatness thrust upon them. Twelfth Night, Act II, Scene V by William Shakespeare -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Re: Opinions / Votes Needed
On Mon, Jan 19, 2009 at 10:10 AM, Daniel Brown danbr...@php.net wrote: On Sun, Jan 18, 2009 at 12:36, Tony Marston t...@marston-home.demon.co.uk wrote: Really? In 2007 I single-handedly designed and built an ERP system with 130 database tables, 230 relationships and 1000 screens, all with PHP and without an ORM and static typing. This took me 6 months. If you can't equal that then either you are not much of a programmer, or your development style is not as good as you think it is. And yet, just a few months ago, you couldn't figure out how to launch a background process from PHP[1]. Lesson: Alzheimer's is a bitch. If you want a good ORM then write one yourself, or is that beyond your capabilities? Personally I wouldn't touch an ORM with a barge pole. I develop applications using the 3 Tier Architecture (no, it's not the same as MVC) with a Data Access layer that I can easily switch between MySQL, PostgreSQL and Oracle. If I can do it then why can't you? The pattern I note here is, I have been the best programmer since 1977, and the standard of 'Good v. Bad' must be judged by me. In your section My career history - disasters I have encountered[2], you list three projects that didn't go as expected. That's a great ratio, considering the level of success you've probably had in counter. I'd admit at least a dozen projects over the years that ended in failure or less-than-successfully. The issue I see is that, in the three examples, your summary of what led to the failure was the fault of others. Question: Why hath they forsaken Thee, Lord?!? If you spend a year writing useless code, then it's your fault, not PHPs. It's a bad workman who blames his tools. For this statement, I completely agree. I'm not entirely sure where I see blame being placed on the language, but perhaps I've missed something. What I do see is that PHP is an adaptable language, intended to be molded, customized, and extended for each individual scenario. While changing the language in its core and releasing that as the official package will affect thousands of developers and countless lines of code, it is irresponsible and counterproductive to tell someone that they can not garner the opinions of others who would be interested to join in a project, outside of the core, to effect those changes; worse still to belittle someone in public. As the saying goes, 'tis better to keep one's mouth closed and be thought a fool than to open it and remove all doubt. In writing, this is even truer. Observation: It is a bad workman who blames his tools, but it is a feeble-minded workman who shits where he eats: one who wastes billions of processor cycles to insult someone's intelligence in the same forum in which he announces his own framework. KEY: 1: http://article.gmane.org/gmane.comp.php.general/190836/match= 2: http://www.tonymarston.net/aboutme/disasters.html -- /Daniel P. Brown daniel.br...@parasane.net || danbr...@php.net http://www.parasane.net/ || http://www.pilotpig.net/ Unadvertised dedicated server deals, too low to print - email me to find out! -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php Owned? -- Kyle Terry | www.kyleterry.com
Re: [PHP] Re: Opinions / Votes Needed
On Mon, Jan 19, 2009 at 12:13, Per Jessen p...@computer.org wrote: Yes, I am serious, and no, I don't write php extensions etc. I don't write many web apps anyway. I do use PHP quite a bit for command line stuff, in fact for 95% of my scripts. Same her, Per. I actually use PHP for more command-line scripts and even GUI-enabled applications than I do for web scripts, almost like BASH on steroids. -- /Daniel P. Brown daniel.br...@parasane.net || danbr...@php.net http://www.parasane.net/ || http://www.pilotpig.net/ Unadvertised dedicated server deals, too low to print - email me to find out! -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Need List Advice
On Mon, 2009-01-19 at 13:09 -0500, Paul M Foster wrote: On Mon, Jan 19, 2009 at 12:42:31PM -0500, Robert Cummings wrote: On Mon, 2009-01-19 at 12:25 -0500, Daniel Brown wrote: On Mon, Jan 19, 2009 at 11:33, c...@wizzyweb.com wrote: I have been looking but can't find which PHP list is best to post info regarding a new PHP tool. I have seen new product/service announcements on this list, but thought there might be a better list. Any suggestions? As long as it's an announcement and not a commercial advertisement, you'll be fine. One thing that we generally consider bad etiquette as well would be only posting to this list to announce your product or project. Being a helpful contributor to the list in general will buy you some Brownie Points[tm]. We get brownie points for helping? Crap, who's keeping track of mine? I had no idea!! Can they be cashed in for treats? :B Well... they would be, except that yours are negative. ;-} So that means I should subtract them right? :) Cheers, Rob. -- http://www.interjinn.com Application and Templating Framework for PHP -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Need List Advice
On Mon, 2009-01-19 at 12:55 -0500, Eric Butera wrote: On Mon, Jan 19, 2009 at 12:42 PM, Robert Cummings rob...@interjinn.com wrote: On Mon, 2009-01-19 at 12:25 -0500, Daniel Brown wrote: On Mon, Jan 19, 2009 at 11:33, c...@wizzyweb.com wrote: I have been looking but can't find which PHP list is best to post info regarding a new PHP tool. I have seen new product/service announcements on this list, but thought there might be a better list. Any suggestions? As long as it's an announcement and not a commercial advertisement, you'll be fine. One thing that we generally consider bad etiquette as well would be only posting to this list to announce your product or project. Being a helpful contributor to the list in general will buy you some Brownie Points[tm]. We get brownie points for helping? Crap, who's keeping track of mine? I had no idea!! Can they be cashed in for treats? :B Oh man... 3312 msg http://marc.info/?a=10639834826r=1w=4 Good ol' Marc, that guy keeps track of everything! Now... about those treats -- http://www.interjinn.com Application and Templating Framework for PHP -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Re: Opinions / Votes Needed
On Mon, Jan 19, 2009 at 10:19 AM, Daniel Brown danbr...@php.net wrote: On Mon, Jan 19, 2009 at 12:13, Per Jessen p...@computer.org wrote: Yes, I am serious, and no, I don't write php extensions etc. I don't write many web apps anyway. I do use PHP quite a bit for command line stuff, in fact for 95% of my scripts. Same her, Per. I actually use PHP for more command-line scripts and even GUI-enabled applications than I do for web scripts, almost like BASH on steroids. -- /Daniel P. Brown daniel.br...@parasane.net || danbr...@php.net http://www.parasane.net/ || http://www.pilotpig.net/ Unadvertised dedicated server deals, too low to print - email me to find out! -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php Aside from a few perl scripts, I have rewritten all my bash scripts in PHP. It's just easier to manage for me. -- Kyle Terry | www.kyleterry.com
Re: [PHP] Need List Advice
On Mon, Jan 19, 2009 at 13:15, Jim Lucas li...@cmsws.com wrote: Hey, are those Brownie Points calculated by your software? Isn't that a little weighted to your favor? It's not what I initially intended when I first posted that message, but once I read Rob's reply, I knew it was going to come up eventually. On a side note: Are you going to bring the weekly summary tool back online any time soon? Actually, yes. I had planned to bring it back at the end of 2008, but I was coordinating the overhaul and upgrade of the php.net network, and it took longer than expected. In fact, we still have some official mirrors that have yet to make the jump from PHP 4.3.9, while we're staring down the barrel of 5.3 and can smell PHP6 baking. -- /Daniel P. Brown daniel.br...@parasane.net || danbr...@php.net http://www.parasane.net/ || http://www.pilotpig.net/ Unadvertised dedicated server deals, too low to print - email me to find out! -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Re: Opinions / Votes Needed
On Mon, Jan 19, 2009 at 13:22, Kyle Terry k...@kyleterry.com wrote: Aside from a few perl scripts, I have rewritten all my bash scripts in PHP. It's just easier to manage for me. /me nods. In 2001, I started rewriting a library of Perl scripts I'd been building since 1995 (5.0.0.1), which meant rewriting about 300 scripts. There's a single script left out of that library that I didn't convert, and only because it was the first usable Perl I'd ever written. Sentimental reasons, I suppose (and the fact that I rarely have a need for it). It just ran a recursive loop through directories to convert all file extensions from UPPER or Variable to lower case. -- /Daniel P. Brown daniel.br...@parasane.net || danbr...@php.net http://www.parasane.net/ || http://www.pilotpig.net/ Unadvertised dedicated server deals, too low to print - email me to find out! -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Re: Opinions / Votes Needed
On Mon, Jan 19, 2009 at 10:35 AM, Daniel Brown danbr...@php.net wrote: On Mon, Jan 19, 2009 at 13:22, Kyle Terry k...@kyleterry.com wrote: Aside from a few perl scripts, I have rewritten all my bash scripts in PHP. It's just easier to manage for me. /me nods. In 2001, I started rewriting a library of Perl scripts I'd been building since 1995 (5.0.0.1), which meant rewriting about 300 scripts. There's a single script left out of that library that I didn't convert, and only because it was the first usable Perl I'd ever written. Sentimental reasons, I suppose (and the fact that I rarely have a need for it). It just ran a recursive loop through directories to convert all file extensions from UPPER or Variable to lower case. -- /Daniel P. Brown daniel.br...@parasane.net || danbr...@php.net http://www.parasane.net/ || http://www.pilotpig.net/ Unadvertised dedicated server deals, too low to print - email me to find out! Nice! I lied though, I use 1 python script that takes the ID3 tags from mp3s and oggs and makes the filename pretty. It does this recursively once a week through my music directory. -- Kyle Terry | www.kyleterry.com
Re: [PHP] Re: Opinions / Votes Needed
Daniel Brown danbr...@php.net wrote in message news:ab5568160901191010u2d4073aas33789f0c81183...@mail.gmail.com... On Sun, Jan 18, 2009 at 12:36, Tony Marston t...@marston-home.demon.co.uk wrote: Really? In 2007 I single-handedly designed and built an ERP system with 130 database tables, 230 relationships and 1000 screens, all with PHP and without an ORM and static typing. This took me 6 months. If you can't equal that then either you are not much of a programmer, or your development style is not as good as you think it is. And yet, just a few months ago, you couldn't figure out how to launch a background process from PHP[1]. Launching a background process is easy (yes, even I can read the manual) but what I wanted to do was launch a background process and leave it running while the launching script continued on to something else. The example in the manual did not work for me, so I asked if there was an alternative solution. Lesson: Alzheimer's is a bitch. If you want a good ORM then write one yourself, or is that beyond your capabilities? Personally I wouldn't touch an ORM with a barge pole. I develop applications using the 3 Tier Architecture (no, it's not the same as MVC) with a Data Access layer that I can easily switch between MySQL, PostgreSQL and Oracle. If I can do it then why can't you? The pattern I note here is, I have been the best programmer since 1977, and the standard of 'Good v. Bad' must be judged by me. Now you're being disingenuous by quoting things which I did not say. I did not say that I have been the *best* programmer since 1977, nor did I say that the standard of Good v. Bad must be judged by me. I was just pointing out that if a simpleton like me can do those things then why can't all these so-called gurus? In your section My career history - disasters I have encountered[2], you list three projects that didn't go as expected. That's a great ratio, considering the level of success you've probably had in counter. I'd admit at least a dozen projects over the years that ended in failure or less-than-successfully. The issue I see is that, in the three examples, your summary of what led to the failure was the fault of others. That is correct. Every project where I was in charge and never ended in failure. It was only those projects which were controlled by others which goyt screwed up. Two of those were government contracts. Question: Why hath they forsaken Thee, Lord?!? If you spend a year writing useless code, then it's your fault, not PHPs. It's a bad workman who blames his tools. For this statement, I completely agree. Please, do not let others know that you agree with me. That might be seen as setting an embarrassing precedent. :) I'm not entirely sure where I see blame being placed on the language, but perhaps I've missed something. What I do see is that PHP is an adaptable language, intended to be molded, customized, and extended for each individual scenario. While changing the language in its core and releasing that as the official package will affect thousands of developers and countless lines of code, it is irresponsible and counterproductive to tell someone that they can not garner the opinions of others who would be interested to join in a project, outside of the core, to effect those changes; worse still to belittle someone in public. As the saying goes, 'tis better to keep one's mouth closed and be thought a fool than to open it and remove all doubt. In writing, this is even truer. Observation: It is a bad workman who blames his tools, but it is a feeble-minded workman who shits where he eats: one who wastes billions of processor cycles to insult someone's intelligence in the same forum in which he announces his own framework. Why is it considerd bad form to insult the intelligence of a feeble minded twat who requests that PHP be changed from a dynamically typed to a statically typed language? He later changed it to type hinting on variables, but the original request was definitely for static typing. KEY: 1: http://article.gmane.org/gmane.comp.php.general/190836/match= 2: http://www.tonymarston.net/aboutme/disasters.html -- /Daniel P. Brown daniel.br...@parasane.net || danbr...@php.net http://www.parasane.net/ || http://www.pilotpig.net/ Unadvertised dedicated server deals, too low to print - email me to find out! -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Re: Opinions / Votes Needed
On Mon, 2009-01-19 at 10:50 -0800, Kyle Terry wrote: On Mon, Jan 19, 2009 at 10:35 AM, Daniel Brown danbr...@php.net wrote: On Mon, Jan 19, 2009 at 13:22, Kyle Terry k...@kyleterry.com wrote: Aside from a few perl scripts, I have rewritten all my bash scripts in PHP. It's just easier to manage for me. /me nods. In 2001, I started rewriting a library of Perl scripts I'd been building since 1995 (5.0.0.1), which meant rewriting about 300 scripts. There's a single script left out of that library that I didn't convert, and only because it was the first usable Perl I'd ever written. Sentimental reasons, I suppose (and the fact that I rarely have a need for it). It just ran a recursive loop through directories to convert all file extensions from UPPER or Variable to lower case. -- /Daniel P. Brown daniel.br...@parasane.net || danbr...@php.net http://www.parasane.net/ || http://www.pilotpig.net/ Unadvertised dedicated server deals, too low to print - email me to find out! Nice! I lied though, I use 1 python script that takes the ID3 tags from mp3s and oggs and makes the filename pretty. It does this recursively once a week through my music directory. I have a PHP script that does something similar :) Cheers, Rob. -- http://www.interjinn.com Application and Templating Framework for PHP -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Re: Opinions / Votes Needed
On Mon, Jan 19, 2009 at 10:59 AM, Robert Cummings rob...@interjinn.comwrote: On Mon, 2009-01-19 at 10:50 -0800, Kyle Terry wrote: On Mon, Jan 19, 2009 at 10:35 AM, Daniel Brown danbr...@php.net wrote: On Mon, Jan 19, 2009 at 13:22, Kyle Terry k...@kyleterry.com wrote: Aside from a few perl scripts, I have rewritten all my bash scripts in PHP. It's just easier to manage for me. /me nods. In 2001, I started rewriting a library of Perl scripts I'd been building since 1995 (5.0.0.1), which meant rewriting about 300 scripts. There's a single script left out of that library that I didn't convert, and only because it was the first usable Perl I'd ever written. Sentimental reasons, I suppose (and the fact that I rarely have a need for it). It just ran a recursive loop through directories to convert all file extensions from UPPER or Variable to lower case. -- /Daniel P. Brown daniel.br...@parasane.net || danbr...@php.net http://www.parasane.net/ || http://www.pilotpig.net/ Unadvertised dedicated server deals, too low to print - email me to find out! Nice! I lied though, I use 1 python script that takes the ID3 tags from mp3s and oggs and makes the filename pretty. It does this recursively once a week through my music directory. I have a PHP script that does something similar :) Cheers, Rob. -- http://www.interjinn.com Application and Templating Framework for PHP Maybe I'm due for a rewrite :) -- Kyle Terry | www.kyleterry.com
[PHP] Undefined index error
So sometimes I end up with issues that are so simple I should be able to fix it but for some reason I end up asking a stupid question to the list... So... Here goes :) Here is the error: Notice: Undefined index: 2 in /home/raosetc/public_html/purl/p.php on line 19 and here is Line 19: $data = explode(/, $_SERVER['REQUEST_URI']); When you first hit the site you to go something like: purl.mysupersite.com/YourNameHere If you went to: purl.mysupersite.com/YourNameHere/ (Notice the trailing /) there would be no error... Now I know it's just a undefined index error and I can safely ignore it since it works just fine. All I have to do is turn off the error reporting and it's gone... But I want to write good code... Any Suggestions? -- Jason Pruim japr...@raoset.com 616.399.2355
[PHP] PHP and Apache configuration
Hello, I need that every time someone access one image file in my server, then redirect to a php file. I make this well with: Redirect 301 imagefile.jpg scriptfile.php But i need that the file scriptfile.php can only be accessed by this redirect command. If someone try to access directly from the url http://www.mydomain.com/xyz/scriptfile.php, i want to send an error access. I tried with: Files scriptfile.php Order allow,deny Deny from all /Files But with this configuration, the redirect command cant access the scriptfile.php Do you have the solution for this? thanks.
[PHP] ANNOUNCEMENT: ModBox - an Open Platform as a Service (OPaaS)
After posting to this list to see if it is appropriate and getting good feedback, I'm posting an announcement I think is very relative to this list as I have been using PHP ever since it was a Perl script (PHP/FI) and have been heavily influenced by it's concept and evolution when creating what I am announcing. So the announcement is the launch of something I have been working on in my spare time for a long time and what I believe will be a logical next step in Internet development - ModBox an Open Platform as a Service (OPaaS). Ok, what the #...@#$ is OPaaS? OPaaS is PaaS, but open. Think Force.com/Google App Engine/Amazon EC2 - but open. Really open. Not fake open like so much other BS services that try to lock you in. In a nutshell, ModBox is a Web-based distributed development environment that is completely neutral in every way. So, you can use any infrastructure you want, any programming language, any server, any OS, any database, etc. to create/distribute applications. Also, because ModBox works over standard HTTP, you can incorporate existing applications or web services into the applications you create. ModBox brings all the pieces together seemlessly for programmers and users. I hope I have borrowed the best ideas from IDE's, RAD, frameworks, Web services grid/cloud computing and Open Source to make a logical ecosystem which puts a much needed front-end/face on all of it. This list is the first place I have announced ModBox and I welcome you to Rock the Box and let me know if it makes as much sense to you as it does to me. I would, of course greatly appreciate any feedback as I am not so bold to think I have cracked the code on the 1.0. The URL is below. ModBox - Open Platform as a Service: http://www.sullivansoftwaresystems.com/modbox Thanks for your time. Brian Sullivan Sullivan Software Systems ModBox - Rock the Box. - Original Message - From: Robert Cummings rob...@interjinn.com To: Eric Butera eric.but...@gmail.com Cc: Daniel Brown danbr...@php.net; c...@wizzyweb.com; php-general@lists.php.net Sent: Monday, January 19, 2009 1:20 PM Subject: Re: [PHP] Need List Advice On Mon, 2009-01-19 at 12:55 -0500, Eric Butera wrote: On Mon, Jan 19, 2009 at 12:42 PM, Robert Cummings rob...@interjinn.com wrote: On Mon, 2009-01-19 at 12:25 -0500, Daniel Brown wrote: On Mon, Jan 19, 2009 at 11:33, c...@wizzyweb.com wrote: I have been looking but can't find which PHP list is best to post info regarding a new PHP tool. I have seen new product/service announcements on this list, but thought there might be a better list. Any suggestions? As long as it's an announcement and not a commercial advertisement, you'll be fine. One thing that we generally consider bad etiquette as well would be only posting to this list to announce your product or project. Being a helpful contributor to the list in general will buy you some Brownie Points[tm]. We get brownie points for helping? Crap, who's keeping track of mine? I had no idea!! Can they be cashed in for treats? :B Oh man... 3312 msg http://marc.info/?a=10639834826r=1w=4 Good ol' Marc, that guy keeps track of everything! Now... about those treats -- http://www.interjinn.com Application and Templating Framework for PHP -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Undefined index error
Notice: Undefined index: 2 in /home/raosetc/public_html/purl/p.php on line 19 and here is Line 19: $data = explode(/, $_SERVER['REQUEST_URI']); Hi, Are you sure it's an array? Use print_r() or var_dump() on $_SERVER['REQUEST_URI'] on the preceding line. Just for testing, you could do this too: $_SERVER['REQUEST_URI'] = 'It/Works'; ...on the preceding line. -- Richard Heyes HTML5 Graphing for Firefox, Chrome, Opera and Safari: http://www.rgraph.org (Updated January 17th) -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] PHP and Apache configuration
On Mon, Jan 19, 2009 at 11:28 AM, R B rbp...@gmail.com wrote: Hello, I need that every time someone access one image file in my server, then redirect to a php file. I make this well with: Redirect 301 imagefile.jpg scriptfile.php But i need that the file scriptfile.php can only be accessed by this redirect command. If someone try to access directly from the url http://www.mydomain.com/xyz/scriptfile.php, i want to send an error access. I tried with: Files scriptfile.php Order allow,deny Deny from all /Files But with this configuration, the redirect command cant access the scriptfile.php Do you have the solution for this? thanks. You could use sessions. Start a session and set a redirect true variable of some sort. ?php session_start(); //image script $_SESSION['redirect'] = true; //image redirect here. ? ?php //scriptfile.php if($_SESSION['redirect']){ //do your stuff. unset($_SESSION['redirect']); } else { echo 'error'; } ? Get the idea? -- Kyle Terry | www.kyleterry.com
Re: [PHP] Re: Opinions / Votes Needed
Why are you guys Burning your egos here? Its not the right place. On Mon, Jan 19, 2009 at 11:03 AM, Kyle Terry k...@kyleterry.com wrote: On Mon, Jan 19, 2009 at 10:59 AM, Robert Cummings rob...@interjinn.com wrote: On Mon, 2009-01-19 at 10:50 -0800, Kyle Terry wrote: On Mon, Jan 19, 2009 at 10:35 AM, Daniel Brown danbr...@php.net wrote: On Mon, Jan 19, 2009 at 13:22, Kyle Terry k...@kyleterry.com wrote: Aside from a few perl scripts, I have rewritten all my bash scripts in PHP. It's just easier to manage for me. /me nods. In 2001, I started rewriting a library of Perl scripts I'd been building since 1995 (5.0.0.1), which meant rewriting about 300 scripts. There's a single script left out of that library that I didn't convert, and only because it was the first usable Perl I'd ever written. Sentimental reasons, I suppose (and the fact that I rarely have a need for it). It just ran a recursive loop through directories to convert all file extensions from UPPER or Variable to lower case. -- /Daniel P. Brown daniel.br...@parasane.net || danbr...@php.net http://www.parasane.net/ || http://www.pilotpig.net/ Unadvertised dedicated server deals, too low to print - email me to find out! Nice! I lied though, I use 1 python script that takes the ID3 tags from mp3s and oggs and makes the filename pretty. It does this recursively once a week through my music directory. I have a PHP script that does something similar :) Cheers, Rob. -- http://www.interjinn.com Application and Templating Framework for PHP Maybe I'm due for a rewrite :) -- Kyle Terry | www.kyleterry.com
Re: [PHP] PHP and Apache configuration
... This may be of some help. It's from the Apache website and only allows access if the Referer header is sent by the browser and is www.yourdomain.com, ie. Direct access is not permitted: ### SetEnvIf Referer ^http://www.yourdomain.com; local_referal Order Deny,Allow Deny from all Allow from env=local_referal ### -- Richard Heyes HTML5 Graphing for Firefox, Chrome, Opera and Safari: http://www.rgraph.org (Updated January 17th) -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] PHP and Apache configuration
On Mon, Jan 19, 2009 at 11:38 AM, Richard Heyes rich...@php.net wrote: ... This may be of some help. It's from the Apache website and only allows access if the Referer header is sent by the browser and is www.yourdomain.com, ie. Direct access is not permitted: ### SetEnvIf Referer ^http://www.yourdomain.com; local_referal Order Deny,Allow Deny from all Allow from env=local_referal ### -- Richard Heyes HTML5 Graphing for Firefox, Chrome, Opera and Safari: http://www.rgraph.org (Updated January 17th) -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php Richard's solution is much better. -- Kyle Terry | www.kyleterry.com
Re: [PHP] Re: Opinions / Votes Needed
On Mon, 2009-01-19 at 11:37 -0800, VamVan wrote: Why are you guys Burning your egos here? Its not the right place. Could you explain burning our egos? Cheers, Rob. -- http://www.interjinn.com Application and Templating Framework for PHP -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Re: Opinions / Votes Needed
On Mon, Jan 19, 2009 at 11:45 AM, Robert Cummings rob...@interjinn.comwrote: On Mon, 2009-01-19 at 11:37 -0800, VamVan wrote: Why are you guys Burning your egos here? Its not the right place. Could you explain burning our egos? Cheers, Rob. -- http://www.interjinn.com Application and Templating Framework for PHP I was just about to ask the same thing. Also, I've been flamed for top posting before, so, don't top post. -- Kyle Terry | www.kyleterry.com
Re: [PHP] Re: Opinions / Votes Needed
On Mon, Jan 19, 2009 at 14:37, VamVan vamsee...@gmail.com wrote: Why are you guys Burning your egos here? Its not the right place. It's a PHP-related general discussion, Vam. Perhaps not entirely in good manners, but it's 100% relevant. Indeed, this is the right place. That aside, as intelligent folks, I think it's safe to say you all inherently have egos. I don't include myself in that same classification, as I'm mildly retarded. ;-P -- /Daniel P. Brown daniel.br...@parasane.net || danbr...@php.net http://www.parasane.net/ || http://www.pilotpig.net/ Unadvertised dedicated server deals, too low to print - email me to find out! -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Re: Opinions / Votes Needed
On Mon, 2009-01-19 at 14:50 -0500, Daniel Brown wrote: On Mon, Jan 19, 2009 at 14:37, VamVan vamsee...@gmail.com wrote: Why are you guys Burning your egos here? Its not the right place. It's a PHP-related general discussion, Vam. Perhaps not entirely in good manners, but it's 100% relevant. Indeed, this is the right place. That aside, as intelligent folks, I think it's safe to say you all inherently have egos. I don't include myself in that same classification, as I'm mildly retarded. ;-P WRONG!!! I killed off ego ages ago. Now it's just me and mr superego... he's next on my list! Cheers, Rob. -- http://www.interjinn.com Application and Templating Framework for PHP -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Re: ANNOUNCEMENT: ModBox - an Open Platform as a Service (OPaaS)
Ok, you just hijacked a thread (I think (I don't have threading enabled)) and you top posted. You've probably burned through your goodwill in one shot :/ Cheers, Rob. On Mon, 2009-01-19 at 14:32 -0500, c...@wizzyweb.com wrote: After posting to this list to see if it is appropriate and getting good feedback, I'm posting an announcement I think is very relative to this list as I have been using PHP ever since it was a Perl script (PHP/FI) and have been heavily influenced by it's concept and evolution when creating what I am announcing. So the announcement is the launch of something I have been working on in my spare time for a long time and what I believe will be a logical next step in Internet development - ModBox an Open Platform as a Service (OPaaS). Ok, what the #...@#$ is OPaaS? OPaaS is PaaS, but open. Think Force.com/Google App Engine/Amazon EC2 - but open. Really open. Not fake open like so much other BS services that try to lock you in. In a nutshell, ModBox is a Web-based distributed development environment that is completely neutral in every way. So, you can use any infrastructure you want, any programming language, any server, any OS, any database, etc. to create/distribute applications. Also, because ModBox works over standard HTTP, you can incorporate existing applications or web services into the applications you create. ModBox brings all the pieces together seemlessly for programmers and users. I hope I have borrowed the best ideas from IDE's, RAD, frameworks, Web services grid/cloud computing and Open Source to make a logical ecosystem which puts a much needed front-end/face on all of it. This list is the first place I have announced ModBox and I welcome you to Rock the Box and let me know if it makes as much sense to you as it does to me. I would, of course greatly appreciate any feedback as I am not so bold to think I have cracked the code on the 1.0. The URL is below. ModBox - Open Platform as a Service: http://www.sullivansoftwaresystems.com/modbox Thanks for your time. Brian Sullivan Sullivan Software Systems ModBox - Rock the Box. - Original Message - From: Robert Cummings rob...@interjinn.com To: Eric Butera eric.but...@gmail.com Cc: Daniel Brown danbr...@php.net; c...@wizzyweb.com; php-general@lists.php.net Sent: Monday, January 19, 2009 1:20 PM Subject: Re: [PHP] Need List Advice On Mon, 2009-01-19 at 12:55 -0500, Eric Butera wrote: On Mon, Jan 19, 2009 at 12:42 PM, Robert Cummings rob...@interjinn.com wrote: On Mon, 2009-01-19 at 12:25 -0500, Daniel Brown wrote: On Mon, Jan 19, 2009 at 11:33, c...@wizzyweb.com wrote: I have been looking but can't find which PHP list is best to post info regarding a new PHP tool. I have seen new product/service announcements on this list, but thought there might be a better list. Any suggestions? As long as it's an announcement and not a commercial advertisement, you'll be fine. One thing that we generally consider bad etiquette as well would be only posting to this list to announce your product or project. Being a helpful contributor to the list in general will buy you some Brownie Points[tm]. We get brownie points for helping? Crap, who's keeping track of mine? I had no idea!! Can they be cashed in for treats? :B Oh man... 3312 msg http://marc.info/?a=10639834826r=1w=4 Good ol' Marc, that guy keeps track of everything! Now... about those treats -- http://www.interjinn.com Application and Templating Framework for PHP -- http://www.interjinn.com Application and Templating Framework for PHP -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Re: Opinions / Votes Needed
On Mon, Jan 19, 2009 at 2:37 PM, VamVan vamsee...@gmail.com wrote: Why are you guys Burning your egos here? Its not the right place. On Mon, Jan 19, 2009 at 11:03 AM, Kyle Terry k...@kyleterry.com wrote: On Mon, Jan 19, 2009 at 10:59 AM, Robert Cummings rob...@interjinn.com wrote: On Mon, 2009-01-19 at 10:50 -0800, Kyle Terry wrote: On Mon, Jan 19, 2009 at 10:35 AM, Daniel Brown danbr...@php.net wrote: On Mon, Jan 19, 2009 at 13:22, Kyle Terry k...@kyleterry.com wrote: Aside from a few perl scripts, I have rewritten all my bash scripts in PHP. It's just easier to manage for me. /me nods. In 2001, I started rewriting a library of Perl scripts I'd been building since 1995 (5.0.0.1), which meant rewriting about 300 scripts. There's a single script left out of that library that I didn't convert, and only because it was the first usable Perl I'd ever written. Sentimental reasons, I suppose (and the fact that I rarely have a need for it). It just ran a recursive loop through directories to convert all file extensions from UPPER or Variable to lower case. -- /Daniel P. Brown daniel.br...@parasane.net || danbr...@php.net http://www.parasane.net/ || http://www.pilotpig.net/ Unadvertised dedicated server deals, too low to print - email me to find out! Nice! I lied though, I use 1 python script that takes the ID3 tags from mp3s and oggs and makes the filename pretty. It does this recursively once a week through my music directory. I have a PHP script that does something similar :) Cheers, Rob. -- http://www.interjinn.com Application and Templating Framework for PHP Maybe I'm due for a rewrite :) -- Kyle Terry | www.kyleterry.com It's community building. If everything's all work and serious people wouldn't be as interested in being here. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Re: Opinions / Votes Needed
On Mon, Jan 19, 2009 at 11:54 AM, Robert Cummings rob...@interjinn.comwrote: On Mon, 2009-01-19 at 14:50 -0500, Daniel Brown wrote: On Mon, Jan 19, 2009 at 14:37, VamVan vamsee...@gmail.com wrote: Why are you guys Burning your egos here? Its not the right place. It's a PHP-related general discussion, Vam. Perhaps not entirely in good manners, but it's 100% relevant. Indeed, this is the right place. That aside, as intelligent folks, I think it's safe to say you all inherently have egos. I don't include myself in that same classification, as I'm mildly retarded. ;-P WRONG!!! I killed off ego ages ago. Now it's just me and mr superego... he's next on my list! Cheers, Rob. -- http://www.interjinn.com Application and Templating Framework for PHP Either way, Vam still owes Dan dinner for Dan kindly handing his ass to him on a silver platter. My ego sits in my Debian coffee cup every morning. (* wait, I wish I had a Debian coffee cup *) -- Kyle Terry | www.kyleterry.com
[PHP] Re: ANNOUNCEMENT: ModBox - an Open Platform as a Service (OPaaS)
On Mon, Jan 19, 2009 at 2:57 PM, Robert Cummings rob...@interjinn.com wrote: Ok, you just hijacked a thread (I think (I don't have threading enabled)) and you top posted. You've probably burned through your goodwill in one shot :/ Cheers, Rob. On Mon, 2009-01-19 at 14:32 -0500, c...@wizzyweb.com wrote: After posting to this list to see if it is appropriate and getting good feedback, I'm posting an announcement I think is very relative to this list as I have been using PHP ever since it was a Perl script (PHP/FI) and have been heavily influenced by it's concept and evolution when creating what I am announcing. So the announcement is the launch of something I have been working on in my spare time for a long time and what I believe will be a logical next step in Internet development - ModBox an Open Platform as a Service (OPaaS). Ok, what the #...@#$ is OPaaS? OPaaS is PaaS, but open. Think Force.com/Google App Engine/Amazon EC2 - but open. Really open. Not fake open like so much other BS services that try to lock you in. In a nutshell, ModBox is a Web-based distributed development environment that is completely neutral in every way. So, you can use any infrastructure you want, any programming language, any server, any OS, any database, etc. to create/distribute applications. Also, because ModBox works over standard HTTP, you can incorporate existing applications or web services into the applications you create. ModBox brings all the pieces together seemlessly for programmers and users. I hope I have borrowed the best ideas from IDE's, RAD, frameworks, Web services grid/cloud computing and Open Source to make a logical ecosystem which puts a much needed front-end/face on all of it. This list is the first place I have announced ModBox and I welcome you to Rock the Box and let me know if it makes as much sense to you as it does to me. I would, of course greatly appreciate any feedback as I am not so bold to think I have cracked the code on the 1.0. The URL is below. ModBox - Open Platform as a Service: http://www.sullivansoftwaresystems.com/modbox Thanks for your time. Brian Sullivan Sullivan Software Systems ModBox - Rock the Box. - Original Message - From: Robert Cummings rob...@interjinn.com To: Eric Butera eric.but...@gmail.com Cc: Daniel Brown danbr...@php.net; c...@wizzyweb.com; php-general@lists.php.net Sent: Monday, January 19, 2009 1:20 PM Subject: Re: [PHP] Need List Advice On Mon, 2009-01-19 at 12:55 -0500, Eric Butera wrote: On Mon, Jan 19, 2009 at 12:42 PM, Robert Cummings rob...@interjinn.com wrote: On Mon, 2009-01-19 at 12:25 -0500, Daniel Brown wrote: On Mon, Jan 19, 2009 at 11:33, c...@wizzyweb.com wrote: I have been looking but can't find which PHP list is best to post info regarding a new PHP tool. I have seen new product/service announcements on this list, but thought there might be a better list. Any suggestions? As long as it's an announcement and not a commercial advertisement, you'll be fine. One thing that we generally consider bad etiquette as well would be only posting to this list to announce your product or project. Being a helpful contributor to the list in general will buy you some Brownie Points[tm]. We get brownie points for helping? Crap, who's keeping track of mine? I had no idea!! Can they be cashed in for treats? :B Oh man... 3312 msg http://marc.info/?a=10639834826r=1w=4 Good ol' Marc, that guy keeps track of everything! Now... about those treats -- http://www.interjinn.com Application and Templating Framework for PHP -- http://www.interjinn.com Application and Templating Framework for PHP Well it was his thread at first. Just mad you haven't got your treat yet? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Re: Opinions / Votes Needed
On Mon, Jan 19, 2009 at 11:50 AM, Daniel Brown danbr...@php.net wrote: On Mon, Jan 19, 2009 at 14:37, VamVan vamsee...@gmail.com wrote: Why are you guys Burning your egos here? Its not the right place. It's a PHP-related general discussion, Vam. Perhaps not entirely in good manners, but it's 100% relevant. Indeed, this is the right place. I aplogize about top posting. I believe in Community building. My only concern was the kind of language used is very intimidating , that's all. Anyways cheers to all. I enjoy reading responses and asking questions here. This is the best group I have ever been involved with as long as I have started learning PHP. Thanks Again
Re: [PHP] Re: Opinions / Votes Needed
On Mon, Jan 19, 2009 at 12:05 PM, VamVan vamsee...@gmail.com wrote: On Mon, Jan 19, 2009 at 11:50 AM, Daniel Brown danbr...@php.net wrote: On Mon, Jan 19, 2009 at 14:37, VamVan vamsee...@gmail.com wrote: Why are you guys Burning your egos here? Its not the right place. It's a PHP-related general discussion, Vam. Perhaps not entirely in good manners, but it's 100% relevant. Indeed, this is the right place. I aplogize about top posting. I believe in Community building. My only concern was the kind of language used is very intimidating , that's all. Are you referring to bad language? Anyways cheers to all. I enjoy reading responses and asking questions here. This is the best group I have ever been involved with as long as I have started learning PHP. Thanks Again -- Kyle Terry | www.kyleterry.com
[PHP] Re: ANNOUNCEMENT: ModBox - an Open Platform as a Service (OPaaS)
Right, I just replied to the thread which started from my post. Glad I didn't hijack or top-post, but thanks for the potential heads-up just the same. Best, Brian - Original Message - From: Eric Butera eric.but...@gmail.com To: Robert Cummings rob...@interjinn.com Cc: c...@wizzyweb.com; Daniel Brown danbr...@php.net; php-general@lists.php.net Sent: Monday, January 19, 2009 3:00 PM Subject: Re: ANNOUNCEMENT: ModBox - an Open Platform as a Service (OPaaS) On Mon, Jan 19, 2009 at 2:57 PM, Robert Cummings rob...@interjinn.com wrote: Ok, you just hijacked a thread (I think (I don't have threading enabled)) and you top posted. You've probably burned through your goodwill in one shot :/ Cheers, Rob. On Mon, 2009-01-19 at 14:32 -0500, c...@wizzyweb.com wrote: After posting to this list to see if it is appropriate and getting good feedback, I'm posting an announcement I think is very relative to this list as I have been using PHP ever since it was a Perl script (PHP/FI) and have been heavily influenced by it's concept and evolution when creating what I am announcing. So the announcement is the launch of something I have been working on in my spare time for a long time and what I believe will be a logical next step in Internet development - ModBox an Open Platform as a Service (OPaaS). Ok, what the #...@#$ is OPaaS? OPaaS is PaaS, but open. Think Force.com/Google App Engine/Amazon EC2 - but open. Really open. Not fake open like so much other BS services that try to lock you in. In a nutshell, ModBox is a Web-based distributed development environment that is completely neutral in every way. So, you can use any infrastructure you want, any programming language, any server, any OS, any database, etc. to create/distribute applications. Also, because ModBox works over standard HTTP, you can incorporate existing applications or web services into the applications you create. ModBox brings all the pieces together seemlessly for programmers and users. I hope I have borrowed the best ideas from IDE's, RAD, frameworks, Web services grid/cloud computing and Open Source to make a logical ecosystem which puts a much needed front-end/face on all of it. This list is the first place I have announced ModBox and I welcome you to Rock the Box and let me know if it makes as much sense to you as it does to me. I would, of course greatly appreciate any feedback as I am not so bold to think I have cracked the code on the 1.0. The URL is below. ModBox - Open Platform as a Service: http://www.sullivansoftwaresystems.com/modbox Thanks for your time. Brian Sullivan Sullivan Software Systems ModBox - Rock the Box. - Original Message - From: Robert Cummings rob...@interjinn.com To: Eric Butera eric.but...@gmail.com Cc: Daniel Brown danbr...@php.net; c...@wizzyweb.com; php-general@lists.php.net Sent: Monday, January 19, 2009 1:20 PM Subject: Re: [PHP] Need List Advice On Mon, 2009-01-19 at 12:55 -0500, Eric Butera wrote: On Mon, Jan 19, 2009 at 12:42 PM, Robert Cummings rob...@interjinn.com wrote: On Mon, 2009-01-19 at 12:25 -0500, Daniel Brown wrote: On Mon, Jan 19, 2009 at 11:33, c...@wizzyweb.com wrote: I have been looking but can't find which PHP list is best to post info regarding a new PHP tool. I have seen new product/service announcements on this list, but thought there might be a better list. Any suggestions? As long as it's an announcement and not a commercial advertisement, you'll be fine. One thing that we generally consider bad etiquette as well would be only posting to this list to announce your product or project. Being a helpful contributor to the list in general will buy you some Brownie Points[tm]. We get brownie points for helping? Crap, who's keeping track of mine? I had no idea!! Can they be cashed in for treats? :B Oh man... 3312 msg http://marc.info/?a=10639834826r=1w=4 Good ol' Marc, that guy keeps track of everything! Now... about those treats -- http://www.interjinn.com Application and Templating Framework for PHP -- http://www.interjinn.com Application and Templating Framework for PHP Well it was his thread at first. Just mad you haven't got your treat yet? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Seg Faulting PHP
Hi all, Appologies if this is the wrong list - please direct me in the right direction should this be the case. I am running PHP 5.2.8 on freebsd 7.0 and am getting a Seg fault when running one of my new programs. We run a couple of other sites of this server (only one upgraded to 5.2.8) and they are running fine - its just this script. This script uses: Zend Framework Sqlite DB Simple Pie XML (simplepie.org) Now this is the output from the core file (when loaded): Reading symbols from /usr/local/lib/php/20060613-debug/soap.so...done. Loaded symbols for /usr/local/lib/php/20060613-debug/soap.so Reading symbols from /usr/local/lib/php/20060613-debug/sockets.so...done. Loaded symbols for /usr/local/lib/php/20060613-debug/sockets.so Reading symbols from /usr/local/lib/php/20060613-debug/sqlite.so...done. Loaded symbols for /usr/local/lib/php/20060613-debug/sqlite.so Reading symbols from /usr/local/lib/php/20060613-debug/sysvmsg.so...done. Loaded symbols for /usr/local/lib/php/20060613-debug/sysvmsg.so Reading symbols from /usr/local/lib/php/20060613-debug/sysvshm.so...done. Loaded symbols for /usr/local/lib/php/20060613-debug/sysvshm.so Reading symbols from /usr/local/lib/php/20060613-debug/tokenizer.so...done. Loaded symbols for /usr/local/lib/php/20060613-debug/tokenizer.so Reading symbols from /usr/local/lib/php/20060613-debug/xml.so...done. Loaded symbols for /usr/local/lib/php/20060613-debug/xml.so Reading symbols from /usr/local/lib/php/20060613-debug/xmlreader.so...done. Loaded symbols for /usr/local/lib/php/20060613-debug/xmlreader.so Reading symbols from /usr/local/lib/php/20060613-debug/xmlrpc.so...done. Loaded symbols for /usr/local/lib/php/20060613-debug/xmlrpc.so Reading symbols from /usr/local/lib/php/20060613-debug/xmlwriter.so...done. Loaded symbols for /usr/local/lib/php/20060613-debug/xmlwriter.so Reading symbols from /usr/local/lib/php/20060613-debug/zip.so...done. Loaded symbols for /usr/local/lib/php/20060613-debug/zip.so Reading symbols from /usr/local/lib/php/20060613-debug/zlib.so...done. Loaded symbols for /usr/local/lib/php/20060613-debug/zlib.so Reading symbols from /libexec/ld-elf.so.1...done. Loaded symbols for /libexec/ld-elf.so.1 #0 0x080721ab in match ( eptr=0x2986c3b9 port with brain damage./ppAccording to reports in the Daily Dispatch, Fara was having a quarrel with his fiancee Luanne Kirsten who was at the club with him, when the bouncers intervened./ppKi..., ecode=0x296e53ae _, mstart=0x2986c0ff 'pA 35-year-old East London man died today after being in a coma following an assault by a night club bouncer, Eastern Cape police said./pp\Chad Fara, died from head injuries in the intensive ca..., offset_top=4, md=0xbfbfb330, ims=0, eptrb=0x0, flags=0, rdepth=1395) at /usr/ports/lang/php5/work/php-5.2.8/ext/pcre/pcrelib/pcre_exec.c:714 714/usr/ports/lang/php5/work/php-5.2.8/ext/pcre/pcrelib/pcre_exec.c: No such file or directory. in /usr/ports/lang/php5/work/php-5.2.8/ext/pcre/pcrelib/pcre_exec.c [New Thread 0x28759300 (LWP 100067)] And now from a bt full: #0 0x080721ab in match ( eptr=0x2986c3b9 port with brain damage./ppAccording to reports in the Daily Dispatch, Fara was having a quarrel with his fiancee Luanne Kirsten who was at the club with him, when the bouncers intervened./ppKi..., ecode=0x296e53ae _, mstart=0x2986c0ff 'pA 35-year-old East London man died today after being in a coma following an assault by a night club bouncer, Eastern Cape police said./pp\Chad Fara, died from head injuries in the intensive ca..., offset_top=4, md=0xbfbfb330, ims=0, eptrb=0x0, flags=0, rdepth=1395) at /usr/ports/lang/php5/work/php-5.2.8/ext/pcre/pcrelib/pcre_exec.c:714 rrc = 0 i = 0 c = 0 utf8 = 0 minimize = 0 possessive = 0 charptr = (const uschar *) 0x0 callpat = (const uschar *) 0x0 data = (const uschar *) 0x0 next = (const uschar *) 0x0 pp = (const unsigned char *) 0x0 prev = (const uschar *) 0x0 saved_eptr = (const unsigned char *) 0x0 new_recursive = {prevrec = 0x0, group_num = 0, after_call = 0x0, save_start = 0x0, offset_save = 0x0, saved_max = 0} cur_is_word = 0 condition = 0 prev_is_word = 0 original_ims = 0 prop_type = 0 prop_value = 0 prop_fail_result = 0 prop_category = 0 prop_chartype = 0 prop_script = 0 oclength = 0 occhars = \000\000\000\000\000\000\000 ctype = 0 length = 0 max = 0 min = 0 number = 1 offset = 2 op = 95 save_capture_last = 1 save_offset1 = 796 save_offset2 = 797 save_offset3 = 796 stacksave = {0 repeats 30 times} newptrb = {epb_prev = 0x0, epb_saved_eptr = 0x0} Now I have looked in my extensions.ini and I dont have a pcre extension although I remember compiling it in - here is my extensions.ini: extension=bcmath.so extension=bz2.so extension=calendar.so extension=ctype.so extension=curl.so extension=simplexml.so extension=spl.so extension=dom.so
Re: [PHP] Re: ANNOUNCEMENT: ModBox - an Open Platform as a Service (OPaaS)
On Mon, Jan 19, 2009 at 12:11 PM, c...@wizzyweb.com wrote: Right, I just replied to the thread which started from my post. Glad I didn't hijack or top-post, but thanks for the potential heads-up just the same. Best, Brian - Original Message - From: Eric Butera eric.but...@gmail.com To: Robert Cummings rob...@interjinn.com Cc: c...@wizzyweb.com; Daniel Brown danbr...@php.net; php-general@lists.php.net Sent: Monday, January 19, 2009 3:00 PM Subject: Re: ANNOUNCEMENT: ModBox - an Open Platform as a Service (OPaaS) On Mon, Jan 19, 2009 at 2:57 PM, Robert Cummings rob...@interjinn.com wrote: Ok, you just hijacked a thread (I think (I don't have threading enabled)) and you top posted. You've probably burned through your goodwill in one shot :/ Cheers, Rob. On Mon, 2009-01-19 at 14:32 -0500, c...@wizzyweb.com wrote: After posting to this list to see if it is appropriate and getting good feedback, I'm posting an announcement I think is very relative to this list as I have been using PHP ever since it was a Perl script (PHP/FI) and have been heavily influenced by it's concept and evolution when creating what I am announcing. So the announcement is the launch of something I have been working on in my spare time for a long time and what I believe will be a logical next step in Internet development - ModBox an Open Platform as a Service (OPaaS). Ok, what the #...@#$ is OPaaS? OPaaS is PaaS, but open. Think Force.com/Google App Engine/Amazon EC2 - but open. Really open. Not fake open like so much other BS services that try to lock you in. In a nutshell, ModBox is a Web-based distributed development environment that is completely neutral in every way. So, you can use any infrastructure you want, any programming language, any server, any OS, any database, etc. to create/distribute applications. Also, because ModBox works over standard HTTP, you can incorporate existing applications or web services into the applications you create. ModBox brings all the pieces together seemlessly for programmers and users. I hope I have borrowed the best ideas from IDE's, RAD, frameworks, Web services grid/cloud computing and Open Source to make a logical ecosystem which puts a much needed front-end/face on all of it. This list is the first place I have announced ModBox and I welcome you to Rock the Box and let me know if it makes as much sense to you as it does to me. I would, of course greatly appreciate any feedback as I am not so bold to think I have cracked the code on the 1.0. The URL is below. ModBox - Open Platform as a Service: http://www.sullivansoftwaresystems.com/modbox Thanks for your time. Brian Sullivan Sullivan Software Systems ModBox - Rock the Box. - Original Message - From: Robert Cummings rob...@interjinn.com To: Eric Butera eric.but...@gmail.com Cc: Daniel Brown danbr...@php.net; c...@wizzyweb.com; php-general@lists.php.net Sent: Monday, January 19, 2009 1:20 PM Subject: Re: [PHP] Need List Advice On Mon, 2009-01-19 at 12:55 -0500, Eric Butera wrote: On Mon, Jan 19, 2009 at 12:42 PM, Robert Cummings rob...@interjinn.com wrote: On Mon, 2009-01-19 at 12:25 -0500, Daniel Brown wrote: On Mon, Jan 19, 2009 at 11:33, c...@wizzyweb.com wrote: I have been looking but can't find which PHP list is best to post info regarding a new PHP tool. I have seen new product/service announcements on this list, but thought there might be a better list. Any suggestions? As long as it's an announcement and not a commercial advertisement, you'll be fine. One thing that we generally consider bad etiquette as well would be only posting to this list to announce your product or project. Being a helpful contributor to the list in general will buy you some Brownie Points[tm]. We get brownie points for helping? Crap, who's keeping track of mine? I had no idea!! Can they be cashed in for treats? :B Oh man... 3312 msg http://marc.info/?a=10639834826r=1w=4 Good ol' Marc, that guy keeps track of everything! Now... about those treats -- http://www.interjinn.com Application and Templating Framework for PHP -- http://www.interjinn.com Application and Templating Framework for PHP Well it was his thread at first. Just mad you haven't got your treat yet? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php You just top posted. -- Kyle Terry | www.kyleterry.com
Re: [PHP] Need List Advice
I think it means Rob has to bake us all some brownies and ship 'em out to us... :-) -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Server cannot send emails
Thanks to all. The problem is caused by a server restriction. SourceForge.net does not allow to send emails from PHP. Bye! 2009/1/17 Morris morris...@gmail.com: If you are using apache + php, check php.in your server is able to support the mail() function and you have correctly set up the send and return address. 2009/1/17 Ashley Sheridan a...@ashleysheridan.co.uk On Fri, 2009-01-16 at 15:25 +0100, Sergio Jovani wrote: Hi, Thanks for replying. Adding From header did not solve the problem. I'm thinking is a server limitation. Could it be? 2009/1/16 Thiago H. Pojda thiago.po...@gmail.com: On Fri, Jan 16, 2009 at 10:36 AM, Sergio Jovani lese...@gmail.com wrote: Hi! I have working at SourceForge.net project web space Drupal as CMS. I have many modules installed related with email like Contact, Notify... This modules never worked and I tried send an email from email php function. I did it with: ?php $to = myem...@gmail.com; $subject = Hi!; $body = Hi,\n\nHow are you?; if (mail($to, $subject, $body)) { echo(pMessage successfully sent!/p); } else { echo(pMessage delivery failed.../p); } ? This does not work too. Is there any issue with email sending from SourceForge.net? Looks like you're missing the From: part of the email. That's probably your issue. I never used sourceforge, but I know many hostings require you to specify a sender. from http://php.net/manual/en/function.mail.php ?php $to = 'nob...@example.com'; $subject = 'the subject'; $message = 'hello'; $headers = 'From: webmas...@example.com' . \r\n . 'Reply-To: webmas...@example.com' . \r\n . 'X-Mailer: PHP/' . phpversion(); mail($to, $subject, $message, $headers); ? Thiago Henrique Pojda http://nerdnaweb.blogspot DOT com What's the return code you get from your mail() call? Ash www.ashleysheridan.co.uk -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] PHP and Apache configuration
I doubt that you can use re-direct and do what you want, since a re-direct does just that: re-direct the USER to the URL. What you *could* do is get rid of the re-direct and just include('scriptfile.php'); by using ForceType on imagefile.jpg to be application/x-httpd-php Then scriptfile.php can be outside the webtree where it is inaccessible by definition. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Re: Secure redirection?
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 are only redirecting the ajax request not the entire page, you need to send back a command to javascript that tells javascript to redirect the page. there are many ways around this, none of them involve using a server side redirect, it's a client side redirect you need. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Undefined index error
On Jan 19, 2009, at 2:32 PM, Richard Heyes wrote: Notice: Undefined index: 2 in /home/raosetc/public_html/purl/p.php on line 19 and here is Line 19: $data = explode(/, $_SERVER['REQUEST_URI']); Hi, Are you sure it's an array? Use print_r() or var_dump() on $_SERVER['REQUEST_URI'] on the preceding line. Just for testing, you could do this too: $_SERVER['REQUEST_URI'] = 'It/Works'; ...on the preceding line. actually at that point it's not an array... it's just loading purl.mysupersite.com/test so REQUEST_URI just contains test I just want to squash that error until they go to a page in the site :) I'm thinking I just need to think this one through a little bit and I'm sure the solution ill come to me. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Undefined index error
On Mon, Jan 19, 2009 at 14:32, Richard Heyes rich...@php.net wrote: Notice: Undefined index: 2 in /home/raosetc/public_html/purl/p.php on line 19 and here is Line 19: $data = explode(/, $_SERVER['REQUEST_URI']); When I view that file, on line 19, I see: echo HTML Are you sure it's an array? Use print_r() or var_dump() on $_SERVER['REQUEST_URI'] on the preceding line. Just for testing, you could do this too: $_SERVER['REQUEST_URI'] = 'It/Works'; ...on the preceding line. Well, that wouldn't address the issue of the code he gave on the line reported, but I know what you mean, Richy. He's turning $_SERVER['REQUEST_URI'] into an array with explode() if it contains a forward-slash (/). What would be better in that case would be: ?php $data = isset($_SERVER['REQUEST_URI']) strlen($_SERVER['REQUEST_URI']) 0 ? explode('/',$_SERVER['REQUEST_URI']) : $_SERVER['REQUEST_URI']; if(is_array($data)) { // Handle as appropriate. } ? However, that's not the best option as: 1.) REQUEST_URI may not (though it should) have *any* forward slashes in the URI passed to PHP by the HTTP server. 2.) It leaves too much other stuff to be done. Instead, check out: ?php $data = basename($_SERVER['REQUEST_URI']); echo $data; // In case you're not yet aware of what you'll receive from the use of basename() ? -- /Daniel P. Brown daniel.br...@parasane.net || danbr...@php.net http://www.parasane.net/ || http://www.pilotpig.net/ Unadvertised dedicated server deals, too low to print - email me to find out! -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Undefined index error
There is no reference to index '2' in that line 19. What is the next line? Something which expects at least 3 elements in the URI, perhaps?... [Hint, hint] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Re: How serialize DOMDocument object?
Михаил Гаврилов 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($s); // unserialize or if you really want to use serialize function $s = DOMDocument-saveXML(); serialize($s); -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Need List Advice
On Mon, Jan 19, 2009 at 15:19, c...@l-i-e.com wrote: I think it means Rob has to bake us all some brownies and ship 'em out to us... :-) Except that it also means we know by pattern that we can't count on him to break away from the computer long enough to do that. ;-P -- /Daniel P. Brown daniel.br...@parasane.net || danbr...@php.net http://www.parasane.net/ || http://www.pilotpig.net/ Unadvertised dedicated server deals, too low to print - email me to find out! -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Re: Opinions / Votes Needed
On Mon, Jan 19, 2009 at 15:08, Kyle Terry k...@kyleterry.com wrote: On Mon, Jan 19, 2009 at 12:05 PM, VamVan vamsee...@gmail.com wrote: I believe in Community building. My only concern was the kind of language used is very intimidating , that's all. Are you referring to bad language? An unintended pun. Nice. ;-P -- /Daniel P. Brown daniel.br...@parasane.net || danbr...@php.net http://www.parasane.net/ || http://www.pilotpig.net/ Unadvertised dedicated server deals, too low to print - email me to find out! -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Undefined index error
On Jan 19, 2009, at 3:28 PM, Daniel Brown wrote: On Mon, Jan 19, 2009 at 14:32, Richard Heyes rich...@php.net wrote: Notice: Undefined index: 2 in /home/raosetc/public_html/purl/p.php on line 19 and here is Line 19: $data = explode(/, $_SERVER['REQUEST_URI']); When I view that file, on line 19, I see: echo HTML Only when you log into certain accounts and view the file after I had made changes :P Are you sure it's an array? Use print_r() or var_dump() on $_SERVER['REQUEST_URI'] on the preceding line. Just for testing, you could do this too: $_SERVER['REQUEST_URI'] = 'It/Works'; ...on the preceding line. Well, that wouldn't address the issue of the code he gave on the line reported, but I know what you mean, Richy. He's turning $_SERVER['REQUEST_URI'] into an array with explode() if it contains a forward-slash (/). What would be better in that case would be: ?php $data = isset($_SERVER['REQUEST_URI']) strlen($_SERVER['REQUEST_URI']) 0 ? explode('/',$_SERVER['REQUEST_URI']) : $_SERVER['REQUEST_URI']; if(is_array($data)) { // Handle as appropriate. } ? However, that's not the best option as: 1.) REQUEST_URI may not (though it should) have *any* forward slashes in the URI passed to PHP by the HTTP server. 2.) It leaves too much other stuff to be done. Instead, check out: ?php $data = basename($_SERVER['REQUEST_URI']); echo $data; // In case you're not yet aware of what you'll receive from the use of basename() ? I'm not positive that does exactly what I want... What I'm really going for is given this URL: purl.mysupersite.com/test/mail test refers to a record in the database. mail refers to a file on the server which is included when mail is present. Otherwise the main page is used. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Seg Faulting PHP
On Mon, Jan 19, 2009 at 15:12, Ian barnrac...@gmail.com wrote: Hi all, Appologies if this is the wrong list - please direct me in the right direction should this be the case. I am running PHP 5.2.8 on freebsd 7.0 and am getting a Seg fault when running one of my new programs. We run a couple of other sites of this server (only one upgraded to 5.2.8) and they are running fine - its just this script. This script uses: If you can run it from the command line, Ian, check the tail of strace by running: strace php -e /path/to/offending/script.php Otherwise, there may be a problem with that particular port with your system. If all else fails, compile from source. -- /Daniel P. Brown daniel.br...@parasane.net || danbr...@php.net http://www.parasane.net/ || http://www.pilotpig.net/ Unadvertised dedicated server deals, too low to print - email me to find out! -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Re: ANNOUNCEMENT: ModBox - an Open Platform as a Service (OPaaS)
On Mon, 2009-01-19 at 15:11 -0500, c...@wizzyweb.com wrote: Right, I just replied to the thread which started from my post. Glad I didn't hijack or top-post, but thanks for the potential heads-up just the same. Doh, 40 lashes for me... ... and a bottle of rum to nurse! :) Cheers, Rob. -- http://www.interjinn.com Application and Templating Framework for PHP -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Need List Advice
On Mon, 2009-01-19 at 20:19 +, c...@l-i-e.com wrote: I think it means Rob has to bake us all some brownies and ship 'em out to us... :-) My deale^H^H^H^H^H^H^H I can't get any ingredients. Cheers, Rob. -- http://www.interjinn.com Application and Templating Framework for PHP -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] 64bit vs. 32bit
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 -- =o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o DONOVAN D. BROOKE EUCA Design Center - Web Development, DTP, Consulting, and Labels - PH: (608) 770-3822| WEB: http://www.euca.ushttp://www.egg.bz =o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Undefined index error
On Mon, Jan 19, 2009 at 15:39, Jason Pruim japr...@raoset.com wrote: Only when you log into certain accounts and view the file after I had made changes :P I figured you had already changed it, but when you're root, you don't have to log in to other accounts. ;-P What I'm really going for is given this URL: purl.mysupersite.com/test/mail test refers to a record in the database. mail refers to a file on the server which is included when mail is present. Otherwise the main page is used. So then you'll use mod_rewrite, since Apache needs to tell PHP how to parse it. Otherwise, Apache is going to be looking for /test/mail. #.htaccess: # Options -MultiViews RewriteEngine On # ## Redirect to remove trailing slashes on extensionless URL requests # If requested URL ending with slash does not resolve to an existing directory RewriteCond %{REQUEST_FILENAME} !-d # externally redirect to remove trailing slash. RewriteRule ^(.+)/$ /index.php?s=$1 [QSA,L] # ## Externally redirect clients directly requesting .php page URIs to extensionless URIs # If client request header contains php file extension RewriteCond %{THE_REQUEST} ^[A-Z]{3,9}\ /[^.]+\.php\ HTTP # externally redirect to extensionless URI. RewriteRule ^([^.]+)\.php$ /index.php?s=$1 [QSA,R=301,L] # ## Internally rewrite extensionless file requests to .php files ## # If the requested URI does not contain a period in the final path-part RewriteCond %{REQUEST_URI} !(\.[^./]+)$ # and if it does not exist as a directory RewriteCond %{REQUEST_FILENAME} !-d # and if it does not exist as a file RewriteCond %{REQUEST_FILENAME} !-f # then add .php to get the actual filename. RewriteRule (.+) /index.php?s=$1 [QSA,L] # End .htaccess You can figure out the rest yourself. ;-P -- /Daniel P. Brown daniel.br...@parasane.net || danbr...@php.net http://www.parasane.net/ || http://www.pilotpig.net/ Unadvertised dedicated server deals, too low to print - email me to find out! -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] 64bit vs. 32bit
On Mon, Jan 19, 2009 at 15:56, dbrooke li...@euca.us 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? Like running PHP/64 on CentOS5/32 or another 32-bit system? Or are you talking about switching over to a 64-bit OS as well? -- /Daniel P. Brown daniel.br...@parasane.net || danbr...@php.net http://www.parasane.net/ || http://www.pilotpig.net/ Unadvertised dedicated server deals, too low to print - email me to find out! -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] PHP and Apache configuration
I like this apache solution, but if i put SetEnvIf Referer ^http://www.yourdomain.com; local_referal Then i can access the file putting this path in the URL: http://www.yourdomain.com/xyz/scriptfile.php And i don´t want the script to be access by the url. That is the main problem. Thanks On Mon, Jan 19, 2009 at 1:38 PM, Richard Heyes rich...@php.net wrote: ... This may be of some help. It's from the Apache website and only allows access if the Referer header is sent by the browser and is www.yourdomain.com, ie. Direct access is not permitted: ### SetEnvIf Referer ^http://www.yourdomain.com; local_referal Order Deny,Allow Deny from all Allow from env=local_referal ### -- Richard Heyes HTML5 Graphing for Firefox, Chrome, Opera and Safari: http://www.rgraph.org (Updated January 17th)
Re: [PHP] PHP Imagefill
On Sun, 2009-01-18 at 23:03 -0500, Ron Piggott wrote: Is there a way to specify an already existing file to use as the background, instead of a specific color, such as what http://ca.php.net/manual/en/function.imagefill.php illustrates? Ron Yes. But what do you want to do with it? Do you want to tile it, scale it, etc? Look at the image_copy functions, that should give you a start. Ash www.ashleysheridan.co.uk -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] 64bit vs. 32bit
On Mon, 2009-01-19 at 14:56 -0600, 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) I'm running an AMD 64-bit (phenom) dev system... I haven't experienced any problems yet. Generally speaking 64-bit will eat up a bit more memory though due to wider integer fields. Cheers, Rob. -- http://www.interjinn.com Application and Templating Framework for PHP -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] old HTTP variables
On Sun, 2009-01-18 at 22:50 -0700, Ashley M. Kirchner wrote: Larry Garfield wrote: http://us3.php.net/manual/en/ini.core.php#ini.register-long-arrays Bingo. That's what I needed. Although you should probably take the time to upgrade the app anyway, as those variables are deprecated and won't be around forever. Yeah, that would be nice, except it's not something I wrote, nor am I inclined to go rewrite the app at this point in time. Maybe sometime later, but right now I just needed to get the thing up and running. Thanks for the pointer! Why did you upgrade the PHP then? Ash www.ashleysheridan.co.uk
Re: [PHP] 64bit vs. 32bit
Robert Cummings wrote: On Mon, 2009-01-19 at 14:56 -0600, 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) I'm running an AMD 64-bit (phenom) dev system... I haven't experienced any problems yet. Generally speaking 64-bit will eat up a bit more memory though due to wider integer fields. Cheers, Rob. Thanks, any other limitations, perhaps with extensions / libraries that you know of (using 64bit)? Donovan -- -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] developers life
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 on projects, often for no good reason - inability to flip out of work mode at 5pm like the rest of the world -- [sub] not feeling normal unless worked you've extra; while other professions demand overtime as little as an extra 15 minutes - constant learning (positive thing) - unlimited skill scope, if its on a computer you'll give it a go - amazing ability to prioritise (the wrong things) - all projects suddenly become uninteresting and all motivation is lost at approx 65-85 percent completion - the code seems more important than the app (even though its not) - lots more but lost interest / focus ps: expectantly installed windows 7 over the weekend, brief moment of excitement coupled with the thought i wonder what it's like; anticlimax + reality check, it was just a taskbar, start menu and desktop.. you'd think I'd know by now. regards :-) i so have more important things to do -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] 64bit vs. 32bit
On Mon, 2009-01-19 at 15:18 -0600, dbrooke wrote: Robert Cummings wrote: On Mon, 2009-01-19 at 14:56 -0600, 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) I'm running an AMD 64-bit (phenom) dev system... I haven't experienced any problems yet. Generally speaking 64-bit will eat up a bit more memory though due to wider integer fields. Cheers, Rob. Thanks, any other limitations, perhaps with extensions / libraries that you know of (using 64bit)? Donovan -- As far as I know, you can still have 32-bit components in a 64-bit operating system, although there are some slight limitations on how far this goes and what components. Ash www.ashleysheridan.co.uk -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] 64bit vs. 32bit
On Mon, 2009-01-19 at 15:18 -0600, dbrooke wrote: Robert Cummings wrote: On Mon, 2009-01-19 at 14:56 -0600, 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) I'm running an AMD 64-bit (phenom) dev system... I haven't experienced any problems yet. Generally speaking 64-bit will eat up a bit more memory though due to wider integer fields. Cheers, Rob. Thanks, any other limitations, perhaps with extensions / libraries that you know of (using 64bit)? None that I've seen, though just realized that may be because I compile PHP from source (on my dev system). I doubt there would be an issue though with most distros out there that have 64 bit versions since they would use the same source (for the most part). Cheers, Rob. -- http://www.interjinn.com Application and Templating Framework for PHP -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] developers life
On Mon, Jan 19, 2009 at 1:28 PM, Nathan Rixham nrix...@gmail.com 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 of inhuman focus, followed by inability to remain focussed - general tendancy to keep taking on projects, often for no good reason - inability to flip out of work mode at 5pm like the rest of the world -- [sub] not feeling normal unless worked you've extra; while other professions demand overtime as little as an extra 15 minutes - constant learning (positive thing) - unlimited skill scope, if its on a computer you'll give it a go - amazing ability to prioritise (the wrong things) - all projects suddenly become uninteresting and all motivation is lost at approx 65-85 percent completion - the code seems more important than the app (even though its not) - lots more but lost interest / focus Every day of my life. ps: expectantly installed windows 7 over the weekend, brief moment of excitement coupled with the thought i wonder what it's like; anticlimax + reality check, it was just a taskbar, start menu and desktop.. you'd think I'd know by now. regards :-) i so have more important things to do -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- Kyle Terry | www.kyleterry.com
[PHP] How to use SVN + PHP
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. Situation is: There are already 2 servers. One running the live/productive version and one for developing new features. Until now it works like: copy live code to develop-server - develop new features - try to migrate to live-server. My ideas about using SVN are these: - Repository is managing trunk, branch and tag - Live-server works as client of the rep, getting the latest tag - Develop-server uses mainly latest trunk and of course branches as needed Until now there is no problem. But: developing before was like: write new source, transfering to develop-server, calling page with browser, checking if everythings works and start form beginning. Now same(?) with SVN: - writing new source - but than? commiting to rep and than updating as of servers point of view? not very nice to work with. Is it possible to configure one client (here develop-server) to automatically updating from rep if something is committed? Next problem: While writing new code there are many small bugs like used an array instead of an string or other way round forgotten parameters and so on. Usually there are quite some file transfers until some piece of code works quite well. But with the method above all these versions would end up being in the rep and kind of polluting it. To solve this I thought about just creating a branch with every work cycle (so after updating until committing a working version) and than while committing also merging it back with current trunk/branch... Well but I'm quite not sure if this is how it should work... Any useful hints on that? Some background notes: - Never used SVN or similar software before, but read and I think understood advantages and basic usage of SVN - Don't know if there is maybe alternative software more useful to use with php? -eddy
Re: [PHP] Server cannot send emails
Sergio Jovani wrote: Thanks to all. The problem is caused by a server restriction. SourceForge.net does not allow to send emails from PHP. Bye! 2009/1/17 Morris morris...@gmail.com: If you are using apache + php, check php.in your server is able to support the mail() function and you have correctly set up the send and return address. 2009/1/17 Ashley Sheridan a...@ashleysheridan.co.uk On Fri, 2009-01-16 at 15:25 +0100, Sergio Jovani wrote: Hi, Thanks for replying. Adding From header did not solve the problem. I'm thinking is a server limitation. Could it be? 2009/1/16 Thiago H. Pojda thiago.po...@gmail.com: On Fri, Jan 16, 2009 at 10:36 AM, Sergio Jovani lese...@gmail.com wrote: Hi! I have working at SourceForge.net project web space Drupal as CMS. I have many modules installed related with email like Contact, Notify... This modules never worked and I tried send an email from email php function. I did it with: ?php $to = myem...@gmail.com; $subject = Hi!; $body = Hi,\n\nHow are you?; if (mail($to, $subject, $body)) { echo(pMessage successfully sent!/p); } else { echo(pMessage delivery failed.../p); } ? This does not work too. Is there any issue with email sending from SourceForge.net? Looks like you're missing the From: part of the email. That's probably your issue. I never used sourceforge, but I know many hostings require you to specify a sender. from http://php.net/manual/en/function.mail.php ?php $to = 'nob...@example.com'; $subject = 'the subject'; $message = 'hello'; $headers = 'From: webmas...@example.com' . \r\n . 'Reply-To: webmas...@example.com' . \r\n . 'X-Mailer: PHP/' . phpversion(); mail($to, $subject, $message, $headers); ? Thiago Henrique Pojda http://nerdnaweb.blogspot DOT com What's the return code you get from your mail() call? Ash www.ashleysheridan.co.uk -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php It appears that hosts are starting to restrict email service unless the program uses authenticated smtp. My host recently did so. It appears the problem is Durpal and maybe not specifically SF; but, I didn't delve into throughly. http://drupal.org/node/18694 All my new scripts with mail functions use Pear Mail and it works fine. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] developers life
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 of inhuman focus, followed by inability to remain focussed - general tendancy to keep taking on projects, often for no good reason - inability to flip out of work mode at 5pm like the rest of the world -- [sub] not feeling normal unless worked you've extra; while other professions demand overtime as little as an extra 15 minutes - constant learning (positive thing) - unlimited skill scope, if its on a computer you'll give it a go - amazing ability to prioritise (the wrong things) - all projects suddenly become uninteresting and all motivation is lost at approx 65-85 percent completion - the code seems more important than the app (even though its not) - lots more but lost interest / focus Are you an INTP? http://www.personalitytest.net/cgi-bin/q.pl (I don't know how good the test is, I picked one at random) Cheers, Rob. -- http://www.interjinn.com Application and Templating Framework for PHP -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] developers life
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 yes, but it tends to be side-tracking to what management thinks is more important; which usually isn't! - vast amount of inhuman focus, followed by inability to remain focussed yes, and coffee can only go so far! - general tendancy to keep taking on projects, often for no good reason yes, I'm a sucker really, and can't seem to say no to people - inability to flip out of work mode at 5pm like the rest of the world yes, i work a lot on the commute to/from work :-/ -- [sub] not feeling normal unless worked you've extra; while other professions demand overtime as little as an extra 15 minutes - constant learning (positive thing) yep - unlimited skill scope, if its on a computer you'll give it a go not too sure about actual skill scope, but like many a man, i'll give it a go, even if I know I don't know what I'm doing! - amazing ability to prioritise (the wrong things) yes, albeit aided immensely by management! - all projects suddenly become uninteresting and all motivation is lost at approx 65-85 percent completion yeah, funny that! - the code seems more important than the app (even though its not) what's usability again? - lots more but lost interest / focus hehe ps: expectantly installed windows 7 over the weekend, brief moment of excitement coupled with the thought i wonder what it's like; anticlimax + reality check, it was just a taskbar, start menu and desktop.. you'd think I'd know by now. go linux ;) regards :-) i so have more important things to do Ash www.ashleysheridan.co.uk -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] developers life
On Mon, 19 Jan 2009, Kyle Terry wrote: On Mon, Jan 19, 2009 at 1:28 PM, Nathan Rixham nrix...@gmail.com 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 of inhuman focus, followed by inability to remain focussed - general tendancy to keep taking on projects, often for no good reason - inability to flip out of work mode at 5pm like the rest of the world -- [sub] not feeling normal unless worked you've extra; while other professions demand overtime as little as an extra 15 minutes - constant learning (positive thing) - unlimited skill scope, if its on a computer you'll give it a go - amazing ability to prioritise (the wrong things) - all projects suddenly become uninteresting and all motivation is lost at approx 65-85 percent completion - the code seems more important than the app (even though its not) - lots more but lost interest / focus Every day of my life. Particularly the loss of interest and motivation at 65-85 percent! ps: expectantly installed windows 7 over the weekend, brief moment of excitement coupled with the thought i wonder what it's like; anticlimax + reality check, it was just a taskbar, start menu and desktop.. you'd think I'd know by now. regards :-) i so have more important things to do -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- Kyle Terry | www.kyleterry.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] developers life
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 of inhuman focus, followed by inability to remain focussed - general tendancy to keep taking on projects, often for no good reason - inability to flip out of work mode at 5pm like the rest of the world -- [sub] not feeling normal unless worked you've extra; while other professions demand overtime as little as an extra 15 minutes - constant learning (positive thing) - unlimited skill scope, if its on a computer you'll give it a go - amazing ability to prioritise (the wrong things) - all projects suddenly become uninteresting and all motivation is lost at approx 65-85 percent completion - the code seems more important than the app (even though its not) - lots more but lost interest / focus You just described me! :-) afan -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] PHP and Apache configuration
2009/1/19 R B rbp...@gmail.com I like this apache solution, but if i put SetEnvIf Referer ^http://www.yourdomain.com; local_referal Then i can access the file putting this path in the URL: http://www.yourdomain.com/xyz/scriptfile.php And i don´t want the script to be access by the url. That is the main problem. No, you can't , not if you do it properly. imagine that you have a folder like /srv/www/htdocs that is the document root of you web server, and you have /srv/www/includes, just annother file. You can have al your protected files ther, and include them from files that are in the document root of your web server, and are public. If you don't want this sepparation, you can use a .htaccess file in the folder, and deny the folder from all. (i recall hearing/reding that this actually works even if allow overrule is off , didn't actually tryed it, but i imagine is more of a hack ) Thanks On Mon, Jan 19, 2009 at 1:38 PM, Richard Heyes rich...@php.net wrote: ... This may be of some help. It's from the Apache website and only allows access if the Referer header is sent by the browser and is www.yourdomain.com, ie. Direct access is not permitted: ### SetEnvIf Referer ^http://www.yourdomain.com; local_referal Order Deny,Allow Deny from all Allow from env=local_referal ### -- Richard Heyes HTML5 Graphing for Firefox, Chrome, Opera and Safari: http://www.rgraph.org (Updated January 17th) -- Torok, Alpar Istvan
[PHP] Re: How to use SVN + PHP
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 deploy to live.. just a little bash script that prompts me for the version number to use, then it scp's the files over in a second. as for the development process; normally I develop and test locally, then when happy scp from svn to staging site, then when clients happy scp to live site (with scripts, and version tagging in svn). Next problem: While writing new code there are many small bugs like used an array instead of an string or other way round forgotten parameters and so on. Usually there are quite some file transfers until some piece of code works quite well. But with the method above all these versions would end up being in the rep and kind of polluting it. To solve this I thought about just creating a branch with every work cycle (so after updating until committing a working version) and than while committing also merging it back with current trunk/branch... 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. maybe more importantly.. you shouldn't really be getting to production live with these errors (you always will at some point) - perhaps you want to look at unit testing, and even continuous integration/building while you're there. ps: pdt-eclipse is great, you can integrate it right in with svn for handy diff's, commits, updates etc (and svn in with bugzilla, mylyn loads more..) -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] developers life
On Mon, Jan 19, 2009 at 1:38 PM, Afan Pasalic a...@afan.net wrote: 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 of inhuman focus, followed by inability to remain focussed - general tendancy to keep taking on projects, often for no good reason - inability to flip out of work mode at 5pm like the rest of the world -- [sub] not feeling normal unless worked you've extra; while other professions demand overtime as little as an extra 15 minutes - constant learning (positive thing) - unlimited skill scope, if its on a computer you'll give it a go - amazing ability to prioritise (the wrong things) - all projects suddenly become uninteresting and all motivation is lost at approx 65-85 percent completion - the code seems more important than the app (even though its not) - lots more but lost interest / focus You just described me! :-) afan -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php I'm actually convinced it's the PHP mailing list disease. -- Kyle Terry | www.kyleterry.com
Re: [PHP] developers life
On Mon, 19 Jan 2009, 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 of inhuman focus, followed by inability to remain focussed - general tendancy to keep taking on projects, often for no good reason - inability to flip out of work mode at 5pm like the rest of the world -- [sub] not feeling normal unless worked you've extra; while other professions demand overtime as little as an extra 15 minutes - constant learning (positive thing) - unlimited skill scope, if its on a computer you'll give it a go - amazing ability to prioritise (the wrong things) - all projects suddenly become uninteresting and all motivation is lost at approx 65-85 percent completion - the code seems more important than the app (even though its not) - lots more but lost interest / focus Are you an INTP? Well I got INTP :) That's a pretty good test actually, but you could have chosen a PHP one ;) http://www.personalitytest.net/cgi-bin/q.pl (I don't know how good the test is, I picked one at random) Cheers, Rob. -- http://www.interjinn.com Application and Templating Framework for PHP -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] developers life
I'm not alone then (didn't think so :p) Ashley Sheridan 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 yes, but it tends to be side-tracking to what management thinks is more important; which usually isn't! so true - worse yet, a client with a comittee! - vast amount of inhuman focus, followed by inability to remain focussed yes, and coffee can only go so far! - general tendancy to keep taking on projects, often for no good reason yes, I'm a sucker really, and can't seem to say no to people - inability to flip out of work mode at 5pm like the rest of the world yes, i work a lot on the commute to/from work :-/ -- [sub] not feeling normal unless worked you've extra; while other professions demand overtime as little as an extra 15 minutes - constant learning (positive thing) yep - unlimited skill scope, if its on a computer you'll give it a go not too sure about actual skill scope, but like many a man, i'll give it a go, even if I know I don't know what I'm doing! - amazing ability to prioritise (the wrong things) yes, albeit aided immensely by management! - all projects suddenly become uninteresting and all motivation is lost at approx 65-85 percent completion yeah, funny that! - the code seems more important than the app (even though its not) what's usability again? - lots more but lost interest / focus hehe ps: expectantly installed windows 7 over the weekend, brief moment of excitement coupled with the thought i wonder what it's like; anticlimax + reality check, it was just a taskbar, start menu and desktop.. you'd think I'd know by now. go linux ;) i am at work, but at home virtualbox for all your multi-os needs -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] developers life
2009/1/19 Ashley Sheridan a...@ashleysheridan.co.uk 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 yes, but it tends to be side-tracking to what management thinks is more important; which usually isn't! - vast amount of inhuman focus, followed by inability to remain focussed yes, and coffee can only go so far! - general tendancy to keep taking on projects, often for no good reason yes, I'm a sucker really, and can't seem to say no to people - inability to flip out of work mode at 5pm like the rest of the world yes, i work a lot on the commute to/from work :-/ -- [sub] not feeling normal unless worked you've extra; while other professions demand overtime as little as an extra 15 minutes - constant learning (positive thing) yep - unlimited skill scope, if its on a computer you'll give it a go not too sure about actual skill scope, but like many a man, i'll give it a go, even if I know I don't know what I'm doing! - amazing ability to prioritise (the wrong things) yes, albeit aided immensely by management! - all projects suddenly become uninteresting and all motivation is lost at approx 65-85 percent completion yeah, funny that! - the code seems more important than the app (even though its not) what's usability again? - lots more but lost interest / focus hehe ps: expectantly installed windows 7 over the weekend, brief moment of excitement coupled with the thought i wonder what it's like; anticlimax + reality check, it was just a taskbar, start menu and desktop.. you'd think I'd know by now. go linux ;) ++1 regards :-) i so have more important things to do Ash www.ashleysheridan.co.uk -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- Torok, Alpar Istvan
Re: [PHP] developers life
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 of inhuman focus, followed by inability to remain focussed - general tendancy to keep taking on projects, often for no good reason - inability to flip out of work mode at 5pm like the rest of the world -- [sub] not feeling normal unless worked you've extra; while other professions demand overtime as little as an extra 15 minutes - constant learning (positive thing) - unlimited skill scope, if its on a computer you'll give it a go - amazing ability to prioritise (the wrong things) - all projects suddenly become uninteresting and all motivation is lost at approx 65-85 percent completion - the code seems more important than the app (even though its not) - lots more but lost interest / focus Are you an INTP? http://www.personalitytest.net/cgi-bin/q.pl thanks for that rob, but predicatably I've got to number 26 and stopped - penetrating insight, lol sidenote: wonder what the results would be if we all got our respective other halfs to complete it for us. [for those of you without, you're manager will do] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] developers life
On Mon, 2009-01-19 at 21:46 +, Luke Slater wrote: On Mon, 19 Jan 2009, 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 of inhuman focus, followed by inability to remain focussed - general tendancy to keep taking on projects, often for no good reason - inability to flip out of work mode at 5pm like the rest of the world -- [sub] not feeling normal unless worked you've extra; while other professions demand overtime as little as an extra 15 minutes - constant learning (positive thing) - unlimited skill scope, if its on a computer you'll give it a go - amazing ability to prioritise (the wrong things) - all projects suddenly become uninteresting and all motivation is lost at approx 65-85 percent completion - the code seems more important than the app (even though its not) - lots more but lost interest / focus Are you an INTP? Well I got INTP :) Well the above description matched me fairly well and I recognized the INTP'ness of it all -- I'm also an INTP :) That's a pretty good test actually, but you could have chosen a PHP one ;) Yeah... but I left it as an exercise ;) Cheers, Rob. -- http://www.interjinn.com Application and Templating Framework for PHP -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] developers life
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 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 on projects, often for no good reason - inability to flip out of work mode at 5pm like the rest of the world -- [sub] not feeling normal unless worked you've extra; while other professions demand overtime as little as an extra 15 minutes - constant learning (positive thing) - unlimited skill scope, if its on a computer you'll give it a go - amazing ability to prioritise (the wrong things) - all projects suddenly become uninteresting and all motivation is lost at approx 65-85 percent completion - the code seems more important than the app (even though its not) - lots more but lost interest / focus Are you an INTP? http://www.personalitytest.net/cgi-bin/q.pl thanks for that rob, but predicatably I've got to number 26 and stopped - penetrating insight, lol Then your not INTP enough :) An INTP would want to know. Cheers, Rob. -- http://www.interjinn.com Application and Templating Framework for PHP -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] developers life
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 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 on projects, often for no good reason - inability to flip out of work mode at 5pm like the rest of the world -- [sub] not feeling normal unless worked you've extra; while other professions demand overtime as little as an extra 15 minutes - constant learning (positive thing) - unlimited skill scope, if its on a computer you'll give it a go - amazing ability to prioritise (the wrong things) - all projects suddenly become uninteresting and all motivation is lost at approx 65-85 percent completion - the code seems more important than the app (even though its not) - lots more but lost interest / focus Are you an INTP? http://www.personalitytest.net/cgi-bin/q.pl thanks for that rob, but predicatably I've got to number 26 and stopped - penetrating insight, lol Then your not INTP enough :) An INTP would want to know. Cheers, Rob. i do.. it's still open in a tab :-) sidetracked -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] developers life
On Mon, Jan 19, 2009 at 4:28 PM, Nathan Rixham nrix...@gmail.com 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 of course - vast amount of inhuman focus, followed by inability to remain focussed uh? - general tendancy to keep taking on projects, often for no good reason can't get enough - inability to flip out of work mode at 5pm like the rest of the world what, you mean they finish at 5? lazy bastards! -- [sub] not feeling normal unless worked you've extra; while other professions demand overtime as little as an extra 15 minutes - constant learning (positive thing) always, flex php at the moment - unlimited skill scope, if its on a computer you'll give it a go try anything once! - amazing ability to prioritise (the wrong things) thank god for management, esp when the boss has ADD! - all projects suddenly become uninteresting and all motivation is lost at approx 65-85 percent completion You mean its supposed to get to 100% completion. But then how would I keep getting paid if the project can drag on for 3 years? - the code seems more important than the app (even though its not) Code is always the most important - lots more but lost interest / focus regards :-) i so have more important things to do -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- Bastien Cat, the other other white meat
Re: [PHP] developers life
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 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 on projects, often for no good reason - inability to flip out of work mode at 5pm like the rest of the world -- [sub] not feeling normal unless worked you've extra; while other professions demand overtime as little as an extra 15 minutes - constant learning (positive thing) - unlimited skill scope, if its on a computer you'll give it a go - amazing ability to prioritise (the wrong things) - all projects suddenly become uninteresting and all motivation is lost at approx 65-85 percent completion - the code seems more important than the app (even though its not) - lots more but lost interest / focus Are you an INTP? http://www.personalitytest.net/cgi-bin/q.pl thanks for that rob, but predicatably I've got to number 26 and stopped - penetrating insight, lol Then your not INTP enough :) An INTP would want to know. Cheers, Rob. and finished in 3 sessions: Your personality type is INTP shock -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Need List Advice
Robert Cummings wrote: On Mon, 2009-01-19 at 12:25 -0500, Daniel Brown wrote: On Mon, Jan 19, 2009 at 11:33, c...@wizzyweb.com wrote: I have been looking but can't find which PHP list is best to post info regarding a new PHP tool. I have seen new product/service announcements on this list, but thought there might be a better list. Any suggestions? As long as it's an announcement and not a commercial advertisement, you'll be fine. One thing that we generally consider bad etiquette as well would be only posting to this list to announce your product or project. Being a helpful contributor to the list in general will buy you some Brownie Points[tm]. We get brownie points for helping? Crap, who's keeping track of mine? I had no idea!! Can they be cashed in for treats? :B Cheers, Rob. Somebody used to post a weekly summary that tallied our brownie points. ;-) -- Thanks! -Shawn http://www.spidean.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] developers life
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 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 on projects, often for no good reason - inability to flip out of work mode at 5pm like the rest of the world -- [sub] not feeling normal unless worked you've extra; while other professions demand overtime as little as an extra 15 minutes - constant learning (positive thing) - unlimited skill scope, if its on a computer you'll give it a go - amazing ability to prioritise (the wrong things) - all projects suddenly become uninteresting and all motivation is lost at approx 65-85 percent completion - the code seems more important than the app (even though its not) - lots more but lost interest / focus Are you an INTP? http://www.personalitytest.net/cgi-bin/q.pl thanks for that rob, but predicatably I've got to number 26 and stopped - penetrating insight, lol sidenote: wonder what the results would be if we all got our respective other halfs to complete it for us. [for those of you without, you're manager will do] My management wouldn't bother, would stop at question 5! only today I got asked to shorten a several paragraph email into something he could read more easliy, despite him asking for that much detail originally! Ash www.ashleysheridan.co.uk -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] developers life
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 over xmpp and use it in flex.. hell you'd have a lightweight stateful persistent client server xml based stream to play with and could kiss byebye to all that crappy dhtml/ajax polling business forever.. anyhow some others i enjoyed learning include apache solr, opencalais, arc2 (rdf and sparql), yahoo api's, (more) uml (but easy to get too side tracked with), exploring all the eclipse plugins, wso2 wsf and lots more -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] developers life
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 intergalactic enterprise company mr lynch? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Re: How to use SVN + PHP
2009/1/19 Nathan Rixham nrix...@gmail.com 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 there also will be bugs in good versions but I think it should more be like: Well, there is a bug.. maybe switch 2 or 3 revisions back and than we see and not like Oh, a bug. maybe 100 - 150 revisions back, which were all created yesterday 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 (php, mysql, webserver), installed the same extensions, have the same php.ini, than there the whole database... and php is not my main work ;) I thought with using maybe another branch all those 100-150 revisions are stored away and the main branch is than again more like, well going back 1-2 revisions is equal to 1-2 days of work. maybe more importantly.. you shouldn't really be getting to production live with these errors (you always will at some point) - perhaps you want to look at unit testing, and even continuous integration/building while you're there. all those talking was only about the developing server. Unit testing I heard of but not really understand how to use and what excatly unit testing does. ps: pdt-eclipse is great, you can integrate it right in with svn for handy diff's, commits, updates etc (and svn in with bugzilla, mylyn loads more..) yes, I'm already using pdt-eclipse with subclipse. What's mylyn about? (again heard of ;) ) And btw: what is scp? -eddy