Jump to content

Leaderboard

Popular Content

Showing content with the highest reputation on 02/09/2022 in all areas

  1. Doing my digging and it appears this is chapter 4. Code from the sample: <?php Require_once("e10dog.php"); $lab = new Dog; // ------------------------------Set Properties-------------------------- $dog_error_message = $lab->set_dog_name('Fred'); print $dog_error_message == TRUE ? 'Name update successful<br/>' : 'Name update not successful<br/>'; Note the lack of 'bool' before $dog_error_message. I'm not trying to be a jackass here, but when you're learning a language you have to read the tutorials completely, follow them accurately, and listen to the people who know what they're talking about when they try to help with any confusion.
    1 point
  2. But in the code you've posted, you don't have a class. You can type method/function parameters and class properties, but as far as I've found trying to type variables in the global namespace doesn't work even in 8.0. What book are you using?
    1 point
  3. Unless they provide a way to revoke an access token, the only thing you can do is make sure the user is logged out of your system - you simply can't log someone out of some other website (not unless you can find an security weakness in their site to do so). But a secure OAuth login prompt should not have the side effect of signing the user into that site in the first place... This isn't just an issue for your two sites: anyone on a shared computer needs to know that if they log into anything, be that Google or Facebook or Amazon, then they have to log out again before they leave. I don't know all the details of what's going on but it doesn't sound like there's anything you can do.
    1 point
This leaderboard is set to New York/GMT-04:00
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.