Help with PHP

Hi alls,
I’m new in php.
I’m building a small Flex app that uses HttpRequest to ask for data from a php page which is located in webserver.
This process has these steps:

  1. Flex’s app sends HttpRequest asking for data to a php page : done
  2. php page (located in webserver) receives request and retrieve data from mySQL db : done
  3. php page response data … : stuck

Can anyone help me with the “response for a HttpRequest” in php? can we get the request 's url from $_REQUEST?
Any help would be appriciated.

Best regards,
MNS

Thank guys.
Its working now.

Best regards,
MNS

Investigate the $_SERVER superglobal variable. It will contain the request’s URL.
I think it’s $_SERVER[‘REQUEST_URI’].

Hi maingaosuong,
you can do this to get full url in php.


echo "http://".$_SERVER['HTTP_HOST'].$_SERVER['REQUEST_URI'];