Re: [PHP] Newbie Question about Conditionals

2010-03-30 Thread Matty Sarro
That explains it perfectly, thanks you! On Wed, Mar 31, 2010 at 12:40 AM, Tommy Pham wrote: > On Tue, Mar 30, 2010 at 9:22 PM, Matty Sarro wrote: > > Hey all! > > This is probably my second post on the list, so please be gentle. Right > now > > I am running through the "Heads First PHP and MySQ

Re: [PHP] Newbie Question about Conditionals

2010-03-30 Thread Tommy Pham
On Tue, Mar 30, 2010 at 9:22 PM, Matty Sarro wrote: > Hey all! > This is probably my second post on the list, so please be gentle. Right now > I am running through the "Heads First PHP and MySQL" book from O'Reilly. > It's been quite enjoyable so far, but I have some questions about some of > the

[PHP] Newbie Question about Conditionals

2010-03-30 Thread Matty Sarro
Hey all! This is probably my second post on the list, so please be gentle. Right now I am running through the "Heads First PHP and MySQL" book from O'Reilly. It's been quite enjoyable so far, but I have some questions about some of the code they're using in one of the chapters. Basically the code

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] cURL on freebsd

2010-03-30 Thread Shane Hill
On Mar 30, 2010, at 19:50, Tommy Pham wrote: On Tue, Mar 30, 2010 at 7:36 PM, Shane Hill wrote: can anyone tell me why the cURL code below produces a POST request as expected on linux, but the same code on freebsd is forced to be a GET request? the linux box is running php 5.2.11 the freebs

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] cURL on freebsd

2010-03-30 Thread Tommy Pham
On Tue, Mar 30, 2010 at 7:36 PM, Shane Hill wrote: > can anyone tell me why the cURL code below produces a POST request as > expected on linux, but the same code on freebsd is forced to be a GET > request? > > the linux box is running php 5.2.11 > the freebsd box is running 5.3.2 > > is there a bu

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

[PHP] cURL on freebsd

2010-03-30 Thread Shane Hill
can anyone tell me why the cURL code below produces a POST request as expected on linux, but the same code on freebsd is forced to be a GET request? the linux box is running php 5.2.11 the freebsd box is running 5.3.2 is there a bug in 5.3.2? a search does not turn anything up.

Re: [PHP] Re: using UID in DB

2010-03-30 Thread Tommy Pham
On Tue, Mar 30, 2010 at 2:27 PM, Nathan Rixham wrote: > nope never been able to find any significant advantage; and thus ended > up using http uri's in my own domain space(s) which are always > guaranteed to be unique as I'm issuing them. bonus is that they can be > dereferenced and server as bot

[PHP] Re: using UID in DB

2010-03-30 Thread Nathan Rixham
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? nope never been able to find

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

[PHP] using UID in DB

2010-03-30 Thread Tommy Pham
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? TIA, Tommy -- PHP General Mailing List (http://www.php.n

Re: [PHP] Still searching for a bugtracking system

2010-03-30 Thread Jorge Gomes
What about flyspray? http://flyspray.org/ Demo: http://flyspray.org/demo They use it for tracking the bugs of their software (obviously): http://bugs.flyspray.org/ They have bad documentation but I tested the software and seems to be fine. They are slowly working in the final 1.0 version. Rewa

Re: [PHP] how to provide download of files mow in documentroot

2010-03-30 Thread Nathan Rixham
Anshul Agrawal wrote: > On Tue, Mar 30, 2010 at 8:41 PM, Jan G.B. wrote: > >> 2010/3/30 Nathan Rixham : >>> Jan G.B. wrote: 2010/3/29 Nathan Rixham > Jan G.B. wrote: >> 2010/3/29 Nathan Rixham >> >>> Jan G.B. wrote: Top posting sucks, so I'll answer the post s

Re: [PHP] how to provide download of files mow in documentroot

2010-03-30 Thread Anshul Agrawal
On Tue, Mar 30, 2010 at 8:41 PM, Jan G.B. wrote: > 2010/3/30 Nathan Rixham : > > Jan G.B. wrote: > >> 2010/3/29 Nathan Rixham > >> > >>> Jan G.B. wrote: > 2010/3/29 Nathan Rixham > > > Jan G.B. wrote: > >> Top posting sucks, so I'll answer the post somewhere down there. >

Re: [PHP] Still searching for a bugtracking system

2010-03-30 Thread Shawn McKenzie
Andre Polykanine wrote: > Hello Jan, > > And what do you use then?) > If you're able to, you enable the sqllite extension in your php.ini and then you create your database as a flat file. The installer for the bug tracker would probably do that for you. -- Thanks! -Shawn http://www.spidean.com

