473,387 Members | 1,687 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

Including files from a different server / domain

AaronL
99
Hello,

I'm writing software in PHP that I would like to own the code and allow others to use it on their website without giving them the possibility to steal my php source
code.

I tried to use the include statement using the full url to the file but got I got the
error that url access is disabled on the server. I looked into it further and seen a lot of documentation where turning url_fopen to ON is not recommended.

How can I include a php file this way? Is is possible?

- Aaron
May 7 '10 #1

✓ answered by AaronL

Well I tried a different way, in that I didn't use functions, I created the page first
on my server and was able to call it from another server. I guess functions don't get passed, only things that can be echoed out.

2 1489
AaronL
99
I tried using file_get_contents but I'm getting undefined function errors
May 7 '10 #2
AaronL
99
Well I tried a different way, in that I didn't use functions, I created the page first
on my server and was able to call it from another server. I guess functions don't get passed, only things that can be echoed out.
May 7 '10 #3

Sign in to post your reply or Sign up for a free account.

Similar topics

3
by: EK | last post by:
I am trying to use asp to download a file located on a different server. I can use ADODB.Stream, LoadFromFile(\\Server\Something) and the Response.BinaryWrite successfully, but only if I create an...
3
by: Helen | last post by:
How can I write a file to a mapped drive on a different server, from an ASP.Net application? Thanks Helen
4
by: pmud | last post by:
Hi I have a website (ASP.NET project using C# ) which is already put up on the server. I need to make some modification to some web pages.So the project files were copied to the a different server...
1
by: Green | last post by:
Hi, I had a question about how to copy files from server to server on the same LAN. Basically, i need to copy files from "develope server" to the "test server", then eventually to the "production...
2
by: mt | last post by:
Is there a way to upload a file to a different server other than the one hosting the web app? I've tried using the following syntax: Request.Files.SaveAs("\\\\servername\\sharename\\directory" +...
6
by: leandra_s | last post by:
Hello I want to upload files to a server with asp. But the problem is that the server where my asp website stands is a different server then where my upload files must go. Is there a way to...
5
by: jannordgreen | last post by:
I use windows 2000 and Visual Studio 2003. I have a vbnet web application on our intranet that needs to read a text file that sits on a different server. The general user does not have access to...
2
by: jeffish | last post by:
Does anyone know if you can include files from another server/domain? ie: <!-- #include file="http://www.someotherdomain.com/file.inc" --> Thank you
1
by: joe | last post by:
Any articles relating with Uploading images files to server and resize the image by asp.net 2.0
0
by: sivaramsekar | last post by:
Hi, I have a requirement to copy files (images) from a different server to our web server which has IIS 6.0 and asp.net 3.5. When i try it in my local dev machine i am able to copy and save...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.