PDA

View Full Version : Under same domain but different server


poyor7
07-13-2006, 03:33 AM
Hi,

I would like to know:

Scenario :
I've two server different OS A:linux and B:NT under same external domain.I've something that from A to be retrieve by B.
Example:
I've a form let say i name it writeppt.php and in the form something like this
Snippet:
File from Server B,

<?
session_start();
if( (!isset($_SESSION['userid'])) || (!isset($_SESSION['pass'])) ) {
include_once("log.php");
exit;
}
//<!-- start declare variables -->
include ("csv_crampler.inc.php");
$csv = new csv_handler("../apply.csv")


So, my question is the file in include syntax apply.csv is in Server A so how do i map the path so it can be
retrieve?

Regards
poyor7

raf
07-13-2006, 08:44 AM
i don't think you can use a relative path to refer to a file on another machine. can you refer to it by it's url (--> does your php config allows this)
i also think you'll need to show us the code for the csv_handler() so that we can see what functions it uses to get the filecontent.