Solved

cross platform includes

Posted on 2002-05-04
6
187 Views
Last Modified: 2013-11-18
I run PHP on my site and so does another organisation. We want to share data but do not want to give direct access via a username and password to our databases.

Is it possible to include their login script over the internet or do includes have to be local?

Is there any solution to this issue?

Thanks in advance!
0
Comment
Question by:XantioBoy
  • 2
6 Comments
 
LVL 5

Expert Comment

by:harwantgrewal
ID: 6990248
....
0
 
LVL 8

Accepted Solution

by:
us111 earned 50 total points
ID: 6990974
<?
$var="TEST STRING";
include("http://www.domain.com/script2.php");
?>
$var will be not set in script2.php. Even if script1.php and script2.php
reside on the same server.

so you can do that but specify the username & login
include("http://www.domain.com/script2.php?login=ttt&pwd=uuu");

but this is not really secured.


0
 
LVL 40

Assisted Solution

by:RQuadling
RQuadling earned 50 total points
ID: 6993994
I thought that if you include a file via http from a server that is running PHP, you will get the executed results, rather than the PHP code?

Unless you have a file-system level access to the PHP files, you will either need to FTP them (yuck and probably useless) or use some other method. Does Samba help in this respect?

I was thinking of some sort of proxy-ing technique but I can't see how you can pass around the sort of data required between different servers.

Richard.

0
 
LVL 8

Expert Comment

by:us111
ID: 6994015
the other solution is to put the php code into a database,
then to extract the content from another server and to use the eval PHP function
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Preface This is the third article about the EE Collaborative Login Project. A Better Website Login System (http://www.experts-exchange.com/A_2902.html) introduces the Login System and shows how to implement a login page. The EE Collaborative Logi…
What is Node.js? Node.js is a server side scripting language much like PHP or ASP but is used to implement the complete package of HTTP webserver and application framework. The difference is that Node.js’s execution engine is asynchronous and event…
Viewers will learn about arithmetic and Boolean expressions in Java and the logical operators used to create Boolean expressions. We will cover the symbols used for arithmetic expressions and define each logical operator and how to use them in Boole…
Viewers will learn one way to get user input in Java. Introduce the Scanner object: Declare the variable that stores the user input: An example prompting the user for input: Methods you need to invoke in order to properly get  user input:

919 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

19 Experts available now in Live!

Get 1:1 Help Now