Hello and welcome to our community! Is this your first visit?
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
  1. #1
    New Coder
    Join Date
    Jan 2004
    Thanked 0 Times in 0 Posts

    PHP and web hosting w/ cgi-bin


    The ISP where I will put my PHP site on obligate all CGIs to be on CGI-BIN directory (is an UNIX server). This obligates me to put all my site (all my PHP files) on CGI-BIN, and my URL site will be something like http://www.omeudominio.pt/cgi-bin/aminhapagina.php. I dont like this. I dont want the CGI-BIN to be on the URL. What I want is that the URL will be something like http://www.omeudominio.pt/aminhapagina.php. I ask you, with your experience, to help me on this. What can I do?

    Thank you vey much.


  • #2
    Super Moderator
    Join Date
    May 2002
    Perth Australia
    Thanked 101 Times in 99 Posts
    this is an awful answer and you wont like it but

    get another host !

    you can use mod_rewrite (google for that (assuming the apache module mod_rewrite is available on your server) ) if you wish to use the 'prettier' urls , but a CGI based PHP installation is a shackled , half hearted one one unless perhaps you are getting your hosting for free , enforcing CGI-BIN usage can offer some extra security but nothing more and often only the appearance of such.
    resistance is...

    MVC is the current buzz in web application architectures. It comes from event-driven desktop application design and doesn't fit into web application design very well. But luckily nobody really knows what MVC means, so we can call our presentation layer separation mechanism MVC and move on. (Rasmus Lerdorf)


    Posting Permissions

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