RE: [PHP] Parse Error

2001-10-29 Thread james . fairbairn

might be a syntax error in the .lib file you are including (missing ;,
possibly)... let me know.

-Original Message-
From: Alberto [mailto:alberto arround [EMAIL PROTECTED]]
Sent: 29 October 2001 10:14
To: [EMAIL PROTECTED]
Subject: [PHP] Parse Error


Parse error: parse error, expecting `T_VARIABLE' in
/sdr/httpd/Prisa/DATA/private/libs/captura/valores.php on line 18


?
/
//
// Trabaja con valores/indices
//
/

include(/sdr/httpd/Prisa/DATA/private/libs/db/db_sql.lib);

class val_valores
{
/
//
// Todos los campos de la tabla
//
/

var VAL_ID; -- Line 18
var VAL_TICKER;
var VAL_ID_FEED;


Where is the problem? Can't figure it :(



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




RE: [PHP] Parse Error

2001-10-29 Thread james . fairbairn

oops, missed that one!

-Original Message-
From: Alexander Weber [mailto:[EMAIL PROTECTED]]
Sent: 29 October 2001 10:08
To: Alberto
Cc: [EMAIL PROTECTED]
Subject: Re: [PHP] Parse Error


Just use 

var $VAL_ID;

Names of variables always start with a $ sign.


Alberto wrote:
 
 Parse error: parse error, expecting `T_VARIABLE' in
 /sdr/httpd/Prisa/DATA/private/libs/captura/valores.php on line 18

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




RE: [PHP] Redirecting Using Header{} Function

2001-10-25 Thread james . fairbairn



However with Netscape 4.75 when I call any page that has the Header(Refresh)
function I get a nasty pop up box which says The document contains no
data.  I then click ok and the page loads exactly as it should but no
matter what I do I can't stop this pop up box from appearing, IE, Netscape 6
and Opera all work fine.

Does any have any ideas???

---

have you tried sending a few nbsp; chars after the header? that way your
doc will have some data in it. unless it's a netscape bug :(

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP] mktime() problem

2001-10-23 Thread james . fairbairn

Hi All,

This is my first post to this list so forgive me if this has been covered a
million times before

I'm running 4.0.6 on a Solaris 8 box. The output given by

echo mktime(0,0,0,1,1,1970);

is 3600.

Shouldn't it be 0? My box's locale is set to the UK defaults, so as I write
this we are in daylight savings (GMT+1). Would this make a difference? (I
have already tried

echo mktime(0,0,0,1,1,1970,0);

to force non-daylight-savings, but I still get 3600.) Am I doing something
wrong, or have I found a bug?

Thanks,

James

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




RE: [PHP] Re: mktime() problem

2001-10-23 Thread james . fairbairn

Hi James,

Yes, you're right; I got -3600. But shouldn't the time returned reflect the
timezone we would be in on that date, rather than the one we are in now?

Thanks for your help.

James

-Original Message-
From: liljim [mailto:[EMAIL PROTECTED]]
Sent: 23 October 2001 13:53
To: [EMAIL PROTECTED]
Subject: [PHP] Re: mktime() problem


Hi James,

 I'm running 4.0.6 on a Solaris 8 box. The output given by

 echo mktime(0,0,0,1,1,1970);

 is 3600.

 Shouldn't it be 0? My box's locale is set to the UK defaults, so as I
write
 this we are in daylight savings (GMT+1). Would this make a difference? (I
 have already tried

I uploaded the same script to my server which is also running BST (GMT +1) :
the output was as I expected, -3600 (we gained an hour, so had to lose it
somewhere):  are you sure your value wasn't minus 3600 also?


James



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




RE: [PHP] mktime() problem

2001-10-23 Thread james . fairbairn

Thanks, I'll use gmmktime() from now on!

James

-Original Message-
From: DL Neil [mailto:[EMAIL PROTECTED]]
Sent: 23 October 2001 13:54
To: Fairbairn,J,James,IVLH4 C; php-general
Subject: Re: [PHP] mktime() problem


 I'm running 4.0.6 on a Solaris 8 box. The output given by
 echo mktime(0,0,0,1,1,1970);
 is 3600.
 
 Shouldn't it be 0? My box's locale is set to the UK defaults, so as I
write
 this we are in daylight savings (GMT+1). Would this make a difference? (I
 have already tried
 echo mktime(0,0,0,1,1,1970,0);
 to force non-daylight-savings, but I still get 3600.) Am I doing something
 wrong, or have I found a bug?


James,
Had to worry about this too!
Try comparing gmmktime() and mktime().
Regards,
=dn


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




RE: [PHP] mktime() problem

2001-10-23 Thread james . fairbairn

Oh dear, I still get -3600 when I do

echo gmmktime(0,0,0,1,1,1970);

Why?

James

-Original Message-
From: Fairbairn,J,James,IVLH4 C 
Sent: 23 October 2001 13:57
To: [EMAIL PROTECTED]
Subject: RE: [PHP] mktime() problem


Thanks, I'll use gmmktime() from now on!

James

-Original Message-
From: DL Neil [mailto:[EMAIL PROTECTED]]
Sent: 23 October 2001 13:54
To: Fairbairn,J,James,IVLH4 C; php-general
Subject: Re: [PHP] mktime() problem


 I'm running 4.0.6 on a Solaris 8 box. The output given by
 echo mktime(0,0,0,1,1,1970);
 is 3600.
 
 Shouldn't it be 0? My box's locale is set to the UK defaults, so as I
write
 this we are in daylight savings (GMT+1). Would this make a difference? (I
 have already tried
 echo mktime(0,0,0,1,1,1970,0);
 to force non-daylight-savings, but I still get 3600.) Am I doing something
 wrong, or have I found a bug?


James,
Had to worry about this too!
Try comparing gmmktime() and mktime().
Regards,
=dn


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]