Search results

  1. M

    mod_rewrite

    I think I know what you're getting at. You look to have 2 misconceptions about the rewrite engine. Here's two facts to set you straight: patterns don't match against query strings (the documentation isn't very clear on this) and if you specify a query string in a substitution, it will replace...
  2. M

    JavaScript replaceChild

    Test "node.childNodes.length". Use "appendChild()". If a node has no children, firstChild should be "null". You can also test node.childNodes.length. replaceChild(...) won't work on a node with no children because there are no children to replace. Use appendChild(...).
  3. M

    Simple Batch Question...

    Rather than looping (basically a busywait), use "timeout /T %secs%". Did you read the link I posted?
  4. M

    [PHP] CodeIgniter Help

    That doesn't actually answer my questions. Again, what is the exact error you're getting? What is "it" that can't be accessed? For instance, if "it" is $this->session, then the session library isn't being loaded. If "it" is $this->session->userdata, then the CodeIgniter installation is...
  5. M

    php errors on site

    php tried to save session information in a file in /tmp, but the file system was marked read only. If you aren't currently getting these errors, don't worry about it.
  6. M

    [PHP] CodeIgniter Help

    What's "it"? What's the actual error you're getting? As it says in the CodeIgniter user guide, make sure you load the session library, either via auto-loading or in the PageRender constructor: function PageRender(){ parent::Controller()...
  7. M

    Simple Batch Question...

    2 things: remove the spaces around the equals sign in the first set command and use timeout rather than the busywait.
  8. M

    Managing a MySQL DB

    Use UPDATE, not INSERT, to change an existing row. See the above link for details, but the short answer is you use a 'WHERE id="$id"' clause in the UPDATE query. Enclose all element attributes in double quotes. Technically it's not required, but it's always a good idea. For one thing, it...
  9. M

    403 error - need help please!

    What are the file permissions on cgi-bin/mt/mt.cgi & the parent folders? If you don't know how to check, you can use cPanel's file manager; your FTP client might also be able to tell you the file permissions. You should see a file mode of "755" for each, but other permissions might work...
  10. M

    Cracked Earth...

    Your description is intriguing, but the post appears to contain no images or links to the designs.
  11. M

    Xml-rpc

    The code you posted works for me. The message "Expected methodResponse element, got br" leads me to believe the client is getting HTML (specifically, a <br /> element) rather than an XML-RPC message. Access http://localhost/xml/index.php in a browser & see what you get. My guesses are the...
  12. M

    Problem with GeekLog

    Looks like GeekLog supports themes, so there's something in the theme files (a "text-align" directive in a CSS file, an "align" attribute or center tag [though I hope it's set in a style sheet]) causing. Ask for help on one of GeekLog's forums. Make sure you state which version of GeekLog and...
  13. M

    Perl issue

    Typically, scripts would be placed in cgi-bin, not cgi-bin/perl, but that shouldn't make a difference. If the script is under cgi-bin and has execute permissions (you should change the permissions to 755, by the way), the most likely suspect is the server configuration. ScriptAlias isn't...
  14. M

    Perl issue

    To have Apache execute a perl script, it either needs to be in a ScriptAlias-ed directory (usually $ENV{'DOCUMENT_ROOT'}/cgi-bin) or the server needs a handler set for CGI scripts & the file needs the correct extension. In either case, the script also needs appropriate execute permissions...
  15. M

    Ssh???

    Re: Shell access? Ubuntu installation FreeBSD installation How to try out a virtual Linux desktop freely and easily Pendrivelinux (run a Linux box from within Windows) Using QEMU on Window Running Linux on Windows. PureDarwin (open source version of OS X; still in development) There...
  16. M

    Scalar Vector Graphics

    I can't understand what you want. Please write a more descriptive post of what your issue is, and be sure to ask a specific question. For more information on SVG, including working examples: SVG tutorials SVG examples on W3Schools Pike's SVG Tutorial
  17. M

    Fatal error: Call to undefined function mb_detect_encoding

    mb_detect_encoding is part of the mbstring extension, which is not installed by default. One of the server admins will probably need to install it. To do it yourself, you'd need to:get the PHP source build mbstring install the mbstring in the PHP extensions directory load mbstring in...
  18. M

    Show PHP Errors

    Should it turn out you can't turn on browser display of errors (I haven't researched the issue or played with the PHP configuration), you could try setting a custom error handler in a debug library, then include that script in pages you want to debug.
  19. M

    Unix Arrays

    You're right in that. ${var} expands array $var to separate words and "${var}" expands array $var to a single word. Same deal for $* and "$*".
  20. M

    Unix Arrays

    Your script is unnecessary. because "${name}" expands to a single word with the value of each array member separated by the first character of the IFS special variable (which is a space character by default). See why it's good to post your overall goal along with the specific step? If you...
Top