Announcement

Collapse
No announcement yet.

strange problem - date("Y m d",......

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • strange problem - date("Y m d",......

    Hi,

    I'm running the same scrpt on two different servers. It works on one but not the other. The line that won't work is this (everytime I try to use this line it returns a 'Cannot find server or DNS Error'.):


    PHP Code:
    $expirationtime date("Y m d",time () + $expsec); 

    I'm able to print out $expsec so I know that's not the problem

    PHP Code:
    $expsec = ($membershiplength 86400); 

    The server the script works on is PHP Version 4.0.3pl1 while the server it doesn't work on is PHP Version 4.0.1pl2

    Any possible ideas why it isn't working and what is a work around?

    Thanks,

    Tim
    Five Star Review Script - Add reviews to your website!
    Mixed Martial Arts - Houston MMA Training
    Women's Self-Defense - Courses and DVDs available

  • #2
    No need to reply...the problem has been resolved.

    Thanks,

    Tim
    Five Star Review Script - Add reviews to your website!
    Mixed Martial Arts - Houston MMA Training
    Women's Self-Defense - Courses and DVDs available

    Comment


    • #3
      Don't keep us in suspence, what was it?

      Comment


      • #4
        Hi,

        It is a script I wrote that interfaces with ibill.com billing company. For recurring memberships, the $membershiplength is set to a large number of days so that the user is not expired. For this value I had it set to 99999. When I set the $membershiplength to 999 it worked fine. The 99999 days setting worked fine on the first server but not the second. Not sure exactly why, but that was the problem.

        Tim
        Five Star Review Script - Add reviews to your website!
        Mixed Martial Arts - Houston MMA Training
        Women's Self-Defense - Courses and DVDs available

        Comment


        • #5
          Was one server a win32 server?

          Comment


          • #6
            No, the server it wouldn't work on was running:

            FreeBSD 3.5-RELEASE #1

            Tim
            Five Star Review Script - Add reviews to your website!
            Mixed Martial Arts - Houston MMA Training
            Women's Self-Defense - Courses and DVDs available

            Comment

            widgetinstance 262 (Related Topics) skipped due to lack of content & hide_module_if_empty option.
            Working...
            X