[PHP] Re: use JSON storage on RAMdisk instead of SQL? (for fast moving sites)

2012-09-06 Thread rene7705
On Thu, Sep 6, 2012 at 12:47 PM, rene7705 wrote: > create RAMdisks for free of up to 500gb, and, more important, can on a sorry!! make that "for free of up to 4gb" -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] Re: use of ini vs include file for configuration

2010-11-11 Thread Ashley Sheridan
On Thu, 2010-11-11 at 14:21 -0800, Daevid Vincent wrote: > > > -Original Message- > > From: Ashley Sheridan [mailto:a...@ashleysheridan.co.uk] > > Sent: Thursday, November 11, 2010 11:46 AM > > To: Jo?o C?ndido de Souza Neto > > Cc: php-general@lists.

RE: [PHP] Re: use of ini vs include file for configuration

2010-11-11 Thread Daevid Vincent
> -Original Message- > From: Ashley Sheridan [mailto:a...@ashleysheridan.co.uk] > Sent: Thursday, November 11, 2010 11:46 AM > To: Jo?o C?ndido de Souza Neto > Cc: php-general@lists.php.net > Subject: Re: [PHP] Re: use of ini vs include file for configuration > &g

Re: [PHP] Re: use of ini vs include file for configuration

2010-11-11 Thread shiplu
For configuration, I used to use .php file earlier. I just used array syntax to keep the config values. But now I use json syntax. Its easy like xml. Ini file is much more user friendly than json though. -- Shiplu Mokadd.im My talks, http://talk.cmyweb.net Follow me, http://twitter.com/shiplu Inn

Re: [PHP] Re: use of ini vs include file for configuration

2010-11-11 Thread Ashley Sheridan
On Thu, 2010-11-11 at 17:16 -0200, Jo?o C?ndido de Souza Neto wrote: > Agreed. > > -- > Joo Cndido de Souza Neto > > "Tamara Temple" escreveu na mensagem > news:977f087c-bb11--b851-21616ae9e...@gmail.com... > > I'm curious what the lists' opinions are regarding the use of an .ini > > fil

[PHP] Re: use of ini vs include file for configuration

2010-11-11 Thread Jo�o C�ndido de Souza Neto
Agreed. -- João Cândido de Souza Neto "Tamara Temple" escreveu na mensagem news:977f087c-bb11--b851-21616ae9e...@gmail.com... > I'm curious what the lists' opinions are regarding the use of an .ini > file versus an include configuration file in PHP code are? > > I can see uses for eithe

Re: [PHP] Re: "use strict" or similar in PHP?

2009-03-01 Thread Robert Cummings
On Sun, 2009-03-01 at 09:57 -0500, Robert Cummings wrote: > On Sun, 2009-03-01 at 09:48 -0500, tedd wrote: > > At 9:21 AM -0500 3/1/09, Robert Cummings wrote: > > >On Sun, 2009-03-01 at 08:36 -0500, tedd wrote: > > >> The OP asked: > > >> > > >> >Is there in PHP something like "use strict" from p

Re: [PHP] Re: "use strict" or similar in PHP?

2009-03-01 Thread Robert Cummings
On Sun, 2009-03-01 at 09:48 -0500, tedd wrote: > At 9:21 AM -0500 3/1/09, Robert Cummings wrote: > >On Sun, 2009-03-01 at 08:36 -0500, tedd wrote: > >> The OP asked: > >> > >> >Is there in PHP something like "use strict" from perl? I find it pretty > >> >annoying to need to run script over and o

Re: [PHP] Re: "use strict" or similar in PHP?

2009-03-01 Thread tedd
At 9:21 AM -0500 3/1/09, Robert Cummings wrote: On Sun, 2009-03-01 at 08:36 -0500, tedd wrote: The OP asked: >Is there in PHP something like "use strict" from perl? I find it pretty >annoying to need to run script over and over again just to find out that I >made typo in variable name. An

Re: [PHP] Re: "use strict" or similar in PHP?

2009-03-01 Thread Robert Cummings
On Sun, 2009-03-01 at 08:36 -0500, tedd wrote: > The OP asked: > > >Is there in PHP something like "use strict" from perl? I find it pretty > >annoying to need to run script over and over again just to find out that I > >made typo in variable name. > > And I've been waiting for an answer myself,

