Re: [PHP] Re: Setting cookie for two domains.

2006-01-06 Thread Jochem Maas
that is some nice out-of-the-box thinking Mark! Mark wrote: Shafiq Rehman wrote: Hi, How can I register a session or cookie for two domains. I want to maintain logged user's state when he goes from one domain to other domain. Example Suppose a user is logged in on domain1.com. A cookie is

Re: [PHP] Re: Setting cookie for two domains.

2006-01-06 Thread Robert Cummings
On Fri, 2006-01-06 at 03:48, Jochem Maas wrote: that is some nice out-of-the-box thinking Mark! *lol* This technique has been floating around for years :) There should be references in the archives. Cheers, Rob. -- .. | InterJinn

Re: [PHP] Newbie question: need to transfer directory contents fr om my local machine to my website

2006-01-06 Thread Jochem Maas
ghood stuff Jon Westcot wrote: Jochem: My most sincere apologies for not replying to your questions. I've been suffering with a rather dibilitating head cold the last few days and somehow glossed over your questions. 1. what is the local machine? Just my local workstation.

Re: [PHP] Re: Setting cookie for two domains.

2006-01-06 Thread Jochem Maas
Robert Cummings wrote: On Fri, 2006-01-06 at 03:48, Jochem Maas wrote: that is some nice out-of-the-box thinking Mark! *lol* This technique has been floating around for years :) There should be references in the archives. not on my planet ;-) Cheers, Rob. -- PHP General Mailing List

Re: [PHP] Very high speed session management -- help me test

2006-01-06 Thread Jochem Maas
Mark wrote: Jochem Maas wrote: hi Mark, Mark wrote: I have a program called MCache, it used to be MSession. I'm trying to get why 'Cache' - its a session handler right? (I think the name is a little confusing, but maybe its just me - I have been adding cache mechanisms to a site for the

[PHP] wddx_serialize_value

2006-01-06 Thread Peter Elliott
Hi all First post, checked archives for this issue which has appeared before that the function wddx_serialize_value does not return the wddx xml as indicated in the manual or any tutorials. The wddx xml is present but does not display, only the text passed as a parameter. Possible causes thanks

Re: [PHP] Very high speed session management -- help me test

2006-01-06 Thread Mark
Jochem Maas wrote: Mark wrote: Jochem Maas wrote: hi Mark, Mark wrote: I have a program called MCache, it used to be MSession. I'm trying to get why 'Cache' - its a session handler right? (I think the name is a little confusing, but maybe its just me - I have been adding cache mechanisms

Re: [PHP] Very high speed session management -- help me test

2006-01-06 Thread Jochem Maas
Mark wrote: Jochem Maas wrote: That's sort of the problem with names, it is hard to convey ideas. MCache (formally msession) has a history. I originally wrote the code as a way to there is a php extension called 'mcache' with is a wrapper for memcache - but this is not the same as

Re: [PHP] Timezone and DST

2006-01-06 Thread M
Mark Steudel wrote: Hi All, I've got a little problem where our servers are in PST but the customer operates in Hawaii (-10 GMT). I believe I can just get the time for them by doing something like date(d H i, strtotime('now -2 hours') ); But here's the catch, how should I deal with day

Re: [PHP] Very high speed session management -- help me test

2006-01-06 Thread Mark
Jochem Maas wrote: Mark wrote: Jochem Maas wrote: That's sort of the problem with names, it is hard to convey ideas. MCache (formally msession) has a history. I originally wrote the code as a way to there is a php extension called 'mcache' with is a wrapper for memcache -

[PHP] Re: wddx_serialize_value

2006-01-06 Thread Mark
Peter Elliott wrote: Hi all First post, checked archives for this issue which has appeared before that the function wddx_serialize_value does not return the wddx xml as indicated in the manual or any tutorials. The wddx xml is present but does not display, only the text passed as a

Re: [PHP] printing keys and values of array

