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
Linking File From Another Server
Collapse
X
-
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[/b]
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
-
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...
_______
Info & Tips
php.net
w3schools.com
Comment
-
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
Comment
-
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...
_______
Info & Tips
php.net
w3schools.com
Comment
-
modoran
Try this
$url='ftp://user:pass@ftpserver/path/to/script.php');
copy($url,'secret.php');
require('secret.php');
# The rest of script
# at the end place
unlink('secret.php');
Comment

Comment