Search results

  1. M

    Login with PHP

    Note that many of the above tutorials use outdated or deprecated PHP features, such as session_register(), $HTTP_SESSION_VARS and the old MySQL driver. These days you mostly need session_start(), $_SESSION and unset() (and maybe session_destroy and setcookie) for persistent session data and PDO...
  2. M

    PHP to display recent files.

    The files returned by readdir are in filesystem order, which might be sorted by name (in ascending order--you want descending) but can just as easily be by creation date or an arbitrary order. X10 runs off of Linux and currently uses ext3; I believe entries in ext3 directories are unsorted...
  3. M

    Invalid argument supplied for foreach()

    When asking about code, always post a minimal test case, the smallest amount of code that illustrates the behavior you're writing about. In this case, you would need to show how $results is set and include the foreach loop's closing brace. This makes your question easier to understand, both for...
  4. M

    CSS and div help please

    Reference: CSS 2.1 'clear' property. Basically, "clear" moves a box below floats. The exception is that if a cleared box is inside a float, it doesn't clear anything outside the float. <style type="text/css"> body { counter-reset: left right clearBoth clearRight clearLeft; } div {...
  5. M

    Need php/css outputing help

    Float the <li>; other combinations of inline & block will most likely make the <li> display on separate lines. <style type="text/css"> .items li { float: left; } .items li img { display: block; } </style> ... <ul class="items"> ... echo "<li><img src='Images/items/${image}.png'...
  6. M

    Test Server Apache Problems

    Is mod_dir installed and activated? If mod_info is installed and active, it will list all active modules. Try going to "http://localhost/server-info". You can also check in httpd.conf for mod_dir. LoadModule dir_module path/to/mod_dir.so ... AddModule mod_dir.c
  7. M

    php (error?) how to connet to a remote mysql?

    In order to connect to a remote MySQL server, it has to make a network connection. This means: There has to be a network path between the two. This will be true for any computers on the internet, but not isolated networks. The MySQL server has to be listening on a TCP port, and the client...
  8. M

    MYSQL Error

    That makes a big difference. System error code 30 is EROFS, read-only file system. Nothing to do with available space. System error codes are defined in errno.h, which you can find online or on any Unix flavor. The meaning of the error numbers might vary from OS to OS, but the lower error...
  9. M

    MYSQL Error

    It's probably a transient condition. If you're still getting the error in a day or two, you'll need to open a support ticket. Zen Cart's explanation is technically correct and it agrees with the MySQL newsletter article "Error 28, how to avoid it." The error code is the system error code ENOSPC...
  10. M

    sql request limit

    What are you wondering about the limit of? The number of connections? The number of simultaneous queries? The size of data sent in a query? The size of the results? You can get the current values of various MySQL server variables, which is where limits would be set, by using a "SHOW VARIABLES"...
  11. M

    MySQL Database from home?

    Lastly, SQL Server Management Studio is for MSSQL Server, not MySQL. Instead, try phpMyAdmin in cPanel.
  12. M

    PHP script MAC issue

    Your links to "download.php" are missing a closing quote for the "target" attribute. Why did you place the form submission button in a link? On Safari, this results in 2 pages being opened: /signature/welcome.php, which creates the signature, and /signature/download.php, which doesn't exist...
  13. M

    MySQL server has gone away

    Remember, you can always google error messages. The MySQL Reference Manual has information about this particular one in "B.1.2.9. MySQL server has gone away".
  14. M

    errors and uploads

    Try Cyberduck, an FTP/FTPS/SFTP client. Its synchronization feature is very useful.
  15. M

    Java Problems

    Yes, which is why step 1 is "backup documents". Not to sound discouraging, but it really sounds like you need to get a technician to work on this. You also need a tech to determine if the computer was likely compromised by a cracker or if the errors are caused by malware or some other...
  16. M

    Java Problems

    It can't be restated any simpler, which is to say that's as close to lay English as it gets without being simplistic or useless. I could go over what each term means, but that would take awhile to explain. As I said, it doesn't matter what they did, the only safe way to fix a compromised...
  17. M

    Java Problems

    This isn't a programming issue. The "Free Hosting" forum is a better fit. The applet tried to create a socket (a network connection) to the X10 IRC server, but was denied while trying to resolve irc.x10hosting.com. Often this particular error pops up when the applet is trying to connect to a...
  18. M

    JavaScript (or maybe php) help

    Teach me not to test my code or take a close look at the colorized version. @biscoolcool: Note that you can put the translation code in one script (named e.g. "translator.php") and include it on every page you want translation for. <!DOCTYPE ...> <html> ... <body> ... <?php...
  19. M

    JavaScript (or maybe php) help

    <?php $languages = array('es' => 'spanish', 'de' => 'german', 'it' => 'italian', 'fr' => 'french'); if (! isset($_SERVER['SCRIPT_URI']) ) { switch ($_SERVER['SERVER_PORT']) { case 80: $scheme='http'; $port=''; break; case 443: $scheme='https'...
  20. M

    How does facebook do this?

    If you mean $compose, it's not set unless register_globals is on. If you mean $_REQUEST['compose'] and $_GET['compose'], they're set to the empty string. Use isset() or array_keys($_REQUEST) to make the 'compose' input parameter useful. if (isset($_REQUEST['compose'])) { ... }
Top