Re: [PHP] Using Table prefixes

2013-06-10 Thread Tamara Temple
Julian Wanke wrote: > Facebook has 1,11 Billion Accounts. If we divide this through 1000 > members per data team member they need 1 Million data team mebers, > each of them has a salary which I would say is about 2000$. > That means they have to pay 2 Billion US$ (!) per month to the data > team

Re: [PHP] Using Table prefixes

2013-06-10 Thread Julian Wanke
There servers are so good configured, that they don't need much maintainance. Facebook has 1,11 Billion Accounts. If we divide this through 1000 members per data team member they need 1 Million data team mebers, each of them has a salary which I would say is about 2000$. That means they have

Re: [PHP] Using Table prefixes

2013-06-10 Thread Tedd Sperling
Hi: I am sure they do not turn over a 1000 clients to a single person. Cheers, tedd _ tedd.sperl...@gmail.com http://sperling.com On Jun 10, 2013, at 2:11 PM, Julian Wanke wrote: > Tell this the facebook, google or nsa data team ^^ > > Am 10.06.2013, 16:15 Uhr, schri

Re: [PHP] Using Table prefixes

2013-06-10 Thread Julian Wanke
Tell this the facebook, google or nsa data team ^^ Am 10.06.2013, 16:15 Uhr, schrieb Tedd Sperling : On Jun 8, 2013, at 4:17 PM, Julian Wanke wrote: A database for each client? Isn't that over-powered? If you have 1000 clients, you would loose the overview over your databases... What -- p

Re: [PHP] Using Table prefixes

2013-06-10 Thread Tedd Sperling
On Jun 8, 2013, at 4:17 PM, Julian Wanke wrote: > A database for each client? Isn't that over-powered? If you have 1000 > clients, you would loose the overview over your databases... What -- people have more than one client?!? My thoughts: A client is like a girlfriend -- if you have too many

Re: [PHP] Using Table prefixes

2013-06-08 Thread Bastien
Bastien Koert On 2013-06-08, at 5:56 PM, Tamara Temple wrote: > Tedd Sperling wrote: >> On Jun 8, 2013, at 3:00 PM, Ashley Sheridan >> wrote: >> dealTek wrote: >>> I can see the basic need for a table prefix in a case where you may use one mysql database for several projects at

Re: [PHP] Using Table prefixes

2013-06-08 Thread Bastien
Bastien Koert On 2013-06-08, at 5:58 PM, Tamara Temple wrote: > Julian Wanke wrote: >> A database for each client? Isn't that over-powered? If you have 1000 >> clients, you would loose the overview over your databases... > > I believe what is being talked about is one DB per application inst

Re: [PHP] Using Table prefixes

2013-06-08 Thread Tamara Temple
Julian Wanke wrote: > A database for each client? Isn't that over-powered? If you have 1000 > clients, you would loose the overview over your databases... I believe what is being talked about is one DB per application install -- 'client' can be a way-overloaded term. > > Am 08.06.2013, 21:46 U

Re: [PHP] Using Table prefixes

2013-06-08 Thread Tamara Temple
Tedd Sperling wrote: > On Jun 8, 2013, at 3:00 PM, Ashley Sheridan wrote: > dealTek wrote: > > > >> I can see the basic need for a table prefix in a case where you may use > >> one mysql database for several projects at once so as to distinguish > >> tables per project like... > >> > >> -snip-

Re: [PHP] Using Table prefixes

2013-06-08 Thread Julian Wanke
A database for each client? Isn't that over-powered? If you have 1000 clients, you would loose the overview over your databases... Am 08.06.2013, 21:46 Uhr, schrieb Tedd Sperling : On Jun 8, 2013, at 3:00 PM, Ashley Sheridan wrote: dealTek wrote: I can see the basic need for a table pr

Re: [PHP] Using Table prefixes

2013-06-08 Thread Tedd Sperling
On Jun 8, 2013, at 3:00 PM, Ashley Sheridan wrote: dealTek wrote: > >> I can see the basic need for a table prefix in a case where you may use >> one mysql database for several projects at once so as to distinguish >> tables per project like... >> >> -snip- >> however I was told a long time ago

Re: [PHP] Using Table prefixes

2013-06-08 Thread Ashley Sheridan
dealTek wrote: >Hi all, > >I can see the basic need for a table prefix in a case where you may use >one mysql database for several projects at once so as to distinguish >tables per project like... > > >Project 1 > >mysales_contacts >mysales_invoices >etc > >and > >jobs_contacts >jobs_invoices >

Re: [PHP] Using PEAR and PHP

2012-08-23 Thread Matijn Woudt
On Thu, Aug 23, 2012 at 9:25 PM, Suraj Shah wrote: > > > On 23/08/2012 20:12, "Matijn Woudt" wrote: > > > > On Thu, Aug 23, 2012 at 9:12 PM, Ashley Sheridan > wrote: > > > On Thu, 2012-08-23 at 20:33 +0200, Matijn Woudt wrote: > >> >> OK thanks Matijn. >> >> I’ll google it now and install it. >>