Re[2]: [PHP] Still searching for a bugtracking system

2010-03-30 Thread Andre Polykanine
Hello Jan, And what do you use then?) -- With best regards from Ukraine, Andre Skype: Francophile; Wlm&MSN: arthaelon @ yandex.ru; Jabber: arthaelon @ jabber.org Yahoo! messenger: andre.polykanine; ICQ: 191749952 Twitter: m_elensule - Original message - From: Jan G.B. To: Alex Major

Re: [PHP] Still searching for a bugtracking system

2010-03-30 Thread Bastien Koert
On Tue, Mar 30, 2010 at 1:11 PM, Yousif Masoud wrote: > On Tue, Mar 30, 2010 at 2:13 PM, Andre Polykanine wrote: > >> Hello everyone, >> The best of all suggested bugtrackers is JotBug, on my opinion. But it >> works only with SQLite databases, and I have no access to such one >> (only MySql). >>

Re: [PHP] Still searching for a bugtracking system

2010-03-30 Thread Yousif Masoud
On Tue, Mar 30, 2010 at 2:13 PM, Andre Polykanine wrote: > Hello everyone, > The best of all suggested bugtrackers is JotBug, on my opinion. But it > works only with SQLite databases, and I have no access to such one > (only MySql). > Any solutions? > [...] I use Eventum. So far, so good. http

Re: [PHP] How to redefine a function if it doesn't exist?

2010-03-30 Thread Ashley Sheridan
On Tue, 2010-03-30 at 12:26 -0300, Igor Escobar wrote: > See > http://br2.php.net/manual/en/function.create-function.php > > > Regards, > Igor Escobar > Systems Analyst & Interface Designer > > + http://blog.igorescobar.com > + http://www.igorescobar.com > + @igorescobar (twitter) > > > > >

Re: [PHP] how to provide download of files mow in documentroot

2010-03-30 Thread Nathan Rixham
Jan G.B. wrote: > I was recommending other file methods like fopen() combinations, > fpassthru() and at best readfile(). All of them do not buffer the > whole file in memory. > > http://php.net/readfile > http://php.net/fpassthru ahh so you were; completely missed that, apologies - readfile's the

Re: [PHP] How to redefine a function if it doesn't exist?

2010-03-30 Thread Igor Escobar
See http://br2.php.net/manual/en/function.create-function.php Regards, Igor Escobar Systems Analyst & Interface Designer + http://blog.igorescobar.com + http://www.igorescobar.com + @igorescobar (twitter) On Tue, Mar 30, 2010 at 10:23 AM, David Otton < phpm...@jawbone.freeserve.co.uk> wrote

Re: [PHP] How to redefine a function if it doesn't exist?

2010-03-30 Thread Richard Quadling
On 30 March 2010 14:20, Ashley Sheridan wrote: > On Tue, 2010-03-30 at 16:16 +0300, Andre Polykanine wrote: > >> Hello everyone, >> Sorry, I've forgotten how to do this... >> I need a quoted_printable_encode function but it's available only >> since PHP 5.3. How do I redefine that function only if

Re: [PHP] how to provide download of files mow in documentroot

