Page 1 of 1

Can I run a remote php fil from xampp insalled at home

PostPosted: 18. November 2016 20:36
by jomla
Hi at all,
I installed xampp into my local PC.
I need to run a php script stored into my website www.mysite.com/myscript.php from into xampp htdocs and remain into htdocs to continue with an other script stored locally into my local server.
If it is possible: HOW?
Thankyou

Re: Can I run a remote php fil from xampp insalled at home

PostPosted: 18. November 2016 21:45
by Nobbie
Its not possible.

Re: Can I run a remote php fil from xampp insalled at home

PostPosted: 18. November 2016 21:55
by jomla
By me is possible with Header(location............................... into the script runned into xampp but I cannot return into xampp
Example:
I run this script.php that is into htdocs of xampp
<?php
header('location:www.nysite.com/myscript.php);
More code to execute when myscript.php finished to work
^>

Re: Can I run a remote php fil from xampp insalled at home

PostPosted: 18. November 2016 22:03
by Nobbie
jomla wrote:but I cannot return into xampp


Exactly.

But maybe your description is wrong: you can of course run a remote PHP script, but you cannot run with your local PHP interpreter. With the URL Wrapper (which usually is active) you can simply run file operations on remote PHP scripts (which are executed and the output is redirected to the calling script). But you cannot execute it with Xampps PHP.