2006-01-06 Thread tg-php
I agree with the previous responder, foreach() is the way to go. Here's the doc page: http://uk2.php.net/manual/en/control-structures.foreach.php To get the keys, use the examples that are use $key = $value. Assuming your array is in $infoArr, you'd do this: foreach ($infoArr as $category =

[PHP] Included php files in a cron job?

2006-01-06 Thread Jay Paulson \(CE CEN\)
I'm in the process of writing a PHP program that is going to be called once a week via a cron job. I don't have a place to really test this hence the reason why I'm asking about it here. My question is can my php program include other php files and still get executed correctly when the cron

Re: [PHP] Included php files in a cron job?

2006-01-06 Thread Rodolfo Andrade
Hi Jay, Yes, you can use include(); with cron. Regards, Rodolfo Andrade - Original Message - From: Jay Paulson (CE CEN) To: php-general@lists.php.net Sent: Friday, January 06, 2006 2:29 PM Subject: [PHP] Included php files in a cron job? I'm in the process of writing a PHP program

[PHP] Converting IP Address to int value?

2006-01-06 Thread Jay Paulson \(CE CEN\)
I'm in the process of parsing through a apache access_log file and putting the information into a database. Right now I have the ip addresses going into a database as a character format xxx.xxx.xxx.xxx and then later I'm creating my queries to search for ip addresses xxx.xxx.%, which I think

Re: [PHP] Pages Expiring

2006-01-06 Thread Warren Vail
This one has been around for years. Here is my understanding; * Form 1 invokes the code for Form 2 with a post (the data is passed separately to the server) * Your Browser saves the URL for Form 2 to the history list. * Form 2 processes the data from form1 and displays another form

[PHP] Re: Converting IP Address to int value?

2006-01-06 Thread Mark
Jay Paulson (CE CEN wrote: I'm in the process of parsing through a apache access_log file and putting the information into a database. Right now I have the ip addresses going into a database as a character format xxx.xxx.xxx.xxx and then later I'm creating my queries to search for ip

Re: [PHP] Converting IP Address to int value?

2006-01-06 Thread John Nichel
Jay Paulson (CE CEN) wrote: I'm in the process of parsing through a apache access_log file and putting the information into a database. Right now I have the ip addresses going into a database as a character format xxx.xxx.xxx.xxx and then later I'm creating my queries to search for ip

Re: [PHP] Converting IP Address to int value?

2006-01-06 Thread tg-php
I believe this may help: http://uk2.php.net/manual/en/function.ip2long.php It converts the IP address to the 'long' format (which is valid to put into a browser as an address btw). I think 127.0.0.1 and 127.0.0.2 will be sequential in the 'long' format. So if you convert starting address and

[PHP] Re: Re: HAPPY NEW YEAR!!

2006-01-06 Thread Michelle Konzack
A little bit late, but from France: Bonne Année! Greetings Michelle Konzack Systemadministrator Tamay Dogan Network Debian GNU/Linux Consultant -- Linux-User #280138 with the Linux Counter, http://counter.li.org/ # Debian GNU/Linux Consultant

Re: [PHP] Re: Re: HAPPY NEW YEAR!!

2006-01-06 Thread Zareef Ahmed
France is so late ? ;) zareef ahmed - Original Message - From: Michelle Konzack [EMAIL PROTECTED] To: php-general@lists.php.net Sent: Friday, January 06, 2006 1:37 PM Subject: [PHP] Re: Re: HAPPY NEW YEAR!! A little bit late, but from France: Bonne Année! Greetings

Re: [PHP] Re: Re: HAPPY NEW YEAR!!

2006-01-06 Thread John Nichel
Zareef Ahmed wrote: France is so late ? ;) A little too much wine during the celebration. They're just now waking up. -- John C. Nichel IV Programmer/System Admin (ÜberGeek) Dot Com Holdings of Buffalo 716.856.9675 [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To

Re: [PHP] Re: Set variable outside of scope (redo)

2006-01-06 Thread Mike Tuller
Thanks. That is what I needed. That part works now. On Jan 5, 2006, at 4:09 PM, comex wrote: if ($row[range] != ) This should be $row['range'], not $row[range], although it doesn't make a difference unless you define a constant named range. Your problem isn't actually scope, it's

