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
s. You can then make your PDF directory only visible through your Members Restricted Area. That directory would be invisible to the web. In some Linux distros, if the file/directory is not a member of www-data, it is not visible online. But you can still link the files to your PHP page. Ravi. On W

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

Re: [PHP] Introduction ... !

2013-03-03 Thread Ravi Gehlot
the changes. PHP has come a long way as far as Object Oriented Programming is concerned. There have been many discussions about Design Patterns and extending existing classes. So a lot has changed in the last 5 years. I do believe that the list will pick up again. Welcome back, Ravi. On Fri, Mar

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,

Re: [PHP] accessing magic parent set

2010-12-22 Thread Ravi Gehlot
nt keyword indicates that this is an extended class. You are referring back to the master class. Ravi. On Wed, Dec 22, 2010 at 9:35 AM, Alexandru Patranescu wrote: > Is this the only way to access the magic __set from the parent class: > >public function __set($columnName, $value)

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: > &g

Re: [PHP] Problem with Include

2010-12-21 Thread Ravi Gehlot
security issue, no need to waste time. Again, if you are getting paid for it then fine. People tune cars for a reason, they want the attention or the thrill. If you want to tune your code for fun then nobody is against that either :) Ravi. On Tue, Dec 21, 2010 at 1:28 PM, a...@ashleysheridan.co.uk <

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:\win

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
ed to keep in check with new technology, learn new trends and also master our weakness. If we keep changing this or that or moving that or this then oh well...there goes 1 day worth of work to figure stuff out. Just my take on this. If you think different, then no problems. Regards, Ravi. On T

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
it means that you have a bad written statement. There is so much that can go wrong. Debug step by step. Ravi. On Thu, Dec 16, 2010 at 9:26 PM, Phred White wrote: > It seems like there are several questions emerging, but ... > > Try echoing your query to the page by putting echo $quer

Re: [PHP] PHPInfo disabled due to security

2010-12-20 Thread Ravi Gehlot
. But blocking php_info() isn't right (at least I don't think so). Ravi. On Fri, Dec 17, 2010 at 10:25 AM, Daniel Brown wrote: > On Thu, Dec 16, 2010 at 23:39, Paul S wrote: > > > > Well, I was hoping for stronger arguments to get that DONE. I would think > > there

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 Buturuge

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

2010-12-20 Thread Ravi Gehlot
then you will see a blank screen. Ravi. On Sun, Dec 19, 2010 at 9:01 PM, Gary wrote: > > "Tamara Temple" wrote in message > news:c6993909-dd90-4f52-bf6b-ab888c281...@gmail.com... > > > > On Dec 19, 2010, at 9:46 AM, Gary wrote: > > > >> I have an

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: > > > > Si

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"

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.

Re: [PHP] Application settings, configuration, and preferences.

2010-10-27 Thread J Ravi Menon
On Wed, Oct 27, 2010 at 11:39 AM, J Ravi Menon wrote: > I am partial to the filesystem but I can see scenarios where the db > approach might be useful (single point of control) with good caching > strategy using apc or other mechanisms. > > One approach I have followed is tha

Re: [PHP] Application settings, configuration, and preferences.

2010-10-27 Thread J Ravi Menon
this parsing cost needs to be avoided on every request. Ravi On Wed, Oct 27, 2010 at 10:17 AM, Michael Shadle wrote: > I find json to be the most ideal data exchange format but using it for > configuration files one may edit by hand is horrible. XML, ini or yaml would > be better. I sti

Re: [PHP] Model View Concepts

2010-10-25 Thread J Ravi Menon
; One MVC framework I have used recently is Kohana: http://docs.kohanaphp.com/ See links on models, views etc.. It has a OOP flavor, and considered fairly lightweight. I have written my own simplistic MVC framework which is more efficient but definitely not as feature rich as Kohana. There are

Re: [PHP] PHP Email Question

