Hello
everyone,
today I will
teach you how you can make your mobile phone as a local host server. Through
this method you will able to run your html, javaScript, php code in you phone.
This can be done by the help of one application that is Server for PHP its very
very good app. This app was available on the google store but from the last
year it hide from the google play store and it is hard to find this app on
google. So, you can download this app from the link below.
Note: this
method only works for android user only.
how to run html code in mobile ?
Step 1. First of all to do this all you need to
download an application Server for PHP. Download link given below.
Note : Every
given steps are extremely important. Remember you are going to setup local
host.
Step 2. Open the app. You need to grant the permission to make folder and access yours files.
Step 3. After
you have to click on the 7.3.3 (build #0), 22MB. Its predownloaded version.
Step 4.
After that wait for few seconds to complete the installation.
Step 5.
After that you will see the main interface of the app where you can manage all
features of the app.
Step 6. In
the bottom of the app you will see the button to start server. Before starting
the server you will need to know some important things.
(i) On
the top you will see Server Version & build you can manage your PHP version.
(ii) Second
is Data & Logs from there you have to select your source code folder.
(iii) Third
is Server address & port from there you can select your IP address or URL.
Step 7. Go to
file manager choose folder name WWW the go to PUBLIC here we see a file name index.php just delete
it.
Step 8. Now pest
your own html, JS, Css , PHP file in the public folder.
Step 9. Now
open Server for PHP app. Click on start server. ( grant a permission to run the
app in background)
Step 10. Click
on 0.0.0.0:8080 and select any web browser OR directly enter http://0.0.0.0:8080 in address bar of any web
Browser and hit enter.
Problem you must face:
(a)
Not
Found The request resource / was not found on this server.
Solution : Go to file manager rename your main page or home
page file as index.html and refresh the page. if you still get the error then go
to Server for PHP app the from Data & logs click on CHANGE select the
folder WWW.
(b) If you use chrome browser to see the output then after Refresh you will see you page got OFFLINE and you will not be able to see the refresh page.
Solution : just change your web Browser use Opera mini. You can
refresh your page any time.
Click to download the app : Server for PHP























Post a Comment