One Question whas php ??

Discussion in 'PHP' started by make-it-yourself.me.uk, May 24, 2008.

  1. #1
    hi, this might sound stupid

    but what is php when creating a new file ???


    pearl or shell

    or is it both depending on the code,

    this is because i never know when in control panel what file type to create new file
    a fo php file

    sorry if you think its a stupid question


    thanks in advance
     
    make-it-yourself.me.uk, May 24, 2008 IP
  2. Danltn

    Danltn Well-Known Member

    Messages:
    679
    Likes Received:
    36
    Best Answers:
    0
    Trophy Points:
    120
    #2
    It's not perl or shell.

    It's PHP, just choose either and rename it to PHP.

    E.g. choose 'Perl', then after saving it, choose a filename ending in .php to ensure it's parsed by PHP.

    Dan
     
    Danltn, May 24, 2008 IP
  3. NatalicWolf

    NatalicWolf Peon

    Messages:
    262
    Likes Received:
    14
    Best Answers:
    0
    Trophy Points:
    0
    #3
    Choose plain text, really that's all PHP is...A plain text file. Perl is .pl and contains a header as does shell scripts.
     
    NatalicWolf, May 24, 2008 IP
  4. make-it-yourself.me.uk

    make-it-yourself.me.uk Active Member

    Messages:
    310
    Likes Received:
    5
    Best Answers:
    0
    Trophy Points:
    60
    #4
    thanks natalicwolf, its always puzzled me , for years ive not known this LOL
     
    make-it-yourself.me.uk, May 24, 2008 IP