2010-09-30 Thread J Ravi Menon
it is a global variable, you would need to add a 'global' declaration: function ProcessForm($values) { global $msgContent; mail('myemail:domain.com', 'Website Enquiry', $msgContent, "From: \"{$values['name']}\" <{$values['emailaddress']}>\r\n"); . . . } Also try adding CRLF sequence at the end of the header line as shown above. Ravi -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] PHP Email Question

2010-09-21 Thread J Ravi Menon
batchSend() functionalities, ability to compose various mime type emails etc... Ravi On Mon, Sep 20, 2010 at 8:20 AM, chris h wrote: >> Ignore the other parameters unless you are very familiar with RFCs 2821, >> 2822 and their associated RFCs >> > > > I would advise against ignoring

Re: [PHP] php cli question

2010-09-15 Thread J Ravi Menon
Thanks Bostjan for the suggestion. I did raise the issue and here is the reply: http://news.php.net/php.internals/49672 Thx, Ravi On Wed, Sep 15, 2010 at 2:38 AM, Bostjan Skufca wrote: > Here are the results I got when question of migration from apache to nginx > was brought up:

Re: [PHP] php cli question

2010-09-14 Thread J Ravi Menon
On Tue, Sep 14, 2010 at 1:15 PM, Per Jessen wrote: > J Ravi Menon wrote: > >> On Tue, Sep 14, 2010 at 12:43 AM, Per Jessen wrote: >>> J Ravi Menon wrote: >>> >>>> Few questions: >>>> >>>> 1) Does opcode cache really matter in su

Re: [PHP] php cli question

2010-09-14 Thread J Ravi Menon
On Tue, Sep 14, 2010 at 12:43 AM, Per Jessen wrote: > J Ravi Menon wrote: > >> Few questions: >> >> 1) Does opcode cache really matter in such cli-based daemons? As >> 'SomeClass' is instantiated at every loop, I am assuming it is only >> compil

[PHP] Re: php cli question

2010-09-13 Thread J Ravi Menon
On Sat, Sep 11, 2010 at 8:50 PM, Shawn McKenzie wrote: > On 09/10/2010 11:13 AM, J Ravi Menon wrote: >> Hi, >> >> I have some basic questions on running php  (5.2.x series on Linux >> 2.6) as a standalone daemon using posix methods (fork() etc..): >> >&

[PHP] php cli question

2010-09-10 Thread J Ravi Menon
t never looked at in depth to understand all the nuances. Anecdotally, I have done 'unset()' at some critical places were large arrays were used, and I think it helped. AFAIK, unlike Java, there is no 'garbage collector' thread that does all the magic? Thanks, Ravi -- PHP Gene

Re: [PHP] Re: Best Practices Book, Document, Web Site?

2010-03-05 Thread J Ravi Menon
iles getting exposed. I have my own layout suggestion which has worked well for us, and once mastered, it makes everyone in the team very productive. Maybe this can be a separate topic in its own right. Ravi On Tue, Mar 2, 2010 at 9:51 AM, Hansen, Mike wrote: > > >> -Or

Re: [PHP] memory efficient hash table extension? like lchash ...

2010-01-25 Thread J Ravi Menon
es but not sure it is necessarily guaranteed in future versions. Ravi On Mon, Jan 25, 2010 at 3:49 PM, D. Dante Lorenso wrote: > J Ravi Menon wrote: >> >> PHP does expose sys V shared-memory apis (shm_* functions): >> http://us2.php.net/manual/en/book.sem.php > >

Re: [PHP] memory efficient hash table extension? like lchash ...

2010-01-25 Thread J Ravi Menon
meone here has run these tests. Note that with memcached installed locally (on the same box running php), it can be surprisingly efficient - using pconnect(), caching the handler in a static var for a given request cycle etc... Ravi On Sun, Jan 24, 2010 at 9:39 AM, D. Dante Lorenso wrote: >

Re: [PHP] Object Oriented Programming question

2010-01-20 Thread J Ravi Menon
via notion of 'classes' to express such relationships. I would recommend this book: 'The design and evolution of C++' by Bjarne Stroustrup where such topics are discussed more in depth. Hope this helps. Ravi On Wed, Jan 20, 2010 at 8:31 AM, Bob McConnell wrote: > F

