PHP Restful services


I am trying to run a simple RESTful client and server in C9.
This is working code on my desktop.

I am confused with what I need to put in as URL for curl() statement.
$url = “$name”;

Directory structure is as follows:
----------- PHP_Study
--------------------------- WebServices
--------------------------------------------- Client

When I call from Clinet/index.php, I am getting “File not found” error.

What is the URL path?

Thanks in advance.