Jump to content
xisto Community
contactskn

I Want To Execute A .php Script From Other Server Please help its very urgent.

Recommended Posts

Dear friends I want to execute a file .php from other server.

Server a where the .php file is-

<?php    include_once "Counter.php";   $counter->incrementcounter();			   // increment counter?>


Server B from where the Server A's PHP file that is index.php is called 



<html><head><title>Sample</title></head><body><p></p><p> </p><!-- Start --><div align="center"><script language="javascript" src="http://forums.xisto.com/no_longer_exists/;-- End --></body></html>





This code is tested on the same server that is Server A. Its working perfectly the counter is incremented but when I am shifting the calling program to another server its not working that is the counter is not being incremented. 

Share this post


Link to post
Share on other sites

This looks like an AJAX solution might be required. Check out the Tutorials at w3schools.com.

Dear friend will you be able to provide me with a piece of code or give the link where I can find it. Thanks in advance. By the way the Server A described here is actually hosted through Xisto only. Is there any permission problem to access a file situated at a different server or some thing else please help me friends it is really urgent.

Share this post


Link to post
Share on other sites

Hi!

I would suggest that you avoid making a call to another server for each request. The reason is that if you were to make a request to another server for every request, the users would experience a considerable delay for each request. It may also cause problems when you have many users accessing the website simultaneously.

Would it be possible for you to move the counter and place it onto the same server as the index.php file?

Regards,
Nitin



Dear friends I want to execute a file .php from other server.
Server a where the .php file is-

<?php    include_once "Counter.php";   $counter->incrementcounter();			   // increment counter?>


Server B from where the Server A's PHP file that is index.php is called 



<html><head><title>Sample</title></head><body><p></p><p> </p><!-- Start --><div align="center"><script language="javascript" src="http://forums.xisto.com/no_longer_exists/;-- End --></body></html>





This code is tested on the same server that is Server A. Its working perfectly the counter is incremented but when I am shifting the calling program to another server its not working that is the counter is not being incremented. 

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×
×
  • Create New...

Important Information

Terms of Use | Privacy Policy | Guidelines | We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.