How to use remote php interpreter in local php code

I have remote server with php. But i dont have php interpreter in local.

I configured remote PHP interpreter in PHPstorm.And try to run local php code with php remote interpreter.

But i got the below. Remote PHP interpreter is configured. But why asked to select local php interpreter.

 

Is it possible to use Remote PHP interpreter in local php code?

Plz help me to solve this.

Thanks in advance

 

 

 

 

1

You cannot use the built-in web server with a remote interpreter.
Please set up a deployment configuration to copy your code to the remote server:
https://confluence.jetbrains.com/display/PhpStorm/Deployments+in+PhpStorm

0
Avatar
Permanently deleted user

Hello,

Deployment configuration is also needed to configure the mappings between the local code and remote code: <https://confluence.jetbrains.com/display/PhpStorm/Working+with+Remote+PHP+Interpreters+in+PhpStorm>.

Due to PHP server-side nature, we can't use remote interpreter to work with local code just as we can't use local interpreter to run the remote files.

So it might be easier to install a local PHP interpreter to work with a local code. For example WAMP/LAMPP/XAMPP is a solution that works for all cases of local work and we also have guides for configuring this with PhpStorm:

* https://confluence.jetbrains.com/display/PhpStorm/Installing+and+Configuring+MAMP+with+PhpStorm+IDE

* https://confluence.jetbrains.com/display/PhpStorm/Installing+and+Configuring+XAMPP+with+PhpStorm+IDE

0
Avatar
Permanently deleted user

Thanks Eugene Morozov & Vladimir Luchansky for your  reply.

 

So  We cannt use remote interpreter to work with local code.

 

 

0

请先登录再写评论。