access local html page through "file:///"
I installed LAMP
and I want to use ajax to write some client information into mysql server on the server side.
I want to test a anonymous browser.
however, with this browser, pages like "http://localhost/test.html" can't be accessed because the browser can't establish a connection to the server at localhost.
but it can access the page through: file:///var/www/html/test.html
however, my intention is to use ajax to write some client information into mysql server on the server side, so through file:/// can't achieve this goal,
are there any potential solutions for this?
If you can't connect to your page by using localhost it sounds very much like your web server isn't running.
What happens when you try and (re)start Apache from the command line? Does it spit out any error messages?
it is running, but the browser has some settings that disallow it to access localhost
I'm just wondering whether it is possible to log client information to the server sql database if I use "file:///"
> it is running, but the browser has some settings that disallow it to access localhost
Really? How does that happen? Are you using a computer that has certain settings restricted beyond your control? Every browser that I've ever used can connect to localhost / 127.0.0.1 - with the possible exceptions of Internet Explorer and Safari, but given that they don't run on Linux I haven't used them for aeons.
> I'm just wondering whether it is possible to log client information to the server sql database if I use "file:///"
Otherwise, you'll be prone to finding that certain things don't work exactly as you expected when your work is set to go live.
I just want to use youtube API to get some statistics information and log these information
however, I'm investigating Tor browser bundle and this browser can't access localhost
I don't want that the webserver locates in another machine, because I don't want the delay between the client and the server (it can be several seconds due to Tor browser routing)
Oh, I see.
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)