+ Reply to Thread
Results 1 to 3 of 3

Thread: How does facebook do this?

  1. #1
    diabolo's Avatar
    diabolo is offline Community Advocate diabolo is on a distinguished road
    Join Date
    Nov 2007
    Location
    Jersey Shore
    Posts
    1,683

    How does facebook do this?

    http://www.facebook.com/inbox/?compose&ref=mb

    how does FB pass "compose" in php?

    because the variable compose is not set to anything.

  2. #2
    misson is offline x10 Spammer misson is a jewel in the rough
    Join Date
    Mar 2008
    Location
    Libertatia
    Posts
    2,506

    Re: How does facebook do this?

    Quote Originally Posted by diabolo View Post
    because the variable compose is not set to anything.
    If you mean $compose, it's not set unless register_globals is on. If you mean $_REQUEST['compose'] and $_GET['compose'], they're set to the empty string. Use isset() or array_keys($_REQUEST) to make the 'compose' input parameter useful.
    PHP Code:
    if (isset($_REQUEST['compose'])) {
      ...

    Be sure to read all pages linked in this post; they have further information that should prove useful. When asking for help, make sure you follow Eric Raymond's and Jon Skeet's guidelines for prompt, accurate responses. Please answer any questions I ask; they're not rhetorical (probably). Any posted code is intended as illustrative example, rather than a solution to your problem to be copied without alteration. Study it to learn how to write your own solution.
    Misson, not Mission.

  3. #3
    diabolo's Avatar
    diabolo is offline Community Advocate diabolo is on a distinguished road
    Join Date
    Nov 2007
    Location
    Jersey Shore
    Posts
    1,683

    Re: How does facebook do this?

    thank you mission
    that is exactly the kind of answer i needed

    may be closed now.

+ Reply to Thread

Similar Threads

  1. facebook apps
    By whitebus in forum Programming Help
    Replies: 6
    Last Post: 03-25-2009, 02:17 PM
  2. Anyone here uses Facebook?
    By TPI007 in forum Off Topic
    Replies: 5
    Last Post: 02-22-2009, 06:21 PM
  3. Review my Facebook Connectable Gaming Community
    By TPI007 in forum Review My Site
    Replies: 0
    Last Post: 02-22-2009, 05:17 PM
  4. Facebook blacklists x10hosting domains!?
    By hi_cannon in forum Off Topic
    Replies: 8
    Last Post: 10-10-2008, 06:43 PM
  5. Your Facebook
    By Brandon in forum Off Topic
    Replies: 4
    Last Post: 11-28-2007, 08:59 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
x10hosting free hosting for the masses
dedicated servers