Re: [PHP] Re: PHP programming strategy; lots of little include files, or a few big ones?

2010-01-08 Thread J Ravi Menon
Sorry forgot to mention that we used APC with apc.stat turned off which will give a little bit more performance gain, but it does mean flushing the cache on every code push (which is trivial). Ravi On Fri, Jan 8, 2010 at 11:30 AM, J Ravi Menon wrote: > Hi, > > A note on bytecode ca

Re: [PHP] Re: PHP programming strategy; lots of little include files, or a few big ones?

2010-01-08 Thread J Ravi Menon
ig include file, and ensure it is placed somewhere in the beginning the main 'controller.php' (MVC model) and all other includes stripped off. Hope this helps in making your decision. Ravi On Fri, Jan 8, 2010 at 8:59 AM, Robert Cummings wrote: > clanc...@cybec.com.au wrote: >>

[PHP] Including "Due by" in an email sent from PHP program

2009-06-24 Thread Ravi
Hi: does anyone know how to include a "Due by" attribute with a dare in an email that is sent from a PHP script. This value is acts as an reminder when the email is in Outlook. TIA -- Thank you, RaVi -- PHP General Mailing List (http://www.php.net/) To unsubscribe, v

[PHP] ruby / rails within a php site

2009-03-03 Thread ravi Ruddarraju
such a thing possible between php and ruby / rails? Any help will be appreciated. Thanks ravi

Re: [PHP] System errno in PHP

2008-02-22 Thread Ravi Menon
is not portable, but I am betting that usually on the same kernel releases, they don't usually change these numbers around. Having PHP expose these useful constants in a portable manner would be a big plus. Thanks, Ravi On Thu, Feb 21, 2008 at 9:04 AM, Richard Lynch <[EMAIL PROTECTED

[PHP] curl timeout vs socket timeout

2008-01-28 Thread Ravi Menon
underlying C calls. It will be good to get a confirmation on our doubts. Thanks, Ravi -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] apc and cli

2007-12-12 Thread Ravi Menon
Thanks for clarifying my doubts - the steps below sounds right to me. I was just considering the overall perf. of such php daemons and whether we can get some free perf. boost with that apc setting. Ravi On Dec 12, 2007 12:19 PM, Richard Lynch <[EMAIL PROTECTED]> wrote: > > On Wed,

[PHP] apc and cli

2007-12-12 Thread Ravi Menon
d by the statement - 'Mostly for testing and debugging.' . On each loop iteration, does php recompile the code in 'SomeClass' ( and all its dependencies ) or it is really cached ( as it has seen the class code once ). If there is a php internals document on such issues, d

Re: [PHP] php.ini include_path and symlinks

2007-11-07 Thread Ravi Menon
h apc.stat on ). This was the case even before we introduced include_path, but earlier, all the symlinks were to a relative path ( e.g. libraries ---> ../libs/.. ). Thanks for the pointer - I will look into this. Ravi > > Cheers, > Rob. > -- > ...

[PHP] php.ini include_path and symlinks

2007-11-06 Thread Ravi Menon
see 'fatal redeclare errors' etc.. Restarting apache (TERM and not USR1) seems to fix it. We could update our install scripts to restart apache, but I am just curious, is this really necessary? Is there anyway to prevent php from not resolving symlinks but use them as it is in the includ

[PHP] Re: newbie questions

2007-10-21 Thread Ravi
Maybe you have a point. I will do performance testing and then decide if I should try to optimize to that point. Yes the logging is just one simple insert into the database. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Re: newbie questions

2007-10-21 Thread Ravi
Richard, unfortunately I cannot end the script. I need something like this: http://www.yahoo.com'); // somehow let the browser move to yahoo.com // now update the database to store some information about user exit; ?> Richard Heyes wrote: Ravi wrote: That was very very

[PHP] Re: newbie questions

2007-10-21 Thread Ravi
every 100 requests. Is any of this possible in PHP? M. Sokolewicz wrote: Ravi wrote: Guys, I am fairly new to PHP. Here are a few questions, if anybody can answer it will help me get started. Thanks I am trying to build a website and I would like to do the following in my scripts 1. I

[PHP] newbie questions

2007-10-20 Thread Ravi
. Thanks Ravi -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] call to pprofp not working for PHP APD

2006-06-12 Thread Ravi Jethwa
format the profile data using APD. Thanks for you help. Ravi Jethwa OPUS MEDIA PLC - Developer t +44 (0)845 122 3180 f +44 (0)845 122 3190 e [EMAIL PROTECTED] w www.opusmediaplc.com a 4th Floor, 24 Buckingham Gate, London, SW1E 6LB This ema

Re: [PHP] RE: php-general Digest 17 Oct 2005 10:35:46 -0000 Issue 3742

2005-10-17 Thread Ravi
I just had a small doubt..Is it possible to write JavaScript through PHP??? On 10/17/05, Aftab Alam <[EMAIL PROTECTED]> wrote: > hi, > any one can help me > > i want to generate Pdf file using php. > how can i & what tools is required for this. > > > > > > > Regards, > _ > > Aftab Alam >

Re: [PHP] Automatically generated emails

2005-08-29 Thread Ravi Gogna
Nice to know that newbies are well looked after on these lists. If you didn't wanna help, you could have not clicked reply Jay Blanchard wrote: [snip] Yes. [/snip] Watch out, this'll start a flood of "why can't you be nice"? e-mail John, any relatives still in LA? -- PHP General Maili

[PHP] Automatically generated emails

2005-08-29 Thread Ravi Gogna
This is probably a really simple question, but I can't work out what to write! I've written a fairly standard HTML form and I would like an email to be generated as soon as the user clicks 'Submit'. Can you help?! Thanks Ravi Gogna -- PHP General Mailing List (htt

[PHP] Redisplaying information from a HTML form

2005-08-10 Thread Ravi Gogna
can make these boxes and buttons retain their value? Thanks Ravi Gogna -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Accessing env variables

2005-04-01 Thread Ravi Natarajan
How to access these environment variables in my php code without using getenv() call. Thanks Ravi Natarajan

[PHP] plz help!compiled php but iam still getting old version ???

2004-06-20 Thread Ravi
HI, existing configuration : PHP Version 4.3.4 ( default rpm with fedora fc2 install) Server version: Apache/2.0.49 (default with fedora fc2 install) Server built: May 6 2004 07:15:13 NOw i want to install 4.3.3 , so i compiled and install ( with no errors ) if i type " php -v " at shell iam g

[PHP] is there any application , by using i can produce php exe files in windows ?

2004-06-20 Thread Ravi
HI, is there any windows application , by using we can produce standalone php .exe files ? --- knowledge is power share it --- -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Safe mode effect

2004-04-22 Thread Ravi kumar
HI, goole.com found so many details about safe mode too much to understand. My hosting provider set php safe mode = enable . so iam unable to use so many scripts . can any one give good free image gallery software which will work under safe mode = enable . is it true that with apache 2.x ve

[PHP] setcookie on PHP??

2003-02-12 Thread Balaravi, Bala (Ravi), ALABS
I need to set a cookie within a document in PHP? setcookie didn't work. I guess it works only in PHP3 & PHP4 Any good ideas?? Thanks Rave -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Date difference

2001-03-31 Thread ravi
Dear Friends, I am accessing a MySQL database through PHP. I have to calculate the difference between todays date and the date obtained from MySQL database. The Database string is in the form of \"-mm-dd\". I have to convert the above string into unix timestamp so that i can calcualte th

[PHP] Fwd: Help - removal of trailing zeros from double integer field

2001-01-20 Thread ravi
Dear friends, I am accessing MySQL database using apache and php. I have to display a double integer field without trailing zeros. The number of digits after the decimal point varies. I have tried searching the archive and did not get any previous questions. Kindly help me in this regard. Than