This Is a php question?

Discussion in 'PHP' started by topdawg, Dec 23, 2007.

  1. #1
    Actually it's a couple of questions...

    When installing php scripts do they have to be placed in the cgi-bin?

    Is it safe to place more than one script in a directory?

    Thanks!
     
    topdawg, Dec 23, 2007 IP
  2. Marko

    Marko Peon

    Messages:
    248
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #2
    No!

    Depends of script type and num of files!
    For example Joomla and SMF will be in different folders because this scripts are real complex web applications and u will need two folders for them!

    U can put for example script called random.php (returns random image from your site) and complexsearch.php (returns result from all search engines) in the same directory because those scripts have only few lines of code doesn’t include other files etc.
     
    Marko, Dec 23, 2007 IP
  3. InFloW

    InFloW Peon

    Messages:
    1,488
    Likes Received:
    39
    Best Answers:
    0
    Trophy Points:
    0
    #3
    These days you can run PHP scripts from pretty much any folder.



    It is probably not a good idea. As a lot of scripts will use the same file names for example index.php. So you'll end up overwriting lots of files if you're not careful. You'd be better off having each in their own platform if they're more than just a few files.
     
    InFloW, Dec 23, 2007 IP
  4. topdawg

    topdawg Peon

    Messages:
    87
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    0
    #4
    Thanks to everyone for responding! :)
     
    topdawg, Feb 17, 2008 IP