Re: [PHP] Web application architecture (subdomain vs. sub directory)

2010-08-25 Thread Peter Lind
On 26 August 2010 08:08, Per Jessen wrote: > Tim Martens wrote: > >> Thanks for all your answers. To clarify my question, I'm looking for >> advice regarding how best to set up users for a web app, e.g., >> username.myapp.com vs myapp.com/username and the pros and cons of > each. > > Using usernam

Re: [PHP] Web application architecture (subdomain vs. sub directory)

2010-08-25 Thread Per Jessen
Shreyas Agasthya wrote: > I am not sure who the end-users are for your website but if you are > concerned about scalability, I would definitely go for a sub-domain > approach. Assuming you approach a CDN like Akamai and you want to > offload the traffic to come from the cloud, it's lot easier for

Re: [PHP] Web application architecture (subdomain vs. sub directory)

2010-08-25 Thread Per Jessen
Tim Martens wrote: > Thanks for all your answers. To clarify my question, I'm looking for > advice regarding how best to set up users for a web app, e.g., > username.myapp.com vs myapp.com/username and the pros and cons of each. Using username.myapp.com means defining that name in your DNS and ha

Re: [PHP] Web application architecture (subdomain vs. sub directory)

2010-08-25 Thread David McGlone
On Wed, 2010-08-25 at 21:01 +0200, Peter Lind wrote: > On 25 August 2010 20:54, Ashley Sheridan wrote: > > On Wed, 2010-08-25 at 13:45 -0500, Tim Martens wrote: > > > > If you're new to PHP, I would recommend not using a framework for the > > experience you will gain with the language, as a framew

Re: [PHP] Web application architecture (subdomain vs. sub directory)

2010-08-25 Thread Tim Martens
Thanks for all your answers. To clarify my question, I'm looking for advice regarding how best to set up users for a web app, e.g., username.myapp.comvs myapp.com/username and the pros and cons of each. All users will be using essentially the same app that will have their data in their account. I c

Re: [PHP] Web application architecture (subdomain vs. sub directory)

2010-08-25 Thread Paul M Foster
On Wed, Aug 25, 2010 at 01:45:33PM -0500, Tim Martens wrote: > Hi Everyone, > > New to the list. Hello! > > I'm in the customer discovery phase for a Health IT web application concept > I have. My programmer is new to web apps, but not to programming and is set > up with LAM(PHP). We're still de

Re: [PHP] Web application architecture (subdomain vs. sub directory)

2010-08-25 Thread Paul M Foster
On Wed, Aug 25, 2010 at 01:45:33PM -0500, Tim Martens wrote: > Hi Everyone, > > New to the list. Hello! > > I'm in the customer discovery phase for a Health IT web application concept > I have. My programmer is new to web apps, but not to programming and is set > up with LAM(PHP). We're still de

Re: [PHP] Web application architecture (subdomain vs. sub directory)

2010-08-25 Thread Nathan Nobbe
On Wed, Aug 25, 2010 at 1:20 PM, Shreyas Agasthya wrote: > I am not sure who the end-users are for your website but if you are > concerned about scalability, I would definitely go for a sub-domain > approach. Assuming you approach a CDN like Akamai and you want to offload > the traffic to come fro

Re: [PHP] Web application architecture (subdomain vs. sub directory)

2010-08-25 Thread Shreyas Agasthya
I am not sure who the end-users are for your website but if you are concerned about scalability, I would definitely go for a sub-domain approach. Assuming you approach a CDN like Akamai and you want to offload the traffic to come from the cloud, it's lot easier for you to integrate with them and to

RE: [PHP] Web application architecture (subdomain vs. sub directory)

2010-08-25 Thread Steven Staples
I started out not using a framework... then I started at a company who used a "zend" like framework, worked there for a bit, then moved on, and started using cake... I found that they were great for what they are... but really simplified things too much, so I created my own framework, incorpor

Re: [PHP] two questions on serverside validation

