Qqwy Posted September 6, 2013 Share Posted September 6, 2013 I have started to use Howler for sounds in my game. However, Chrome does not like to look up sounds on the computer, saying that 'XMLHTTPrequests are only supported for the http protocol'. Thus I started to upload my code to an FTP server each time I made a change. Of course this is quite inefficient because of all the waiting time and the easy confusion between files(local copy vs. remote copy) so I was wondering: How do you cope with this problem? Quote Link to comment Share on other sites More sharing options...
Rezoner Posted September 6, 2013 Share Posted September 6, 2013 Install an HTTP server on your local machine. This bundle contains Apache+PHP and is pretty straightforward (and popular) http://www.apachefriends.org/en/xampp.html Quote Link to comment Share on other sites More sharing options...
Paul-Andre Posted September 6, 2013 Share Posted September 6, 2013 The simplest way, if you have python installed, just go to a console in the directory of your files and do: python -m SimpleHTTPServer It will open a server on your computer, most likely at http://localhost:8000/ Quote Link to comment Share on other sites More sharing options...
Gio Posted September 7, 2013 Share Posted September 7, 2013 Possibly even simpler - if you're on windows 8, you already have a web server on your machine (IIS), you only have to activate it from the control panel, and put your files in c:\inetpub\wwwroot. YellowAfterlife 1 Quote Link to comment Share on other sites More sharing options...
alex_h Posted September 10, 2013 Share Posted September 10, 2013 Is there an OSX specific way to configure my local machine as a web server? Or will I need to install either apache or python as mentioned above?I've just started a new job and it has involved switching to mac, leaving me with a lot to catch up on! [Edit] oh, it seems I already do have python installed! Like I say, I have a lot to learn about using a mac... Quote Link to comment Share on other sites More sharing options...
MikeHart Posted September 10, 2013 Share Posted September 10, 2013 On OSX, just get XAMPP. Quote Link to comment Share on other sites More sharing options...
Paul-Andre Posted September 13, 2013 Share Posted September 13, 2013 Python is installed by default on Mac OS X. You don't need to set up a whole server. Just use the command I posted higher.It's also probably installed on Ubuntu. Quote Link to comment Share on other sites More sharing options...
alex_h Posted September 14, 2013 Share Posted September 14, 2013 Python is installed by default on Mac OS X. Yeah, I realised that now. I've been using the command you posted all week, works like a charm - thanks a lot! Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.