Search results

  1. M

    Problem with logging in after account creation

    Where does it say your e-mail isn't available? Were you able to send the e-mail to link the two accounts? Make sure you're following the steps to link the two accounts.
  2. M

    preg_match help

    Don't neglect to look for fonts with Unicode support. System fonts are installed in "/usr/share/fonts" and "/usr/share/X11/fonts/", but I don't know if any have Unicode support. Search around for open fonts that support Unicode (or even just open fonts). For TTF fonts, you'll need to use...
  3. M

    Can't Delete MySQL Databases

    The first option should work. The second shouldn't as user DB accounts don't have global drop privilege (only per-DB drop privileges for cPanel user account). The last two shouldn't make a difference. Also, I don't believe table type or foreign key references should make a difference, unless...
  4. M

    XHTML Madness!

    Since you had to set the header when using PHP, it's a safe bet that Apache won't do it on its own. After all, Apache is the intermediary between browsers and PHP scripts. You can set MIME types within cPanel, but not conditionally. To do that, editing .htaccess is the way to go. AddType is...
  5. M

    *Counting Views* tutorial

    Chill out and keep it civil. The "shut up" undermines any courtesy of the "please". Recommending awstats is hardly stupid. Recommending any existing solution isn't stupid. There are many web analytics applications out there that let you decide how you want to crunch numbers and format reports...
  6. M

    php Warning: Cannot modify header information

    Try searching the forums. This issue has been covered many times before. Usually header() is involved, but setcookie() is just a specialized call to header(). Make sure you understand how HTTP works. You can no more set a header once you start sending content than dial a different number...
  7. M

    XHTML Madness!

    How did you try configure Apache to serve "test" as "application/xhtml+xml"? Whatever it was, it didn't work. If you view the "Headers" tab in the Page Info window (or use the Live HTTP Headers add-on), you'll see that Apache sends a "Content-type: text/html" header for the page.
  8. M

    Content Overflow

    You explained the behavior you get, but not the behavior you want and neglected to post a minimal test case and a live link. What do you want to happen rather than overflow? The div to fit the content? A scrollbar? My best guess as to what's wrong is the text is within an absolutely...
  9. M

    facebook app host help

    Don't cross-post. This is the forum to post tutorials, not to ask for help. Be patient (see point 1).
  10. M

    preg_match help

    HTML entities aren't unescaped by the GD functions. If you want to unescape them, you'll first need to call html_entity_decode. It sounds like you actually want a pattern to match all characters that are guaranteed to have glyphs in every font. In other words, you want the printable ASCII...
  11. M

    [SPND_RUSAGE1] please unsuspended my account

    Re: please unsuspended my account Looks like you found how to unsuspend yourself in the account manager. As for why, do you have any cron jobs? What WordPress plugins (other threads may apply; try searching for them) are you using? Can't say that I'm impressed with the site, as its content is...
  12. M

    Suspended due to use of incorrect language

    Unsupported languages now falls under the zero-tolerance policy, which means the suspension is permanent. Your account cannot be reactivated. Sorry for this, but you need to make sure you read the Terms of Service for any web hosting service you sign up with and make sure you comply.
  13. M

    preg_match help

    To better understand regular expressions, I recommend learning the connection between REs and non-deterministic finite state machines (aka nondeterministic finite automata, or NFA). The subject is illuminating, though it should be noted that Perl-compatible regular expressions (PCREs, which is...
  14. M

    preg_match help

    Read up on PHP strings, specifically the difference between single and double quotes. The backslash is special in strings: it starts what's called an escape sequence, which is basically a way of specifying characters you can't otherwise type into the string (such as double quotes within a double...
  15. M

    Multipart form data

    A small note: the value of an "accept" attribute of a file input should be a comma separated list of MIME types. "contact.htm" currently has "text/*/pdf". It should be "text/*,application/pdf". This doesn't really matter because no major browser currently makes use of the "accept" attribute.
  16. M

    preg_match help

    Patterns must begin and end with delimiters. You can use basically any non-alphanumeric, non-whitespace character you want (or matching braces); '/' is the most common choice. If you want to match multiple characters (or subpatterns), place after the subpattern a '*' for 0 or more, '+' for 1 or...
  17. M

    htaccess question

    Yes it will. Lydia, you'll need another rewrite condition, something like: RewriteCond %{REQUEST_URI} !^/index\.html$ ... I say "something like" because the exact pattern you use depends on the top-level URL path and how you want to handle URLs for pages in sub-folders. Basically...
  18. M

    Desktop Lock Program

    Simplest solution is to use a dialog box. Alternatively, try creating a multi-document app. The process of turning source code into executables is "compiling", so a Google search for "visual studio" how to compile should turn up information about the build process.
  19. M

    Small PHP Issue

    You can minimize globals by passing additional arguments. If there are only 1 or 2 arguments, this works well. With 4 or more, it becomes unwieldy. On the subject of OOP, you could create a class (e.g. Options or Config) that has the globally available data as a static member. Then you don't...
  20. M

    Three Options

    If you're doing anything more than regurgitating PGN data (which you are), option 1 isn't worthwhile. Whether you pick option 2 or 3 is a matter of how much disk space you have remaining in your quota, and whether certain functionality is easier to perform on PGN data than your parsed version...
Top