2010-08-25 Thread Paul M Foster
On Wed, Aug 25, 2010 at 01:05:12PM -0400, David Mehler wrote: > Hello, > Thanks to all who answered my quotes question. I've got another one. > I've got several combo boxes that are sticky, below is an example of > one and the function. Now i'd like to tighten it up by ensuring that > an external

Re: [PHP] Web application architecture (subdomain vs. sub directory)

2010-08-25 Thread Nathan Nobbe
On Wed, Aug 25, 2010 at 12:45 PM, Tim Martens wrote: > Language/Framework decisions aside... my main question is about subdomain ( > customerx.appname.com vs subdirectory (appname.com/customerx/) models for > instances of individual customers' accounts. > > It seems most people are opting for the

Re: [PHP] Web application architecture (subdomain vs. sub directory)

2010-08-25 Thread Peter Lind
On 25 August 2010 20:54, Ashley Sheridan wrote: > On Wed, 2010-08-25 at 13:45 -0500, Tim Martens wrote: > > If you're new to PHP, I would recommend not using a framework for the > experience you will gain with the language, as a framework will tend to > hide away certain caveats and peculiarities

Re: [PHP] Unstoppable Script Execution

2010-08-25 Thread Ashley Sheridan
On Wed, 2010-08-25 at 14:30 -0400, Steven Staples wrote: > Ok, this is my first post here. I have been writing in PHP for about 7 > years or so now, I am not an expert, but I do pretend to be one :P > > ANYWAY, my client and I have been working on a strange issue that I cannot > seem to pin poin

Re: [PHP] Web application architecture (subdomain vs. sub directory)

2010-08-25 Thread Ashley Sheridan
On Wed, 2010-08-25 at 13:45 -0500, Tim Martens wrote: > Hi Everyone, > > New to the list. Hello! > > I'm in the customer discovery phase for a Health IT web application concept > I have. My programmer is new to web apps, but not to programming and is set > up with LAM(PHP). We're still debating

[PHP] Web application architecture (subdomain vs. sub directory)

2010-08-25 Thread Tim Martens
Hi Everyone, New to the list. Hello! I'm in the customer discovery phase for a Health IT web application concept I have. My programmer is new to web apps, but not to programming and is set up with LAM(PHP). We're still debating weather to use a framework or to go with Rasmus's "no framework frame

[PHP] Unstoppable Script Execution

2010-08-25 Thread Steven Staples
Ok, this is my first post here. I have been writing in PHP for about 7 years or so now, I am not an expert, but I do pretend to be one :P ANYWAY, my client and I have been working on a strange issue that I cannot seem to pin point, or replicate, not to mention, it has no rhyme or reason for it to

Re: [PHP] two questions on serverside validation

2010-08-25 Thread David Mehler
Hello, Thanks to all who answered my quotes question. I've got another one. I've got several combo boxes that are sticky, below is an example of one and the function. Now i'd like to tighten it up by ensuring that an external user can't inject values other than value1 or value2 in to the script. Th

[PHP] Odd crash.

2010-08-25 Thread Richard Quadling
Hi. I'm getting an odd crash using php 5.3.4-dev (own build). The following code is a reduced example from code that works quite happily on PHP 5.3.3 (official build). On my build, if I use ... php -f badnull.php I get what looks like a dump of some memory ... Ò╝╝µí░ÓÁ░Ô╝èÔÇ»µíöÔüÑþæ│µÑ▓µØ«

Re: [PHP] two questions on serverside validation

2010-08-25 Thread Jan G.B.
2010/8/25 Marc Guay : >> function html($text) >> { >>        return htmlentities($text, ENT_QUOTES, 'UTF-8'); >> } >> >> function htmlout($text) >> { >>        return html($text); >> } > > Possibly irrelevant, and definitely not related to your questions, but > is it just me or is htmlout() a usele

Re: [PHP] two questions on serverside validation

2010-08-25 Thread Marc Guay
> function html($text) > { >        return htmlentities($text, ENT_QUOTES, 'UTF-8'); > } > > function htmlout($text) > { >        return html($text); > } Possibly irrelevant, and definitely not related to your questions, but is it just me or is htmlout() a useless function? Why not just call html

Re: [PHP] two questions on serverside validation

2010-08-25 Thread Ashley Sheridan
On Wed, 2010-08-25 at 16:48 +0200, Bostjan Skufca wrote: > Speed difference is substantial: > > ### Test 1: > $message1 = "asdf werqwe"; > for ($i=0; $i<1000; $i++) { > $message2 = $message1; > } > ### Takes 1,1 seconds (on machine tested) > > ### Test2: > $message1 = "asdf werqwe"; > fo

Re: [PHP] two questions on serverside validation

2010-08-25 Thread Bostjan Skufca
Speed difference is substantial: ### Test 1: $message1 = "asdf werqwe"; for ($i=0; $i<1000; $i++) { $message2 = $message1; } ### Takes 1,1 seconds (on machine tested) ### Test2: $message1 = "asdf werqwe"; for ($i=0; $i<1000; $i++) { $message2 = "$message1"; } ### Takes 2,4 seconds

RE: [PHP] two questions on serverside validation

2010-08-25 Thread Bob McConnell
From: David Mehler > I've got two questions. I'm having to redo my form. Can you tell me > the difference if any between these two lines of code? This is for > output filtering. > > > > > One has the quotes around the parameter in the function call the other > does not. Here's the functions:

Re: [PHP] two questions on serverside validation

2010-08-25 Thread Ashley Sheridan
On Wed, 2010-08-25 at 10:24 -0400, David Mehler wrote: > Hello, > I've got two questions. I'm having to redo my form. Can you tell me > the difference if any between these two lines of code? This is for > output filtering. > > ?> > > > One has the quotes around the parameter in the function

[PHP] two questions on serverside validation

2010-08-25 Thread David Mehler
Hello, I've got two questions. I'm having to redo my form. Can you tell me the difference if any between these two lines of code? This is for output filtering. One has the quotes around the parameter in the function call the other does not. Here's the functions: function html($text) {

Re: [PHP] Re: Bitwise NOT operator?

2010-08-25 Thread Andy McKenzie
On Wed, Aug 25, 2010 at 9:46 AM, Colin Guthrie wrote: > 'Twas brillig, and Andy McKenzie at 24/08/10 21:42 did gyre and gimble: >> Even if I'd thought about it in terms of the architecture, I >> would have assumed that PHP would treat a two-bit number as a two-bit >> number > > You two-bit hustler

[PHP] Re: Bitwise NOT operator?

2010-08-25 Thread Colin Guthrie
'Twas brillig, and Andy McKenzie at 24/08/10 21:42 did gyre and gimble: > Even if I'd thought about it in terms of the architecture, I > would have assumed that PHP would treat a two-bit number as a two-bit > number You two-bit hustler! In all seriousness tho', where do you ever provide a two bit

RE: [PHP] Bitwise NOT operator?

2010-08-25 Thread Bob McConnell
From: Richard Quadling > On 24 August 2010 21:42, Andy McKenzie wrote: >> On Tue, Aug 24, 2010 at 3:55 PM, Ford, Mike wrote: From: Andy McKenzie [mailto:amckenz...@gmail.com] >>> From your example, this would have shown me what I needed to know: "Then taking the value of E_NOT

Re: [PHP] Bitwise NOT operator?

2010-08-25 Thread Peter Lind
Please stop arguing this pointless topic on the php mailing list. Regards Peter -- WWW: http://plphp.dk / http://plind.dk LinkedIn: http://www.linkedin.com/in/plind BeWelcome/Couchsurfing: Fake51 Twitter: http://twitter.com/kafe15 -- PHP General Mailing List (http://www.php.net/) To unsubscr

Re: [PHP] Bitwise NOT operator?

2010-08-25 Thread Richard Quadling
On 24 August 2010 21:42, Andy McKenzie wrote: > On Tue, Aug 24, 2010 at 3:55 PM, Ford, Mike wrote: >>> -Original Message- >>> From: Andy McKenzie [mailto:amckenz...@gmail.com] >>> Sent: 24 August 2010 17:24 >>> To: php-general@lists.php.net >>> Subject: Re: [PHP] Bitwise NOT operator? >>