Re: [PHP] Re: "use strict" or similar in PHP?

2009-03-01 Thread tedd
The OP asked: Is there in PHP something like "use strict" from perl? I find it pretty annoying to need to run script over and over again just to find out that I made typo in variable name. And I've been waiting for an answer myself, but I haven't seen one. From what I remember, in perl if you

Re: [PHP] Re: "use strict" or similar in PHP?

2009-03-01 Thread Robert Cummings
On Sat, 2009-02-28 at 18:57 -0600, Shawn McKenzie wrote: > Stuart wrote: > > 2009/2/28 Shawn McKenzie > > > >> Robert Cummings wrote: > >>> On Sat, 2009-02-28 at 00:11 +, Ashley Sheridan wrote: > On Fri, 2009-02-27 at 14:32 -0500, Robert Cummings wrote: > > On Sat, 2009-02-28 at 00:0

Re: [PHP] Re: "use strict" or similar in PHP?

2009-03-01 Thread Jim Lucas
Stuart wrote: 2009/3/1 Shawn McKenzie Stuart wrote: 2009/2/28 Shawn McKenzie Robert Cummings wrote: On Sat, 2009-02-28 at 00:11 +, Ashley Sheridan wrote: On Fri, 2009-02-27 at 14:32 -0500, Robert Cummings wrote: On Sat, 2009-02-28 at 00:02 +0600, 9el wrote:

Re: [PHP] Re: "use strict" or similar in PHP?

2009-02-28 Thread Michael A. Peters
Stuart wrote: As far as error checking goes the PHP engine performs syntactical checks during compile time but due to the highly flexible nature of the language it's not possible to do most error checking until runtime. I don't know (or care) how to do it but I suspect that if you put all ou

Re: [PHP] Re: "use strict" or similar in PHP?

2009-02-28 Thread Shawn McKenzie
Stuart wrote: > 2009/3/1 Shawn McKenzie > >> Stuart wrote: >>> 2009/2/28 Shawn McKenzie >>> Robert Cummings wrote: > On Sat, 2009-02-28 at 00:11 +, Ashley Sheridan wrote: >> On Fri, 2009-02-27 at 14:32 -0500, Robert Cummings wrote: >>> On Sat, 2009-02-28 at 00:02 +0600, 9el

Re: [PHP] Re: "use strict" or similar in PHP?

2009-02-28 Thread Stuart
2009/3/1 Shawn McKenzie > Stuart wrote: > > 2009/2/28 Shawn McKenzie > > > >> Robert Cummings wrote: > >>> On Sat, 2009-02-28 at 00:11 +, Ashley Sheridan wrote: > On Fri, 2009-02-27 at 14:32 -0500, Robert Cummings wrote: > > On Sat, 2009-02-28 at 00:02 +0600, 9el wrote: > >> ---

Re: [PHP] Re: "use strict" or similar in PHP?

2009-02-28 Thread Shawn McKenzie
Stuart wrote: > 2009/2/28 Shawn McKenzie > >> Robert Cummings wrote: >>> On Sat, 2009-02-28 at 00:11 +, Ashley Sheridan wrote: On Fri, 2009-02-27 at 14:32 -0500, Robert Cummings wrote: > On Sat, 2009-02-28 at 00:02 +0600, 9el wrote: >>

Re: [PHP] Re: "use strict" or similar in PHP?

2009-02-28 Thread Stuart
2009/2/28 Shawn McKenzie > Robert Cummings wrote: > > On Sat, 2009-02-28 at 00:11 +, Ashley Sheridan wrote: > >> On Fri, 2009-02-27 at 14:32 -0500, Robert Cummings wrote: > >>> On Sat, 2009-02-28 at 00:02 +0600, 9el wrote: > > -

Re: [PHP] Re: "use strict" or similar in PHP?

2009-02-28 Thread Robert Cummings
On Sat, 2009-02-28 at 09:04 -0600, Shawn McKenzie wrote: > Robert Cummings wrote: > > On Sat, 2009-02-28 at 00:11 +, Ashley Sheridan wrote: > >> On Fri, 2009-02-27 at 14:32 -0500, Robert Cummings wrote: > >>> On Sat, 2009-02-28 at 00:02 +0600, 9el wrote: > -

