it returns this
Is this an APP inventor issue. Can it run with localhost ??
I am looking at my phone at the moment, running an example app in companion, which is displaying a php file from my local server.
Check your work
You remain confused. Your AppInventor app cannot refer to the localhost of another machine, as "localhost".
You must use the ip address of that local machine with a server in order to return its served files to your webviewer, or to run php code through the web component
Is you phone/device on the same subnet ?
Is your local server available to any other device on your local network ?
Should I include htdocs ?
not on any network
How are you then testing, with a compiled app ?
If not on any network, then you will not be able to connect to any network services offered by any other local computers....
My phone and computer are on the same wifi
That is a network....
No-one knows, because you need to be more transparent about your operating environment...
- Is your php/mysql correctly setup on your host computer?
- Have you tested this?
- Can you access the host server from your mobile device ? (e.g. view a php web page)
Please provide as much detail as possible.
Try
http://192.168.1.5/molloy/molloyph.php
I tried to work with the online URL but it's not right. I need to get the localhost working.
Can you create a simple web page: index.htm and view it with the WebViewer component?