Jump to content

tbare

Members
  • Posts

    198
  • Joined

  • Last visited

About tbare

  • Birthday 06/18/1983

Contact Methods

  • Website URL
    http://www.tbare.com

Profile Information

  • Gender
    Male
  • Location
    Lacon, Illinois

tbare's Achievements

Member

Member (2/5)

1

Reputation

  1. haha... yeah... I'm American, and still don't appreciate the date format we use here...
  2. in case you're still fighting it - here's what I came up with. $lastdateofthemonth = date("Y-m-t"); $lastworkingday = date('l', strtotime($lastdateofthemonth)); if($lastworkingday == "Saturday") { $newdate = strtotime ('-1 day', strtotime($lastdateofthemonth)); $lastworkingday = date ('Y-m-j', $newdate); } elseif($lastworkingday == "Sunday") { $newdate = strtotime ('-2 day', strtotime($lastdateofthemonth)); $lastworkingday = date ( 'Y-m-j' , $newdate ); } echo date('l', strtotime($lastworkingday))." ".$lastworkingday; That should get you what you're after... Good luck!
  3. like was stated, relevant code will help, but to append, you could always use .= $_SESSION['GORB']['message'] = ""; $_SESSION['GORB']['message'] .= "First name wrong<br/>"; $_SESSION['GORB']['message'] .= "Last name wrong<br/>"; EDIT: --but scootstah's answer below is better
  4. I'd also say be careful for holidays - if one falls on a friday, you'll have to figure for that, too (if you need to)...
  5. try changing it to $lastdateofthemonth = date("m/t/y"); That gets your code to return Saturday -- then you your If statements to get what you need.
  6. You'll still have to use the: if(isset($focu)) { echo $focu; } because you still need to check if it's set
  7. Yeah -- it is a little less ugly, but i was going with what heshan's comfortable with
  8. EDITING BECAUSE I Misread your column names... yeah -- basically, your IF statement is hitting one of the 3, not all 3, so, if it's "father", mname, and gname is not being set. what you can do rather than: <?php if($fname!=null){ ?> checked="checked" <?php }?> onclick="father()" /> is: <?php if(isset($fname)){ ?> checked="checked" <?php }?> onclick="father()" /> etc...
  9. yeah -- but i can specify a different anonymous user on a single file in IIS to be different than all of the other files for the site... (what you say? microsoft did a good thing?) I see where you're going with that, though.
  10. curl may work... but i honestly don't think it'd execute any faster than system, exec, or passthru....
  11. nice find! and that sucks... alright - what's your thought on setting a single file (that the user never sees - strictly running the exe, using ob_start and ob_end_flush, then using header() to forward to the results page) as admin ... i don't like it, but i don't see another option now.
  12. I've tried passthru and exec ... same result with both (as i would have expected...) thanks though.
  13. there's nothing to do while it's processing. the new info (added from the exe) has to be there to do what happens next... :-/
  14. unfortunately, that's not going to be too much help - the process in and of itself isn't supposed to take this long, and it's not when the domain administrator is executing the php script... only when another user is... Thanks for the thought though! i'm welcome to as many other thoughts as people can come up with...
×
×
  • 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.