Robert Covell | 1 Oct 2003 01:09

dba_open cannot write

I am trying to write data to a db3 alias file that sendmail uses (made a
copy for testing).  When I read the file using:

$id = dba_open ("aliaseswww.db", "r", "db3");

It works.  But when I try to change it to:

$id = dba_open ("aliaseswww.db", "w", "db3");

I get:

dba_open(aliaseswww.db,w): Driver initialization failed for handler: db3:
Invalid argument in /usr/local/www/data/maillists/test.php on line 5

I don't know what the "Invalid argument" is?  It seems as if it is missing
the "db3" on the end of the dba_open, but I put it there.  I have checked
file permisions and everything checks out.  Any ideas?

-Bob

--

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

PHP Webmaster | 1 Oct 2003 02:21
Picon

Re: date() is hours behind


"Jon Kriek" <kriek <at> phpfreaks.com> wrote in message
news:20030930204730.45368.qmail <at> pb1.pair.com...
> putenv('TZ=Europe/London');
>
> OR
>
> putenv('TZ=GMT');
>
> --
> Jon Kriek
> http://phpfreaks.com
>
> "Php Webmaster" <phpwadmin <at> phpwebmaster.co.uk> wrote in message
> news:20030930085258.13084.qmail <at> pb1.pair.com...
> > I'm in London and and my timezone is GMT, so what should I use?

OK, using the putenv code you posted, I now have:

<?php
putenv('TZ=Europe/London');
echo date("l jS F Y, g:i A, T");
?>

Which displays:
Wednesday 1st October 2003, 1:19 AM, BST

The time and date is correct (thankgod!) but how comes the time zone is BST
(?) and not GMT?

(Continue reading)

Curt Zirzow | 1 Oct 2003 02:42
Picon

Re: date() is hours behind

* Thus wrote PHP Webmaster (phpwadmin <at> phpwebmaster.co.uk):
> 
> "Jon Kriek" <kriek <at> phpfreaks.com> wrote in message
> news:20030930204730.45368.qmail <at> pb1.pair.com...
> > putenv('TZ=Europe/London');
> >
> > OR
> >
> > putenv('TZ=GMT');
> >
> > --
> > Jon Kriek
> > http://phpfreaks.com
> >
> > "Php Webmaster" <phpwadmin <at> phpwebmaster.co.uk> wrote in message
> > news:20030930085258.13084.qmail <at> pb1.pair.com...
> > > I'm in London and and my timezone is GMT, so what should I use?
> 
> OK, using the putenv code you posted, I now have:
> 
> <?php
> putenv('TZ=Europe/London');
> echo date("l jS F Y, g:i A, T");
> ?>
> 
> Which displays:
> Wednesday 1st October 2003, 1:19 AM, BST
> 
> The time and date is correct (thankgod!) but how comes the time zone is BST
> (?) and not GMT?
(Continue reading)

Curt Zirzow | 1 Oct 2003 02:48
Picon

Re: dba_open cannot write

* Thus wrote Robert Covell (rcovell <at> rolet.com):
> I am trying to write data to a db3 alias file that sendmail uses (made a
> copy for testing).  When I read the file using:
> 
> $id = dba_open ("aliaseswww.db", "r", "db3");
> 
> It works.  But when I try to change it to:
> 
> $id = dba_open ("aliaseswww.db", "w", "db3");
> 
> I get:
> 
> dba_open(aliaseswww.db,w): Driver initialization failed for handler: db3:
> Invalid argument in /usr/local/www/data/maillists/test.php on line 5
> 
> I don't know what the "Invalid argument" is?  It seems as if it is missing
> the "db3" on the end of the dba_open, but I put it there.  I have checked
> file permisions and everything checks out.  Any ideas?

PHP isn't complaining about the argument, the driver was unable to
open the db3 file in 'w' mode, which means the driver doesn't like
the 'w' flag.

My only guess is that you have permission problems with the file.
But you said you've already checked that.

Curt
--

-- 
"I used to think I was indecisive, but now I'm not so sure."

(Continue reading)

Jon Kriek | 1 Oct 2003 03:25

Re: Re: retrieving information about state of a function

So why not subscribe to the php.dev list and propose it there?

-- 
Jon Kriek
http://phpfreaks.com

"Dennis Sterzenbach" <lists <at> darknoise.de> wrote in message
news:20030930224647.83622.qmail <at> pb1.pair.com...
> Well I already do so, but I think it would be more smooth having a
> function
> provided by PHP for that purpose, because there are functions for all
> the other
> kinds of checks: included files, declared classes, defined
> constants/variables,
> defined functions, etc.
> Why not having a function which gives the information to me?
> Also I think a function provided by PHP would make it faster and even
> quite
> secure. Think of having to explode() and in_array() check for the
> function
> or the PHP engine having the list in a good matter handing a true/false
> directly.
> Seems to me as a more consequent and ideal solution.
>
> --
>  Dennis