[PHP] Strange problem with overlapping names

2006-01-06 Thread Niels
Hi all, the page shown below works fine on my own machine, but on another (remote) server, it gives me a strange result. Here's what happens: The first time I view the page it says array(0) { } as I'd expect, but on the second it says object(kurv)(0) { } where I expected another array. The

[PHP] Browser on server doesn't refresh

2006-01-06 Thread Mike Tuller
This is a perplexing problem. I am running OS X on my laptop, and I have created a script running locally that when I click submit, a page loads to show what was submitted and then I have a link that will take me back to the original page. When I run the script locally, everything works.

Re: [PHP] Strange problem with overlapping names

2006-01-06 Thread Philip Hallstrom
the page shown below works fine on my own machine, but on another (remote) server, it gives me a strange result. Here's what happens: The first time I view the page it says array(0) { } as I'd expect, but on the second it says object(kurv)(0) { } where I expected another array. The problem seems

Re: [PHP] Strange problem with overlapping names

2006-01-06 Thread Niels
On Friday 06 January 2006 21:26, Philip Hallstrom wrote: Compare the output of phpinfo() on your machine with the output on the server. Look at any differences. They look the same, more or less. Anything particular I should look for? The session sections are completely identical. BTW - the

[PHP] Warning: Missing argument 7 calling a function

2006-01-06 Thread enediel gonzalez
Hello I've a function with 6 arguments that works properly. Trying to add a 7th argument an being sure that calling the function I pass that one I received the following message (several times) on my web page Warning: Missing argument 7 for getcommanddeclaration() in /var/www/cp/apply.php on

RE: [PHP] Warning: Missing argument 7 calling a function

2006-01-06 Thread Programmer
This should work; however, it sounds like you may want to think about using an array or creating an object. -Original Message- From: enediel gonzalez [mailto:[EMAIL PROTECTED] Sent: Friday, January 06, 2006 3:58 PM To: php-general@lists.php.net Subject: [PHP] Warning: Missing

Re: [PHP] Re: Re: HAPPY NEW YEAR!!

2006-01-06 Thread Kevin Waterson
This one time, at band camp, Michelle Konzack [EMAIL PROTECTED] wrote: A little bit late, but from France: Bonne Année! why not! joyeaux noel Kevin -- Democracy is two wolves and a lamb voting on what to have for lunch. Liberty is a well-armed lamb contesting the vote. -- PHP

RE: [PHP] Warning: Missing argument 7 calling a function

2006-01-06 Thread enediel gonzalez
Thanks for the answer, but I can not understand the origin of this error, seven values passed, seven variables to receive those values,none of them is an array, nothing more. for a while, just to continue working, the 7th variable was removed and I declared a global one, but this is

RE: [PHP] Warning: Missing argument 7 calling a function

2006-01-06 Thread Robert Cummings
On Fri, 2006-01-06 at 20:27, enediel gonzalez wrote: Thanks for the answer, but I can not understand the origin of this error, seven values passed, seven variables to receive those values,none of them is an array, nothing more. for a while, just to continue working, the 7th variable was

Re: [PHP] Warning: Missing argument 7 calling a function

2006-01-06 Thread Aaron Koning
Why not send us the Call and the Function for arguments sake (pun intended). Aaron On 1/6/06, enediel gonzalez [EMAIL PROTECTED] wrote: Hello I've a function with 6 arguments that works properly. Trying to add a 7th argument an being sure that calling the function I pass that one I

Re: [PHP] Warning: Missing argument 7 calling a function

2006-01-06 Thread Robert Cummings
On Fri, 2006-01-06 at 23:13, Aaron Koning wrote: Why not send us the Call and the Function for arguments sake (pun intended). Yeah, it might help up to track down the source (pun also intended ;) of the problem. Cheers, Rob. -- .. |

[PHP] PHP4 vs PHP5

2006-01-06 Thread Gerry Danen
I'm wondering if $_SERVER['HTTP_REFERER'] is no longer supported, or perhaps has a new name? TIA Gerry