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

Problems with the Windows version of XAMPP, questions, comments, and anything related.

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

Postby jomla » 18. November 2016 20:36

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
jomla
 
Posts: 10
Joined: 18. November 2016 20:27
XAMPP version: 3.2.2
Operating System: Windows 10

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

Postby Nobbie » 18. November 2016 21:45

Its not possible.
Nobbie
 
Posts: 13183
Joined: 09. March 2008 13:04

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

Postby jomla » 18. November 2016 21:55

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
^>
jomla
 
Posts: 10
Joined: 18. November 2016 20:27
XAMPP version: 3.2.2
Operating System: Windows 10

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

Postby Nobbie » 18. November 2016 22:03

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.
Nobbie
 
Posts: 13183
Joined: 09. March 2008 13:04


Return to XAMPP for Windows

Who is online

Users browsing this forum: No registered users and 66 guests