Linking File From Another Server

Started on the old forum in November 2007 · view the original in the archive · old links redirect here

13 replies · 1,129 views · started 19 years ago · 1 min read

5 participants
nclemale36 Lead · 537 posts #2

i am trying to get a file from a particular server i tried require('http://siteaddress/config.inc'); but got a file access error ca any1 help wif this

why dont u just go to the server and save it from there. u cant access a config file from outside the server. it has the database details etc in it

ori Lead · 512 posts #3

no it dnt all it has is a function that i wana run off another server

subzero Super moderator Fellow · 3,954 posts #4

make a file name php_codfig.php

<?php include("http:// URL SITE/setup.php"); ?>

then

setup

<? blah blah ?>

Visit: Chat4u.mobi - The New Lay Of being a site of your dreams! Visit: WapMasterz Coming Back Soon!


SCRIPTS FOR SALE BY SUBZERO Chat4u Script : coding-talk.com/f28/chat4u-mobi-script-only-150-a-17677/ - > Best Script for your site no other can be hacked by sql or uploaders. FileShare Script : coding-talk.com/f28/file-wap-share-6596/ -> Uploader you will never regret buying yeah it mite be old now but it still seems to own others... _______…

ori Lead · 512 posts #5

it dnt work sub lol get this error

Warning: require() [function.require]: URL file-access is disabled in the server configuration in /home/aftadark/public_html/chat/core/main.inc on line 3

Warning: require(http://afta-dark.net/chat/core/config.inc) [function.require]: failed to open stream: no suitable wrapper could be found in /home/aftadark/public_html/chat/core/main.inc on line 3

Fatal error: require() [function.require]: Failed opening required 'http://afta-dark.net/chat/core/config.inc' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/aftadark/public_html/chat/core/main.inc on line 3

or

Warning: include() [function.include]: URL file-access is disabled in the server configuration in /home/aftadark/public_html/chat/core/main.inc on line 3

Warning: include(http://afta-dark.net/chat/core/config.inc) [function.include]: failed to open stream: no suitable wrapper could be found in /home/aftadark/public_html/chat/core/main.inc on line 3

Warning: include() [function.include]: Failed opening 'http://afta-dark.net/chat/core/config.inc' for inclusion (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/aftadark/public_html/chat/core/main.inc on line 3

subzero Super moderator Fellow · 3,954 posts #6

have you try placing keys so it ya going to let users have ya scrript just place a keygen in it so you have to enter it and domain only thing

like my billing software

http://billing.oz-au.net is ok http://oz-au.net/billing/ is not

you got what i meant?

Visit: Chat4u.mobi - The New Lay Of being a site of your dreams! Visit: WapMasterz Coming Back Soon!


SCRIPTS FOR SALE BY SUBZERO Chat4u Script : coding-talk.com/f28/chat4u-mobi-script-only-150-a-17677/ - > Best Script for your site no other can be hacked by sql or uploaders. FileShare Script : coding-talk.com/f28/file-wap-share-6596/ -> Uploader you will never regret buying yeah it mite be old now but it still seems to own others... _______…

ori Lead · 512 posts #8

not a clue only thing i can think is set php to cgi and use php.ini to change it all around

ori Lead · 512 posts #9

its jus 2 stop ppl puting my script on another server by putting few required functions in a file

ori Lead · 512 posts #10

i tried this but to no success

ini_set('allow_url_fopen', 'On');

ori Lead · 512 posts #12

try to use your config as txt file

and than

include ('http://mysite.com/config.txt');

didnt work stil same error msg

WhiteWarrior Principal · 1,419 posts #13

Create a .htaccess file and get it to redirect that script to your server. or a redirect in the config or hide it on the script and then they upload the script and get there members they will be redirected to your site so you get loads more members lol can't think of any other way

modoran #14

Try this $url='<#>); copy($url,'secret.php'); require('secret.php');

The rest of script

at the end place

unlink('secret.php');

Sign in to reply.

Similar topics

Keyboard shortcuts

g f
Go to forums
g h
Go to your feed
g m
Go to messages
r
Reply (in a topic)
/
Search
j
Next post
k
Previous post
?
This list
Ctrl/⌘ + Enter
Send what you are writing
Ctrl/⌘ + B / I
Bold / italic while writing
Esc
Close