RE: IE7 => end tag?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 




> -----Original Message-----
> From: Jim Moseby [mailto:JMoseby@xxxxxxxxxxxxxxxxx]
> Sent: 17 May 2007 21:29
> To: 'rauhspund'; php-general@xxxxxxxxxxxxx
> Subject: RE:  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


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux