Jump to content

JeremyCanada26

Members
  • Posts

    55
  • Joined

  • Last visited

    Never

Everything posted by JeremyCanada26

  1. Hi I have stored mysql time in my database as this format here, "2010-05-27 01:34:32" Each of my users have a signup time associated with them which represents the signup time in UTC. Each use also has a value such as -6 or -14 or something such as this, possibly +3 or +6, etc etc I'd like easily add/remove the required time from the UTC and use it in my code, can this be done easily? I posted before about this but now I cannot find the post anymore where someone helped posted the answer.
  2. what if -5 becomes a positive number like +5 or +10? Actually, no plus signs
  3. Now that seems like it will work fine, but what happens if the -5 becomes -13 or +13, will this still actually work?
  4. if I have a number like -5 which represents the offset from UTC, how do I format a time that I already have in this format? 2010-04-30 11:38:56" btw, 2010-04-30 11:38:56 is already in UTC I'd preferably like to break it up into two parts afterwards. One that says "April 10th, 2010" and another that says "6:38 PM" (with no leading zero's)
  5. I have a few questions about the process of sending an image file to PHP from a client application, in my case a flash Application. My Goal: I want to send an image file to my php script as well as a small handful of other parameters that are used for verification purpose. In the php file, I want to be able to verify that all the bytes were received in tact and no errors. 1. What header do I use for this POST? Even if you do not know Actionscript 3 programming you can easily make out my AS3 code below. import com.adobe.images.JPGEncoder; var jpgSource:BitmapData = new BitmapData (sketch_mc.width, sketch_mc.height); jpgSource.draw(sketch_mc); var jpgEncoder:JPGEncoder = new JPGEncoder(85); var jpgStream:ByteArray = jpgEncoder.encode(jpgSource); var header:URLRequestHeader = new URLRequestHeader("Content-type", "application/octet-stream"); var jpgURLRequest:URLRequest = new URLRequest("jpg_encoder_download.php?name=sketch.jpg"); jpgURLRequest.requestHeaders.push(header); jpgURLRequest.method = URLRequestMethod.POST; jpgURLRequest.data = jpgStream; navigateToURL(jpgURLRequest, "_blank"); So currently, I am sending the name/value pairs that will be used for verification in the URL and as you can see. I'm posting the jpgStream. Perhaps I should first calculate a CRC or something and then send that as a URL Parameter and then in PHP recalculate the CRC to see if it was received in tact? (not quite sure if that's how to verify the image was received intact) Am I using the right header here, perhaps I should use a different one more relevant to this page??? http://www.php.net/manual/en/features.file-upload.post-method.php Any help on this, greatly appreciated
  6. Hey everyone, I'm moderately skilled php noob! haha. I've decided to sign up to the forum instead of standing by on the sidelines, awesome forum, nice to meet you all and see you around
×
×
  • 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.