Search results

  1. M

    Linux Questions ( I have a few )

    This is the "message of the day", and is held in /etc/motd. You may also need to set the "PrintMotd" sshd config option to "yes", though that should be the default. sshd also displays the last login information depending on the "PrintLastLog" directive. Both directives are set in sshd_config...
  2. M

    MySQL and PHP Madness! I could really use some help.

    In cases like this, it's best to create a minimal test case. To add to essellar's comments on PDO, one of the nicer features is support for prepared statements (which mysqli also supports), which lets you keep data separate from statements instead of interpolating it. Both also support the...
  3. M

    MySQL and PHP Madness! I could really use some help.

    In cases like this, you can create a minimal test case. To add to essellar's comments on PDO, one of the nicer features is support for prepared statements (which mysqli also supports, starting with PHP 5.4), which lets you keep data separate from statements instead of interpolating it. Both...
  4. M

    iFrame Difficulties

    To add to the other comments about including code, proper sample code (complete, concise, representative) should accompany every development question. See the links in my sig for more guidelines. Please use [php], [html] or [code] tags (as appropriate) to separate and format code.
  5. M

    PHP array of objects. How to find a specific object?

    Option 2. Looping through an array is indeed too inefficient. In tech speak, it's O(n), meaning it takes on the order of the size of the array to find any element in it (average case is n/2, but we don't care about coefficients in Big-O notation; O(n/2) = O(n)). In some cases (not this one)...
  6. M

    CPanel wont let me log in "You must specify a username to login"

    How are you accessing the cPanel login page? To simplify matters, it's best to log in through the account portal. Remember, your hosting account (used for cPanel access) is different from your forum account; they don't have to have the same password or even the same username.
  7. M

    Blank Page

    I can't reproduce the described behavior. Your best bet is to use debugging tools with your browser; these days, they should include a network inspector. For Firefox, there's Firebug. Chrome and Safari have tools built-in. These tools should be your first stop for any client-side issues, as they...
  8. M

    Cgi-bin error on site and I didn't touch anything

    DNS lookup fails for me for that domain name, as with with simguru.x10.mx. Also, there's no cPanel account associated with your forum account. Please post from the forum account linked to your cPanel account, and include a more descriptive problem write-up.
  9. M

    Cron job (php script) not sunning?

    How are you checking whether or not the cron jobs are running? Are you logging the output of the PHP scripts?
  10. M

    Email Authentication SPF and DKIM help !!!

    When you write "cpanel", are you refering to the X10 cPanel, or the Google Apps control panel? Unfortunately, Google decided to give its product the same name as the existing cPanel, Inc's one, so just "cpanel" is ambiguous. Since you're using the X10 name servers, you should be using the X10...
  11. M

    Worried about hackers

    Some hackers will also target vulnerable sites (as identified by e.g. google searches) as an exercise, or as a platform to launch further attacks.
  12. M

    Is a multi-user application a possibility on free hosting?

    About 10 seconds of googling turned up GlobalDoodle. Another 3 turned up various cooperative drawing programs & sites, including a question on Yahoo! Answers asking for the best one and a thread on The Webcomic List forums.
  13. M

    Worried about hackers

    Hard copy printouts are a potential security breach. Instead, passwords should be stored in an encrypted keychain, which then can be copied to that flash drive. For Windows, two good keychain programs are Password Safe (Bruce Schneier approved) and KeePass. Macs come with a built-in keychain...
  14. M

    Mac/Apple fanboys

    Being a BSD geek, I started using a Mac with the advent of OS X. The access and control that BSD provides married to Mac's design strengths were a perfect combo. However, Apple's 180º turn towards closed platforms betrays its BSD heritage. At this point, I'll likely be heading back to FreeBSD...
  15. M

    Problem with login script

    About the only thing I have to add is that if you're planning on writing a login or account system for your site, stop. The only reason to write your own is for self-education, and whatever results shouldn't be used on a production site. Systems already exist that will be more secure than...
  16. M

    Drupal cannot access web, I cannot change file permissions

    Outgoing connections are limited by firewall rules due to past abuses. Exceptions are made for certain software packages and purposes. Drupal updates should be one of these exceptions (though the admins have final say). Find out which servers and ports should be accessible and open a ticket so...
  17. M

    php mail/contact form

    Please use [php], [html] or [code] tags (as appropriate) to separate and format code. Make sure you check your junk mail folder. Also, delivery form X10 is sometimes slow. I've seen messages get stuck in the mail queue for a month (though hopefully that particular issue was fixed). Does anyone...
  18. M

    Problem with login script

    @accoun80: Read the following, as your script has many of the same issues: Problem with encrypting passwords. Re: Undefined variable: adminEmail in line 50 activation email not getting sent!? Create User Accounts Database problem Re: Page redirection problem Re: [PHP] MySQL and PHP Display all...
  19. M

    Resource Limit Hit!

    Adding to Skizzerz's comment on backing up from cPanel, best practice is to store a master copy of site files elsewhere, which reduces what needs to be backed up to the database (which can be done in phpMyAdmin) and any files uploaded by users (note that this is limited by the X10 ToS to things...
  20. M

    phpmyadmin connection

    Code without context isn't very helpful. Code using outdated (the mysql extension) and poor practices (or die, outputting errors to non-admin users instead of logging them) is worse than unhelpful.
Top