Jump to content

dc2000

New Members
  • Posts

    6
  • Joined

  • Last visited

Everything posted by dc2000

  1. @dalecosp oh, crap. Most of my MySql queries are done with mysql_* calls, similar to this simplified version: $link = @mysql_connect($host, $user, $pass); @mysql_select_db($DBNAME); $result = @mysql_query($query, $link); So the entire site will not work. So what am I supposed to use instead? @cyberRobot As for your other guys' suggestions, sure, I can probably do all that. The question is why? Why do I need to do all this on a perfectly working website, like if I had nothing else going on in my life!? Just makes me so mad.
  2. Man, that's a lot of work. Why are they phasing out php 5.6? I don't use any third party plugins there to be subjected to any old bugs in them.
  3. Thanks. That's what I was afraid of. They'll switch my website and then I'll have to fight with a non-working live version trying to fix it. Any idea how to set up a test environment? The problem is that I'm on Windows and the web hosting company uses Linux (or FreeBSD) if I'm not mistaken.
  4. Hi everyone: I have a custom website that was written using PHP 5. It is currently hosted on DreamHost under PHP v.5.6. Since about last month they started pushing me to convert to PHP 7.X. So today they sent me an email that they will automatically convert it to PHP 7.2 on Nov. 18. Thus my question. How different are those versions? I wasn't using any fancy classes or anything like that. There's probably only a library for integration with PayPal and one for SendinBlue. But they are not mine. PS. Also do you know if there's a way to test it such conversion from 5.6 to v.7.2. I don't want to perform all work on a live website.
  5. Thank you, redarrow, but what you did - you hardcoded the day for this year. As you can imagine the 4th Thursday in November falls on different days.
  6. Hi everyone: I'm new to this forum, so please bear with me. I'm trying to write a small script to determine US holidays and change the site logo accordingly (pretty much like Google does). The problem happens with some US holidays, like Thanksgiving, that occurs on the 4th Thursday in November. How can I compute that? Here's my code snippet so far: $tm = time(); $month = int(date("n", $tm)); $day = int(date("j", $tm)); $weekday = int(date("w", $tm)); if($month == 11) { //Month of November //Now I have to see if it is 4th Thursday of the month??? }
×
×
  • 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.