2010-03-30 Thread Jan G.B.
2010/3/30 Nathan Rixham : > Jan G.B. wrote: >> 2010/3/29 Nathan Rixham >> >>> Jan G.B. wrote: 2010/3/29 Nathan Rixham > Jan G.B. wrote: >> Top posting sucks, so I'll answer the post somewhere down there. >> >> >> 2010/3/29 Devendra Jadhav >> >>> Then you ca

Re: [PHP] Still searching for a bugtracking system

2010-03-30 Thread Jan G.B.
2010/3/30 Alex Major > > Surely if it's not suitable for your situation, it's not the best? :) > > Mantis is what I'd recommend and believe has already been recommend to you. > Runs using PHP and MySQL, it's flexible for public or private projects, > multiple projects etc. > > I do agree with you

Re: [PHP] how to provide download of files mow in documentroot

2010-03-30 Thread Nathan Rixham
Jan G.B. wrote: > 2010/3/29 Nathan Rixham > >> Jan G.B. wrote: >>> 2010/3/29 Nathan Rixham >>> Jan G.B. wrote: > Top posting sucks, so I'll answer the post somewhere down there. > > > 2010/3/29 Devendra Jadhav > >> Then you can do file_get_contents within PHP. or a

Re: [PHP] how to provide download of files mow in documentroot

2010-03-30 Thread Jan G.B.
2010/3/29 Nathan Rixham > Jan G.B. wrote: > > 2010/3/29 Nathan Rixham > > > >> Jan G.B. wrote: > >>> Top posting sucks, so I'll answer the post somewhere down there. > >>> > >>> > >>> 2010/3/29 Devendra Jadhav > >>> > Then you can do file_get_contents within PHP. or any file handling > >>

RE: [PHP] Still searching for a bugtracking system

2010-03-30 Thread Alex Major
Surely if it's not suitable for your situation, it's not the best? :) Mantis is what I'd recommend and believe has already been recommend to you. Runs using PHP and MySQL, it's flexible for public or private projects, multiple projects etc. I do agree with you that Bugzilla seems heavy, I know it

Re: [PHP] How to redefine a function if it doesn't exist?

2010-03-30 Thread Ashley Sheridan
On Tue, 2010-03-30 at 16:16 +0300, Andre Polykanine wrote: > Hello everyone, > Sorry, I've forgotten how to do this... > I need a quoted_printable_encode function but it's available only > since PHP 5.3. How do I redefine that function only if PHP version is > lower than 5.3? > Would it be valid:

Re: [PHP] How to redefine a function if it doesn't exist?

2010-03-30 Thread David Otton
On 30 March 2010 14:16, Andre Polykanine wrote: > I need a quoted_printable_encode function but it's available only > since PHP 5.3. How do I redefine that function only if PHP version is > lower than 5.3? function_exists(). if (!function_exists('myfunc')) { function myfunc() { ;

[PHP] How to redefine a function if it doesn't exist?

2010-03-30 Thread Andre Polykanine
Hello everyone, Sorry, I've forgotten how to do this... I need a quoted_printable_encode function but it's available only since PHP 5.3. How do I redefine that function only if PHP version is lower than 5.3? Would it be valid: function quoted_printable_encode ($str) { $x=quoted_printable_encode ($s

[PHP] Still searching for a bugtracking system

2010-03-30 Thread Andre Polykanine
Hello everyone, The best of all suggested bugtrackers is JotBug, on my opinion. But it works only with SQLite databases, and I have no access to such one (only MySql). Any solutions? P.S. I'd use Trac, but since I have no own server yet, we have no access to Python, either... Only Php, MySql, Perl.

Re: [PHP]Zip and text files generated are corrupted

2010-03-30 Thread Bastien Helders
I've come to realize something, but I'm not sure if I could be right: Maybe the instructions are interrupted because there is a lack of virtual memory. I mean is there not a limit to the memory the script can use? It would explain why the script goes on, as when the instruction is interrupted, all