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

Recommended Answers

All 6 Replies

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.

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

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

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!

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

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.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.