RE: [PHP] Please explain: index.php/index/index

2009-01-21 Thread leledumbo
Boyd, Todd M. wrote: > > IIRF - Ionics ISAPI Rewrite Filter [1] is totally free... and it > supports the use of Regular Expressions [2] in your rewrite rules. If > you're going to use any sort of MVC-based URLs in IIS, this library is a > must-have. > Thanks for the link, I'll try it tonight. -

Re: [PHP] distinguish between null variable and unset variable

2009-01-21 Thread Lars Torben Wilson
2009/1/21 Daniel Brown : > On Wed, Jan 21, 2009 at 20:27, Jack Bates wrote: >> How can I tell the difference between a variable whose value is null and >> a variable which is not set? > >Unfortunately, in PHP - like other languages - you can't. > >A variable is considered to be null if: >

Re: [PHP] distinguish between null variable and unset variable

2009-01-21 Thread Alexandre Gaigalas
On Thu, Jan 22, 2009 at 12:21 AM, Paul M Foster wrote: > On Wed, Jan 21, 2009 at 05:27:35PM -0800, Jack Bates wrote: > > > How can I tell the difference between a variable whose value is null and > > a variable which is not set? > > > > // cannot use === null: > > > > ket% php -r '$null = null; va

Re: [PHP] distinguish between null variable and unset variable

2009-01-21 Thread Paul M Foster
On Wed, Jan 21, 2009 at 05:27:35PM -0800, Jack Bates wrote: > How can I tell the difference between a variable whose value is null and > a variable which is not set? > > // cannot use === null: > > ket% php -r '$null = null; var_dump(null === $null);' > bool(true) > ket% php -r 'var_dump(null ==

Re: [PHP] distinguish between null variable and unset variable

2009-01-21 Thread Daniel Brown
On Wed, Jan 21, 2009 at 20:27, Jack Bates wrote: > How can I tell the difference between a variable whose value is null and > a variable which is not set? Unfortunately, in PHP - like other languages - you can't. A variable is considered to be null if: * it has been assigned the

[PHP] distinguish between null variable and unset variable

2009-01-21 Thread Jack Bates
How can I tell the difference between a variable whose value is null and a variable which is not set? // cannot use === null: ket% php -r '$null = null; var_dump(null === $null);' bool(true) ket% php -r 'var_dump(null === $unset);' bool(true) ket% // - cannot use isset() either: k

Re: [PHP] Code Not entering the value in the Database

2009-01-21 Thread Murray
You don't appear to be doing anything with this line of your code. You build a string variable, but you don't call anything like mysql_query($sql) to actually execute the INSERT statement. M is for Murray On Wed, Jan 21, 2009 at 12:34 AM, Chris Carter wrote: > $sql = "insert into `userstable` (

Re: [PHP] Help me understand unit testing?

2009-01-21 Thread Eric Butera
On Wed, Jan 21, 2009 at 7:31 PM, Eric Butera wrote: > On Wed, Jan 21, 2009 at 7:24 PM, Murray wrote: >> I think this is my problem -- basically to know how to get some benefit from >> it. >> >> If I have a function in a class that is supposed to return some rows, how >> would I go about performin

Re: [PHP] Help me understand unit testing?

