daydreamer Posted November 15, 2008 Share Posted November 15, 2008 I have two web servers, one linux, one windows. How do I run a script on the windows one, which then calls a function from a php script from the linux one? I want the function to execute on the linux machine, then return a string to the php script running on the windows server. I have read that including the file wont work, because they are different servers. How do I go about doing this? Thanks. Link to comment https://forums.phpfreaks.com/topic/132856-php-functions-from-another-server/ Share on other sites More sharing options...
ratcateme Posted November 15, 2008 Share Posted November 15, 2008 i think the only way really is to use a cURL request from the windows server to the linux server. but that will put your load time up as it has to make a HTTP request. Scott. Link to comment https://forums.phpfreaks.com/topic/132856-php-functions-from-another-server/#findComment-690945 Share on other sites More sharing options...
daydreamer Posted November 15, 2008 Author Share Posted November 15, 2008 yeh thats what i was thinking just after i posted. I dont think load time will be any problem as they are on a LAN. Link to comment https://forums.phpfreaks.com/topic/132856-php-functions-from-another-server/#findComment-690949 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.