Re: [PHP] Re: "use strict" or similar in PHP?

2009-02-28 Thread Shawn McKenzie
Robert Cummings wrote: > On Sat, 2009-02-28 at 00:11 +, Ashley Sheridan wrote: >> On Fri, 2009-02-27 at 14:32 -0500, Robert Cummings wrote: >>> On Sat, 2009-02-28 at 00:02 +0600, 9el wrote: --- Use FreeOpenSourceSoftw

Re: [PHP] Re: "use strict" or similar in PHP?

2009-02-28 Thread Robert Cummings
On Sat, 2009-02-28 at 00:11 +, Ashley Sheridan wrote: > On Fri, 2009-02-27 at 14:32 -0500, Robert Cummings wrote: > > On Sat, 2009-02-28 at 00:02 +0600, 9el wrote: > > > --- > > > Use FreeOpenSourceSoftwares, Stop piracy, Let t

Re: [PHP] Re: "use strict" or similar in PHP?

2009-02-27 Thread Ashley Sheridan
On Fri, 2009-02-27 at 14:32 -0500, Robert Cummings wrote: > On Sat, 2009-02-28 at 00:02 +0600, 9el wrote: > > --- > > Use FreeOpenSourceSoftwares, Stop piracy, Let the developers live. Get > > a Free CD of Ubuntu mailed to your doo

Re: [PHP] Re: "use strict" or similar in PHP?

2009-02-27 Thread sbeam
On Friday 27 February 2009 10:56, Hans Schultz wrote: > Regarding databases I was hopping for some abstraction layer like dbx only >   better (to allow parameters). I encourage you to use a database abstraction layer that gives you this and many other features you may be used to from JDBC MDB2

Re: [PHP] Re: "use strict" or similar in PHP?

2009-02-27 Thread Robert Cummings
On Fri, 2009-02-27 at 14:32 -0800, Michael A. Peters wrote: > Robert Cummings wrote: > ... the line between the > > definition of interpreted language and compiled language is quite blurry > > these days. > > #include > main() > { > printf("Hello World"); > } > > Compile that - and you can r

Re: [PHP] Re: "use strict" or similar in PHP?

2009-02-27 Thread Michael A. Peters
Robert Cummings wrote: ... the line between the definition of interpreted language and compiled language is quite blurry these days. #include main() { printf("Hello World"); } Compile that - and you can run it on any system that is binary compatible, whether or not is has a C compiler.

Re: [PHP] Re: "use strict" or similar in PHP?

2009-02-27 Thread Robert Cummings
On Sat, 2009-02-28 at 00:02 +0600, 9el wrote: > --- > Use FreeOpenSourceSoftwares, Stop piracy, Let the developers live. Get > a Free CD of Ubuntu mailed to your door without any cost. Visit : > www.ubuntu.com > ---

Re: [PHP] Re: "use strict" or similar in PHP?

2009-02-27 Thread 9el
--- Use FreeOpenSourceSoftwares, Stop piracy, Let the developers live. Get a Free CD of Ubuntu mailed to your door without any cost. Visit : www.ubuntu.com -- On

Re: [PHP] Re: "use strict" or similar in PHP?

2009-02-27 Thread Robert Cummings
On Fri, 2009-02-27 at 09:28 -0700, LuKreme wrote: > On Feb 27, 2009, at 6:12, Hans Schultz wrote: > > > Hahahah,I was thinking the same thing > > >> > >> > > > The trouble is most people mean "compile a source file to an > executable binary" when they sat compile. By this measure, PHP does >

[PHP] Re: "use strict" or similar in PHP?

