- 
                Notifications
    You must be signed in to change notification settings 
- Fork 216
Php greeter #259
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Php greeter #259
Conversation
| // Send a request to the remote object and get the response. | ||
| $greeting = $greeter->greet(get_current_user()); | ||
|  | ||
| echo "$greeting\n"; | 
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I assume that's the correct syntax. Please check.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes it is.
php test.php 
Hello, Jose
jose@studio rpm % cat test.php 
<?php
$greeting = "Hello, Jose";
echo "$greeting\n";
| require_once 'Ice.php'; | ||
| require_once 'Greeter.php'; | ||
|  | ||
| // Create an Ice communicator to initialize the Ice runtime. This communicator is destroyed automatically at the end of | 
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I verified the communicator is indeed destroyed even though there is no call to ->destroy
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| require_once 'Ice.php'; | ||
| require_once 'Greeter.php'; | ||
|  | ||
| // Create an Ice communicator to initialize the Ice runtime. This communicator is destroyed automatically at the end of | 
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| // Send a request to the remote object and get the response. | ||
| $greeting = $greeter->greet(get_current_user()); | ||
|  | ||
| echo "$greeting\n"; | 
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes it is.
php test.php 
Hello, Jose
jose@studio rpm % cat test.php 
<?php
$greeting = "Hello, Jose";
echo "$greeting\n";
We may want to add a second HTML version of this demo. Or maybe make "secure" HTML.