Problems with Wampserver

Asked

Viewed 223 times

1

I’m learning to mess with the WampServer Still, but I’m already at an impasse. On my laptop is installed the WampServer and a web page under construction.

To test, I use the notebook browser and my mobile phone. However, when I write on the computer, for example, localhost/project/index.php the code works perfectly, but in the error cell. It does not find the address typed, and both are in 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, as event to open the notebook camera. In cell phone the behavior is identical, also does not open the camera.

Can anyone explain to me why this occurs and if there is any way that I can access in the same way in the 2 devices without these errors?

  • On mobile, have you tried accessing the IP address of the server? Probably 192.168.10.100/project/index.php

  • I believe that it should not be Wamp problem, but permission to access the camera from an ip other than the localhost. I hope someone answers your question because now I’m curious... :)

1 answer

0

You must be using absolute references to resources such as links or images. You must 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 generated source code, or even checking the "Network" tab of the "Developer Tools" in Chrome from another computer, to check where the resources that are not opening are pointing.

Browser other questions tagged

You are not signed in. Login or sign up in order to post.