2009-02-27 Thread LuKreme
On Feb 27, 2009, at 6:12, Hans Schultz wrote: Hahahah,I was thinking the same thing The trouble is most people mean "compile a source file to an executable binary" when they sat compile. By this measure, PHP does not compile. -- PHP General Mailing List (http://www.php.net/) To un

[PHP] Re: "use strict" or similar in PHP?

2009-02-27 Thread Hans Schultz
Thanks, this is the most useful answer I got. I will try to use that IDE and to see if it works for me. Regarding databases I was hopping for some abstraction layer like dbx only better (to allow parameters). Regards, Hans On Fri, 27 Feb 2009 15:41:55 +0100, Peter Ford wrote: Hans Schultz

[PHP] Re: "use strict" or similar in PHP?

2009-02-27 Thread Peter Ford
Hans Schultz wrote: > Is there in PHP something like "use strict" from perl? I find it pretty > annoying to need to run script over and over again just to find out that I > made typo in variable name. I find that my IDE catches most of the typos before I even try to run the page. I use Netbeans 6

Re: [PHP] Re: use of curly braces with string interpolation.

2005-01-12 Thread Jochem Maas
M. Sokolewicz wrote: Jochem Maas wrote: ... I always use curly braces around vars placed in double quoted strings, I do this for 2 reasons: 1. I believe It helps the engine because the var delimitation is explicit, and this means the interpolation is (should be?) faster. consider that belief des

[PHP] Re: use of curly braces with string interpolation.

2005-01-12 Thread M. Sokolewicz
Jochem Maas wrote: hi guys, [[ I original posted this to php-internals because I figured that php-general would not know the answer _ it had to do with intended use of functionality (I couldn't find anything on the web about) and I figured that the guys who wrote/write php would be best equipped

[PHP] Re: use php to download mysql table

2004-09-18 Thread M. Sokolewicz
try: header('Content-type: application/vnd.ms-excel'); echo ''; $result = mysql_query('...'); while($row = mysql_fetch_array($queryResult)){ echo ''; foreach($row as $cell) { echo ''.$cell.''; } echo ''; } echo ''; exit; ?> Amc wrote: Hi, Does anyone have any sample code that wil

[PHP] Re: use php to download mysql table

2004-09-18 Thread zerof
Amc wrote: Hi, Does anyone have any sample code that will download a mysql table to an excel file? Thanks - http://www.dbtools.com.br/ - zerof -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: Use PHP to copy MySQL tables

2004-04-09 Thread Justin Patrin
Robb Kerr wrote: Is there an easy way to create an HTML page that uses PHP to copy selected MySQL tables to backup copies on the same MySQL server? I want to create an administration page for my client to be able to "backup" their database whenever they see fit. But, I can't give them direct acces

[PHP] Re: Use include function (newbie)

2003-10-17 Thread Comex
<[EMAIL PROTECTED]> Rich Fox: > But *why* does logic.php need html.php? > > There is no recursion issue, or endless nesting of includes, because > html.php refers to logic.php as an action for a form... this does not > "include" the logic.php code into the html.php page. > > Rich The idea is, AFAIK

[PHP] Re: Use include function (newbie)

2003-10-17 Thread Rich Fox
But *why* does logic.php need html.php? There is no recursion issue, or endless nesting of includes, because html.php refers to logic.php as an action for a form... this does not "include" the logic.php code into the html.php page. Rich "Karina S" <[EMAIL PROTECTED]> wrote in message news:[EMAI

Re: [PHP] Re: use print

2003-06-10 Thread Stephen Goddard
You can print from PHP ! The scrip below will print a bmp. It requires you to enable php_printer.dll in your php.ini file The printer handle must be the same, as the shown printer name, in the printers folder (win) For more info look here :- http://uk.php.net/manual/en/ref.printer.php If yo

Re: [PHP] Re: use print

2003-06-08 Thread Jean-Christian Imbeault
مضë wrote: thanks to replay I wont to print to paper printer If you mean to have the user print to a paper printer what he sees in his web browser then that has nothing to do with PHP. Printing from a web browser is controlled by the web browser. PHP cannot affect the way a web browser prints.

Re: [PHP] Re: use print

2003-06-08 Thread مضر
thanks to replay I wont to print to paper printer -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: use print

2003-06-07 Thread Jean-Christian Imbeault
Mudhar wrote: How can I print table in my page without I use print command from file menu? I means just table not all page I'm not sure I understand ... what do you mean by print? Print to a paper printer or display in the web browser? Can you explain more clearly exactly what it is you want to d

[PHP] RE: use of mysql_free_result (was Re: [PHP] Efficiency)

2002-09-19 Thread Tim Ward
if your query is within a loop then it would probably help, e.g. for ($i = 1; $i <= 1000; $i++) { $result = mysql_query("..."); ... } in this case as $result is a resource identifier then reusing it doesn't release the original result. Tim Ward www.chessish.com >

[PHP] Re: use curl.so with php4.1.0 and apache1.3.22 and curl7.9.8

2002-08-30 Thread Richard Lynch
>When I restart apache this is the message: > >Stopping httpd:[ OK ] >Starting httpd: PHP Warning: Unable to load dynamic library >'/usr/lib/php4/curl.so' - /usr/lib/php4/curl.so: cannot open shared object >file: No such file or directory in Unknown o

[PHP] Re: use data-ba_se

2002-08-11 Thread David Robley
In article <[EMAIL PROTECTED]>, list+php- [EMAIL PROTECTED] says... > Hi, > > I just noticed a little problem(?) while using databases. > > Some time ago I wrote myself a little class that made it easier to > handly my mysql-tasks. The class connected to a database and used a > query like "use $

[PHP] Re: Use an ini file

2002-03-07 Thread David Robley
In article <[EMAIL PROTECTED]>, [EMAIL PROTECTED] says... > > > Anyone know of an easy to use library/or code that will read and write > > > an ini file? > > See parse_ini_file() together with the file handling functions. > > Dave, > http://www.php.net/manual/en/function.parse-ini-file.php > Goo

[PHP] Re: Use an ini file

2002-03-07 Thread jtjohnston
> > Anyone know of an easy to use library/or code that will read and write > > an ini file? > See parse_ini_file() together with the file handling functions. Dave, http://www.php.net/manual/en/function.parse-ini-file.php Good, but no code to write to an ini file? :) John -- PHP General Mailing

[PHP] Re: Use an ini file

2002-03-07 Thread David Robley
In article <[EMAIL PROTECTED]>, [EMAIL PROTECTED] says... > Anyone know of an easy to use library/or code that will read and write > an ini file? See parse_ini_file() together with the file handling functions. -- David Robley Temporary Kiwi! Quod subigo farinam -- PHP General Mailing List

[PHP] Re: use of mysql_free_result and unset

2001-09-08 Thread Richard Lynch
It's done at the end of a function, or at any other time, when the variable is no longer in scope. You really only need this on a large, long-running script or where memory is an issue... For web-sites, that's quite rare. For a shell script, it might make sense. -- WARNING [EMAIL PROTECTED] ad

[PHP] Re: use php Convert between(foxpro) `.dbf' files and MySQL

2001-08-30 Thread _lallous
I'm not sure how the DBF format is, but I think you can export the Fox's .dbf to comma-seperated-values no? If yes, you can easily then put them back into MySql. "Yang" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > use php Convert between(foxpro) `.dbf' file

Re: [PHP] Re: Use cron to execute a script --> OTHER problem now

2001-08-21 Thread Travis Cannell
Ok I have the same problem but this isnt working. The first line of my sript is #!/usr/local/php -q , BTW this isnt in the brackets, but should it be? then I use lynx -dump -http://localhost/show_reminder.php in the crontab, but the mailer demon gives me the message your terminal lacks the abil

RE: [PHP] Re: Use cron to execute a script --> OTHER problem now

2001-08-21 Thread Dave
>Sent: Tuesday, August 21, 2001 8:17 AM >To: [EMAIL PROTECTED] >Subject: [PHP] Re: Use cron to execute a script --> OTHER problem now > > >Hi. > >now my cron is working, but the command don't. If I do >manualy "lynx -dump -nolog >http://localhost/backups/b

[PHP] Re: Use cron to execute a script --> OTHER problem now

2001-08-21 Thread Augusto Cesar Castoldi
Hi. now my cron is working, but the command don't. If I do manualy "lynx -dump -nolog http://localhost/backups/backup.php"; it works, but with cron didn't worked. I receive this "e-mail" from "Cron Daemon": --- Subject: Cron lynx -dump -nolog h

[PHP] Re: Use

2001-01-13 Thread Arcady Genkin
"mOrP" <[EMAIL PROTECTED]> writes: [badly formatted message fixed] > > I have noticed that > in documentation, how safe is it to use it? > > Can someone point me to the documentation of ' know what it does. See http://www.php.net/manual/en/language.basic-syntax.php -- Arcady Genkin Don't read