Re: [PHP] Using PEAR and PHP

2012-08-23 Thread Suraj Shah
On 23/08/2012 20:12, "Matijn Woudt" wrote: On Thu, Aug 23, 2012 at 9:12 PM, Ashley Sheridan wrote: On Thu, 2012-08-23 at 20:33 +0200, Matijn Woudt wrote: > > OK thanks Matijn. > > I’ll google it now and install it. > > There is a site.php as well as a config.php file in the sub-directory o

Re: [PHP] Using PEAR and PHP

2012-08-23 Thread Matijn Woudt
On Thu, Aug 23, 2012 at 9:12 PM, Ashley Sheridan wrote: > ** > On Thu, 2012-08-23 at 20:33 +0200, Matijn Woudt wrote: > > > > > OK thanks Matijn. > > > > I’ll google it now and install it. > > > > There is a site.php as well as a config.php file in the sub-directory of the > > old server. I’ve cop

Re: [PHP] Using PEAR and PHP

2012-08-23 Thread Matijn Woudt
On Thu, Aug 23, 2012 at 9:14 PM, Suraj Shah wrote: > > > > On 23/08/2012 20:12, "Ashley Sheridan" wrote: > > On Thu, 2012-08-23 at 20:33 +0200, Matijn Woudt wrote: > > >> >> OK thanks Matijn. >> >> I’ll google it now and install it. >> >> There is a site.php as well as a config.php file in the su

Re: [PHP] Using PEAR and PHP

2012-08-23 Thread Suraj Shah
On 23/08/2012 20:12, "Ashley Sheridan" wrote: On Thu, 2012-08-23 at 20:33 +0200, Matijn Woudt wrote: > > OK thanks Matijn. > > I’ll google it now and install it. > > There is a site.php as well as a config.php file in the sub-directory of the > old server. I’ve copied these over but not sure

Re: [PHP] Using PEAR and PHP

2012-08-23 Thread Ashley Sheridan
On Thu, 2012-08-23 at 20:33 +0200, Matijn Woudt wrote: > > > > OK thanks Matijn. > > > > I’ll google it now and install it. > > > > There is a site.php as well as a config.php file in the sub-directory of the > > old server. I’ve copied these over but not sure why it still doesn’t > > recognise it

Re: [PHP] Using PEAR and PHP

2012-08-23 Thread Suraj Shah
On 23/08/2012 19:33, "Matijn Woudt" wrote: >> >> OK thanks Matijn. >> >> I’ll google it now and install it. >> >> There is a site.php as well as a config.php file in the sub-directory of the >> old server. I’ve copied these over but not sure why it still doesn’t >> recognise it. I’ve amended t

Re: [PHP] Using PEAR and PHP

2012-08-23 Thread Matijn Woudt
> > OK thanks Matijn. > > I’ll google it now and install it. > > There is a site.php as well as a config.php file in the sub-directory of the > old server. I’ve copied these over but not sure why it still doesn’t > recognise it. I’ve amended the code to point to the new server as well. > > Suraj T

Re: [PHP] Using PEAR and PHP

2012-08-23 Thread Suraj Shah
On 23/08/2012 19:26, "Matijn Woudt" wrote: On Thu, Aug 23, 2012 at 8:21 PM, Suraj Shah wrote: On 23/08/2012 19:11, "Matijn Woudt" http://tijn...@gmail.com> > wrote: > On Thu, Aug 23, 2012 at 8:12 PM, Suraj Shah > wrote: >> Thanks for your reply Ashley. >> >> I’m

Re: [PHP] Using PEAR and PHP

2012-08-23 Thread Matijn Woudt
On Thu, Aug 23, 2012 at 8:21 PM, Suraj Shah wrote: > > > > On 23/08/2012 19:11, "Matijn Woudt" wrote: > > > On Thu, Aug 23, 2012 at 8:12 PM, Suraj Shah wrote: > >> Thanks for your reply Ashley. > >> > >> I’m getting the attached error message which I can’t seem to solve. If > it’s > >> just a m

Re: [PHP] Using PEAR and PHP

2012-08-23 Thread Suraj Shah
On 23/08/2012 19:11, "Matijn Woudt" wrote: > On Thu, Aug 23, 2012 at 8:12 PM, Suraj Shah wrote: >> Thanks for your reply Ashley. >> >> I’m getting the attached error message which I can’t seem to solve. If it’s >> just a matter of adding code to use for a library, would this be possible? >> H

Re: [PHP] Using PEAR and PHP

2012-08-23 Thread Ashley Sheridan
On Thu, 2012-08-23 at 19:12 +0100, Suraj Shah wrote: > Thanks for your reply Ashley. > > I’m getting the attached error message which I can’t seem to solve. If > it’s just a matter of adding code to use for a library, would this be > possible? How do I go about configuring it? > > Many thanks, >

Re: [PHP] Using PEAR and PHP

