Search results

  1. J

    PHP: Search XML and show breadcrumbs to string found in output?

    I have an .xml file I need to do string searches using PHP and be able to output the results showing the element tree of the found string. So if looking for the string 'foo' I need output that would show each occurrence of the string 'foo' and it's relationship to where it was found. I'm...
  2. J

    Is there a script or linux command to build keywords from text document?

    I have seen this before, but I'm unable to find it. I want to be able to take a paragraph or two of text and run it through a script (PHP, awk, shell, C, etc.) and have it create a list of keywords from it. This would need to eliminate redundant and unimportant words such as "the, is, this...
  3. J

    How to add a background image in Facebook Fan pages with FBML?

    What is the correct FBML code to add a background imagine to a Facebook Fan page? Please provide a working and tested example. Thanks!
  4. J

    What is the HTML code to open a new tab where each tab has it's own name?

    How do you give each window it's own name, so when the same web page opens more than one window it continues to add another window.
  5. J

    PHP regular expression, how do search string for (NNNN)?

    How do you search a string in PHP using a regular expression to locate the year in a string where, for example, "(1900)" occurs? The years of course will be anywhere from 1900 to 2011. I'm thinking it's something like ([0-9][0-9][0-9][0-9]), but I don't know the syntax or function in PHP to do...
  6. J

    Can a 5.1 surround system to used as a 2.1 stereo?

    All the receivers I'm looking at that have enough optional digital audio inputs are surround and I don't have room for surround speakers nor do I want them. I just want 2.1 stereo. Can surround system be used to get 2.1? If so, how? Which make/models might allow you to switch it from surround to...
  7. J

    How do I solve this problem with my Blackberry pearl 8110?

    Remove the battery, wait about 1 minute, put the battery back in. This will reboot the cell phone. It might be telling you to close other applications because it doesn't have enough memory available to open the camera application.
  8. J

    What is the advantage to using Objects in PHP 5?

    PHP has Arrays, but sometimes they are Objects like in SimpleXML. What is the purpose of using Objects instead of Arrays? What is the advantage? Is there a way to notate that something is an Object instead of doing a print_r or vardump on it?
  9. J

    How to call a stored procedure from a php application?

    What do you mean by a stored procedure? Do you mean a shell script? If so you want to go to php.net and look up exec.
  10. J

    Out of memory error with simplexml in PHP.?

    I'm parsing a very large XML file in PHP using simplexml. Like this: $xml = simplexml_load_file('bigfile.xml'); I know I could increase memory in /etc/php.ini, but isn't there a way to open bigfile.xml and read in a buffer of about 8-16k at a time (around the size of each XML line) and then...
  11. J

    How do I parse XML in PHP that looks like this?

    <packages total_weight="14" total_packages="1"> <package length="15" width="14" height="12" weight="14.0"/> </packages> The above is an example of the kind of XML I have to parse in PHP. How is this done so it gets the sub-fields(for lack of a better name) such as height="12"? Thanks!
  12. J

    MySQL/PHP: How to get one record at a time?

    In MySQL using PHP, most of the routines show you do a SELECT and get the entire query returned and stored in a variable like $results. The problem is, the MySQL database I'm using is huge and PHP can't handle holding it all in memory. Since I have to read one row (read) at a time so I can work...
  13. J

    MySQL/PHP: How to get one record at a time?

    In MySQL using PHP, most of the routines show you do a SELECT and get the entire query returned and stored in a variable like $results. The problem is, the MySQL database I'm using is huge and PHP can't handle holding it all in memory. Since I have to read one row (read) at a time so I can work...
Back
Top