I think i am going crazy

Ask a Question related to PHP Development, Design and Development.

  1. #1

    Default I think i am going crazy

    i have made a file called blah.php containing

    <?php print "<b>this is a test " ?>


    i open the page in a browser and i see a blank page

    i view the source of the page in the browser and i see

    <?php print "<b>this is a test " ?>


    this shouldnt be happening

    i have got php installed on the server and other php aplications are working
    fine - am i loosing the plot ??

    TIA


    chris Guest

  2. Similar Questions and Discussions

    1. slideshow crazy
      Please check out www.minneapolis.edu.. If you have flash 8 player installed it works just fine. If you dont have it upgraded yet, my slideshow goes...
    2. crazy
      guys: this is a highly simplified version of the helloVid app from the oreilly book: in the fla: stop(); myID = ""; nc = new...
    3. crazy behaviour
      Hi, I'm thring to get a form to respond to slections made in a select control. I'm not going mad it just feels like it - but my form just...
    4. Crazy PNG files...
      I have a Publisher file that was created with Publisher 2000. It is a website and contains a variety of text files and pictures. When I loaded it...
    5. IE 5.0 make me crazy...
      Hi, I have an aspx page with a Graph (teechart) and a button (export). The page is automatically updated by <META HTTP-EQUIV="Refresh"...
  3. #2

    Default Re: I think i am going crazy


    "chris" <asda@godknows.com> schreef in bericht
    news:3f7401d6$1@funnel.arach.net.au...
    > i have made a file called blah.php containing
    >
    > <?php print "<b>this is a test " ?>
    >
    >
    > i open the page in a browser and i see a blank page
    >
    > i view the source of the page in the browser and i see
    >
    > <?php print "<b>this is a test " ?>
    >
    >
    > this shouldnt be happening
    >
    > i have got php installed on the server and other php aplications are
    working
    > fine - am i loosing the plot ??
    >
    > TIA
    >
    >
    Although your code isn't wellformed, it works at my server however so i
    think the must be a malconfiguration of PHP somewehere.

    <?php print "<b>this is a test</b>"; ?>

    Marcel


    Marcel Guest

  4. #3

    Default Re: I think i am going crazy

    Maybe your server is configured to consider only .php3 files as PHP files.
    Check it.

    "Marcel" <neegeenspam@hotentottententententoonstellingen.nl > a écrit dans le
    message de news:3f74167c$0$5772$edd6591c@news.versatel.net...
    >
    > "chris" <asda@godknows.com> schreef in bericht
    > news:3f7401d6$1@funnel.arach.net.au...
    > > i have made a file called blah.php containing
    > >
    > > <?php print "<b>this is a test " ?>
    > >
    > >
    > > i open the page in a browser and i see a blank page
    > >
    > > i view the source of the page in the browser and i see
    > >
    > > <?php print "<b>this is a test " ?>
    > >
    > >
    > > this shouldnt be happening
    > >
    > > i have got php installed on the server and other php aplications are
    > working
    > > fine - am i loosing the plot ??
    > >
    > > TIA
    > >
    > >
    >
    > Although your code isn't wellformed, it works at my server however so i
    > think the must be a malconfiguration of PHP somewehere.
    >
    > <?php print "<b>this is a test</b>"; ?>
    >
    > Marcel
    >
    >

    Benjamin Morel Guest

  5. #4

    Default Re: I think i am going crazy


    "Benjamin Morel" <virtua@nerim.fr> wrote in message
    news:bl1u13$2qlm$1@biggoron.nerim.net...
    > Maybe your server is configured to consider only .php3 files as PHP files.
    > Check it.
    >
    > "Marcel" <neegeenspam@hotentottententententoonstellingen.nl > a écrit dans
    le
    > message de news:3f74167c$0$5772$edd6591c@news.versatel.net...
    > >
    > > "chris" <asda@godknows.com> schreef in bericht
    > > news:3f7401d6$1@funnel.arach.net.au...
    > > > i have made a file called blah.php containing
    > > >
    > > > <?php print "<b>this is a test " ?>
    > > >
    > > >
    > > > i open the page in a browser and i see a blank page
    > > >
    > > > i view the source of the page in the browser and i see
    > > >
    > > > <?php print "<b>this is a test " ?>
    > > >
    > > >
    > > > this shouldnt be happening
    > > >
    > > > i have got php installed on the server and other php aplications are
    > > working
    > > > fine - am i loosing the plot ??
    > > >
    > > > TIA
    > > >
    > > >
    > >
    > > Although your code isn't wellformed, it works at my server however so i
    > > think the must be a malconfiguration of PHP somewehere.
    > >
    > > <?php print "<b>this is a test</b>"; ?>
    > >
    > > Marcel
    > >
    Also check to make sure you have correct setting for short tags.
    ie <? as opposed to <?php
    (if short tags option is set, long tags will be ignored. If you change this
    setting, short tags will be parsed, but all the shorthand will throw errors.
    That is unless something has changed recently)


    PhilM


    PhilM Guest

  6. #5

    Default Re: I think i am going crazy

    PhilM wrote:
    > > Marcel wrote:
    > >
    > > > chris wrote:
    > > >
    > > > > <?php print "<b>this is a test " ?>
    > > >
    > > > Although your code isn't wellformed
    I can't see anything syntactically incorrect with the PHP. And
    indeed, full error reporting notifies us that there are no
    syntactical mistakes.
    > (if short tags option is set, long tags will be ignored. [...]
    No. The character sequence "<?php" is recognised as starting a
    block of code, regardless of the short_open_tag setting. See:
    [url]http://www.php.net/manual/en/language.basic-syntax.php[/url]

    In a nutshell: avoid short tags.

    --
    Jock
    John Dunlop Guest

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139