2012-08-23 Thread Lester Caine
Suraj Shah wrote: I am currently working on a website which uses PHP as an integral programming language as part of it. I am trying to replicate the website’s contents from one ftp server to another but am encountering serious issues in doing so. I’ve spent two days trying to find out the rea

Re: [PHP] Using PEAR and PHP

2012-08-23 Thread Matijn Woudt
On Thu, Aug 23, 2012 at 8:12 PM, Suraj Shah wrote: > Thanks for your reply Ashley. > > I’m getting the attached error message which I can’t seem to solve. If it’s > just a matter of adding code to use for a library, would this be possible? > How do I go about configuring it? > > Many thanks, > S

Re: [PHP] Using PEAR and PHP

2012-08-23 Thread Suraj Shah
Thanks for your reply Ashley. I’m getting the attached error message which I can’t seem to solve. If it’s just a matter of adding code to use for a library, would this be possible? How do I go about configuring it? Many thanks, Suraj On 23/08/2012 19:08, "Ashley Sheridan" wrote: On Thu, 20

Re: [PHP] Using PEAR and PHP

2012-08-23 Thread Ashley Sheridan
On Thu, 2012-08-23 at 18:42 +0100, Suraj Shah wrote: > Hi. > > I am currently working on a website which uses PHP as an integral programming > language as part of it. > > I am trying to replicate the website’s contents from one ftp server to > another but am encountering serious issues in doin

Re: [PHP] using phar and compression

2012-08-09 Thread Hajo Locke
Thanks, Hajo - Original Message - From: "Alan Hoffmeister" To: "Hajo Locke" Sent: Wednesday, August 08, 2012 1:32 PM Subject: Re: [PHP] using phar and compression Why don't you use Phar::compress() instead of Phar::convertToExecutable() and see

Re: [PHP] Using named Pipes between PHP and ZIP

2012-07-09 Thread Matijn Woudt
On Mon, Jul 9, 2012 at 7:19 PM, Dennis Heck wrote: > > Unfortunately it makes no difference if i use zip with 2 - or if I leave > them ommited. The longer I guess about it, the more I think it might be a > ZIP topic, namely how the stream to stdin needs to be like so zip will know > the name of th

Re: [PHP] Using named Pipes between PHP and ZIP

2012-07-09 Thread Dennis Heck
Unfortunately it makes no difference if i use zip with 2 - or if I leave them ommited. The longer I guess about it, the more I think it might be a ZIP topic, namely how the stream to stdin needs to be like so zip will know the name of the file from it. Regards, Dennis -- PHP General Mail

Re: [PHP] Using named Pipes between PHP and ZIP

2012-07-08 Thread tamouse mailing lists
≈On Sun, Jul 8, 2012 at 11:30 AM, Dennis Heck wrote: > Hello everyone, > > I'm looking for a solution for the following: > 1) collecting data from a simple html form and send them to a php script > 2) take the data and place them in a php-generated excel sheet > 3) zip the excel sheet and password

Re: [PHP] Using default argument values in the middle of the argument list

2012-06-04 Thread ma...@behnke.biz
324...@mail.muni.cz hat am 1. Juni 2012 um 21:52 geschrieben: > Hi, > > as I accidentally found out that PHP allows default argument values > to occur not only at the end of parameter list: > > function ( Classname $a, Classname $b = null, Classname $c ) ... > > Unfortunately, documentation does

Re: [PHP] Using default argument values in the middle of the argument list

2012-06-03 Thread Matijn Woudt
On Sun, Jun 3, 2012 at 4:48 PM, oliver gondža wrote: > On Sat, 02 Jun 2012 21:35:28 +0200, Matijn Woudt wrote: > >> It does not state it works only at the end of the list, it states that >> it only makes sense to use it at the end of the argument list to be >> able to call the function with less

Re: [PHP] Using default argument values in the middle of the argument list

2012-06-03 Thread oliver gondža
On Sat, 02 Jun 2012 21:35:28 +0200, Matijn Woudt wrote: It does not state it works only at the end of the list, it states that it only makes sense to use it at the end of the argument list to be able to call the function with less arguments. In case you want to use it as suggested in [2], you c

Re: [PHP] Using default argument values in the middle of the argument list

2012-06-02 Thread Matijn Woudt
On Sat, Jun 2, 2012 at 8:30 PM, oliver gondža wrote: > On Sat, 02 Jun 2012 17:13:55 +0200, Matijn Woudt wrote: > >> >> Hi Oliver, >> >> I think the example at [1] demonstrates that it is possible, but it >> also notes that it is pretty useless. Why are you interested in this? >> >> - Matijn >> >>

Re: [PHP] Using default argument values in the middle of the argument list

2012-06-02 Thread oliver gondža
On Sat, 02 Jun 2012 17:13:55 +0200, Matijn Woudt wrote: Hi Oliver, I think the example at [1] demonstrates that it is possible, but it also notes that it is pretty useless. Why are you interested in this? - Matijn [1] http://www.php.net/manual/en/functions.arguments.php#example-153 Hi, T

