FUDforum
Fast Uncompromising Discussions. FUDforum will get your users talking.

Home » Imported messages » comp.lang.php » doctype not found?
Show: Today's Messages :: Polls :: Message Navigator
Return to the default flat view Create a new topic Submit Reply
Re: doctype not found? [message #173616 is a reply to message #173612] Wed, 20 April 2011 16:05 Go to previous messageGo to previous message
alvaro.NOSPAMTHANX is currently offline  alvaro.NOSPAMTHANX
Messages: 277
Registered: September 2010
Karma:
Senior Member
El 20/04/2011 16:12, geoff(at)invalid(dot)invalid escribió/wrote:
> On Wed, 20 Apr 2011 14:28:17 +0200, "Álvaro G. Vicario"
> <alvaro(dot)NOSPAMTHANX(at)demogracia(dot)com(dot)invalid> wrote:
>
>> You don't have a constant called firsttime so this should trigger a
>> notice. You should enable full error reporting when developing:
>>
>> ini_set('display_errors', TRUE);
>> error_reporting(E_ALL);
>
>
> I have tried a whole lot of variations using
>
> http://www.micro-active.com/index-test.php
>
> which has
>
> <?php
> session_start();
> ini_set('display_errors', TRUE);
> error_reporting(E_ALL);
> setcookie("firsttime","no");
> $firsttime = $_COOKIE[firsttime];
> if (@$firsttime != "no") {
> echo "
> <!DOCTYPE HTML PUBLIC '-//W3C//DTD HTML 4.01//EN' etc etc
>
> but I cannot get it right - I do see the error message "undfined
> constant etc".
>
> I have tried defining it by having
>
> var $firsttime;
> var $firsttime = '';
>
> etc etc
>
> but need a little more help please!

Do you even know what a constant is?

I suggest you have a look at this chapter in the PHP manual:

http://es.php.net/manual/en/langref.php

You absolutely need to read the complete chapter, but for your immediate
needs you can start with the "Strings" and "Arrays" sections.


>> --
>> -- http://alvaro.es - Álvaro G. Vicario - Burgos, Spain
>> -- Mi sitio sobre programación web: http://borrame.com
>> -- Mi web de humor satinado: http://www.demogracia.com

There's no need to quote signatures ;-)




--
-- http://alvaro.es - Álvaro G. Vicario - Burgos, Spain
-- Mi sitio sobre programación web: http://borrame.com
-- Mi web de humor satinado: http://www.demogracia.com
--
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Parameter passing question
Next Topic: My contact form is not emailed to me
Goto Forum:
  

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ]

Current Time: Fri Nov 22 11:50:20 GMT 2024

Total time taken to generate the page: 0.04658 seconds