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 ocram...@gmail.com wrote: Well done! Congratulations! On 20 Jun 2013 23:23, Julien Pauli jpa...@php.net wrote: Hello! The PHP Development Team would like to announce the immediate release of PHP 5.5.0. This release includes a

Re: [PHP] Accessing Files Outside the Web Root

2013-03-14 Thread Ravi Gehlot
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 Wed, Mar 13

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 rene7...@gmail.com 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

Re: [PHP] static Logging class?

2013-03-03 Thread Ravi Gehlot
will 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] 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: Twitter] http

Re: [PHP] Introduction ... !

2013-03-03 Thread Ravi Gehlot
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 1, 2013 at 10:57 AM, Nick

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, web...@blaettner.com wrote: Hi, folks, On Tue, 21 Dec 2010 21:35:17 -0800 [06:35:17 AM CET], Michael Shadle mike...@gmail.com wrote: first - this is probably your culprit

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] accessing magic parent set

2010-12-22 Thread Ravi Gehlot
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 dreal...@gmail.comwrote: Is this the only way to access the magic __set from the parent class: public function __set($columnName, $value

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 simples...@gmail.comwrote: On Tue, Nov 16, 2010 at 10:10 PM, Gary gp...@paulgdesigns.com wrote: I was doing a test of stripslashes on a $_POST, when I

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
On Wed, Dec 22, 2010 at 3:34 PM, Bob McConnell r...@cbord.com 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 characters into data submitted

Re: [PHP] Stripslashes

2010-12-22 Thread Ravi Gehlot
htmlspecialchars($var, ENT_QUOTES); cheers, Russ On Thu, Dec 23, 2010 at 6:48 AM, Ravi Gehlot r...@ravigehlot.net wrote: On Wed, Dec 22, 2010 at 3:34 PM, Bob McConnell r...@cbord.com wrote: From: Ravi Gehlot What are these magic quotes anyways?. What are they used for? escaping? I

Re: [PHP] Problem with Include

2010-12-21 Thread Ravi Gehlot
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 Tue, Dec 21

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 danbr...@php.net wrote: On Tue, Dec 21, 2010 at 02:27, Ravi Gehlot r...@ravigehlot.net wrote: That's a good question. There should be a setting on php.ini to allow cross session. Right. Because who needs

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 walter.caie...@ars21.netwrote: I've fixed the problem. I don't know why, but suddenly windows prevents PHP from writing into C

Re: [PHP] Problem with Include

2010-12-21 Thread Ravi Gehlot
it is a 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] 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

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 tapi...@gmail.com wrote: Hi! You should use the function session_set_cookie_params to set the session cookie domain to .oire.org like this comment

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 daniel.br...@parasane.netwrote: On Mon, Dec 20, 2010 at 02:49, Simcha Younger sim

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 gp...@paulgdesigns.com wrote: Tamara Temple tamouse.li...@gmail.com wrote in message news:c6993909-dd90-4f52-bf6b-ab888c281...@gmail.com... On Dec 19, 2010, at 9:46 AM, Gary wrote: I have an issue that the first

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 li...@cmsws.com wrote: On 12/17/2010 12:52 PM, Sorin

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 danbr...@php.net wrote: On Thu, Dec 16, 2010 at 23:39, Paul S pau...@roadrunner.com wrote: Well, I was hoping for stronger arguments to get that DONE. I would think

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 phpl...@planetphred.comwrote: It seems like there are several questions emerging, but ... Try echoing your query to the page by putting

Re: [PHP] Problem with Include

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

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

2010-10-27 Thread J Ravi Menon
on every request. Ravi On Wed, Oct 27, 2010 at 10:17 AM, Michael Shadle mike...@gmail.com 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 still prefer XML. Albeit verbose

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 jravime...@gmail.com 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

Re: [PHP] PHP Email Question

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

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 bost...@a2o.si 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 12:43 AM, Per Jessen p...@computer.org 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 compiled once as it has already been 'seen'. Yup

Re: [PHP] php cli question

2010-09-14 Thread J Ravi Menon
On Tue, Sep 14, 2010 at 1:15 PM, Per Jessen p...@computer.org wrote: J Ravi Menon wrote: On Tue, Sep 14, 2010 at 12:43 AM, Per Jessen p...@computer.org wrote: J Ravi Menon wrote: Few questions: 1) Does opcode cache really matter in such cli-based daemons? As 'SomeClass' is instantiated

[PHP] Re: php cli question

2010-09-13 Thread J Ravi Menon
On Sat, Sep 11, 2010 at 8:50 PM, Shawn McKenzie nos...@mckenzies.net 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..): #!/usr/bin/php ?php require_once

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

2010-03-05 Thread J Ravi Menon
. 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 mike.han...@atmel.com wrote: -Original Message

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

2010-01-25 Thread J Ravi Menon
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 da...@lorenso.com

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

2010-01-25 Thread J Ravi Menon
versions. Ravi On Mon, Jan 25, 2010 at 3:49 PM, D. Dante Lorenso da...@lorenso.com wrote: J Ravi Menon wrote: PHP does expose sys V shared-memory apis (shm_* functions): http://us2.php.net/manual/en/book.sem.php I will look into this.  I really need a key/value map, though and would rather

Re: [PHP] Object Oriented Programming question

2010-01-20 Thread J Ravi Menon
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 r...@cbord.com wrote: From: tedd At 10:26 AM -0500 1/19/10, Bob McConnell wrote: Some problems will fit

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

2010-01-08 Thread J Ravi Menon
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 rob...@interjinn.com wrote: clanc...@cybec.com.au wrote: On Thu, 07 Jan 2010 22:48:59 -0500, rob...@interjinn.com (Robert Cummings) wrote: clanc

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 jravime...@gmail.com wrote: Hi, A note

[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, visit: http://www.php.net

[PHP] ruby / rails within a php site

2009-03-03 Thread ravi Ruddarraju
function. Is 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
this 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] wrote

[PHP] curl timeout vs socket timeout

2008-01-28 Thread Ravi Menon
to 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

[PHP] apc and cli

2007-12-12 Thread Ravi Menon
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, do let me know. Thanks, Ravi

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, December 12

Re: [PHP] php.ini include_path and symlinks

2007-11-07 Thread Ravi Menon
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. -- ... SwarmBuy.com - http

[PHP] php.ini include_path and symlinks

2007-11-06 Thread Ravi Menon
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 include_path? Thanks, Ravi -- PHP

[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

Re: [PHP] Re: newbie questions

2007-10-21 Thread Ravi
Richard, unfortunately I cannot end the script. I need something like this: ?php header('Location: 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

[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

[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
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 email and its

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 -Original

[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 (http://www.php.net

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

[PHP] Redisplaying information from a HTML form

2005-08-10 Thread Ravi Gogna
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
these environment variables in my php code without using getenv() call. Thanks Ravi Natarajan

[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] 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

[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

[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

[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.