> -----Original Message-----
> From: Jim Moseby [mailto:[EMAIL PROTECTED]
> Sent: 17 May 2007 21:29
> To: 'rauhspund'; php-general@lists.php.net
> Subject: RE: [PHP] IE7 => end tag?
>
>
> >
> > #-- .meta info
> > include("../plugins/lib/pluginmetadata.php");
> > $_cached = !empty($_POST);
> > ewiki_pmd($_cached);
> > #-- defaults for the separately handled database settings in $db[]
> > if (!($db = $_REQUEST["db"])) {
> > $db = array("type" => NULL,
> > "server" => "localhost",
> > "dbname" => "test",
> > "table" => "ewiki",
> > "dir" => "/tmp",
> > "dba" => "/tmp/wiki.dbm",
> > );
> > }
>
> I don't know if this will fix your problem, but you have an
> extraneous comma
> after'"dba" => "/tmp/wiki.dbm",'.  Also try enclosing NULL in
> quotes and see
> if your problem goes away.
>
> JM
>

The extra comma at the end of the array definition is still valid syntax in
PHP. Try for yourself:

 php -r '$a = array("a" => "foo", "b" => "bar",); print_r($a);'

NULL is a special type that means just that:
http://uk.php.net/manual/en/language.types.null.php

Enclosing it in quotes will define it as a string, something entirely
different.

The problem described is not to do with the PHP code supplied, but the setup
of the webserver. As Stut correctly said, if PHP code is getting to the
browser then webserver is not configured correctly.

rauhspund, you are actually using a webserver with PHP aren't you and not
just opening the PHP file directly with IE?

Edward

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

Reply via email to