/    Sign up×
Community /Pin to ProfileBookmark

Under same domain but different server

Hi,

I would like to know:

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

[code=php]
<?
session_start();
if( (!isset($_SESSION[‘userid’])) || (!isset($_SESSION[‘pass’])) ) {
include_once(“log.php”);
exit;
}
//<!– start declare variables –>
include (“csv_crampler.inc.php”);
[b]$csv = new csv_handler(“../apply.csv”)[/b]
[/code]

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

Regards
poyor7

to post a comment
PHP

1 Comments(s)

Copy linkTweet thisAlerts:
@hyperliskJul 13.2006 — you could just do
[code=php]
new csv_handler("http://www.yoursite.com/path/to/apply.csv");
[/code]

Or just go the simpler way and copy apply.csv over to Server B...
×

Success!

Help @poyor7 spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 5.17,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @AriseFacilitySolutions09,
tipped: article
amount: 1000 SATS,

tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,
)...