Re: [PHP] who can do this without the recursion

2005-07-05 Thread Christopher Fulton
On 7/5/05, Jochem Maas <[EMAIL PROTECTED]> wrote: > hi everyone, > > I have a function which recursively loops an assoc array in > order to build an HTML string containing hidden elements > that repesent the key/values passed in the array ... I know this can > be done without recursion but I'm ha

Re: [PHP] Splitting Vars from MySQL in PHP

2005-04-29 Thread Christopher Fulton
On 4/29/05, jlfx mailgroups <[EMAIL PROTECTED]> wrote: > > I remember in Perl I used to extract vars from a single fetchrow by adding > each var name to the beginning (like this). Only this ain'ta workin :)... > Anyone know the right syntax to do this? > > ($var1, $var2, $var3)= mysql_fetch_array

Re: Re[2]: [PHP] Re: 1 web site, 3 servers, 3 countries - best practises?

2005-04-22 Thread Christopher Fulton
> > This isn't about redundancy, it's about enhancing the experience for > > customers physically located thousands of miles away from the server > > they are trying to access. So, bring the content closer to them and > > drop their wait times massively. It's easy for those of us sat on the > > end

Re: [PHP] Last visitors (SOLVED?)

2005-04-19 Thread Christopher Fulton
> I did, the problem is the client is on a box with mySql 3.23.x or 4.0.x, he > is deciding to upgrade to a dedicated box but then the host he is looking at > says they will charge him if they are to upgrade to mysql 4.1 (hence i cant > even use sub-selects) > (Sorry I didnt mention the MySql versi

Re: [PHP] Multiline data Insert Into table from a generated form?

2005-02-04 Thread Christopher Fulton
[snip] > //user connection section--begin > $username="root"; > $password=""; > $database="nazardane"; [/snip] If this is actually your login, I would suggest changing it right away [snip] > while ($c=0;$chttp://us2.php.net/tut.php -- Christo

Re: [PHP] PHP editor suggestion?

2005-01-24 Thread Christopher Fulton
things. Try a few out, and decide what works best for you. Happy Searching, Chris --- Christopher Fulton http://www.fultonfam.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Writing static file from dynamic PHP page

2005-01-18 Thread Christopher Fulton
Just an fyi...this would be VERY easy to get online. PHP keeps an archive of all the posts. Here's the link http://marc.theaimsgroup.com/?l=php-general In fact, you may even find other posts similar to yours by searching (that could answer your question?) -Chris On Tue, 18 Jan 2005 09:30

Re: [PHP] Re: Get name of extending class with static method call

2005-01-11 Thread Christopher Fulton
This should work for you then(maybe...i don't have php5 on my system, so it may not, but i think it would. http://us4.php.net/manual/en/function.get-class.php class Car { function drive() { return get_class($this); } } class Porshe { } $foo = new Porshe(); ech

Re: [PHP] Get name of extending class with static method call

2005-01-11 Thread Christopher Fulton
Not sure if this is the best way to do it or not, but you can do this and it should (untested code) work. class Car { function drive() { return $this->getClassName(); } function getClassName() { return "Car"; } } class Porshe {

Re: [PHP] $_FILE[user][error] = 6 ?

2004-12-29 Thread Christopher Fulton
It may help to know what your form looks like. Does your form have the hidden MAX_FILE_SIZE variable before the file field? Also, what version of PHP are you running? Anyways, just some suggestions. -Chris On Tue, 28 Dec 2004 15:18:16 -0500, Al <[EMAIL PROTECTED]> wrote: > I keyed "$_FILE[user

Re: [PHP] Date problem?

2004-12-22 Thread Christopher Fulton
Try this instead... echo date('F',strtotime("+1 month")); read through the user comments at... http://us2.php.net/manual/en/function.strtotime.php there are some things pertaining to your situtation -Chris On Wed, 22 Dec 2004 15:38:38 -0800, PHP <[EMAIL PROTECTED]> wrote: > > echo date('F'

Re: [PHP] How to set register_globals=off in the script?

2004-12-21 Thread Christopher Fulton
Yes and no... Here's what the manual has to say about this...Basically, you can't do it using ini_set, but you can do it using an htaccess file. http://us2.php.net/manual/en/ini.sect.data-handling.php#ini.register-globals register_globals boolean Whether or not to register the EGPCS (Enviro

Re: [PHP] Writing new code vs. re-writing someone else's code

2004-12-21 Thread Christopher Fulton
Honestly, I think it does depend a lot on the language you are using. >From my experience, most people who work in PHP tend to write more new code than those who use COBOL. [snip] There are *so* many legacy COBOL applications though that, yeah, I think a COBOL programmer will very rarely get to wr

Re: [PHP] scripting with php

2004-12-14 Thread Christopher Fulton
one more note...you may look at the manual under http://us3.php.net/features.commandline -Chris On Tue, 14 Dec 2004 16:04:15 -0800, Christopher Fulton <[EMAIL PROTECTED]> wrote: > Not sure if this is what you want, but i know that you can call php > from a command l

Re: [PHP] scripting with php

2004-12-14 Thread Christopher Fulton
Not sure if this is what you want, but i know that you can call php from a command line by using. php code_name.php that will print out the http headers, so to supress the headers you can do php -q code_name.php Hope this helps, Chris On Tue, 14 Dec 2004 21:38:18 +, Bruno Santos <

Re: [PHP] Drawing checkboxes

2004-12-07 Thread Christopher Fulton
ris On Tue, 07 Dec 2004 16:21:15 -0500, Mike <[EMAIL PROTECTED]> wrote: > > > Chris, > > Good idea, but $default is the value with pipe delimiters. > > on 12/7/04 4:11 PM, Christopher Fulton at [EMAIL PROTECTED] > wrote: > > > > > A few

Re: [PHP] Drawing checkboxes

2004-12-07 Thread Christopher Fulton
A few notes that may help you. first.on strstri would use strpos instead for a simple checkso > if(strstr($default, $values[$i]['id'])) { > $field .= ' CHECKED'; > } would become > if(strpos($default, $values[$i]['id']) !== false) { >

Re: [PHP] searching with mutable criteria

2004-12-07 Thread Christopher Fulton
An easy way to fix that problem would be to, instead of checking every time if one of the others also is not empty would be to do something like this (havn't tested this code, so no guarantees there's no typos). $sqlCondition = ""; if($_POST["state"] != "" || $_POST["types"] != "" || $_POST["