Jump to content

.josh

Staff Alumni
  • Posts

    14,780
  • Joined

  • Last visited

  • Days Won

    43

Everything posted by .josh

  1. are you specifying a cookie file for the target server to store its session cookie? http://www.php.net/manual/en/function.curl-setopt.php#57005
  2. what format is $date ? probably date does not recognize the format you are using.
  3. are you trying to login to something or just post data to something?
  4. bestbuy/geeksquad? anyways...even McJobs make you sign a non-compete, so more than likely something you signed did mention it. However...freelance work is kind of a big gray area. Especially if you're not officially invoicing anybody or reporting the $$ to Uncle Sam. You can ask your boss, but more than likely (s)he will default to the "safe" answer, which is inevitably "No". I personally would ask to see the paperwork yourself, get a copy of it, ask a lawyer if you can, post it on some forums and get some opinions if you can't, see what the general consensus is. But the reality here is you are just one dude making a quick buck vs. a huge company. The odds are overwhelmingly stacked in your favor that nobody is going to notice, especially if you don't go out advertising it to the world that you work for this company. And even if your employer did notice, more than likely they will probably just fire you, as it's probably not worth their time/effort to bother pursuing something farther than that... ...But that mostly hinges on how you are getting this business... are you directly undercutting your employer? As in "Hi, thanks for calling <employer>, this is hopelessX, how may I help you? Oh, you need an OS install? Well we charge $189, but I tell you what, I'll swing by and take care of that for $75, cash under the table" - see that will get you in trouble for sure.
  5. woo hoo check out my awesome photoshop skills [attachment deleted by admin]
  6. How about .... <?php
  7. probably a stupid question, but I assume when you say you have this: $_SESSION['city'] = "Miami"; $_SESSION['state'] = "Florida; you really have something more like this, right? $_SESSION['city'] = $_POST['city']; $_SESSION['state'] = $_POST['state']; because if you have the former...well you are using hardcoded values...
  8. looks like your table name is typoed. Also, in your mysql_result, for some reason you changed 0 to 10. that 2nd argument represents which array element (column). Since you are only querying for 1 column (the count), it needs to stay 0. Also, in your condition ,you are simply assigning a string to a variable, which will always be true. $query = "SELECT COUNT(*) FROM 'adccmembers'"; $number_of_users = mysql_result(mysql_query($query), 0); if ($number_of_users > 30) { $sorry = "<div id=\"warning-box\"><p class=\"main-text\"><span style=\"color:#ff0000;\">Error</span>: Sorry, There are no more spots available.<br /><br /></p></div>"; } else {
  9. No, you don't want to use extract, for the same reason why you don't want to dynamically create a million individually named variables. And why is that? Well what are you going to do with them then? $x1 $x2 $x3 $x4 etc... You can't easily loop that or apply something to all of them etc.. that's the whole point of an array: a list of variables you can easily manipulate.
  10. Looping through your variables is easy when you use an array. Which is what $_POST is. Try using a foreach loop. Or, perhaps it would be better if you explained what you are trying to do here, because there are very few reasons why you would need (or want) to make individual variables out of array elements.
  11. [ot] mysql_fetch_array($result, MYSQL_ASSOC) is the same as mysql_fetch_assoc($result) [/ot]
  12. nah, still have to disagree with you there... most of the helpers scan for 0 or no reply threads, as it means it's higher chance of being not solved yet (0 replies being 100% not solved). Even during the "slow" periods, if a 0 reply thread manages to make it to the 2nd page, I assure you, it is not because nobody noticed it
  13. $string = "hj45ederl840lmcjower oldwsd3ohwxrzswlzswd"; preg_match_all('~(.)(.{3})?~',$string,$chars); // example output echo "<pre>"; print_r($chars[1]);
  14. yeah...I'm gonna put my money on people not getting their question answered for other reasons than this. Like not posting enough info, explaining problem properly, or showing no effort in trying.
  15. Eyes;Face
  16. what??? I liked firefly. I wish it hadn't canceled though I admit the theme song sucked ass. IMO that's why it really got canceled.
  17. it's both. In addition to what premiso said, even a vga connect would be better than the S-Video. Also, CRT tvs are getting kind of outdated... you should go buy a plasma or lcd.
  18. look in misc forum stickies
  19. If anybody wants to buy me an xbox360 or ps3 and the game, i'll be more than happy to play with them or on PC you just have to buy me the game
  20. Yeah..I used to say those thing, and assume nobody catered to IE...until I actually started doing web dev as a real job.
  21. So the majority of web developers do not bother with the browser with the highest % of users?
  22. haha well I work from home on my computer so buying a decent computer is in my best interest
  23. It is very nice, watching a movies while playing video games or even messing with videos such as compressing / converting DVDs etc. 2 separate processors / memory etc > 1 well my desktop is a quad core with 6gb ram so I'm not really worried about resource consumption. Just a matter of screen real estate. My main beef with multiple monitors on one computer is that the task bar does not span multiple monitors, so it doesn't really alleviate the pain of switching between the many things in it. I suppose if I have more screen space I can expand the taskbar to more than one 'line', though.
  24. I only have 1 monitor. Been wanting to get a 2nd for a while now. But I do also have a laptop, so I may give synergy a go, see how that works out. I might actually like that better than 2 monitors, 1 computer.
×
×
  • 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.