Search results

  1. M

    Python and PHP questions

    2.6.4. This question has been asked before. Python has the standard modules. This question has also been asked before. Which PHP extensions are installed has been asked many times before. Start with the standard Python IPC modules. The Python Documentation, or anything from O'Reilly. Translation...
  2. M

    I need help pls

    Better still would be to use lists (<ul> or <dl>, which are semantic, unlike <br/>) and styling for layout. mby247: When asking about code, please use the [code], [php] or [html] tags (as appropriate) to separate and format code. As it is, it's not very readable. Also, don't throw up all...
  3. M

    C++ dll help

    The folders MS Windows searches a DLL for are listed in "Search Path Used by Windows to Locate a DLL". One thing you can do is set the current directory in the shortcut used to launch the executable. If the DLL isn't in any of the locations listed in the "Search Path" document, you'll have to...
  4. M

    PHP and MYSQL

    Just make sure you don't use or die or output mysql_error() for non-admin users in production code.
  5. M

    Store php code in sql and execute it?

    Not to mention that using eval will open up a potential injection vulnerability. It has its uses, but as Rasmus Lerdorf (PHP's inventor) once said, Of course, writing to a file & including it introduces the same vulnerability, and has even more overhead. OP, I have to ask: why do you need to...
  6. M

    How to set up cgi

    The first link in my first post is to a search that lists those threads (hence the sig). The first result shows how to access input variables. The second (and other) results tell you about permissions. Both have sample scripts.
  7. M

    How to set up cgi

    This topic has been covered before. Search for the relevant threads. If you're still having problems, post your specific problem, including what you've done, a link to a live page, what you expect to happen and what actually happens, including any error messages. We're not psychic.
  8. M

    jQuery thumbnail viewer - Reopens div when already open

    If you ever wonder "how did they do that?", use a DOM inspector (e.g. Firebug). You'll see that it's not a background, it's a separate element. See also my first post in this thread:
  9. M

    Clearing Dom Object

    curl_close() is similar in many ways to mysql_close(). curl_close() for when you no longer need to fetch resources using a curl session (mysql_close() is for when you're done with a MySQL connection). The counterpart to curl_close() is curl_init() (like mysql_close()/mysql_connect()) and the...
  10. M

    jQuery thumbnail viewer - Reopens div when already open

    I clicked one thumbnail, then another while the first was opening, then clicked "close" when the animation had finished. No issue. I only see an issue when clicking "close" while an open animation is running. Clicking additional thumbnails at any time the viewer is open may make it easier to see...
  11. M

    jQuery thumbnail viewer - Reopens div when already open

    Still not seeing a problem with clicking a thumbnail when the viewer is open. Tested in browsers I mentioned before and IE 8; you still haven't said which browser(s) you are testing. What I do see is that closing the viewer while an animation is running (if you time it right, you can do it after...
  12. M

    Php Include file within a While loop

    A better solution would be to define a class or function in "resultscontainer.php" and call the function/a method of the class to display each row. Abstracting further, define another class or function to display all the results; give it the result of a query and a class or function that...
  13. M

    jQuery thumbnail viewer - Reopens div when already open

    What behavior do you want? I'm not seeing a problem in Firefox 3.6, Safari 4 and Chrome 5 (make sure to which browsers you test). When a user clicks on the thumbnail for an open picture, there's no visible change. When the user clicks on a different thumbnail, the full image container resizes...
  14. M

    Php upload error

    Read up on the open_basedir directive. Anything outside the /home and /tmp hierarchies can't be accessed from PHP. Print the path on any line that generates a notice to get a better idea of what's happening. You can always search the forums for more information.
  15. M

    <?xml> for XHTML Prevents PHP Code from Running

    That's the problem with short tags. Since you can't change PHP directives (unless you have a VPS and perhaps paid account, but I'm not certain of the latter), there are various other solutions. One is to echo some part of the XML directive. A simpler is: <<?php ?>?xml ...> which will work...
  16. M

    Regerting URL path

    As described in many other threads, "/usr/local/bin/php" is the proper path to the PHP interpreter. "/usr/bin/php" also works, as does "/usr/bin/php-cgi". The problem is you also have to give the full path to the script to execute, which might be your public_html directory, a descendent of it...
  17. M

    i can't upload PHP files when i upload it it stoped

    There's almost no information to go on, so you'll have to do more troubleshooting. It could be a problem with your ISP, your router, your network card (or its driver), or it could be the mode your FTP clients run in (active or passive; try both). Change each up until you find out which...
  18. M

    OAuth Package in PHP

    As mentioned in a couple of threads, use extension_loaded() to test whether a specific extension is loaded and get_loaded_extensions() to get a list of all loaded extensions. If an extension doesn't have a compiled component (i.e. it's all PHP scripts), you can manually install it for your site...
  19. M

    Reference Book Suggestions

    It's hard to go wrong with O'Reilly, and you can't go wrong with the specs. You can download the HTML, CSS and DOM specs and PHP manual. The ECMAScript standard (ECMA-262) isn't very readable; the Javascript 1.5 reference and guide are old but still quite relevant (the features of newer JS...
  20. M

    PHP Linking?

    Yes, but in that case it's better to use readfile(). In this case, I recommend turning the form into a PHP script to handle default values and error message display. For example, <?php // includes scripts that define class TextInput, class TextareaInput &c. include('FormInputs.php'); //...
Top