2009-01-21 Thread Eric Butera
On Wed, Jan 21, 2009 at 7:24 PM, Murray wrote: > I think this is my problem -- basically to know how to get some benefit from > it. > > If I have a function in a class that is supposed to return some rows, how > would I go about performing a useful unit test on it? In theory (and in my > current p

Re: [PHP] Help me understand unit testing?

2009-01-21 Thread Murray
I think this is my problem -- basically to know how to get some benefit from it. If I have a function in a class that is supposed to return some rows, how would I go about performing a useful unit test on it? In theory (and in my current practice), I can simply dump the array or object, or step th

Re: [PHP] Help me understand unit testing?

2009-01-21 Thread Eric Butera
On Wed, Jan 21, 2009 at 7:01 PM, Murray wrote: > Hi All, > > I'd like to understand unit testing better (or, in fact, at all). I > understand the broad idea that testing Is A Very Good Thing, but when I have > tried to look into it further (for example, have just been looking through > the PHPUnit

[PHP] Help me understand unit testing?

2009-01-21 Thread Murray
Hi All, I'd like to understand unit testing better (or, in fact, at all). I understand the broad idea that testing Is A Very Good Thing, but when I have tried to look into it further (for example, have just been looking through the PHPUnit site), I always end up thinking 'This looks like more trou

Re: [PHP] MySQL class. Thoughts?

2009-01-21 Thread Eric Butera
On Wed, Jan 21, 2009 at 7:07 PM, Ashley Sheridan wrote: > On Wed, 2009-01-21 at 18:52 -0500, Eric Butera wrote: >> On Wed, Jan 21, 2009 at 6:37 PM, Jochem Maas wrote: >> > Chris schreef: >> >> >> > Yea if you're only targeting 1 db, then why not use that class? At >> > least then there's

Re: [PHP] MySQL class. Thoughts?

2009-01-21 Thread Ashley Sheridan
On Wed, 2009-01-21 at 18:52 -0500, Eric Butera wrote: > On Wed, Jan 21, 2009 at 6:37 PM, Jochem Maas wrote: > > Chris schreef: > >> > > Yea if you're only targeting 1 db, then why not use that class? At > > least then there's the php manual to figure out what something does. > Becaus

Re: [PHP] MySQL class. Thoughts?

2009-01-21 Thread Eric Butera
On Wed, Jan 21, 2009 at 6:37 PM, Jochem Maas wrote: > Chris schreef: >> > Yea if you're only targeting 1 db, then why not use that class? At > least then there's the php manual to figure out what something does. Because then to add query logging for the whole app, you just need to >>

[PHP] Re: MySQL class. Thoughts?

2009-01-21 Thread Al
Jay Moore wrote: This is a MySQL class I use and I wanted to get everyone's thoughts on how/if I can improve it. This is for MySQL only. I don't need to make it compatible with other databases. I'm curious what you all think. Thanks, Jay Class: -- { // Constructor functio

Re: [PHP] MySQL class. Thoughts?

2009-01-21 Thread Jochem Maas
Chris schreef: > Yea if you're only targeting 1 db, then why not use that class? At least then there's the php manual to figure out what something does. >>> Because then to add query logging for the whole app, you just need to >>> put it >>> in the class :) >>> >>> (I've done that befor

Re: [PHP] Military <-> Standard times

2009-01-21 Thread Jochem Maas
tedd schreef: > At 9:19 PM +0100 1/21/09, Jochem Maas wrote: >> tedd schreef: >>> Hi gang: >> >> would you stop calling me that, I'll bet it means something rude in >> korean. :-P > > Hey, you called me "schreef" and that means "an end of a stroke" > (Arrggg, that has all sorts of meanings). :-)

Re: [PHP] MySQL class. Thoughts?

2009-01-21 Thread Eric Butera
On Wed, Jan 21, 2009 at 6:09 PM, Chris wrote: > Yea if you're only targeting 1 db, then why not use that class? At least then there's the php manual to figure out what something does. >>> >>> Because then to add query logging for the whole app, you just need to put >>> it >>> in the cla

Re: [PHP] Military <-> Standard times

2009-01-21 Thread tedd
At 9:06 PM + 1/21/09, Nathan Rixham wrote: -snip- :P It's a good thing I didn't ask for anything complicated. :-) Thanks. And what's with everyone sticking out their tongue? :-P Cheers, tedd -- --- http://sperling.com http://ancientstones.com http://earthstones.com -- PHP Gen

Re: [PHP] Military <-> Standard times

2009-01-21 Thread tedd
At 9:19 PM +0100 1/21/09, Jochem Maas wrote: tedd schreef: Hi gang: would you stop calling me that, I'll bet it means something rude in korean. :-P Hey, you called me "schreef" and that means "an end of a stroke" (Arrggg, that has all sorts of meanings). :-) wouldn't the slickest way

Re: [PHP] About printing functions

