Jump to content

scootstah

Staff Alumni
  • Posts

    3,858
  • Joined

  • Last visited

  • Days Won

    29

Everything posted by scootstah

  1. They still rotate - at least in my JSFiddle I linked.
  2. Who is your web host? Refer to the post that Psycho referenced to see if that applies to you as well.
  3. I would hope to hell there is not still webhosts running PHP4. But I know I'm probably wrong...
  4. Who is your webhost? You're probably going to have to bring this up in a support request.
  5. What?
  6. Why are you going in and out of PHP tags on every line? That's completely unnecessary and makes your code very hard to follow. You can do that with date(). If you just have a date/time string instead of a UNIX timestamp, you can use strtotime() or the DateTime library to create one first.
  7. What is failing? What does goToBusinessIndex() do? Where is it defined?
  8. It shouldn't, but it might behave differently between versions. gzuncompress is for Zlib. You probably want gzdecode instead. EDIT: But either way the file you attached doesn't seem to be valid. The Linux gzip tools cannot view it either.
  9. The file you attached is not a valid gzip file. How did you create it?
  10. It would help if you post code and the error you're getting.
  11. Heyyyy you got a red badge. Is Zane drunk again?
  12. I'm not sure what the point of this post is, since there is clearly no question here. But for the record, I prefer to use MailCatcher for local development stuff. It's dead simple to setup and works great. All sent emails are captured in the same "inbox", which makes testing super easy.
  13. You need to modify this part to add additional items to $_SESSION: if (mysql_num_rows($query) == 1) { $row = mysql_fetch_assoc($query); $_SESSION['username'] = $row['username']; $_SESSION['userID'] = $row['userID']; $_SESSION['password'] = $row['password']; $_SESSION['loggedin'] = true; return true; }
  14. CodeAcademy is typically well-regarded, although I've never used it personally. The key is to find resources that were created/updated within the last two years. If you find a blog article from 2007, it's not going to even be worth it to read. PHP has changed substantially over the years, as has web development as a whole.
  15. So the PHP script you are calling must be returning an HTML table, and then you're adding that to <div id="txtHint"></div> with this line: document.getElementById("txtHint").innerHTML = xmlhttp.responseText;Is the code you posted the script that you're calling with AJAX?
  16. Can you elaborate a little please?
  17. You can't just make up element names. There is a formal spec of named elements that you may use. Aside from that, your two buttons are not side-by-side because they have very large margins. Fixed here: http://jsfiddle.net/LntLnky6/
  18. How are they stored? As a string like that?
  19. Oh, bummer. You can find more by just browsing lowendbox. DigitalOcean has a $5/month package, and they are a super solid company with excellent services. Or, you can find shared hosting for around $5/month as well from most of the big players.
  20. Yes. Then you'd be able to see the HTML on your screen. The other way is to write the response to a file, and then you'd have the raw response body. $results = file_get_contents($url); file_put_contents('response.txt', $results); json_decode() does not care about HTML.
  21. You can get webhosting for literally the price of coffee. For example here is a VPS that will run a small site for $15/year.
  22. You can either write to a file or use htmlspecialchars to display the raw HTML.
  23. Your framework repo needs some work. You need proper directory structure and namespacing on your classes. And you definitely need dependency injection, so that you don't have to do things like this: Check out Pimple.
  24. PHP 5.4 reached its end of life support this month. It will no longer receive security updates. 5.2 reached its end of life almost 5 years ago. It's time to upgrade man.
  25. What does "broken" mean?
×
×
  • 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.