Ok guys
I own up I got caught by the teacher and got sent to the headmaster
I have added a dataprovider and can use the show the time.
In my delphi php app I use:
function Button1Click($sender, $params)
{
$message = '
http://80.5.54.130:8080/time';$reply = file_get_contents($message);
$this->Edit1->Text = $reply;
}
This displays the time in the edit box as expected.
I now need to display an image.
I use :
procedure TForm11.RtcDataProvider1DataReceived(Sender: TRtcConnection);
begin
with Sender as TRtcDataserver do
if Request.Complete then
write ('<html><head><title></title></head> <body> <img src="62.jpg"></body></html>');
end;
and in php:
function Button1Click($sender, $params)
{
$message = '
http://80.5.54.130:8080/time';$reply = file_get_contents($message);
$this->Image1->ImageSource = $reply;
}
This results in a greyed out image box when I right click I get
Forbidden
You don't have permission to access /<html><head><title></title></head> <body>Â <img src= on this server.
1. Is this the correct approach. Ie the goal is to be able to use the same server to query the database and return text & images for both IOS and php apps.
2. Where do I set the permissions for the server app.
Cheers
SteveW