2009-01-21 Thread Mattias Thorslund
Thodoris wrote: Hi gang, Lets say that you have a function that prints something to the output simply like this: function print_str() { print "blah blah blah"; } I was wondering if there is a way to use this output and store it in a var or something without changing the function itself

Re: [PHP] MySQL class. Thoughts?

2009-01-21 Thread Chris
Yea if you're only targeting 1 db, then why not use that class? At least then there's the php manual to figure out what something does. Because then to add query logging for the whole app, you just need to put it in the class :) (I've done that before to check what's being run and where from,

Re: [PHP] MySQL class. Thoughts?

2009-01-21 Thread Eric Butera
On Wed, Jan 21, 2009 at 5:53 PM, Chris wrote: > Eric Butera wrote: >> >> On Wed, Jan 21, 2009 at 12:45 PM, Edmund Hertle >> wrote: >>> >>> 2009/1/21 Jay Moore >>> This is a MySQL class I use and I wanted to get everyone's thoughts on how/if I can improve it. This is for MySQL only. I

Re: [PHP] MySQL class. Thoughts?

2009-01-21 Thread ceo
I prefer to deal with the issues locally, or have a documented behaviour with return values and error details available, much like most of PHP extensions/internals. try/catch ends up with weird code organization, imho, especially when you can only really handle some exceptions. For real f

Re: [PHP] MySQL class. Thoughts?

2009-01-21 Thread Chris
Eric Butera wrote: On Wed, Jan 21, 2009 at 12:45 PM, Edmund Hertle wrote: 2009/1/21 Jay Moore This is a MySQL class I use and I wanted to get everyone's thoughts on how/if I can improve it. This is for MySQL only. I don't need to make it compatible with other databases. I'm curious what y

Re: [PHP] MySQL class. Thoughts?

2009-01-21 Thread Jochem Maas
Nathan Rixham schreef: > c...@l-i-e.com wrote: >>> there is an art to using them, they compliment 'traditional' error >>> handling, and I agree they can hinder if used badly. >> >> I don't think I've ever seen Exceptions used well... >> >> Invariably, I end up having to write a wrapper function aro

Re: [PHP] Time Wrong

2009-01-21 Thread Gary
Thanks for all the replies, I was able to set the time zone with one of the tutorials. Thanks again Gary "Nathan Rixham" wrote in message news:49779f04.4060...@gmail.com... > Edmund Hertle wrote: >> 2009/1/21 Gary >> >>> Im pretty new with php, so this might be a pretty novice mistake, but >

Re: [PHP] Time Wrong

2009-01-21 Thread Nathan Rixham
Edmund Hertle wrote: 2009/1/21 Gary Im pretty new with php, so this might be a pretty novice mistake, but the time displays wrong on two computers. Shows up 2 hours late...time on both computers is correct. Thanks Do you mean on two computers visiting a php script? PHP is running on th

Re: [PHP] Time Wrong

2009-01-21 Thread Edmund Hertle
2009/1/21 Gary > Im pretty new with php, so this might be a pretty novice mistake, but the > time displays wrong on two computers. > > > > Shows up 2 hours late...time on both computers is correct. > > Thanks > > Do you mean on two computers visiting a php script? PHP is running on the server,

Re: [PHP] MySQL class. Thoughts?

2009-01-21 Thread Paul M Foster
On Wed, Jan 21, 2009 at 10:00:53PM +0100, Jochem Maas wrote: > Jay Moore schreef: > > > >> I know it's very OO-y to use exceptions, but I hate them. They're like > >> setjmp/longjmp calls in C, and they're a really headache to deal with. > >> If you don't use default or predone handlers, you have

Re: [PHP] MySQL class. Thoughts?

2009-01-21 Thread Nathan Rixham
c...@l-i-e.com wrote: there is an art to using them, they compliment 'traditional' error handling, and I agree they can hinder if used badly. I don't think I've ever seen Exceptions used well... Invariably, I end up having to write a wrapper function around every function implemented and catc

[PHP] Time Wrong

2009-01-21 Thread Gary
Im pretty new with php, so this might be a pretty novice mistake, but the time displays wrong on two computers. Shows up 2 hours late...time on both computers is correct. Thanks -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Military <-> Standard times

2009-01-21 Thread Nathan Rixham
Jochem Maas wrote: tedd schreef: Hi gang: would you stop calling me that, I'll bet it means something rude in korean. :-P What's the slickest way to go from "standard" to military times and back again? wouldn't the slickest way be to carry/store unixtimestamps and then output whatever vers

Re: Re: [PHP] MySQL class. Thoughts?

2009-01-21 Thread ceo
> there is an art to using them, they compliment 'traditional' error > handling, and I agree they can hinder if used badly. I don't think I've ever seen Exceptions used well... Invariably, I end up having to write a wrapper function around every function implemented and catch all the Excep

Re: [PHP] MySQL class. Thoughts?

2009-01-21 Thread Török Alpár
2009/1/21 Jay Moore > > I know it's very OO-y to use exceptions, but I hate them. They're like >> setjmp/longjmp calls in C, and they're a really headache to deal with. >> If you don't use default or predone handlers, you have to put all kinds >> of try/catch blocks around everything. They make

Re: [PHP] MySQL class. Thoughts?

2009-01-21 Thread Jochem Maas
Jay Moore schreef: > >> I know it's very OO-y to use exceptions, but I hate them. They're like >> setjmp/longjmp calls in C, and they're a really headache to deal with. >> If you don't use default or predone handlers, you have to put all kinds >> of try/catch blocks around everything. They make fo

Re: [PHP] MySQL class. Thoughts?

2009-01-21 Thread Jay Moore
I know it's very OO-y to use exceptions, but I hate them. They're like setjmp/longjmp calls in C, and they're a really headache to deal with. If you don't use default or predone handlers, you have to put all kinds of try/catch blocks around everything. They make for non-linear execution, and I p

Re: [PHP] Redirecting from unreachable page on website

2009-01-21 Thread Jochem Maas
Per Jessen schreef: > Dušan Novaković wrote: > >> Hi, >> >> Is there some elegant solution how to redirect if someone try to open >> some non existing page (e.g www.domain.com/nonexistingpage.php) to >> main page www.domain.com on website? >> > > See Apache "ErrorDocument" directive. > ai, Erro

Re: [PHP] MySQL class. Thoughts?

2009-01-21 Thread Jochem Maas
Jay Moore schreef: > Good ideas guys. The input is much appreciated. > > Jochem (and anyone else, I guess), as I am not 100% versed with > Exceptions, the php5 version you suggested, are those Exceptions able to > be handled outside the class? > > Do I need my try block to be within the class bl

Re: [PHP] MySQL class. Thoughts?

2009-01-21 Thread Paul M Foster
On Wed, Jan 21, 2009 at 02:30:00PM -0600, Jay Moore wrote: > Good ideas guys. The input is much appreciated. > > Jochem (and anyone else, I guess), as I am not 100% versed with > Exceptions, the php5 version you suggested, are those Exceptions able to > be handled outside the class? > > Do I need

Re: [PHP] MySQL class. Thoughts?

2009-01-21 Thread Paul M Foster
On Wed, Jan 21, 2009 at 09:10:54PM +0100, Jochem Maas wrote: > Paul M Foster schreef: > > On Wed, Jan 21, 2009 at 11:37:07AM -0600, Jay Moore wrote: > > > >> This is a MySQL class I use and I wanted to get everyone's thoughts on > >> how/if I can improve it. This is for MySQL only. I don't need

Re: [PHP] Suggested diagramming package for php application

2009-01-21 Thread Anne Watelet
These are on-line services from what I can see. We are working with IP so would need to install the software on our server and integrate it directly into our applications. If anyone else has any suggestions let me know - thank you again! On Wed, Jan 21, 2009 at 3:28 PM, Jochem Maas wrote: > Anne

Re: [PHP] MySQL class. Thoughts?

2009-01-21 Thread Jay Moore
Good ideas guys. The input is much appreciated. Jochem (and anyone else, I guess), as I am not 100% versed with Exceptions, the php5 version you suggested, are those Exceptions able to be handled outside the class? Do I need my try block to be within the class block, or can I have the try b

Re: [PHP] Suggested diagramming package for php application

2009-01-21 Thread Anne Watelet
Thank you - I'll take a look! On Wed, Jan 21, 2009 at 3:28 PM, Jochem Maas wrote: > Anne Watelet schreef: > > Hi - we currently use visio for creating basic block diagrams and save > > these as images to our web site so others can view them. What we really > > would like to do is to have our php

Re: [PHP] Military <-> Standard times

2009-01-21 Thread Nitsan Bin-Nun
Umm I don't think there is a better option, you probably can return the output straight: function standardToMilitary($t) { return strftime('%R', strtotime($t)); } function militaryToStandard($t) { return strftime('%r', strtotime($t)); } But it doesn't really matter. On Wed, Jan 21,

Re: [PHP] Suggested diagramming package for php application

2009-01-21 Thread Jochem Maas
Anne Watelet schreef: > Hi - we currently use visio for creating basic block diagrams and save > these as images to our web site so others can view them. What we really > would like to do is to have our php application be able to display the > diagram and then upon clicking an edit button, allow th

Re: [PHP] MySQL class. Thoughts?

2009-01-21 Thread Philip Graham
On January 21, 2009 12:37:07 Jay Moore wrote: > This is a MySQL class I use and I wanted to get everyone's thoughts on > how/if I can improve it. This is for MySQL only. I don't need to make > it compatible with other databases. I'm curious what you all think. I definetly think that using a D

Re: [PHP] Military <-> Standard times

2009-01-21 Thread Jochem Maas
tedd schreef: > Hi gang: would you stop calling me that, I'll bet it means something rude in korean. :-P > What's the slickest way to go from "standard" to military times and back > again? wouldn't the slickest way be to carry/store unixtimestamps and then output whatever version you need when y

Re: [PHP] MySQL class. Thoughts?

2009-01-21 Thread Jochem Maas
Paul M Foster schreef: > On Wed, Jan 21, 2009 at 11:37:07AM -0600, Jay Moore wrote: > >> This is a MySQL class I use and I wanted to get everyone's thoughts on >> how/if I can improve it. This is for MySQL only. I don't need to make >> it compatible with other databases. I'm curious what you al

Re: [PHP] About printing functions

2009-01-21 Thread Török Alpár
2009/1/21 Edmund Hertle > 2009/1/21 Thodoris > > > > > > >> On Jan 21, 2009, at 1:33 PM, Thodoris wrote: > >> > >> Hi gang, > >>> Lets say that you have a function that prints something to the output > >>> simply like this: > >>> > >>> function print_str() { > >>> print "blah blah blah"; >

Re: [PHP] MySQL class. Thoughts?

2009-01-21 Thread Richard Heyes
>> This is a MySQL class I use and I wanted to get everyone's thoughts on >> how/if I can improve it. This is for MySQL only. I don't need to make it >> compatible with other databases. I'm curious what you all think. I have a similar thing I use, which uses the same (or at least very similar)

Re: [PHP] About printing functions

2009-01-21 Thread Paul M Foster
On Wed, Jan 21, 2009 at 08:49:46PM +0200, Thodoris wrote: > > Well Jason my point is theoretical. Lets just say that this function > doesn't just print "blah blah blah" but like tones of html that you may > like to reuse... > > Well you could always change it to this: > > function print_str() {

Re: [PHP] MySQL class. Thoughts?

2009-01-21 Thread Paul M Foster
On Wed, Jan 21, 2009 at 11:37:07AM -0600, Jay Moore wrote: > This is a MySQL class I use and I wanted to get everyone's thoughts on > how/if I can improve it. This is for MySQL only. I don't need to make > it compatible with other databases. I'm curious what you all think. > > Thanks, > Jay > >

[PHP] Military <-> Standard times

2009-01-21 Thread tedd
Hi gang: What's the slickest way to go from "standard" to military times and back again? Such as: 0800 -> 8:00am 8:00am -> 0800 -- or -- 1600 -> 4:00pm 4:00pm -> 1600 I use the following functions, but is there anything better? function standardToMilitary($t) { $t = strftime('%R', str

Re: [PHP] About printing functions

2009-01-21 Thread Thodoris
you can use Output Buffering : That's a good though thanks. Although I was aware of output buffering I used to ignore that ob_end_clean actually exists... -- Thodoris -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] About printing functions

2009-01-21 Thread Edmund Hertle
2009/1/21 Thodoris > > >> On Jan 21, 2009, at 1:33 PM, Thodoris wrote: >> >> Hi gang, >>> Lets say that you have a function that prints something to the output >>> simply like this: >>> >>> function print_str() { >>> print "blah blah blah"; >>> } >>> >>> I was wondering if there is a way to

Re: [PHP] About printing functions

2009-01-21 Thread Török Alpár
you can use Output Buffering : 2009/1/21 Edmund Hertle > 2009/1/21 Jason Pruim > > > > > On Jan 21, 2009, at 1:33 PM, Thodoris wrote: > > > > Hi gang, > >> Lets say that you have a function that prints something to the output > >> simply like this: > >> > >> function print_str() { > >> p

Re: [PHP] About printing functions

2009-01-21 Thread Thodoris
On Jan 21, 2009, at 1:33 PM, Thodoris wrote: Hi gang, Lets say that you have a function that prints something to the output simply like this: function print_str() { print "blah blah blah"; } I was wondering if there is a way to use this output and store it in a var or something wit

[PHP] Suggested diagramming package for php application

2009-01-21 Thread Anne Watelet
Hi - we currently use visio for creating basic block diagrams and save these as images to our web site so others can view them. What we really would like to do is to have our php application be able to display the diagram and then upon clicking an edit button, allow the user to edit the diagram

Re: [PHP] About printing functions

2009-01-21 Thread Edmund Hertle
2009/1/21 Jason Pruim > > On Jan 21, 2009, at 1:33 PM, Thodoris wrote: > > Hi gang, >> Lets say that you have a function that prints something to the output >> simply like this: >> >> function print_str() { >> print "blah blah blah"; >> } >> >> I was wondering if there is a way to use this o

Re: [PHP] Redirecting from unreachable page on website

2009-01-21 Thread Per Jessen
Dušan Novaković wrote: > Hi, > > Is there some elegant solution how to redirect if someone try to open > some non existing page (e.g www.domain.com/nonexistingpage.php) to > main page www.domain.com on website? > See Apache "ErrorDocument" directive. /Per Jessen, Zürich -- PHP General Maili

Re: [PHP] Redirecting from unreachable page on website

2009-01-21 Thread Kyle Terry
On Wed, Jan 21, 2009 at 10:40 AM, Dušan Novaković wrote: > apache :-) > > 2009/1/21 Kyle Terry : >> 2009/1/21 Kyle Terry : >>> On Wed, Jan 21, 2009 at 10:12 AM, Dušan Novaković wrote: Hi, Is there some elegant solution how to redirect if someone try to open some non existing p

Re: [PHP] Redirecting from unreachable page on website

2009-01-21 Thread Dušan Novaković
apache :-) 2009/1/21 Kyle Terry : > 2009/1/21 Kyle Terry : >> On Wed, Jan 21, 2009 at 10:12 AM, Dušan Novaković wrote: >>> Hi, >>> >>> Is there some elegant solution how to redirect if someone try to open >>> some non existing page (e.g www.domain.com/nonexistingpage.php) to >>> main page www.dom

Re: [PHP] About printing functions

2009-01-21 Thread Jason Pruim
On Jan 21, 2009, at 1:33 PM, Thodoris wrote: Hi gang, Lets say that you have a function that prints something to the output simply like this: function print_str() { print "blah blah blah"; } I was wondering if there is a way to use this output and store it in a var or something wit

[PHP] About printing functions

2009-01-21 Thread Thodoris
Hi gang, Lets say that you have a function that prints something to the output simply like this: function print_str() { print "blah blah blah"; } I was wondering if there is a way to use this output and store it in a var or something without changing the function itself? And store the

Re: [PHP] how to simplify my code - I will have tooo many lines -pleasehelp

2009-01-21 Thread Shawn McKenzie
Shawn McKenzie wrote: > Wow! Yes, there are a lot of ways to do it. This is a quick stab (not > tested): > > $Today = date('m/d/y'); > > if ( $selectedProdCode == "agreem" && $errorArray['agr1expdate'] < $Today) > { > $selectedProdCode= //agreement cost + late fee > } else { > $sele

Re: [PHP] Redirecting from unreachable page on website

2009-01-21 Thread Kyle Terry
2009/1/21 Kyle Terry : > On Wed, Jan 21, 2009 at 10:12 AM, Dušan Novaković wrote: >> Hi, >> >> Is there some elegant solution how to redirect if someone try to open >> some non existing page (e.g www.domain.com/nonexistingpage.php) to >> main page www.domain.com on website? >> >> thnx, Dusan >> >>

Re: [PHP] Redirecting from unreachable page on website

2009-01-21 Thread Kyle Terry
On Wed, Jan 21, 2009 at 10:12 AM, Dušan Novaković wrote: > Hi, > > Is there some elegant solution how to redirect if someone try to open > some non existing page (e.g www.domain.com/nonexistingpage.php) to > main page www.domain.com on website? > > thnx, Dusan > > -- > made by Dusan > > -- > PHP G

[PHP] Redirecting from unreachable page on website

2009-01-21 Thread Dušan Novaković
Hi, Is there some elegant solution how to redirect if someone try to open some non existing page (e.g www.domain.com/nonexistingpage.php) to main page www.domain.com on website? thnx, Dusan -- made by Dusan -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.ph

Re: [PHP] MySQL class. Thoughts?

2009-01-21 Thread Eric Butera
On Wed, Jan 21, 2009 at 12:45 PM, Edmund Hertle wrote: > 2009/1/21 Jay Moore > >> This is a MySQL class I use and I wanted to get everyone's thoughts on >> how/if I can improve it. This is for MySQL only. I don't need to make it >> compatible with other databases. I'm curious what you all thin

Re: [PHP] MySQL class. Thoughts?

2009-01-21 Thread Kyle Terry
On Wed, Jan 21, 2009 at 9:45 AM, Edmund Hertle wrote: > 2009/1/21 Jay Moore > >> This is a MySQL class I use and I wanted to get everyone's thoughts on >> how/if I can improve it. This is for MySQL only. I don't need to make it >> compatible with other databases. I'm curious what you all think

Re: [PHP] MySQL class. Thoughts?

2009-01-21 Thread Edmund Hertle
2009/1/21 Jay Moore > This is a MySQL class I use and I wanted to get everyone's thoughts on > how/if I can improve it. This is for MySQL only. I don't need to make it > compatible with other databases. I'm curious what you all think. > > Thanks, > Jay Hey, 1. You know the mysqli-Class? 2. I

[PHP] MySQL class. Thoughts?

2009-01-21 Thread Jay Moore
This is a MySQL class I use and I wanted to get everyone's thoughts on how/if I can improve it. This is for MySQL only. I don't need to make it compatible with other databases. I'm curious what you all think. Thanks, Jay Class: -- do_mysql(); } // Destructor

[PHP] Re: Curl fiel Upload

2009-01-21 Thread Matthias Laug
thanks! 2009/1/21 Manuel Lemos > Hello, > > on 01/20/2009 09:10 PM Matthias Laug said the following: > > I've got a problem using curl to upload a file. I want to send it to a > form > > written with the Django Framework. > > > > Post Request are processed correctly, with one anomaly. > > This p

Re: [PHP] how to simplify my code - I will have tooo many lines -please help

2009-01-21 Thread Shawn McKenzie
kabucek1 wrote: > hi all, > > I have form in which people renew their agreements online. > they can renew up to 5 agreements. > I need to check if the expiration date is older than today, late fee will be > added. > if exp. date is equal or newer - no late fee. > I have something like this so far

Re: [PHP] I can't get help from the binary administrator

2009-01-21 Thread Eduardo Varela
Thanks, Daniel !! It worked. Next week I will have finished to read posts and willl begin a new task: Break the digest posts into individual messages, off-line, of course. I will try to do it with UltraEdit macros and then with PHP. Should I have any problem, I will share it. Thanks, again, Edua

RE: [PHP] Please explain: index.php/index/index

2009-01-21 Thread Boyd, Todd M.
> -Original Message- > From: clive [mailto:clive_li...@immigrationunit.com] > Sent: Wednesday, January 21, 2009 3:36 AM > To: leledumbo > Cc: php-general@lists.php.net > Subject: Re: [PHP] Please explain: index.php/index/index > > leledumbo wrote: > > Is this web server specific? I can't g

[PHP] how to simplify my code - I will have tooo many lines - please help

2009-01-21 Thread kabucek1
hi all, I have form in which people renew their agreements online. they can renew up to 5 agreements. I need to check if the expiration date is older than today, late fee will be added. if exp. date is equal or newer - no late fee. I have something like this so far and I can go further with this

Re: [PHP] Re: Client/Server Printing

2009-01-21 Thread Bastien Koert
On Tue, Jan 20, 2009 at 8:00 PM, Tony Marston wrote: > > "Paul M Foster" wrote in message > news:20090120151606.gu18...@quillandmouse.com... > > I'd like a side check on what I'm doing to print on our internal > > network. > > > > We have an internal server/site which uses PHP code I've written

Re: [PHP] Please explain: index.php/index/index

2009-01-21 Thread clive
leledumbo wrote: Is this web server specific? I can't get it to run under Microsoft IIS, but it works flawlessly in Apache. IIS 6 and below dont have an option like mod_rewrite, apparently IIS 7 does, I haven't tried it yet. There are a number of 3rd party apps that can add this functionalit

Re: [PHP] Please explain: index.php/index/index

2009-01-21 Thread Török Alpár
Never used IIS, but under the circumstances, i think you got your answer. I remember that codeigniter support many ways of getting that string, i believe kohana does the same. You probably need to change some configuration options for IIS 2009/1/21 leledumbo > > Is this web server specific? I ca

Re: [PHP] Please explain: index.php/index/index

2009-01-21 Thread leledumbo
Is this web server specific? I can't get it to run under Microsoft IIS, but it works flawlessly in Apache. -- View this message in context: http://www.nabble.com/Please-explain%3A-index.php-index-index-tp21578728p21579384.html Sent from the PHP - General mailing list archive at Nabble.com. --

Re: [PHP] Please explain: index.php/index/index

2009-01-21 Thread Török Alpár
2009/1/21 leledumbo > > > > Carlos Medina-2 wrote: > > > > this is a Front Controller situation (Pattern) > > > Could you explain more on that? I've never seen anything like this in any > tutorial I've found on the net. I'm using Kohana framework. So, if I have > index.php/index/index where does

Re: [PHP] Please explain: index.php/index/index

2009-01-21 Thread leledumbo
Carlos Medina-2 wrote: > > this is a Front Controller situation (Pattern) > Could you explain more on that? I've never seen anything like this in any tutorial I've found on the net. I'm using kohana framework. So, if I have index.php/index/index where does it actually go? -- View this message

Re: [PHP] Please explain: index.php/index/index

2009-01-21 Thread Carlos Medina
leledumbo schrieb: I don't understand it. index.php should be a file and indeed it's a file, so what does /index/index after it mean? There's no index directory under directory where index.php resides. Hi Leledumbo, what are you talking about? I think you are confused on this: http://www.domain

[PHP] Please explain: index.php/index/index

2009-01-21 Thread leledumbo
I don't understand it. index.php should be a file and indeed it's a file, so what does /index/index after it mean? There's no index directory under directory where index.php resides. -- View this message in context: http://www.nabble.com/Please-explain%3A-index.php-index-index-tp21578728p2157872