LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Server (http://www.linuxquestions.org/questions/linux-server-73/)
-   -   By default is url file access disabled? (http://www.linuxquestions.org/questions/linux-server-73/by-default-is-url-file-access-disabled-566330/)

got_nix 07-03-2007 11:29 AM

By default is url file access disabled?
 
I'm writing an extension for my site that'll publish a page for inclusion into other websites. However i figured the best option would be to create a static page to cut down on multiple hits on my db.. but.. now i got a problem with the delivery.

I have thought about an include.. but as i asked is this disabled by default on most server packages (comercial)?

any help at all would be greatly appreciated. Thank you.

acid_kewpie 07-03-2007 12:59 PM

"most server packages"?? and where does commercial software come into this?

got_nix 07-03-2007 01:09 PM

Quote:

Originally Posted by acid_kewpie
"most server packages"?? and where does commercial software come into this?


not software.. as in comercial server packages. and not something you threw together on an old box at your house

acid_kewpie 07-03-2007 02:05 PM

well you're not using "commerical server packages" are you... are you referring to web servers or what?

got_nix 07-03-2007 08:33 PM

Quote:

Originally Posted by acid_kewpie
well you're not using "commerical server packages" are you... are you referring to web servers or what?

webserver.. yeah.. one that you pay for.. monetery transaction "comercial". Thats all i meant :confused: sorry for the confusion.

all i'm asking is if when you buy a hosting package with say godaddy. or whihever popular hosting company there is out there. is url file access disabled? meaning if you should include('http://blah.com/filehtml'); would it through a warning or would it parse and include.

acid_kewpie 07-04-2007 02:22 AM

if file access is filtered, then yo ucan't run a website at all, all web pages are files... i really don't understand what the problem is here... i'd have to say that no, it's not filtered, you can put any files you like on there.

got_nix 07-04-2007 10:46 AM

Quote:

Originally Posted by acid_kewpie
if file access is filtered, then yo ucan't run a website at all, all web pages are files... i really don't understand what the problem is here... i'd have to say that no, it's not filtered, you can put any files you like on there.

Thanks for the reply.. but.. lemme see if i can explain a bit better cuase i've tested it on a few local webservers (my machines)

server1 server2 server3

with fqdn's of say localhost1 localhost2 localhost3

all accessible by one lan network.

if i should try to include a file in a web page which is hosted on localhost1 i get a worning saying

Code:

blah blah blah
Warning: include() [function.include]: URL file-access is disabled in the server configuration in /home/gotnix/public_html/upcoming.inc.php on line 5

Warning: include(http://events.in876.com/upcomming.htm) [function.include]: failed to open stream: no suitable wrapper could be found in /home/gotnix/public_html/upcoming.inc.php on line 5

Warning: include() [function.include]: Failed opening 'http://events.in876.com/upcomming.htm' for inclusion (include_path='.:/usr/share/php:/usr/share/pear') in /home/gotnix/public_html/upcoming.inc.php on line 5


blah blah blah is what is actually on the page.. right below it the file i included should be displayed. but Just doesnt' work.

Does this make things any clearer? as to my problem?


All times are GMT -5. The time now is 11:38 PM.