1. Advertising
    y u no do it?

    Advertising (learn more)

    Advertise virtually anything here, with CPM banner ads, CPM email ads and CPC contextual links. You can target relevant areas of the site and show ads based on geographical location of the user if you wish.

    Starts at just $1 per CPM or $0.10 per CPC.

Enable URL file-access

Discussion in 'Apache' started by NetworkTown.Net, Aug 19, 2007.

  1. #1
    Hi

    i need to know how to allow URL file-access in php what setting do i change to enable it?

    Thanks Rep will be added.
     
    NetworkTown.Net, Aug 19, 2007 IP
  2. powerspike

    powerspike Peon

    Messages:
    312
    Likes Received:
    10
    Best Answers:
    0
    Trophy Points:
    0
    #2
    what do you mean by URL file-access

    because what i would consider it to be, is just direct access to a file via url ie http://www.domain.com/filename.zip

    which i assume is different to what you are asking
     
    powerspike, Aug 19, 2007 IP
  3. Webray

    Webray Active Member

    Messages:
    469
    Likes Received:
    7
    Best Answers:
    0
    Trophy Points:
    58
    #3
    Not sure what you mean, but...
    AddType application/x-httpd-php .php
    AddType application/x-httpd-php .phtml

    DirectoryIndex index.php index.phtml index.html
     
    Webray, Aug 19, 2007 IP
  4. NetworkTown.Net

    NetworkTown.Net Well-Known Member

    Messages:
    2,022
    Likes Received:
    28
    Best Answers:
    0
    Trophy Points:
    165
    #4
    No no, in php5 it is disbaled how do i enable it.
     
    NetworkTown.Net, Aug 19, 2007 IP
  5. Webray

    Webray Active Member

    Messages:
    469
    Likes Received:
    7
    Best Answers:
    0
    Trophy Points:
    58
    #5
    Don't know, buddy. I haven't worked with php5 all that much. Sorry.
     
    Webray, Aug 19, 2007 IP
  6. NetworkTown.Net

    NetworkTown.Net Well-Known Member

    Messages:
    2,022
    Likes Received:
    28
    Best Answers:
    0
    Trophy Points:
    165
    #6
    Alright. Np
     
    NetworkTown.Net, Aug 20, 2007 IP
  7. powerspike

    powerspike Peon

    Messages:
    312
    Likes Received:
    10
    Best Answers:
    0
    Trophy Points:
    0
    #7
    hi networktown,

    Are you talking something like fopen("http://www.domain/filename.php") ?
     
    powerspike, Aug 23, 2007 IP
  8. NetworkTown.Net

    NetworkTown.Net Well-Known Member

    Messages:
    2,022
    Likes Received:
    28
    Best Answers:
    0
    Trophy Points:
    165
    #8
    Yeah like that or require('http://www.domain.com/file.php');
     
    NetworkTown.Net, Aug 24, 2007 IP
  9. l0gic

    l0gic Peon

    Messages:
    22
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #9
    l0gic, Aug 24, 2007 IP
  10. techrecipe

    techrecipe Peon

    Messages:
    1
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #10
    Enabling file-access would leave your coding open to cross site scripting attacks (XSS attacks). This is the method by which someone of malintent would inject their own code into yours, such malicious code is usually crafted to conduct a DoS (Denial of Service) or DDoS (Distributed Denial of Service) attack both of which would cause server downtime. Other injections could include alternative page content, such as a ‘Hacked by some Hackers’ type of announcement across your web page(s).
     
    techrecipe, Apr 8, 2009 IP