Search:

Type: Posts; User: Jesdisciple; Keyword(s):

Page 1 of 20 1 2 3 4

Search: Search took 0.02 seconds.

  1. Sorry I took so long to get back. I'm posting...

    Sorry I took so long to get back. I'm posting the modified PHP for review and reuse.

    In Firefox and other browsers that support sendAsBinary:
    $ext =...
  2. I've confirmed the previous developer's hunch...

    I've confirmed the previous developer's hunch that Firefox is sometimes sending images in base 64, and that's (by mechanics I don't understand) what triggers the false result from getimagesize. I...
  3. The algorithm is based on this...

    The algorithm is based on this, but the code I'm asking about was added to that:

    if(getimagesize($_FILES['upload']['tmp_name']) == FALSE){
    if(isset($_GET['base64'])){ /* The former...
  4. When exactly does getimagesize return false?

    I have getimagesize returning false after an upload. I used set_error_handler('errors', -1) to ensure no error is being thrown to help me know the problem. As far as I can ascertain, the PHP manual...
  5. Replies
    2
    Views
    1,565

    EDIT: I might have been trying to solve a...

    EDIT: I might have been trying to solve a different problem... If so, please correct.

    I tested this in Firebug, but you should see here for a cross-browser check to replace window.pageYOffset...
  6. Replies
    5
    Views
    1,635

    (bumpety) Is there really no cleaner way to...

    (bumpety) Is there really no cleaner way to convert a date-string to a timestamp?
  7. EDIT: D'oh, beat again. Would you like...

    EDIT: D'oh, beat again.

    Would you like criticism on it or not? Most coders have things to learn from each other, especially new ones - and my advise (here, it's free!) would be to guzzle as much...
  8. Replies
    5
    Views
    1,635

    *facepalm* Sorry, no offense - I just can't...

    *facepalm* Sorry, no offense - I just can't believe you both got sidetracked by the "local filesystem" portion of this feature. I apparently explained my problem very poorly so I'll try again, with...
  9. Replies
    5
    Views
    1,635

    Err, I guess I should have stated my problem at...

    Err, I guess I should have stated my problem at the first of that first sentence:

    (For that matter, now that I have re-read my post I notice that the current time is not relevant to the issue at...
  10. It would help if you were to post the HTML source...

    It would help if you were to post the HTML source of the page in question, or better yet link to a live copy...
  11. Replies
    5
    Views
    1,635

    Adjusting timezones

    I'm trying to compare the current time with one from another (SVN) server, set in GMT and formatted as 'D, d M Y H:i:s e', but I'm having problems getting a GMT/UTC timestamp from the supplied...
  12. Now that you mention it, I recall revising the...

    Now that you mention it, I recall revising the script to use search rather than href, but that copy is not easily available to me so I retrieved another (older) version from my original post on...
  13. Oh, OK. Firstly, since you're using both iframes...

    Oh, OK. Firstly, since you're using both iframes and JavaScript I'm guessing that you haven't gone to the trouble of designing an alternative, text-only version of this resource such as could be...
  14. You can use either regular...

    You can use either regular expressions or ordinary string manipulations. A while back I wrote a script which retrieves all the GET variables from the query string and puts them in _GET just like in...
  15. Replies
    1
    Views
    5,120

    I think you should see here...

    I think you should see here. Lots of people have come here wondering how to make WYSIWYGs aka RTEs, but I haven't ever played with my own implementation because it's a huge job that someone else has...
  16. Replies
    1
    Views
    1,130

    Does this feature need to be available in the...

    Does this feature need to be available in the production code? If so, I would add a query or hash part to the URL to enable it so ordinary users don't have to be aware of it.

    But to get the URL...
  17. I don't think I fully understand your problem... ...

    I don't think I fully understand your problem... AFAIK you can't catch parse errors with window.onerror, which means that your current situation as I understand it can't be improved.

    However, if...
  18. Replies
    9
    Views
    25,688

    Note: As the same item in a different slot should...

    Note: As the same item in a different slot should have the same price, the price should probably be kept track of separately such as in a Map<String, int>.
  19. Replies
    9
    Views
    25,688

    Use a Vector as your VendingMachine's...

    Use a Vector<Slot> as your VendingMachine's internal representation, and give each Slot name, price, and quantity properties. When finding a Slot, iterate through the Vector and examine each item's...
  20. I was hoping to find a solution in these threads,...

    I was hoping to find a solution in these threads, but didn't see anything that helped one bit:
    http://www.webmasterworld.com/forum83/1236.htm
    http://www.webmasterworld.com/forum83/1123.htm

    Even...
  21. Overflow Disabled in Opera/Firefox Standards Mode

    For some reason Quirks Mode does as I expect while Standards Mode does some strange stuff. I did make the mistake of not validating the page as I built it, but the HTML and CSS validators find no...
  22. The only reason no errors are shown is that the...

    The only reason no errors are shown is that the function doesn't try to do anything with the constructor. The second if-statement returns false, and the entire program is rendered useless (might as...
  23. Vijaya, that's a very strange combination of the...

    Vijaya, that's a very strange combination of the snippets I posted, and I don't think it can work under any circumstances. Worse yet, it doesn't work in Firefox or Opera. If you'll post the...
  24. Ack! I thought I replied to this. Amnesiac:...

    Ack! I thought I replied to this.

    Amnesiac: Note that HTML event handlers are generally a bad idea. However, the tab thing is nice.

    Vijaya: To use my code (which can work Amnesiac's idea in),...
  25. Hi Vijaya. Which browser and version are you...

    Hi Vijaya. Which browser and version are you using? Also, please give the output of the following function in the same page, with the same argument as the other function:
    function test(form){...
Results 1 to 25 of 500
Page 1 of 20 1 2 3 4