Jump to content

Masna

Staff Alumni
  • Posts

    288
  • Joined

  • Last visited

About Masna

  • Birthday 10/12/1990

Profile Information

  • Gender
    Male
  • Location
    New York

Masna's Achievements

Member

Member (2/5)

0

Reputation

  1. $wanted_values = array(); foreach($colors as $towns){ $hello = explode(" ", $towns); $wanted_values[] = $hello[1]; } //now use $wanted_values however you want - [0] -> "hello", [1] -> "this", etc.
  2. Once anything is outputted by a php page, php flushes the buffered implied headers (auto-generated unless explicitly defined otherwise, things like Content-Type) and starts generating a response for the HTTP request. Because of echo "anything";, you are forcing this to happen. Thus, any headers you try to set thereafter (however you do it, including using the header() function) are rendered useless. It'd be like trying to set an accept encoding in your POST body - it just makes no sense.
  3. I tend to agree with this. Its ease-of-use is both a blessing and a curse for the Internet as a whole.
  4. Lol yeah that was my first though. Sometimes, just sometimes, I can't tell the difference between a troll and an extremely ignorant person. No offense OP, no offense.
  5. I come across lots and lots of criticism across the net towards PHP and many of its axioms as well as implementations. How do you all feel about this? Do we agree that PHP, overall, is not a solid, dependable language? Do we disagree and argue that, with the right set of tools and knowledge, PHP is as good a language as any? Some examples of the hate I often see are on phpwtf.org. Although essentially all of it is avoidable, there are some things worth discussing (I think).
  6. It's AJAX just the same. A function is repeatedly called in the background that utilizes AJAX to check for updates (stuff that wasn't there the last time the function was called). It's probably something like every 2 or 3 seconds it's called (or maybe every second - I don't know just how much Facebook servers can handle but it's probably a lot more than I imagine).
×
×
  • 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.