37 users online (2 members and 35 guests)  

Thread: perl extension


  Results 1 to 4 of 4

Related

  1. Replies: 0
  2. Replies: 1
  3. Adding HTML extension to link    Forum: Javascript Forum
    Replies: 10
  1. #1
    bali's Avatar
    New User

    Status
    Offline
    Join Date
    Oct 2006
    Posts
    2

    perl extension

    Hello anyone ,
    I just start learning perl. I had found some problem to
    create perl file in Linus server.
    I would like to create perl file without any extension.
    e.g for normal perl we will create 'Hello.pl' but now i would like to run my perl file 'Hello' only without any extension.

    pls help

    Thanks.

  2. #2
    ALL's Avatar
    Super Dooper Nerd

    Status
    Offline
    Join Date
    Feb 2005
    Location
    localhost
    Posts
    382

    Re: perl extension

    this can be done with the .htaccess file by adding this code:

    Code:
       <Files ~ '^[^.]*$'>
       SetHandler cgi-script
       </Files>
    -ALL

  3. #3
    bali's Avatar
    New User

    Status
    Offline
    Join Date
    Oct 2006
    Posts
    2

    Re: perl extension

    .htaccess file ? May i know where i need to create this file ? Sorry i not familiar with perl. May i know your the function .htaccess file ? where can i know locate it ?
    I rent spaces from hosting company. I did not found any file .htaccess pls help
    Thanks for your help
    Last edited by bali; 10-30-2006 at 12:19 AM.

  4. #4
    ALL's Avatar
    Super Dooper Nerd

    Status
    Offline
    Join Date
    Feb 2005
    Location
    localhost
    Posts
    382

    Re: perl extension

    usually the .htaccess file is created by the user...

    to create ont... open notepad and paste that code then file>save...

    then change "save as type" to "all files" then save the file as ".htaccess" (without quotes).

    (You cannot rename a file .htaccess in windows!)

    then upload it to the same place the files you dont want the extensions on.

    This will only work if your server uses apache an iis host you cannot eassily do it.



Tags for this Thread