Jump to content

.josh

Staff Alumni
  • Posts

    14,780
  • Joined

  • Last visited

  • Days Won

    43

Everything posted by .josh

  1. Well considering U.S. min wage @ 40 hour work week *52 grosses you about $15,000 ... $82,000 is pretty decent.
  2. If I was a boss "intentionally" having an employee seek other employment, it would be because I felt the employee wasn't working out. Maybe their performance was sub-par. Maybe their attitude was sub-par. Maybe both. Not saying that's the case here, just saying in general, I don't really see people doing that for the hell of it. They must have had some problem with you (whether it was justified or not, I do not know).
  3. depends on the chmod of the pic but more than likely you will overwrite the previous one.
  4. no that's not quite right. Say you have this: //pseudocode while (...) { <input type = 'text' name='Value[$recordID]' /> } Then your code would look more like this (for example): <?php $values = $_POST['Value']; foreach($values As $key => $val){ echo $key; // recordID echo $val; // input value } ?>
  5. assuming the recordID is unique, explicitly name the Value[] array element with it, like name="Value[$recordID]" then when user posts it, the array keys are your record IDs and the values are the values the user submitted, associated with it.
  6. if you are only wanting to split at a comma, use explode. If you want to split by regular expression, use preg_split
  7. It's too late for that....
  8. No wrong. He totally psychiced it out of my brain.
  9. What is the air speed velocity of an unladen swallow?
  10. I'd also like to thank the phpfreaks staff. Mostly myself. Because I'm just so damn awesome. And sexy. If it weren't for me, I would not be here. [ot]In all seriousness, idk how I've managed to not get banned yet [/ot]
  11. been a couple years but i coulda swore phpbb has a script for integrating forum stuff with main site stuff...
  12. or maybe he simply typed the 2nd one and not the 1st. shity see I just typed the 2nd one and not the 1st. shity As opposed to there, where I typed the 1st but not the 2nd. I mean it's not rocket science. You just skip the letter. Lazy people skip things all the time. Prety easy to do.
  13. unless you have globals set to on, there's no such thing as $action. You should be using $_GET['action'] And you don't have quotes around the stuff it is supposed to be compared against (ignore, delcomment). I'm assuming you also have error reporting turned off, otherwise you would have gotten a warning about both of those things. Anyhow, seeing as how false == false, your conditions that are outputting the meta tags set to refresh over and over, are being output. Since you say it is being refreshed over and over, either mod2.php is the name of this script, or else mod2.php is redirecting to this script. The reason why it works "perfectly" in FF is probably because it's detecting something is amiss and preventing it from doing it, as opposed to IE happily doing it for you.
  14. QFT. Should remain expensive so the rich can use it as a tool to control the poor. Cuz you don't see rich people committing crimes.
  15. Air is not invisible. why you got to go kill a joke with technicalities? You are such a buzzkill. That's the kind of stuff keeps you from getting laid.
  16. is_numeric technically allows more than just a straight integer, but I don't really see how someone could really exploit that...but anyways, I usually cast as int. But you should also be checking if it is a valid page number. Like, if you know it should only be 1-10 you should check for that. That can screw things up, especially for things like pagination.
  17. I managed to get to the end of fmylife.com :/ ...fuck my life.
  18. you can't see air because it's invisible. and I am NOT sharing my pr0n stash. It's mine, hot dammit!
  19. Okay maybe I'm missing something, but you would do what I said in previous post: Posted variables are in the $_POST array. In your script, instead of using file_get_contents, you would grab the data from the $_POST array, and put it into a string with the xml formatting, except use the $_POST elements instead of hardcoded data. Example: <?php $xmlfile = "./api_transaction.xml"; $xmldoc = <<<POSTINFO <name>{$_POST['name']}</name> <address>{$_POST['address']}</address> POSTINFO; $post_vars = "xmldoc=".urlencode($xmldoc); $ch = curl_init(); curl_setopt ($ch, CURLOPT_URL, "https://www.secure-server-hosting.com/secutran/api.php"); curl_setopt ($ch, CURLOPT_POST, 1); curl_setopt ($ch, CURLOPT_POSTFIELDS, $post_vars); curl_setopt ($ch, CURLOPT_HEADER, 0); curl_setopt ($ch, CURLOPT_RETURNTRANSFER, 1); curl_setopt ($ch, CURLOPT_SSL_VERIFYPEER, 0); curl_setopt ($ch, CURLOPT_TIMEOUT, 15); $xml_text = trim(curl_exec ($ch)); if ($xml_text == "") print (date("Y-m-d H:i:s")." XML Doc Empty"); if (curl_error($ch)) print (date("Y-m-d H:i:s")." cURL Call Failed - ".curl_error($ch)); curl_close ($ch); print $xml_text; ?> or if you already have your standalone application posting the entire xml string to your script (let's call the posted var 'xmlData') you would simply do $xmldoc = $_POST['xmlData']; instead of $xmldoc = file_get_contents($xmlfile);
  20. @nrg: yeah I thought of that. Overall I opted to say fuck it who cares, as the 'exceptions' are pretty rare. I suppose it's up to the OP to really determine that, based on the content he's working with.
  21. Yes. You can create a regular html form and then in php access the posted data via the $_POST array // example to see posted data. echo out all of the data echo "<pre>"; print_r($_POST); You can then reformat to match what would be in the xml file, most likely by just having a string with the format, but using the posted array info in place of the values (like $_POST['name'] or whatever). That string would be the value of that $xmldoc, instead of using file_get_contents. Then you would have the rest of that script (the curl stuff) execute as normal.
  22. For "new threads", all you really have to do is select threads where thread 's timestamp is > user's last login/activity timestamp.
  23. = is assignment operator == is equality operator
  24. yes. They are indexed, just like arrays (starting at 0). so first one would be 0, 2nd one 1, 3rd 2, etc...
×
×
  • 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.