Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.php > #1237
| From | "Álvaro G. Vicario" <alvaro.NOSPAMTHANX@demogracia.com.invalid> |
|---|---|
| Newsgroups | comp.lang.php |
| Subject | Re: doctype not found? |
| Date | 2011-04-20 18:05 +0200 |
| Organization | http://alvaro.es/ |
| Message-ID | <ion07v$jaq$1@dont-email.me> (permalink) |
| References | <ht1tq6dd3jdbtc8v2quqgflr11i62vberc@4ax.com> <iomeck$s9j$1@dont-email.me> <nnjtq6huii3b481dmum49ucaam42k4gcnv@4ax.com> <iomjh1$lf0$1@dont-email.me> <j8qtq6dkdsncv8shlj5qkoi9g7ankd7man@4ax.com> |
El 20/04/2011 16:12, geoff@invalid.invalid escribió/wrote:
> On Wed, 20 Apr 2011 14:28:17 +0200, "Álvaro G. Vicario"
> <alvaro.NOSPAMTHANX@demogracia.com.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
--
Back to comp.lang.php | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
doctype not found? geoff@invalid.invalid - 2011-04-20 08:17 +0100
Re: doctype not found? Jerry Stuckle <jstucklex@attglobal.net> - 2011-04-20 05:24 -0400
Re: doctype not found? "Beauregard T. Shagnasty" <a.nony.mous@example.invalid> - 2011-04-20 06:40 -0400
Re: doctype not found? "Álvaro G. Vicario" <alvaro.NOSPAMTHANX@demogracia.com.invalid> - 2011-04-20 13:00 +0200
Re: doctype not found? geoff@invalid.invalid - 2011-04-20 13:20 +0100
Re: doctype not found? "Álvaro G. Vicario" <alvaro.NOSPAMTHANX@demogracia.com.invalid> - 2011-04-20 14:28 +0200
Re: doctype not found? geoff@invalid.invalid - 2011-04-20 15:12 +0100
Re: doctype not found? "Álvaro G. Vicario" <alvaro.NOSPAMTHANX@demogracia.com.invalid> - 2011-04-20 18:05 +0200
Re: doctype not found? geoff@invalid.invalid - 2011-04-20 23:10 +0100
Re: doctype not found? Jerry Stuckle <jstucklex@attglobal.net> - 2011-04-20 23:48 -0400
Re: doctype not found? geoff@invalid.invalid - 2011-04-21 06:33 +0100
Re: doctype not found? "Beauregard T. Shagnasty" <a.nony.mous@example.invalid> - 2011-04-20 09:17 -0400
Re: doctype not found? "Beauregard T. Shagnasty" <a.nony.mous@example.invalid> - 2011-04-20 10:49 -0400
Re: doctype not found? geoff@invalid.invalid - 2011-04-20 16:29 +0100
Re: doctype not found? "Beauregard T. Shagnasty" <a.nony.mous@example.invalid> - 2011-04-20 12:51 -0400
csiph-web