Results 1 to 3 of 3

Thread: Calling php

  1. #1
    Join Date
    Nov 2003
    Location
    Sinapore
    Posts
    187

    Unanswered: Calling php

    Hi,

    In my PHP scripts, I had been using only "<?" to indicate the start of PHP. That had gone without problems for a quite a while.

    But recently, I found my scripts couldn't execute and the PHP code was showing on the web page. I had to change "<?" to "<?php" to get the scripts to run.

    Is it possible to configure PHP (or perhaps the Apache config file) to tell the server to parse the scripts with just "<?" (i.e. with php appended to the question mark)?

    Thanks in advance

  2. #2
    Join Date
    Nov 2004
    Location
    out on a limb
    Posts
    13,692
    Provided Answers: 59
    It could be a setting in your PHP,INI file
    however as <?PHP is the standard way to identify PHP script in files I'd suggest you switch tot he standard
    I'd rather be riding on the Tiger 800 or the Norton

  3. #3
    Join Date
    Nov 2003
    Location
    Sinapore
    Posts
    187
    Quote Originally Posted by healdem
    It could be a setting in your PHP,INI file
    however as <?PHP is the standard way to identify PHP script in files I'd suggest you switch tot he standard
    Thanks, healdem

    I had thought "<?" was the more PHP-friendly version.

Posting Permissions

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