Re: [PHP] Please guide in selection of Framework: according to your experience

2010-05-22 Thread Vishal Rewari
Hello All, thank you for your guidance, I have successfully completed my project I used Andre Polykanine`s advice, as I was a starter in PHP. No frameworks, used pure PHP but yes kept them under different directories based on their context. The project is looking good and I am excited Thank you

Re: [PHP] Using if(isset()) with $_GET and switch and default

2010-05-22 Thread MuFei
Yes, I got it now. Thanks Daniel Thanks everyone! On Sat, May 22, 2010 at 12:08 AM, Daniel P. Brown wrote: > On Fri, May 21, 2010 at 17:02, MuFei wrote: >> Hi Ashley, >> Your way works also great, But I have some question thought: >> When I only use the first half of the code you suggested: >>

Re: [PHP] Remove blank lines from a file

2010-05-22 Thread tedd
At 4:27 PM +0200 5/21/10, Anton Heuschen wrote: So in the file it would look like (from the original file the user uploads that is) 1 2 3 4 5 6 but when the file is saved to the server it must look like 1 2 3 4 5 6 If that is all (i.e., removing double linefeeds), then this will do it:

Re: [PHP] localize string (date)

2010-05-22 Thread tedd
At 8:00 PM +0100 5/21/10, Ashley Sheridan wrote: What sort of format is that date, English or American? For example: dd-mm- or mm-dd-? Thanks, Ash Ash: I don't think it's called "English" or "American" -- as Churchill once said "We are separated by a common language." Perhaps "Brit

Re: [PHP] Remove blank lines from a file

2010-05-22 Thread Robert Cummings
tedd wrote: At 4:27 PM +0200 5/21/10, Anton Heuschen wrote: So in the file it would look like (from the original file the user uploads that is) 1 2 3 4 5 6 but when the file is saved to the server it must look like 1 2 3 4 5 6 If that is all (i.e., removing double linefeeds), then thi

Re: [PHP] localize string (date)

2010-05-22 Thread Phpster
On May 22, 2010, at 12:07 PM, tedd wrote: At 8:00 PM +0100 5/21/10, Ashley Sheridan wrote: What sort of format is that date, English or American? For example: dd-mm- or mm-dd-? Thanks, Ash Ash: I don't think it's called "English" or "American" -- as Churchill once said "We are

Re: [PHP] Remove blank lines from a file

2010-05-22 Thread Al
On 5/22/2010 1:02 PM, Robert Cummings wrote: tedd wrote: At 4:27 PM +0200 5/21/10, Anton Heuschen wrote: So in the file it would look like (from the original file the user uploads that is) 1 2 3 4 5 6 but when the file is saved to the server it must look like 1 2 3 4 5 6 If that is

Re: [PHP] Multiple Login in a single PC should not be possible

2010-05-22 Thread Karl DeSaulniers
Yeah. Don't be concerned about which browser. Just set up an active users table in your database that gets checked at login. Then it doesn't matter which machine or browser. Unless you know that the computers are giving the true ip, there is no way to keep a user from logging in with two ac

Re: [PHP] localize string (date)

2010-05-22 Thread Robert Cummings
Phpster wrote: On May 22, 2010, at 12:07 PM, tedd wrote: At 8:00 PM +0100 5/21/10, Ashley Sheridan wrote: What sort of format is that date, English or American? For example: dd-mm- or mm-dd-? Thanks, Ash Ash: I don't think it's called "English" or "American" -- as Churchill onc

Re: [PHP] Remove blank lines from a file

2010-05-22 Thread Robert Cummings
Al wrote: On 5/22/2010 1:02 PM, Robert Cummings wrote: tedd wrote: At 4:27 PM +0200 5/21/10, Anton Heuschen wrote: So in the file it would look like (from the original file the user uploads that is) 1 2 3 4 5 6 but when the file is saved to the server it must look like 1 2 3 4 5 6 I

Re: [PHP] Multiple Login in a single PC should not be possible

2010-05-22 Thread Robert Cummings
This was beaten to death last week. The solution is not possible because it's not about restricting a single user from logging over multiple machines, it about restricting a single computer to only one session (so running IE, Firefox, Opera, Safari on same computer with different users would no

Re: [PHP] Remove blank lines from a file

2010-05-22 Thread Al
On 5/22/2010 4:34 PM, Robert Cummings wrote: Al wrote: On 5/22/2010 1:02 PM, Robert Cummings wrote: tedd wrote: At 4:27 PM +0200 5/21/10, Anton Heuschen wrote: So in the file it would look like (from the original file the user uploads that is) 1 2 3 4 5 6 but when the file is saved

Re: [PHP] Multiple Login in a single PC should not be possible

2010-05-22 Thread Karl DeSaulniers
On May 22, 2010, at 3:37 PM, Robert Cummings wrote: This was beaten to death last week. The solution is not possible because it's not about restricting a single user from logging over multiple machines, it about restricting a single computer to only one session (so running IE, Firefox, Oper

Re: [PHP] Remove blank lines from a file

2010-05-22 Thread Robert Cummings
Al wrote: On 5/22/2010 4:34 PM, Robert Cummings wrote: Al wrote: On 5/22/2010 1:02 PM, Robert Cummings wrote: tedd wrote: At 4:27 PM +0200 5/21/10, Anton Heuschen wrote: So in the file it would look like (from the original file the user uploads that is) 1 2 3 4 5 6 but when the file

Re: [PHP] Multiple Login in a single PC should not be possible

2010-05-22 Thread Karl DeSaulniers
On May 22, 2010, at 7:43 PM, Brandon Rampersad wrote: These third world internet providers are screwing up the IP address system with their shared IPs which defeats the entire purpose of an IP address. On Sat, May 22, 2010 at 6:19 PM, Karl DeSaulniers wrote: On May 22, 2010, at 3:37 PM

Re: [PHP] Multiple Login in a single PC should not be possible

2010-05-22 Thread Robert Cummings
Karl DeSaulniers wrote: On May 22, 2010, at 3:37 PM, Robert Cummings wrote: This was beaten to death last week. The solution is not possible because it's not about restricting a single user from logging over multiple machines, it about restricting a single computer to only one session (so

Re: [PHP] Multiple Login in a single PC should not be possible

2010-05-22 Thread Robert Cummings
Karl DeSaulniers wrote: Duley noted, but the combo of tracking ips and cookies on computers should still work. If you are checking the ip against ALL users, if two users in the active database have the same ip, then whichever has the older timestamp stays and the new one gets booted. And i

Re: [PHP] Multiple Login in a single PC should not be possible

2010-05-22 Thread Robert Cummings
Karl DeSaulniers wrote: On May 22, 2010, at 7:43 PM, Brandon Rampersad wrote: These third world internet providers are screwing up the IP address system with their shared IPs which defeats the entire purpose of an IP address. I missed this bit... actually, this is less a third world issue

Re: [PHP] Multiple Login in a single PC should not be possible

2010-05-22 Thread Karl DeSaulniers
Well you could alway build it as an Adobe AIR app. Then it would be its own application. Not viewed through a browser. Karl On May 22, 2010, at 8:46 PM, Robert Cummings wrote: Yeah, but flash is proprietary and I for one hate hitting flash websites. Karl DeSaulniers Design Drumm http://de

Re: [PHP] Multiple Login in a single PC should not be possible

2010-05-22 Thread Robert Cummings
But then I don't get to use worldwide accepted and open standards for development. Karl DeSaulniers wrote: Well you could alway build it as an Adobe AIR app. Then it would be its own application. Not viewed through a browser. Karl On May 22, 2010, at 8:46 PM, Robert Cummings wrote: Yeah,

[PHP] Front End Dev seeking guidance

2010-05-22 Thread Jerome Covington
I'm a Front End Dev seeking to add that crucial server-side/database knowledge to my understanding of end to end web dev. I'm particularly interested in learning how to set up server side responses to my AJAX and JSON/JSONP requests. Also, I'm thinking of a "simple" finances management app (thoug

Re: [PHP] Multiple Login in a single PC should not be possible

2010-05-22 Thread Karl DeSaulniers
Wow. I'm going to stay away from that one. I'm just trying to help this guy secure his learning API and that would be one way to insure that two browsers were not logged in on the same system. Especially if you weren't using a browser in the first place. Have you ever programed in flash? K

Re: [PHP] Multiple Login in a single PC should not be possible

2010-05-22 Thread Robert Cummings
Karl DeSaulniers wrote: Wow. I'm going to stay away from that one. I'm just trying to help this guy secure his learning API and that would be one way to insure that two browsers were not logged in on the same system. Especially if you weren't using a browser in the first place. Have you ev

Re: [PHP] Multiple Login in a single PC should not be possible

2010-05-22 Thread Robert Cummings
Robert Cummings wrote: Karl DeSaulniers wrote: Wow. I'm going to stay away from that one. I'm just trying to help this guy secure his learning API and that would be one way to insure that two browsers were not logged in on the same system. Especially if you weren't using a browser in the fi

Re: [PHP] Multiple Login in a single PC should not be possible

2010-05-22 Thread Karl DeSaulniers
I am going to ask my flash guru buddies. Let me see if I can find anything out. Karl On May 22, 2010, at 10:10 PM, Robert Cummings wrote: Robert Cummings wrote: Karl DeSaulniers wrote: Wow. I'm going to stay away from that one. I'm just trying to help this guy secure his learning API and

[PHP] securing a custom app

2010-05-22 Thread David Mehler
Hello, I've got a custom app that interacts with a database. I want to use something stronger than .htaccess to protect it and ssl is not available as this is a shared host. There will be several user's accessing this app and updating the database through it. What i was thinking was giving each a u

Re: [PHP] securing a custom app

2010-05-22 Thread Robert Cummings
David Mehler wrote: Hello, I've got a custom app that interacts with a database. I want to use something stronger than .htaccess to protect it and ssl is not available as this is a shared host. There will be several user's accessing this app and updating the database through it. What i was thinki

Re: [PHP] securing a custom app

2010-05-22 Thread Nilesh Govindarajan
On 05/23/2010 10:51 AM, Robert Cummings wrote: David Mehler wrote: Hello, I've got a custom app that interacts with a database. I want to use something stronger than .htaccess to protect it and ssl is not available as this is a shared host. There will be several user's accessing this app and upd