Re: [PHP] Using default argument values in the middle of the argument list

2012-06-02 Thread Matijn Woudt
On Fri, Jun 1, 2012 at 9:52 PM, <324...@mail.muni.cz> wrote: > Hi, > > as I accidentally found out that PHP allows default argument values > to occur not only at the end of parameter list: > > function ( Classname $a, Classname $b = null, Classname $c ) ... > > Unfortunately, documentation does no

Re: [PHP] using passthru or system() even and passing the $_FILES array

2011-09-28 Thread tamouse mailing lists
On Wed, Sep 28, 2011 at 10:52 AM, Jim Lucas wrote: > On 9/28/2011 12:07 AM, Anton Heuschen wrote: >> $command = '/usr/bin/php -f /var/www/details/Write.php '.$email.' >> '.$actionDate.' '.$files.' >> php.log'; >> system($command,$return); > > At this point I would suggest that you echo $command be

Re: [PHP] using passthru or system() even and passing the $_FILES array

2011-09-28 Thread Jim Lucas
On 9/28/2011 12:07 AM, Anton Heuschen wrote: > Good day, > > I have a question and something that either does not work, or I have not > gotten it to work the way I want to. > > I have a start page, which is a form, that takes 2 text fields and also a > Attachment field. Then it calls the first pa

Re: [PHP] Using stand-alone PHP scripts with Drupal

2011-08-24 Thread Florian Lemaitre
Le 24/08/2011 12:24, Geoff Shang a écrit : Hi, I know this is probably more a Drupal question, but I'm guessing some here have probably had to deal with this. I've written some PHP code which works just fine on its own. Now someone wants to include it in their Drupal site, with the regular

Re: [PHP] Using function prototypes in code

2011-08-10 Thread Simon J Welsh
On 10/08/2011, at 1:10 PM, Frank Thynne wrote: > To confuse me a bit further, I can't find a definitive list of the > basic type names. For example, is it "integer" or "int"? Both. http://php.net/manual/en/language.types.type-juggling.php#language.types.typecasting --- Simon Welsh Admin of http:

Re: [PHP] Using function prototypes in code

