Jump to content

trq

Staff Alumni
  • Posts

    30,999
  • Joined

  • Last visited

  • Days Won

    26

Everything posted by trq

  1. Three things. 1) Does the color you have chosen to post your code in really seem helpful? No. 2) The topic of your question is not related to PHP. 3) Your post seems completely unrelated to your subject. Try again.
  2. Sorry, you've provided us with way too much information for us to be able to help.
  3. No, you need two network interfaces for that.
  4. I don't think the installer is the recommended approach to use on Windows. I would follow this: http://www.php.net/manual/en/install.windows.manual.php Having said that, is there a particular reason your setting this up on Windows? Will you be deploying to a Windows environment? I would always recommend developing in the same environment you are planning on deploying too. Vagrant is an great option for building a decent Linux based development environment.
  5. What do you mean by file types?
  6. Your issue has NOTHING AT ALL to do with the iPad. It also has nothing at all to do with MySQL. I would suggest you post your actual question with a decent description of your issues in the appropriate board.
  7. Google and Gmail are two different sites. Most successful websites have moved entirely to https. Looks at facebook, twitter and github. As kicken said, "SSL is not going to significantly slow down your site" & "End users like seeing that SSL is enabled and their traffic is encrypted. Enabling it always is going to make users feel safer on your site."
  8. Sorry, but I don't see how the ffmpeg clin program is at all PHP related.
  9. Why would you want some content served with https and some with http? Just serve everything via https.
  10. Do you understand that PHP is NOT running on your ipad?
  11. Google returned 444000 results for me searching the term "apache redirect all traffic to https". Are none of these useful?
  12. What gives you the impression it is returning false?
  13. PHP executes on the server. Is the server installed on the iPad?
  14. Bash variables do not have the $ prepended when they are being set. eg; read $to should be read to
  15. trq

    Admin User

    It's pretty simple logic. When you log your users in, save their 'status' in the $_SESSION array. Then, just check that to see if they are an admin or not. if (isset($_SESSION['status']) && $_SESSION['status'] == 1) { // you have an admin } else { // you have a normal user }
  16. trq

    Admin User

    Where exactly are you stuck? This is pretty simple checking for specific conditions.
  17. The explanation of your problem lakes clarity. What exactly is your issue?
  18. You are missing the $ off the variable $loop_count You really should have error reporting enabled when developing.
  19. Where exactly are you stuck? There is no PHP in that mess of markup. Is your question even on topic?
  20. Thats what console.log() is for.
  21. ps: document.write is so 1995.
  22. No. You need to use php. <script> <?php for ($i=0; $i < 61; $i++) { echo "var h[{$i}] = '{$array[$i]['h']}';"; echo "var h1[{$i}] = '{$array[$i]['h1']}';"; echo "var hs[{$i}] = '{$array[$i]['hs']}';"; } ?> </script>
  23. PHP is evaluated on the server before your JavaScript even exists on the browser.
  24. I'm not sure where you are getting your information from. Something like 80% of the webs top 20% of websites are powered by Wordpress. Having said that, Wordpress's code base is no reflection on its usage. It's yuk at best.
×
×
  • 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.