I'm using date_default_timezone_set("America/Los_Angeles") in my code, then
I output it like
date("m/d/y, H:i:s, O", );
But even though it's daylight savings time in Los Angeles, I get output like
[01/31/08, 23:00:00, -0800]
Shouldn't it instead be -0700? Am I misunderstanding how these timezo
I just saw this. If someone is in the Phoenix, AZ, USA area and wants a job
writing/maintaining PHP code, this may be right for you. Contact details
below:
---
azcentral.com, Arizona's leading online source for up to date news and
information, is seeking a Senior Online Develop
On Thu, Oct 2, 2008 at 6:53 AM, Nathan Rixham <[EMAIL PROTECTED]> wrote:
> [EMAIL PROTECTED] wrote:
>
>> Hi, (i hope this is the right place to ask questions like below)
>>
>> I am trying to use content type 'multipart/x-mixed-replace' to achive
>> server pushing and I have the following piece of
On Thu, Oct 2, 2008 at 1:53 PM, Jim Lucas <[EMAIL PROTECTED]> wrote:
>
> But, you must admit that your example above shows a very good reason that it
> SHOULD break!
Once again, it was a joke. I thought everyone would've realized
that immediately.
--
More full-root dedicated server package
On Oct 2, 2008, at 1:45 PM, Robbert van Andel wrote:
In the original message you were assigning the query to $SQLTEST,
but in the code below you're using $sql.
It was a clean up... I had a working query... $sql so in attempting to
improve this I didn't want to lose the original sql so I de
Stut wrote:
I see your confusion. This is a *mailing list* with a newsgroup gateway.
If you're using it as a newsgroup then you have to accept that you're
not using it the way it was meant to be used, and that almost always has
side-effects.
That being the case, I apologize for my assumptions
Jason Pruim wrote:
>
> On Oct 2, 2008, at 12:39 PM, Per Jessen wrote:
>
>> Jason Pruim wrote:
>>
>>> Hi Everyone,
>>>
>>> I am working on a app where I need to be able to select all the values
>>> from a database where the 'timein' field is between a certain date
>>> range... Essentially the last
On Oct 2, 2008, at 1:31 PM, Robbert van Andel wrote:
What is the actual code that you use to run the query. You've shown
us how you set up the query but not more.
Something like
$result = mysql_query($query,$conn);
Here is the code I use:
$row[]= mysql_query($sql) or die("Could not pe
Daniel Brown wrote:
> On Thu, Oct 2, 2008 at 12:57 PM, Jim Lucas <[EMAIL PROTECTED]> wrote:
>> so long, farewell, bye bye
>
> If you say so. Do you realize how many websites are going to
> break now? ;-P
>
> https://www.example.com/secure/shop.php?page=creditcardinfo.php
> include($pag
I was referring to Nathan's examples which you cut out of the post.
> function save_to_session( ) {
> global $userids , $first , $last;
> $_SESSION['user_id'] = &$userids;
> $_SESSION['first_name'] = &$first;
> $_SESSION['last_name']= &$last;
> }
Thank you,
Micah Gersten
onShore Networks
Inte
In the original message you were assigning the query to $SQLTEST, but in the
code below you're using $sql.
On Thu, Oct 2, 2008 at 10:40 AM, Jason Pruim <[EMAIL PROTECTED]> wrote:
>
> On Oct 2, 2008, at 1:31 PM, Robbert van Andel wrote:
>
> What is the actual code that you use to run the query. Y
As was mine.
Thank you,
Micah Gersten
onShore Networks
Internal Developer
http://www.onshore.com
Daniel Brown wrote:
> On Thu, Oct 2, 2008 at 1:14 PM, Micah Gersten <[EMAIL PROTECTED]> wrote:
>
>> That's probably a good thing:
>>
>> https://www.example.com/secure/shop.php?page=/etc/passwd
>>
Dan Joseph wrote:
On Thu, Oct 2, 2008 at 12:35 PM, Jason Pruim <[EMAIL PROTECTED]> wrote:
SQLTEST: SELECT * FROM `timeStore` WHERE`timein` BETWEEN
1222315200 AND 122292
Could not perform query: Query was empty
<[EMAIL PROTECTED]>
Put a ' around your timestamp numbers. I
On Thu, Oct 2, 2008 at 12:35 PM, Jason Pruim <[EMAIL PROTECTED]> wrote:
>
>SQLTEST: SELECT * FROM `timeStore` WHERE`timein` BETWEEN
> 1222315200 AND 122292
> Could not perform query: Query was empty
>
> <[EMAIL PROTECTED]>
Put a ' around your timestamp numbers. I think that
What is the actual code that you use to run the query. You've shown us how
you set up the query but not more.
Something like
$result = mysql_query($query,$conn);
Robbert
On Thu, Oct 2, 2008 at 10:17 AM, Jason Pruim <[EMAIL PROTECTED]> wrote:
>
> On Oct 2, 2008, at 12:46 PM, Jim Lucas wrote:
>
At 12:50 PM -0400 10/2/08, Daniel Brown wrote:
On Thu, Oct 2, 2008 at 12:30 PM, tedd <[EMAIL PROTECTED]> wrote:
> I also have other servers where register_globals is OFF and I
don't have the
problem -- so indeed, that WAS the problem.
It's INI_PERDIR, by the way, so you can set it wit
On Thu, Oct 2, 2008 at 1:14 PM, Micah Gersten <[EMAIL PROTECTED]> wrote:
> That's probably a good thing:
>
> https://www.example.com/secure/shop.php?page=/etc/passwd
Yeah, it was a joke.
--
More full-root dedicated server packages:
Intel 2.4GHz/60GB/512MB/2TB $49.99/mo.
Intel 3.06GHz/80GB/1
On Oct 2, 2008, at 1:17 PM, Jason Pruim wrote:
On Oct 2, 2008, at 12:46 PM, Jim Lucas wrote:
Jason Pruim wrote:
Hi Everyone,
Could not perform query: Query was empty
This would tell me that the variable that you are passing to your
function
call is either empty or not set. Maybe a t
At 11:12 AM -0500 10/2/08, Jay Moore wrote:
I don't reply-all. If I have an answer that will help someone, I
post it to the list. If they can't be bothered to subscribe to see
my reply, tough cookies. The question went to the list; the
response went to the list. (I feel just fine about this,
On Oct 2, 2008, at 12:46 PM, Jim Lucas wrote:
Jason Pruim wrote:
Hi Everyone,
Could not perform query: Query was empty
This would tell me that the variable that you are passing to your
function
call is either empty or not set. Maybe a typo.
Hi Jim,
Wouldn't that have shown up in th
At 11:14 AM -0500 10/2/08, Micah Gersten wrote:
You really should get up to speed on PHP 5.
Yeah, I'll be sure to tell me clients that.
Sometimes you don't have a choice -- you have to work with what they got.
Cheers,
tedd
--
---
http://sperling.com http://ancientstones.com http://ea
That's probably a good thing:
https://www.example.com/secure/shop.php?page=/etc/passwd
:-)
Thank you,
Micah Gersten
onShore Networks
Internal Developer
http://www.onshore.com
Daniel Brown wrote:
> On Thu, Oct 2, 2008 at 12:57 PM, Jim Lucas <[EMAIL PROTECTED]> wrote:
>
>> so long, farewe
On Oct 2, 2008, at 12:39 PM, Per Jessen wrote:
Jason Pruim wrote:
Hi Everyone,
I am working on a app where I need to be able to select all the
values
from a database where the 'timein' field is between a certain date
range... Essentially the last 7 days...
SELECT * FROM timeStore WHERE
On Oct 2, 2008, at 1:01 PM, Daniel Brown wrote:
On Thu, Oct 2, 2008 at 12:57 PM, Jim Lucas <[EMAIL PROTECTED]> wrote:
so long, farewell, bye bye
If you say so. Do you realize how many websites are going to
break now? ;-P
https://www.example.com/secure/shop.php?page=creditcardinfo.
On Thu, Oct 2, 2008 at 12:57 PM, Jim Lucas <[EMAIL PROTECTED]> wrote:
>
> so long, farewell, bye bye
If you say so. Do you realize how many websites are going to
break now? ;-P
https://www.example.com/secure/shop.php?page=creditcardinfo.php
--
More full-root dedicated server package
Daniel Brown wrote:
> And fear not, Sergeant Sperling register_globals is deprecated
> and is removed as of PHP6.
>
so long, farewell, bye bye
--
Jim Lucas
"Some men are born to greatness, some achieve greatness,
and some have greatness thrust upon them."
Twelfth Night,
On Thu, Oct 2, 2008 at 12:30 PM, tedd <[EMAIL PROTECTED]> wrote:
>
> I also have other servers where register_globals is OFF and I don't have the
> problem -- so indeed, that WAS the problem.
It's INI_PERDIR, by the way, so you can set it with a local
php.ini - or, if httpd.conf permits it, yo
Jason Pruim wrote:
> Hi Everyone,
>
> Could not perform query: Query was empty
>
This would tell me that the variable that you are passing to your function
call is either empty or not set. Maybe a typo.
--
Jim Lucas
"Some men are born to greatness, some achieve greatness,
and some
Jason Pruim wrote:
> Hi Everyone,
>
> I am working on a app where I need to be able to select all the values
> from a database where the 'timein' field is between a certain date
> range... Essentially the last 7 days...
>
SELECT * FROM timeStore WHERE timein>DATE_SUB(now(),INTERVAL 7 DAYS)
/
Hi Everyone,
I am working on a app where I need to be able to select all the values
from a database where the 'timein' field is between a certain date
range... Essentially the last 7 days...
here is the code that I am working with:
$rangeBegin = strtotime("Last week thursday midnig
At 11:13 AM -0400 10/2/08, Andrew Ballard wrote:
As several of us have suggested now, it's got to be register_globals.
To all:
Yes, register_globals was ON as reported by php-info and that was the problem.
I also have other servers where register_globals is OFF and I don't
have the problem -
On 2 Oct 2008, at 17:12, Jay Moore wrote:
Stut wrote:
It's also worth noting that since subscriptions is not required to
post to these lists there's no guarantee that the OP will get your
reply if you don't include their address. IOW you're asking us to
deprive a number of developers seekin
On Thu, Oct 2, 2008 at 12:12 PM, Jay Moore <[EMAIL PROTECTED]> wrote:
>
> Why is it that it's not ok to top post, but it's perfectly fine to not
> subscribe to the list? It's extremely rude and arrogant to post to the list
> and expect people to respond to you personally. In fact, people get all
Jay Moore wrote:
Stut wrote:
It's also worth noting that since subscriptions is not required to
post to these lists there's no guarantee that the OP will get your
reply if you don't include their address. IOW you're asking us to
deprive a number of developers seeking assistance of our replies
Nathan Rixham wrote:
> tedd wrote:
>> At 3:41 PM -0400 10/1/08, tedd wrote:
What about:
foreach ($_SESSION['user_id'] as $key => $value)
{
$last = $_SESSION['last_name'][$key];
$first = $_SESSION['first_name'][$key];
echo "$last, $first";
}
>>>
Stut wrote:
It's also worth noting that since subscriptions is not required to post
to these lists there's no guarantee that the OP will get your reply if
you don't include their address. IOW you're asking us to deprive a
number of developers seeking assistance of our replies because you can't
Daniel Brown wrote:
On Thu, Oct 2, 2008 at 11:11 AM, Jay Moore <[EMAIL PROTECTED]> wrote:
Now, someone show me where that is documented?
http://us3.php.net/register_globals
Also, for the love of glaven, people. If you're going to post to the list,
you don't have to include the original sende
Ford, Mike wrote:
On 01 October 2008 21:24, tedd advised:
At 2:38 PM -0500 10/1/08, Afan Pasalic wrote:
main reason - if you sort by first or last name you will lose
"index".
this way is index always "linked" to first/last name.
Your point is well taken, but I'm not sorting this.
True, the
Jim Lucas wrote:
Jim Lucas wrote:
tedd wrote:
At 11:10 PM +0100 10/1/08, Nathan Rixham wrote:
[tested - works]
-snip-
?>
regards! nathan :)
I need to re-address this.. tedd your original code works fine over
here; as does the code I sent you, and the code jay submitted first..
do us a favour
Jim Lucas wrote:
> tedd wrote:
>> At 11:10 PM +0100 10/1/08, Nathan Rixham wrote:
[tested - works]
-snip-
?>
regards! nathan :)
>>> I need to re-address this.. tedd your original code works fine over
>>> here; as does the code I sent you, and the code jay submitted first..
>>>
>
On 2 Oct 2008, at 16:11, Jay Moore wrote:
Now, someone show me where that is documented?
http://us3.php.net/register_globals
Also, for the love of glaven, people. If you're going to post to
the list, you don't have to include the original sender as well.
There's a pretty good chance if
On Thu, Oct 2, 2008 at 11:11 AM, Jay Moore <[EMAIL PROTECTED]> wrote:
>> Now, someone show me where that is documented?
>
> http://us3.php.net/register_globals
>
>
> Also, for the love of glaven, people. If you're going to post to the list,
> you don't have to include the original sender as well.
On Thu, Oct 2, 2008 at 11:02 AM, tedd <[EMAIL PROTECTED]> wrote:
> Hi gang:
>
> As strange as it may seem, but when session variables are passed to another
> page (i.e., used) you cannot extract ALL OF THEM using a loop when the
> variable names you are using are the same as the SESSION index's nam
tedd wrote:
> At 11:10 PM +0100 10/1/08, Nathan Rixham wrote:
>>> [tested - works]
>>> -snip-
>>> ?>
>>> regards! nathan :)
>>
>> I need to re-address this.. tedd your original code works fine over
>> here; as does the code I sent you, and the code jay submitted first..
>>
>> do us a favour, copy a
Now, someone show me where that is documented?
http://us3.php.net/register_globals
Also, for the love of glaven, people. If you're going to post to the
list, you don't have to include the original sender as well. There's a
pretty good chance if they originally posted to the list, they'll s
tedd wrote:
> Hi gang:
>
> As strange as it may seem, but when session variables are passed to
> another page (i.e., used) you cannot extract ALL OF THEM using a loop
> when the variable names you are using are the same as the SESSION
> index's names.
>
> In other words, you cannot do this:
>
> for
Andrew Ballard wrote:
> On Thu, Oct 2, 2008 at 10:37 AM, tedd <[EMAIL PROTECTED]> wrote:
>
>> To all:
>>
>> The code provided by nathan works for me as well. However, the problem is
>> not easily explained, but I can demonstrate it -- try this:
>>
>> http://www.webbytedd.com/zzz/index.php
>>
>
On Thu, Oct 2, 2008 at 11:02 AM, tedd <[EMAIL PROTECTED]> wrote:
>
> As strange as it may seem, but when session variables are passed to another
> page (i.e., used) you cannot extract ALL OF THEM using a loop when the
> variable names you are using are the same as the SESSION index's names.
>
[snip
>>>
>>> Much as it pains me to ask this, you don't have REGISTER_GLOBALS on, do you?
>>>
>>> Jay
>>>
>>> --
>>> PHP General Mailing List (http://www.php.net/)
>>> To unsubscribe, visit: http://www.php.net/unsub.php
>>>
>>
>> It must be. I just ran tedd's example in both scenarios.
>>
>> W
Hi gang:
As strange as it may seem, but when session variables are passed to
another page (i.e., used) you cannot extract ALL OF THEM using a loop
when the variable names you are using are the same as the SESSION
index's names.
In other words, you cannot do this:
for ($i = 0; $i < $num_user
On 01 October 2008 21:24, tedd advised:
> At 2:38 PM -0500 10/1/08, Afan Pasalic wrote:
>> main reason - if you sort by first or last name you will lose
"index".
>> this way is index always "linked" to first/last name.
>
> Your point is well taken, but I'm not sorting this.
>
> True, the arrays
Jay Moore wrote:
tedd wrote:
At 11:10 PM +0100 10/1/08, Nathan Rixham wrote:
[tested - works]
-snip-
?>
regards! nathan :)
I need to re-address this.. tedd your original code works fine over
here; as does the code I sent you, and the code jay submitted first..
do us a favour, copy and past
tedd wrote:
At 11:10 PM +0100 10/1/08, Nathan Rixham wrote:
[tested - works]
-snip-
?>
regards! nathan :)
I need to re-address this.. tedd your original code works fine over
here; as does the code I sent you, and the code jay submitted first..
do us a favour, copy and paste exactly what I j
On Thu, Oct 2, 2008 at 10:37 AM, tedd <[EMAIL PROTECTED]> wrote:
> To all:
>
> The code provided by nathan works for me as well. However, the problem is
> not easily explained, but I can demonstrate it -- try this:
>
> http://www.webbytedd.com/zzz/index.php
>
> * A complete listing of the code foll
At 11:10 PM +0100 10/1/08, Nathan Rixham wrote:
[tested - works]
-snip-
?>
regards! nathan :)
I need to re-address this.. tedd your original code works fine over
here; as does the code I sent you, and the code jay submitted first..
do us a favour, copy and paste exactly what I just handed th
uaca man wrote:
nathan, if you are not going to help, DON“T answer.
[/snip]
Angelo,
suggesting that there are some classes for this on phpclasses is helping
suggesting that a vast amount of articles and resource can easily be
located on google is helping
suggesting that the issue is also di
[EMAIL PROTECTED] wrote:
Hi, (i hope this is the right place to ask questions like below)
I am trying to use content type 'multipart/x-mixed-replace' to
achive server pushing and I have the following piece of code, which works perfectly.
/* file.html */
function handleContent(event)
{
var r
Hi, (i hope this is the right place to ask questions like below)
I am trying to use content type 'multipart/x-mixed-replace' to
achive server pushing and I have the following piece of code, which works
perfectly.
/* file.html */
function handleContent(event)
{
var result = event.target.respon
On 1 Oct 2008, at 20:42, Per Jessen wrote:
Stut wrote:
On 1 Oct 2008, at 11:40, Per Jessen wrote:
Alain Roger wrote:
how can i get the 'name' value for each row in this session stored
array ? thx.
You haven't stored an array in the session, you've tried to store an
object of class CBreadcru
59 matches
Mail list logo