Loading...
Logo
Processing Forum
First, love the book, the software, and want to name my firstborn after Daniel Sauter!  (hope it's not a girl - Danella?)

Now to the point:  I am working with code adapted from the Device Locator example on page 87 which involves communications with a server using the loadStrings(url) function.  Basically what happens is that when the loadStrings(url) function runs, the server does not execute the php script from page 344, preferring instead to send the php script contents.  I know this because the "Last Server Message:" printed is "<?", which is the first line of the php script.  

The server is a rented Mac mini and I have full access to the machine.  I purchased and installed Server.app from our friends at Apple and have been using that to administer the server's Apache program.  I can provide code snippets of how I have used the Device Locator code in my code upon request.  

I think I will try running the example itself next, though I expect the same results - we shall see!  Any help will be greatly appreciated.  


Replies(4)

I ran the DeviceLocator.pde example just now and it seems to work with just one phone, will test it with another phone when my friend visits later today.  The server message is blank and there are no files saved in the server's directory.  The text of the book says that the php script writes one file per phone, so something is wrong here.  


try starting your php script with <?php instead of <? 
Yes!  Thank you a thousand times!  You have helped bring an awesome Android game into existence.  Treat yourself to something nice today!  :)


Hi, i bought the ebook at pragprog.com. There is a forum for the book:  http://forums.pragprog.com/forums/209