0

Good day! Can I run PHP(in WAMP) scripts without internet connection? Replies are really appreciated.

3
Contributors
6
Replies
8
Views
7 Years
Discussion Span
Last Post by hielo
0

If you are asking if you can run local php scripts (scripts that do not fetch anything from a remote website), then yes. Simply open your browser to
http://localhost/yourScript.php

However, if your php script is doing some curl request to some remote server (like google for example), then no. You need an internet connection for your script to find/get that external resource.

0

thanks for the replies :) So there is no other way to run PHP script which fetches information from other page. thank u!

0

again, if the other page is hosted on an external server, then NO. You MUST have internet connection.

0

Hosted on an external server? I am using WAMP which means my server is my computer. So, does it mean that i can actually run my php-mysql script in my machine without internet connection? thank you!

0

Hosted on an external server? I am using WAMP which means my server is my computer. So, does it mean that i can actually run my php-mysql script in my machine without internet connection? thank you!

The meaning is, if all the pages and resources (like images et al) are found in local server then you can use it with no internet connection at all. Otherwise you need internet connection

0

Hosted on an external server? I am using WAMP which means my server is my computer. So, does it mean that i can actually run my php-mysql script in my machine without internet connection? thank you!

Yes. I already answered that question. You just need to use "localhost" as your primary domain - ex:
http://localhost/index.php

should show you the homepage of your site.

This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.