How to create a PHP file on Linux.

Solved
Probleme546 Posted messages 30 Status Member -  
zipe31 Posted messages 34620 Registration date   Status Contributor Last intervention   -
Hello,
how to create php files on Linux;
Like on Windows with Notepad.
Please

Configuration: Linux / Chrome 42.0.2311.152

2 answers

  1. jeanbi Posted messages 15399 Registration date   Status Contributor Last intervention   2 383
     
    Hello
    There's better, gedit for example..
    cya

    --
    FC 19 - Mandriva 2010 -Debian 6.0-
    The best things require patience. (JC ANGLADE)
    0
    1. Probleme546 Posted messages 30 Status Member
       
      Can we create php files with gredit?
      0
    2. jeanbi Posted messages 15399 Registration date   Status Contributor Last intervention   2 383
       
      Re
      Well yes, otherwise why would I mention it to you
      see you later
      0
    3. Probleme546 Posted messages 30 Status Member
       
      Ah, thank you very much.
      But can you explain to me how to do it...
      Please
      0
    4. zipe31 Posted messages 34620 Registration date   Status Contributor Last intervention   6 501 > Probleme546 Posted messages 30 Status Member
       
      Hello,

      Just like on Windows, you open the editor (gedit in this case) and you code, that's it!
      0
    5. Probleme546 Posted messages 30 Status Member
       
      ah thank you
      0
  2. jeanbi Posted messages 15399 Registration date   Status Contributor Last intervention   2 383
     
    re
    if you save it with the php extension, it will be automatically completed by gedit
    a+

    FC 19 - Mandriva 2010 -Debian 6.0-
    The best things require patience. (JC ANGLADE)
    0
    1. Probleme546 Posted messages 30 Status Member
       
      Oh thank you.
      That's the answer I was waiting for
      Thank you very much everyone.
      0
    2. zipe31 Posted messages 34620 Registration date   Status Contributor Last intervention   6 501
       
      Re-

      I launched nano (
      nano test
      ) and pasted:
      <?php
      // the simplest form, recommended
      echo 'Hello World';
      ?>

      Then I saved it and ran a simple
      file test
      which returned:
      $ file test 
      test: PHP script, UTF-8 Unicode text

      So without any extension, it’s recognized.

      To go further, I then launched
      gedit test
      , which gave me:

      So I don't see what changes regarding our friend Probleme546 ;-\
      0
    3. Probleme546 Posted messages 30 Status Member
       
      I don't have the same gedit.
      But I think I've understood my mistake and found my answer.
      Thank you.
      0
      1. zipe31 Posted messages 34620 Registration date   Status Contributor Last intervention   6 501 > Probleme546 Posted messages 30 Status Member
         
        I don't have the same gedit.
        Yes, it's just a matter of theme (Edit => Preferences => "Fonts and Colors" tab => Oblivion)
        0