Re: [PHP] Re: [PHP-DEV] PHP 5.5.0 final has been released!

2013-06-21 Thread Ravi Gehlot
Awesome! On Thu, Jun 20, 2013 at 11:14 PM, Marco Pivetta wrote: > Well done! Congratulations! > On 20 Jun 2013 23:23, "Julien Pauli" wrote: > > > Hello! > > > > The PHP Development Team would like to announce the immediate release of > > PHP 5.5.0. This release includes a large number of new f

Re: [PHP] Accessing Files Outside the Web Root

2013-03-14 Thread Ravi Gehlot
Hello Dale, The spiders are not the only problem. The issue here is that anyone can download your files from your website and then make them available elsewhere. In order to address the problem, you should create a "Members Restricted Area" where members only could download your files. You can the

Re: [PHP] [ad] [free+opensource] htmlMicroscope (nested array viewer/dumper) upgraded - now allows for even larger arrays

2013-03-04 Thread Ravi Gehlot
I like PHPUnit for that matter. It does a good job of debugging. Ravi. On Sat, Dec 22, 2012 at 8:41 AM, rene7705 wrote: > Hi Folks. > > URL: http://fancywebapps.com/products/htmlMicroscope > > Just wanted to let you all know that I've completed a long overdue > upgrade to my free htmlMicroscop

Re: [PHP] Introduction ... !

2013-03-03 Thread Ravi Gehlot
Hello Nick, Welcome to the list. I joined the list awhile back then unsubscribed for no apparent reason. This list was very active years ago. I came back about a few months ago just as a watcher. I didn't really post or participate at all. I guess, there are a lot of watchers "only" people here. T

Re: [PHP] static Logging class?

2013-03-03 Thread Ravi Gehlot
Hello Larry, Thanks for sharing! - [image: logo] *Ravi Gehlot * Mobile: 407-283-5282 Orlando, FL 32765-8085 http://www.RaviGehlot.Net/ https://github.com/ravigehlot *"First, solve the problem. Then, write the code."* [image: Twit

Re: [PHP] static Logging class?

2013-03-03 Thread Ravi Gehlot
not be using any pre-defined properties, then it makes sense to call a static method. Bear in mind that static methods can not be overridden. Best of luck, - [image: logo] *Ravi Gehlot * Mobile: 407-283-5282 Orlando, FL 32765-8085 http

Re: [PHP] Stripslashes

2010-12-22 Thread Ravi Gehlot
deally be using > htmlspecialchars($var, ENT_QUOTES); > > cheers, > Russ > > On Thu, Dec 23, 2010 at 6:48 AM, Ravi Gehlot wrote: > > On Wed, Dec 22, 2010 at 3:34 PM, Bob McConnell wrote: > > > >> From: Ravi Gehlot > >> > >> > What are these magic quote

Re: [PHP] Stripslashes

2010-12-22 Thread Ravi Gehlot
On Wed, Dec 22, 2010 at 3:34 PM, Bob McConnell wrote: > From: Ravi Gehlot > > > What are these magic quotes anyways?. What are they used for? > escaping? > > I wasn't there at the time, but I gather that the general idea was to > automagically insert escape characte

Re: [PHP] [SOLVED] Re: Upgraded system and now $_SERVER['SERVER_NAME'] is not more working

2010-12-22 Thread Ravi Gehlot
You probably have error_reporting turned on and that caught on errors. There are new tougher rules/requirements with newer PHP versions. Ravi.

Re: [PHP] Stripslashes

2010-12-22 Thread Ravi Gehlot
What are these magic quotes anyways?. What are they used for? escaping? Regards, Ravi. On Tue, Nov 16, 2010 at 11:44 PM, Adam Richardson wrote: > On Tue, Nov 16, 2010 at 10:10 PM, Gary wrote: > > > I was doing a test of stripslashes on a $_POST, when I recieved the > email, > > all of the slash

Re: [PHP] accessing magic parent set

2010-12-22 Thread Ravi Gehlot
Hello, $this only calls variables inside of a method. In your function, you are calling a variable that was defined inside of your function called $columnName. You should past the whole class. Not just the methods. "The pseudo-variable $this is available when a method is called from within an obj

Re: [PHP] empty() in email message

