0
How can I use a project I created in PHP to be used only in localhost also on my tablet.
Make the connection between them?
0
How can I use a project I created in PHP to be used only in localhost also on my tablet.
Make the connection between them?
2
If you are on the same network, for example, your machine and tablet connected on the same wifi, just by the browser or the app you made (if that’s the case) point to the machine’s IP with PHP, as if it were the server.
If in your browser you type: http://localhost/meuapp/pagina-legal.php
On the tablet you call so: http://000.000. 0.00/meuapp/webpage.php (0 being your IP)
Something like http://192.168. 0.15/meuapp/page-legal.php
Great, just to complement, you can find your local IP using the ipconfig command on CMD (if you use Windows), or ifconfig on the terminal (if you use Linux/MAC).
@Neubeoliveira I will have to put the port also because only so it didn’t work , or I have to make some connection from the tablet to the pc that is the server ?
@allanaraujo depends on how you set up your environment, basically it is only replace localhost by ip itself, even if the application in php was on a different port probably Voce would have to do something like this: http://localhost:8080/meuapp/page-legal.php for example. What exactly is wrong?
Browser other questions tagged php
You are not signed in. Login or sign up in order to post.
You want to access through the tablet browser an application that is in any machine without external access, this?
– Jéf Bueno
What is your operating system? How have you set up your environment, used programs like WAMP, MAMP, etc... or did you do a root installation? Has possibility to connect the tablet on the same network as the computer?
– Filipe Moraes
If you are going to connect between 2 machines, you are no longer localhost. Better [Edit] and make it clearer.
– Bacco
@Filipemoraes is wampserver my system will only be used on localhost , but I want to connect my tablet to localhost , but thank you .
– allan araujo