--

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
(Continue reading)

- Edwin - | 1 Oct 2003 03:43
Picon
Favicon

Re: Submit button

Hi,

"Nitin" <nitinmehta <at> kappa.net.in> wrote:

> Never mind, but could you state the reason?

Just guessing here...

...[snip]...

> 
> > --- Nitin <nitinmehta <at> kappa.net.in> wrote:
> > > <img src="image.gif" alt="Submit" onClick=document.entry.submit()>
> > 
> > This is a great example of what not to do.

...because it relies on Javascript (so it's unreliable because of some Javascript issues)...

> > Use <input type="image"...

...and this one doesn't...

- E -
__________________________________________________
Do You Yahoo!?
Yahoo! BB is Broadband by Yahoo!
http://bb.yahoo.co.jp/

--

-- 
PHP General Mailing List (http://www.php.net/)
(Continue reading)

- Edwin - | 1 Oct 2003 03:59
Picon
Favicon

Re: storing japanese in mysql (or pgsql)

Hi,

"Chris W. Parker" <cparker <at> swatgear.com> wrote:

> (I posted this to another list yesterday without response, so if it
> looks familiar, that's why.)
> 
> Hi.
> 
> I'm working on a small study aid for myself (and anyone else that wants
> to use it) and I could really use the ability to store Japanese
> characters in a MySQL or pgsql db. Right now I've created a very large
> array.
> 
> What I'd like to do is have a form that will allow me to add new
> characters whenever needed. So far my attempts at this have failed. It
> always seems that the extended characters get turned into their html
> entity equivalents before they are inserted into the db.

What exactly do you mean by "extended characters"? And, do you mean all *other* characters are inserted
properly? Anyway,...

> I'm using euc-jp as the character set.
> 
> I'm pretty much lost with this. Anyone have experience with this that
> they'd like to share? (on or off list is fine.)
> 

Well, setting the "default-character-set" to "ujis" for both the server and the client works for me.

(Continue reading)

- Edwin - | 1 Oct 2003 04:10
Picon
Favicon

Re: PNGs & PHP feedback

Hi,

Eugene Lee <list-php-1 <at> fsck.net> wrote:

> On Tue, Sep 30, 2003 at 02:40:42AM -0400, Joe Harman wrote:
> : 
> : I am looking for some guidance... I am using PHP to make dynamic
> : buttons... Is the PNG image format a pretty safe thing to go with...
> : Standard wise?
> 
> PNG support in M$ IE is still shaky.

I think I've seen this problem when the images are viewed *individually* using IE. However, there seems to
be no problem when it's "inside" an HTML page...

- E -

__________________________________________________
Do You Yahoo!?
Yahoo! BB is Broadband by Yahoo!
http://bb.yahoo.co.jp/

--

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Curt Zirzow | 1 Oct 2003 04:15
Picon

Re: PNGs & PHP feedback

* Thus wrote - Edwin - (copperwa11s <at> yahoo.co.jp):
> Hi,
> 
> Eugene Lee <list-php-1 <at> fsck.net> wrote:
> 
> > On Tue, Sep 30, 2003 at 02:40:42AM -0400, Joe Harman wrote:
> > : 
> > : I am looking for some guidance... I am using PHP to make dynamic
> > : buttons... Is the PNG image format a pretty safe thing to go with...
> > : Standard wise?
> > 
> > PNG support in M$ IE is still shaky.
> 
> I think I've seen this problem when the images are viewed *individually* using IE. However, there seems to
be no problem when it's "inside" an HTML page...

It does have a problem reading alpha channels in the pngs
though.

Curt
-- 
"I used to think I was indecisive, but now I'm not so sure."

--

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

- Edwin - | 1 Oct 2003 04:31
Picon
Favicon

Re: PNGs & PHP feedback

Hi,

Curt Zirzow <php-general <at> zirzow.dyndns.org> wrote:

[snip]

> It does have a problem reading alpha channels in the pngs
> though.

[/snip]

Quite true. (I "forgot" that part...) Though it seems like it's not a
problem for the IE on Macs...

...and then I thought IE's problems were all about security and
non-standard tags... ;)

- E -

__________________________________________________
Do You Yahoo!?
Yahoo! BB is Broadband by Yahoo!
http://bb.yahoo.co.jp/

--

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


Gmane