2010-12-22 Thread Ravi Gehlot
Hello Gary, Please research the difference between a single quote and a double quote. Also, you can use the operator .=(dot + equal) in this manner: if(!empty($_POST['fname'])) { $msg .= "$lname\n"; } else if(!empty($_POST['lname'])) { $msg

Re: [PHP] Re: Warning when calling session_start()

2010-12-22 Thread Ravi Gehlot
session_start (); should be before everything...first thing in the page. Ravi. On Wed, Dec 22, 2010 at 12:51 AM, wrote: > Hi, folks, > > On Tue, 21 Dec 2010 21:35:17 -0800 [06:35:17 AM CET], > Michael Shadle wrote: > > > first - this is probably your culprit: > > don't output empty lines befo

Re: [PHP] Problem with Include

2010-12-21 Thread Ravi Gehlot
o not do so seems to me to > avoid ones nature really! > > Thanks, > Ash > http://www.ashleysheridan.co.uk > > - Reply message - > From: "Ravi Gehlot" > Date: Tue, Dec 21, 2010 18:12 > Subject: [PHP] Problem with Include > To: "Paul M Foster"

Re: [PHP] Re: Session problem

2010-12-21 Thread Ravi Gehlot
Walter, Session variables may be using cookies which in turn create temp files for storing such cookies. Ravi. On Tue, Dec 21, 2010 at 11:32 AM, Walter Caielli wrote: > I've fixed the problem. > I don't know why, but suddenly windows prevents PHP from writing into > C:\windows\temp directory.

Re: [PHP] Common session for all subdomains?

2010-12-21 Thread Ravi Gehlot
Daniel, Good info. Ravi. On Tue, Dec 21, 2010 at 10:23 AM, Daniel Brown wrote: > On Tue, Dec 21, 2010 at 02:27, Ravi Gehlot wrote: > > That's a good question. > > > > There should be a setting on php.ini to allow cross session. > > Right. Because who nee

Re: [PHP] PHPInfo disabled due to security

2010-12-21 Thread Ravi Gehlot
Hello there, GoDaddy show 20M for their limit size when they only allow a max of 5.6 MB of upload. So what I mean is don't try what you see from php_info(). Ravi. On Tue, Dec 21, 2010 at 9:48 AM, Daniel Brown wrote: > On Tue, Dec 21, 2010 at 02:40, Ravi Gehlot wrote: > &g

Re: [PHP] Problem with Include

2010-12-21 Thread Ravi Gehlot
ue, Dec 21, 2010 at 10:23 AM, Paul M Foster wrote: > On Tue, Dec 21, 2010 at 02:35:33AM -0500, David Hutto wrote: > > > On Tue, Dec 21, 2010 at 2:29 AM, Ravi Gehlot > wrote: > > > Why mess with something that is already working? If you are trying to > make > > >

Re: [PHP] Problem with Include

2010-12-20 Thread Ravi Gehlot
That's why documenting code is so important. 99% doesn't do it (including me). Ravi. On Tue, Dec 21, 2010 at 2:35 AM, David Hutto wrote: > On Tue, Dec 21, 2010 at 2:29 AM, Ravi Gehlot wrote: > > Why mess with something that is already working? If you are trying to > make > &

Re: [PHP] Error Querying Database

2010-12-20 Thread Ravi Gehlot
Trying to connect to the database can involve setting up your database. Make sure that you have a valid login/password that is recognized by MySQL. Please keep in mind that MySQL works on permission by hosts. So your host IP must be matched with the username/password on the database for a successfu

Re: [PHP] PHPInfo disabled due to security

2010-12-20 Thread Ravi Gehlot
Hello there, If you have a small to medium size web site then go to GoDaddy. Do not believe all that you see from php_info(). I will give you an example. The memory_limit it gives on shared hosting does not reflect the one intended for your shared account. It shows what was set for overall use. Bu

Re: [PHP] array question

2010-12-20 Thread Ravi Gehlot
Jim Lucas has it. You can use the preg_match function to find it. I would use regexp for that reason. regexp is good for making sure things are typed the way they need to (mostly used for). Ravi. On Sat, Dec 18, 2010 at 5:17 PM, Jim Lucas wrote: > On 12/17/2010 12:52 PM, Sorin Buturugeanu wrot

Re: [PHP] All records not displaying...

2010-12-20 Thread Ravi Gehlot
I would say enabled error_reporting(E_ALL); error_reporting(-1); Then use die(mysql_error()); with your mysql function to get some debugging data. Also use var_dump($query_name) to find out what is spits out. Debugging is your best friend here. If you don't use die() or error_reporting() then yo

Re: [PHP] Problem with Include

2010-12-20 Thread Ravi Gehlot
Why mess with something that is already working? If you are trying to make it pretty then you are not solving a problem. You are creating one. Ravi. On Mon, Dec 20, 2010 at 7:40 AM, Daniel P. Brown wrote: > On Mon, Dec 20, 2010 at 02:49, Simcha Younger wrote: > > > > Since it is being included

Re: [PHP] Common session for all subdomains?

2010-12-20 Thread Ravi Gehlot
That's a good question. There should be a setting on php.ini to allow cross session. Ravi. On Mon, Dec 20, 2010 at 7:05 PM, Jonathan Tapicer wrote: > Hi! > > You should use the function session_set_cookie_params to set the > session cookie domain to ".oire.org" like this comment explains: > p

Re: [PHP] PDO Prepared Statements and stripslashes

2010-12-20 Thread Ravi Gehlot
Hello, The plug-in PDO has nothing to do with the backslashes being inserted into the database. The backslashes are used to escape characters like in D's...it would show D's. That's the safe behavior of it. You can change your programming code to fix that. Ravi. On Tue, Dec 21, 2010