www.webdeveloper.com

Search:

Type: Posts; User: tarsus

Page 1 of 10 1 2 3 4

Search: Search took 0.02 seconds.

  1. Replies
    4
    Views
    2,614

    Okay, that worked. Instead of loading my XML...

    Okay, that worked.

    Instead of loading my XML file with simplexml_load_file, then running my cleanup function on the text from one of its nodes, I'm instead reading the contents of the file as...
  2. Replies
    4
    Views
    2,614

    The problem is definitely happening when the XML...

    The problem is definitely happening when the XML is parsed.

    I didn't notice before, but my source XML file has the ISO encoding:


    <?xml version="1.0" encoding="iso-8859-1"?>

    I can change...
  3. Replies
    4
    Views
    2,614

    Sorry for the delay in replying. I guess I...

    Sorry for the delay in replying. I guess I hadn't updated my email address for notifications.

    htmlentities didn't work. And at any rate, I need a solution that leaves actual HTML tags intact.
    ...
  4. Replies
    4
    Views
    2,614

    Smart quote replacement not working

    I'm dealing with importing and formatting data, and I have the classic problem that "smart quotes" do not render right, so I need to replace them with regular quotes.

    I'm using a typical function...
  5. No ideas? It would even be helpful if someone...

    No ideas? It would even be helpful if someone could just verify that they're getting the same results in Firefox and Safari. Or verify that I'm coding this right.

    If I can be sure there's...
  6. Just an HTML5 video test: Breaking in browsers

    What I have is the simplest possible test for HTML5 video, and I've tried to do my research to accomplish this on my own, but few browsers are playing the video correctly.

    I've got an H.264 video...
  7. Replies
    0
    Views
    1,753

    RSS pubDate not grabbed by reader (Google)

    In an RSS feed I'm currently testing, when I view it with Google Reader, the date specified in pubDate for each individual item is not what appears.

    To clarify:

    When I subscribe to other feeds...
  8. Replies
    1
    Views
    653

    How to verify anti-spambot responses

    This is a question that is not specific to PHP, but relevant to any server-side technique.

    When considering an anti-spambot response of any kind on a form, whether that is a CAPTCHA, question, or...
  9. Hold it! Turns out there is an aggregate...

    Hold it! Turns out there is an aggregate function to do exactly that: GROUP_CONCAT. I could swear I've searched up and down for this before; how did I not know?

    Oh well, perhaps I'll save...
  10. Retrieve multiple foreign fields as aggregate field?

    I hope the thread subject conveys some semblance of what I'm asking. In my data structures I very frequently have a situation like this example:

    Table "people":
    field "personId"
    field "name"
    ...
  11. Replies
    9
    Views
    1,160

    I'm sorry if I came across as abrasive; it was...

    I'm sorry if I came across as abrasive; it was not intentional.

    I've already found my answer in my investigating, but in case it is of help to anyone following the thread, I'll try to clarify...
  12. Replies
    9
    Views
    1,160

    Uh . . . arguments passed to a function are local...

    Uh . . . arguments passed to a function are local in scope. If I declared a new variable "arr" with the "var" keyword, I would not be using the argument that was passed; I would be overwriting it!
    ...
  13. Replies
    9
    Views
    1,160

    I don't think I've explained myself well enough. ...

    I don't think I've explained myself well enough. I'm not asking how to make the function affect the global variable.

    It's not that I do want the global variable to be changed. It's that it is...
  14. Whoops! Don't know how I submitted this thread...

    Whoops! Don't know how I submitted this thread twice instead of editing it. See here:

    http://www.webdeveloper.com/forum/showthread.php?t=219147
  15. Replies
    9
    Views
    1,160

    Array is not local scope inside function?

    I've noticed a JavaScript behavior that does not agree with my understanding of variable scope and was hoping that someone could clarify:


    function change(arr)
    {
    var tmp1 = arr[0];
    var tmp2...
  16. [RESOLVED] Array is not local scope inside function?

    I've noticed a JavaScript behavior that does not agree with my understanding of variable scope and was hoping that someone could clarify:


    function change(arr)
    {
    var tmp1 = arr[0];
    var tmp2...
  17. Replies
    0
    Views
    473

    QuickSort algorithm

    I have recently been learning about creating one's own sort functionality and the various sort algorithms. I wanted to create my own QuickSort algorithm, as it seemed a good balance between ease of...
  18. Replies
    0
    Views
    1,486

    Safari support for preventDefault?

    Several years ago when I first put together a library of functions to handle common tasks cross-browser, the source I was using (a Sitepoint book) said that Safari did not support any way of...
  19. Replies
    3
    Views
    1,313

    Regex for what doesn't match?

    I'm trying to develop a regex for our mail server to catch certain fraudulent emails. How can I create a regex that catches strings that do NOT match "@ups.com." (Please note: That will just be a...
  20. Replies
    5
    Views
    1,153

    Ah, I was not aware of that function. Thanks a...

    Ah, I was not aware of that function. Thanks a lot for all your help!
  21. Replies
    5
    Views
    1,153

    You're right, and I realize I need to clarify: ...

    You're right, and I realize I need to clarify: Certainly, errors that aren't "fatal" will be handled differently. But as a technique for handling any of those errors that are fatal, is it...
  22. Replies
    5
    Views
    1,153

    Overhead using try/catch?

    I'm trying to develop a skeleton of common classes to use in my PHP apps, which will involve multiple layers of classes and includes. I'm currently trying to determine the best method for error...
  23. Replies
    9
    Views
    1,260

    I did verify that memory_limit cannot be changed...

    I did verify that memory_limit cannot be changed at runtime with my host. However, I asked them to increase it and they did! How 'bout that!

    Thanks for your help.
  24. Replies
    9
    Views
    1,260

    I will definitely try that before I give up.

    I will definitely try that before I give up.
  25. Replies
    9
    Views
    1,260

    If I run this: ini_set('memory_limit', '50M');...

    If I run this:

    ini_set('memory_limit', '50M');
    phpinfo();

    The phpinfo() data still shows memory_limit as 30M. Perhaps I'm making the wrong assumption, though: does phpinfo() take values set...
Results 1 to 25 of 250
Page 1 of 10 1 2 3 4
HTML5 Development Center



Recent Articles