2011-08-10 Thread David Harkness
On Tue, Aug 9, 2011 at 6:10 PM, Frank Thynne wrote: > function integer int_func(string $s) { > // does something like, say, converting "five" to 5 > } > As Stuart pointed out, type-hinting currently only works for classes and arrays. Scalar type-hinting is planned for the future, but for now yo

Re: [PHP] Using function prototypes in code

2011-08-10 Thread Tim Streater
On 10 Aug 2011 at 02:10, Frank Thynne wrote: > In the interest of clarity and maintainability I would like to be able > to write code that makes it clear what kind of arguments a function > expects and what it returns. So add the appropriate comments to your functions. > This is what I tried:

Re: [PHP] Using function prototypes in code

2011-08-09 Thread Stuart Dallas
On 10 Aug 2011, at 02:10, Frank Thynne wrote: > In the interest of clarity and maintainability I would like to be able > to write code that makes it clear what kind of arguments a function > expects and what it returns. > > This is what I tried: > > function integer int_func(string $s) { > // do

RE: [PHP] using pg_query in a function not working

2011-08-05 Thread Marc Fromm
Thanks! Sometimes I'm blind. -Original Message- From: Jim Lucas [mailto:li...@cmsws.com] Sent: Friday, August 05, 2011 1:01 PM To: Marc Fromm Cc: php-general@lists.php.net Subject: Re: [PHP] using pg_query in a function not working On 8/5/2011 12:08 PM, Marc Fromm wrote: > >

Re: [PHP] using pg_query in a function not working

2011-08-05 Thread Jim Lucas
On 8/5/2011 12:08 PM, Marc Fromm wrote: > > I have to sql statements in functions to use in my code. Even though the echo > statements show the sql is valid the sql does not seem to execute and I get > the error, "PHP Warning: pg_fetch_object() expects parameter 1 to be > resource, boolean giv

Re: [PHP] using wget in shell for download(snort)

2011-07-11 Thread Negin Nickparsa
I appreciate your attention,thank you very much I have some problems like interdict in my country access that I can't access the whole sites like this one I have VPN that I use in my home but not in another locations like here. I'll try it in another situation BTW thank you very much Stuart

Re: [PHP] using wget in shell for download(snort)

2011-07-11 Thread Negin Nickparsa
I mean it was my own oinkcode I was a registered user

Re: [PHP] using wget in shell for download(snort)

2011-07-11 Thread Negin Nickparsa
I logined in there and I used my oinkcode I tried to download just one rule I mean *.rules It worked I can download one by one but not the group of them maybe their files are corrupted see here that I downloaded: wget http://cvs.snort.org/viewcvs.cgi/snort/rules/dos.rules --12:09:32-- http://c

Re: [PHP] using wget in shell for download(snort)

2011-07-11 Thread Stuart Dallas
On Mon, Jul 11, 2011 at 8:31 AM, Negin Nickparsa wrote: > I'm in opensuse I tried wget url for another site it is working > there(without -O) > > for example I can have this: > > wget http://library.linode.com/assets/695-wget-example.txt > > and it is working it will be downloaded on /root > > but

Re: [PHP] using wget in shell for download(snort)

2011-07-11 Thread Stuart Dallas
On Mon, Jul 11, 2011 at 9:10 AM, Negin Nickparsa wrote: > Sorry that I disssturbed you > I appologize you,ok I will solve my problem in another mailing list > I'm not disturbed (well, maybe a little :D), just pointing out that since your issue is to do with Snort and not PHP you might get a bette

Re: [PHP] using wget in shell for download(snort)

2011-07-11 Thread Negin Nickparsa
Sorry that I disssturbed you I appologize you,ok I will solve my problem in another mailing list my application is in php I simplified using snort by writing an application but in the updating part of files I wanted to automatically download the files which user will have nothing to do in shell j

Re: [PHP] using wget in shell for download(snort)

2011-07-11 Thread Stuart Dallas
On Mon, Jul 11, 2011 at 8:57 AM, Negin Nickparsa wrote: > I logined in there and I used my oinkcode I tried to download just one rule > I mean *.rules > It worked I can download one by one but not the group of them > > maybe their files are corrupted > > see here that I downloaded: > > wget http:

Re: [PHP] using wget in shell for download(snort)

2011-07-11 Thread Negin Nickparsa
I'm in opensuse I tried wget url for another site it is working there(without -O) for example I can have this: wget http://library.linode.com/assets/695-wget-example.txt and it is working it will be downloaded on /root but I'm so confused about snort rules that why I can't download them I also

Re: [PHP] using wget in shell for download(snort)

2011-07-10 Thread Richard Quadling
On 10 July 2011 11:38, Negin Nickparsa wrote: > I want to make a batch file and then exec it in php You say "Batch" file. Are you using Windows? If so, try "double quotes". That is the norm for windows. And you can either use a space or change it to %20 in the URL. Make sure the URL is corre

Re: [PHP] using wget in shell for download(snort)

2011-07-10 Thread Torsten Rosenberger
Hello Try wget 'url' BR -- Diese Nachricht wurde von meinem Android-Mobiltelefon mit K-9 Mail gesendet.

Re: [PHP] using wget in shell for download(snort)

2011-07-10 Thread Geoff Shang
On Sun, 10 Jul 2011, Tamara Temple wrote: On Jul 10, 2011, at 5:38 AM, Negin Nickparsa wrote: I want to make a batch file and then exec it in php I have a problem in batch file wget have been installed in Yast I want to download a RuleFile from snort.org I used this on shell: $ wget http://w

Re: [PHP] using wget in shell for download(snort)

2011-07-10 Thread Tamara Temple
On Jul 10, 2011, at 5:38 AM, Negin Nickparsa wrote: I want to make a batch file and then exec it in php I have a problem in batch file wget have been installed in Yast I want to download a RuleFile from snort.org I used this on shell: $ wget http://www.snort.org/reg-rules/snortrules-snapshot-

Re: [PHP] using XHTML FRAMESET with Zend Layout on Zend_App (MVC)

2011-05-04 Thread Bjoern Bartels
hello Dare! it seems you got something wrong there... the .phtml files are not meant to be called directly. for the frames' src-attributes you'll have to provide a full URI calling another controller's/module's action to output the frame content. YT BB [ Björn Bartels ]

Re: [PHP] Using SQLite without hosting support

2011-05-03 Thread Paul M Foster
On Tue, May 03, 2011 at 02:14:17PM -0400, ad...@buskirkgraphics.com wrote: > > -Original Message- > From: Paul M Foster [mailto:pa...@quillandmouse.com] > Sent: Tuesday, May 03, 2011 12:36 PM > To: php-general@lists.php.net > Subject: [PHP] Using SQLite without hosting support > > Assum

RE: [PHP] Using SQLite without hosting support

2011-05-03 Thread admin
Paul, I could be wrong on this but unless you have a dedicated server, you do not have the recompilation rights if the hosting company is worth anything. Richard L. Buskirk -Original Message- From: Paul M Foster [mailto:pa...@quillandmouse.com] Sent: Tuesday, May 03, 2011 12:

[PHP] Re: PHP -- using without installing

2011-02-15 Thread Michelle Konzack
Hello Steve Staples, Am 2011-02-14 12:32:51, hacktest Du folgendes herunter: > Is there such a thing? or will I have to have a pre-req of "php and > php-cgi must be installed on linux" disclaimer? If you are a OVER-GEEK, youc can compile the "php" and "php-cli" 100% static, which I have done

Re: [PHP] using BOTH GET and POST in the same page.

2011-02-15 Thread tedd
At 4:32 PM -0500 2/14/11, Paul M Foster wrote: Understood. It sounded like you were saying you could only get back POST or GET values from a page, which isn't true. The form itself, yes, can only have one or the other method attribute. What it sounded like was: What others have not addressed

Re: [PHP] using BOTH GET and POST in the same page.

2011-02-14 Thread Paul M Foster
On Mon, Feb 14, 2011 at 12:30:56PM -0500, tedd wrote: > >At 11:58 PM -0500 2/13/11, Paul M Foster wrote: > >On Sun, Feb 13, 2011 at 02:25:45PM -0500, tedd wrote: > > > > > At 10:53 AM +0530 2/12/11, Ashim Kapoor wrote: > > > >Dear All, > > > > > > > >I am reading "PHP5 and MySQL Bible". Chapter 7

Re: [PHP] using BOTH GET and POST in the same page.

2011-02-14 Thread tedd
At 10:31 PM -0500 2/13/11, Robert Cummings wrote: On 11-02-13 02:25 PM, tedd wrote: At 10:53 AM +0530 2/12/11, Ashim Kapoor wrote: Dear All, I am reading "PHP5 and MySQL Bible". Chapter 7 of the book says that PHP can use GET and POST in the SAME page! Also it says that we can use the SAME var

Re: [PHP] using BOTH GET and POST in the same page.

2011-02-14 Thread tedd
At 11:58 PM -0500 2/13/11, Paul M Foster wrote: On Sun, Feb 13, 2011 at 02:25:45PM -0500, tedd wrote: > At 10:53 AM +0530 2/12/11, Ashim Kapoor wrote: > >Dear All, > > > >I am reading "PHP5 and MySQL Bible". Chapter 7 of the book says that PHP can > >use GET and POST in the SAME page! Also

Re: [PHP] using BOTH GET and POST in the same page.

2011-02-13 Thread Paul M Foster
On Sun, Feb 13, 2011 at 02:25:45PM -0500, tedd wrote: > At 10:53 AM +0530 2/12/11, Ashim Kapoor wrote: > >Dear All, > > > >I am reading "PHP5 and MySQL Bible". Chapter 7 of the book says that PHP can > >use GET and POST in the SAME page! Also it says that we can use the SAME > >variables in GET an

Re: [PHP] using BOTH GET and POST in the same page.

2011-02-13 Thread Robert Cummings
On 11-02-13 02:25 PM, tedd wrote: At 10:53 AM +0530 2/12/11, Ashim Kapoor wrote: Dear All, I am reading "PHP5 and MySQL Bible". Chapter 7 of the book says that PHP can use GET and POST in the SAME page! Also it says that we can use the SAME variables in GET and POST variable sets and that confl

Re: [PHP] using BOTH GET and POST in the same page.

2011-02-13 Thread tedd
At 10:53 AM +0530 2/12/11, Ashim Kapoor wrote: Dear All, I am reading "PHP5 and MySQL Bible". Chapter 7 of the book says that PHP can use GET and POST in the SAME page! Also it says that we can use the SAME variables in GET and POST variable sets and that conflict resolution is done by variable_

Re: [PHP] using BOTH GET and POST in the same page.

2011-02-12 Thread Jim Lucas
On 2/11/2011 9:23 PM, Ashim Kapoor wrote: Dear All, I am reading "PHP5 and MySQL Bible". Chapter 7 of the book says that PHP can use GET and POST in the SAME page! Also it says that we can use the SAME variables in GET and POST variable sets and that conflict resolution is done by variable_order

Re: [PHP] Using fopen or SQL to check image

2010-06-26 Thread Karl Cifius
Thanks Ashley and Peter for your suggestions, I've definitely learned some new stuff here. Best, Karl On 25 jun 2010, at 21.07, Peter Lind wrote: On 25 June 2010 21:02, Ashley Sheridan wrote: On Fri, 2010-06-25 at 21:01 +0200, Peter Lind wrote: On 25 June 2010 20:59, Ashley Sheridan

Re: [PHP] Using fopen or SQL to check image

2010-06-25 Thread Peter Lind
On 25 June 2010 21:02, Ashley Sheridan wrote: > > On Fri, 2010-06-25 at 21:01 +0200, Peter Lind wrote: > > On 25 June 2010 20:59, Ashley Sheridan wrote: > > > > On Fri, 2010-06-25 at 20:57 +0200, Peter Lind wrote: > > > > On 25 June 2010 19:35, Ashley Sheridan wrote: > > > On Fri, 2010-06-25 at

Re: [PHP] Using fopen or SQL to check image

2010-06-25 Thread Ashley Sheridan
On Fri, 2010-06-25 at 21:01 +0200, Peter Lind wrote: > On 25 June 2010 20:59, Ashley Sheridan wrote: > > > > On Fri, 2010-06-25 at 20:57 +0200, Peter Lind wrote: > > > > On 25 June 2010 19:35, Ashley Sheridan wrote: > > > On Fri, 2010-06-25 at 19:31 +0200, Karl Cifius wrote: > > > > > >> Hi, > >

Re: [PHP] Using fopen or SQL to check image

2010-06-25 Thread Peter Lind
On 25 June 2010 20:59, Ashley Sheridan wrote: > > On Fri, 2010-06-25 at 20:57 +0200, Peter Lind wrote: > > On 25 June 2010 19:35, Ashley Sheridan wrote: > > On Fri, 2010-06-25 at 19:31 +0200, Karl Cifius wrote: > > > >> Hi, > >> > >> I'm making a Facebook application that can generate images to u

Re: [PHP] Using fopen or SQL to check image

2010-06-25 Thread Ashley Sheridan
On Fri, 2010-06-25 at 20:57 +0200, Peter Lind wrote: > On 25 June 2010 19:35, Ashley Sheridan wrote: > > On Fri, 2010-06-25 at 19:31 +0200, Karl Cifius wrote: > > > >> Hi, > >> > >> I'm making a Facebook application that can generate images to user's > >> albums. To publish a story a thumbnail of

Re: [PHP] Using fopen or SQL to check image

2010-06-25 Thread Peter Lind
On 25 June 2010 19:35, Ashley Sheridan wrote: > On Fri, 2010-06-25 at 19:31 +0200, Karl Cifius wrote: > >> Hi, >> >> I'm making a Facebook application that can generate images to user's >> albums. To publish a story a thumbnail of this image is stored on my >> server. Since this server currently i

Re: [PHP] Using fopen or SQL to check image

2010-06-25 Thread Ashley Sheridan
On Fri, 2010-06-25 at 19:31 +0200, Karl Cifius wrote: > Hi, > > I'm making a Facebook application that can generate images to user's > albums. To publish a story a thumbnail of this image is stored on my > server. Since this server currently is very limited I want to be able > to clean thes

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] Using if(isset()) with $_GET and switch and default

2010-05-21 Thread Daniel P. Brown
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: > $question = (isset($_GET['question'])); > then use the $question in the switch it works as I want it. > If I use the

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

2010-05-21 Thread MuFei
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: $question = (isset($_GET['question'])); then use the $question in the switch it works as I want it. If I use the whole code( $question = (isset($_GET['question']))?$_GET

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

2010-05-21 Thread MuFei
Thanks, Adam The first option (setting the GET) works great. I already know about taking the default out of the switch and putting it in an else statement, but I want to work with the default inside the switch. And of course I wanted to do it without turning off E_NOTICE warnings Thanks again for

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

2010-05-21 Thread Ashley Sheridan
On Fri, 2010-05-21 at 16:18 -0400, Adam Richardson wrote: > On Fri, May 21, 2010 at 3:24 PM, MuFei wrote: > > > Hi, > > I'm still new to PHP and everyday I learn something new. > > Today I was trying to make some script using the switch statement but > > I have some issue that I don't know how t

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

2010-05-21 Thread Adam Richardson
On Fri, May 21, 2010 at 3:24 PM, MuFei wrote: > Hi, > I'm still new to PHP and everyday I learn something new. > Today I was trying to make some script using the switch statement but > I have some issue that I don't know how to get around it. > It's a simple test script that contain only one file

Re: [PHP] Using usort in a class

2010-04-22 Thread Adam Richardson
On Thu, Apr 22, 2010 at 2:25 PM, Ashley Sheridan wrote: > On Thu, 2010-04-22 at 14:26 -0400, Adam Richardson wrote: > > On Thu, Apr 22, 2010 at 2:12 PM, Ashley Sheridan > wrote: > > I've not had to do this before, and now that I am, I've hit a bit of a > wall: > > Basically, I've an array that

Re: [PHP] Using usort in a class

2010-04-22 Thread Ashley Sheridan
On Thu, 2010-04-22 at 14:26 -0400, Adam Richardson wrote: > On Thu, Apr 22, 2010 at 2:12 PM, Ashley Sheridan > wrote: > > I've not had to do this before, and now that I am, I've hit a > bit of a > wall: > > Basically, I've an array that might look like th

Re: [PHP] Using usort in a class

2010-04-22 Thread Adam Richardson
On Thu, Apr 22, 2010 at 2:12 PM, Ashley Sheridan wrote: > I've not had to do this before, and now that I am, I've hit a bit of a > wall: > > Basically, I've an array that might look like this (the number of > elements may vary, but the letter is always unique and remains a single > character): > >

Re: [PHP] using UID in DB

2010-03-31 Thread Tommy Pham
On Wed, Mar 31, 2010 at 2:29 AM, Lester Caine wrote: > Tommy Pham wrote: >>> >>> Storage wise it is just a 128 bit number, so twice as big as a simple 64 >>> bit >>> 'generator' that would normally be used in a single database system. The >>> improvement is to use a raw number rather than a 16 cha

Re: [PHP] using UID in DB

2010-03-31 Thread Lester Caine
Tommy Pham wrote: Storage wise it is just a 128 bit number, so twice as big as a simple 64 bit 'generator' that would normally be used in a single database system. The improvement is to use a raw number rather than a 16 character string. Don't you mean raw number as 16 byte, which is what I in

Re: [PHP] using UID in DB

2010-03-31 Thread Tommy Pham
On Wed, Mar 31, 2010 at 12:37 AM, Lester Caine wrote: > Tommy Pham wrote: >> >> Hi, >> >> I'm just wondering if anyone on this list using some type of >> UID/UUID/GUID in any of the DB?  If so, what DBMS/RDBMS are you using >> and how many rows do you have for the table(s) using it?  What data >>

Re: [PHP] using UID in DB

2010-03-31 Thread Lester Caine
Tommy Pham wrote: Hi, I'm just wondering if anyone on this list using some type of UID/UUID/GUID in any of the DB? If so, what DBMS/RDBMS are you using and how many rows do you have for the table(s) using it? What data type are you using for that column? Firebird is currently improving suppo

Re: [PHP] using UID in DB

2010-03-30 Thread Tommy Pham
On Tue, Mar 30, 2010 at 8:38 PM, Paul M Foster wrote: > On Tue, Mar 30, 2010 at 08:07:01PM -0700, Tommy Pham wrote: > >> On Tue, Mar 30, 2010 at 7:37 PM, Paul M Foster >> wrote: >> > >> > Unless you have some compelling need to store a number like this, I >> > don't see the need to. What I store

Re: [PHP] using UID in DB

2010-03-30 Thread Paul M Foster
On Tue, Mar 30, 2010 at 08:07:01PM -0700, Tommy Pham wrote: > On Tue, Mar 30, 2010 at 7:37 PM, Paul M Foster > wrote: > > > > Unless you have some compelling need to store a number like this, I > > don't see the need to. What I store is what is called in PostgreSQL a > > "serial" value. MySQL cal

Re: [PHP] using UID in DB

2010-03-30 Thread Tommy Pham
On Tue, Mar 30, 2010 at 7:37 PM, Paul M Foster wrote: > > Unless you have some compelling need to store a number like this, I > don't see the need to. What I store is what is called in PostgreSQL a > "serial" value. MySQL calls it "auto_increment". You store all the other > values as a row, and th

Re: [PHP] using UID in DB

2010-03-30 Thread Paul M Foster
On Tue, Mar 30, 2010 at 02:18:53PM -0700, Tommy Pham wrote: > On Tue, Mar 30, 2010 at 2:04 PM, Paul M Foster > wrote: > > On Tue, Mar 30, 2010 at 01:36:27PM -0700, Tommy Pham wrote: > > > >> Hi, > >> > >> I'm just wondering if anyone on this list using some type of > >> UID/UUID/GUID in any of t

Re: [PHP] using UID in DB

2010-03-30 Thread Tommy Pham
On Tue, Mar 30, 2010 at 2:04 PM, Paul M Foster wrote: > On Tue, Mar 30, 2010 at 01:36:27PM -0700, Tommy Pham wrote: > >> Hi, >> >> I'm just wondering if anyone on this list using some type of >> UID/UUID/GUID in any of the DB?  If so, what DBMS/RDBMS are you using >> and how many rows do you have

Re: [PHP] using UID in DB

2010-03-30 Thread Paul M Foster
On Tue, Mar 30, 2010 at 01:36:27PM -0700, Tommy Pham wrote: > Hi, > > I'm just wondering if anyone on this list using some type of > UID/UUID/GUID in any of the DB? If so, what DBMS/RDBMS are you using > and how many rows do you have for the table(s) using it? What data > type are you using for

Re: [PHP] Using base64 encode and decode to store user data in database

2010-02-19 Thread Dotan Cohen
> What about eBook ($23.99)? > > http://oreilly.com/catalog/9780596006563 > > If you can get this, you can get that. > That may be a good idea. Certainly better than the pirate bay. -- Dotan Cohen http://what-is-what.com http://gibberish.co.il Please CC me if you want to be sure that I read yo

Re: [PHP] Using base64 encode and decode to store user data in database

2010-02-19 Thread tedd
At 5:43 PM +0200 2/19/10, Dotan Cohen wrote: On 19 February 2010 16:27, tedd wrote: > An excellent book on this (and much more) is Chris Shiflett's Essential PHP Security. You can pick it up on Amazon for less than $20 -- well worth the cost. They don't ship to Israel! I have looked for i

Re: [PHP] Using base64 encode and decode to store user data in database

2010-02-19 Thread Teus Benschop
On Fri, 2010-02-19 at 11:45 -0500, Paul M Foster wrote: > On Fri, Feb 19, 2010 at 05:43:15PM +0200, Dotan Cohen wrote: > > They don't ship to Israel! I have looked for it locally, but not found > > it. I'm sure that I could "acquire" a copy on some p2p service but I > > really don't like doing that

  1   2   3   4   5   6   7   8   9   10   >