Problems with WampServer

1

I'm learning to tinker with WampServer yet, but I already have a deadlock. In my notebook is installed WampServer and a web page under construction.

To test, I use the notebook's browser and my phone. However, when I write to the computer, for example, localhost / project / index.php the code works perfectly, but in the mobile the error. You can not find the address you entered, and both are on the same network.

If you type in the notebook url, for example, 192.168.10.100/project/index.php also opens but certain parts of the code do not work, such as the event of opening the notebook's camera. In mobile the behavior is identical, it also does not open the camera.

Does anyone know why this occurs and if there is any way that I can access the same device on both devices without these errors?

    
asked by anonymous 01.02.2017 / 05:32

1 answer

0

You should be using absolute references to features, such as links or images. You should use relative references.

Example of an absolute link:

<a href="http://localhost/projeto/index.php">Link</a>

Example of a relative link:

<a href="projeto/index.php">Link</a> ou ainda <a href="index.php">Link</a>

Depending on where you are referencing it.

I would recommend checking what is coming out in the source code, or checking the Developer Tools tab in Chrome from another computer to check where resources that are not opening are pointing.

    
01.02.2017 / 05:49