Thread: Php

  1. #61
    Registered User
    Join Date
    Jul 2004
    Posts
    169
    Quote Originally Posted by laserlight
    EDIT:
    I see that you have tried ctype_alnum() and it didnt work. Most probably you have to do a:
    PHP Code:
    setlocale(LC_CTYPE'C'); 
    before you use ctype_alnum()

    just out of curisoty so i know whats going on in my code, what does that line do?

    on more thing is, i want to host my mysql database on a seperate server, which i have one kind of, except it won't connect
    don't i just type the IP address of the server wiht mysql on it? ie now i type in localhost because the web and mysql servers are on the same machine

  2. #62
    Cat without Hat CornedBee's Avatar
    Join Date
    Apr 2003
    Posts
    8,895
    It switches the locale to the 'C' locale, which is fairly language-neutral. (Or rather, language-ignorant - it has absolutely no proper treatment of anything outside English.)
    All the buzzt!
    CornedBee

    "There is not now, nor has there ever been, nor will there ever be, any programming language in which it is the least bit difficult to write bad code."
    - Flon's Law

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. combining c php and mysql
    By Thoth in forum C Programming
    Replies: 2
    Last Post: 01-30-2009, 10:55 AM
  2. PHP installation
    By ssharish2005 in forum Tech Board
    Replies: 8
    Last Post: 11-23-2007, 09:42 PM
  3. PHP on my Computer!
    By xxxrugby in forum Tech Board
    Replies: 4
    Last Post: 03-15-2005, 09:34 AM
  4. C++ and PHP communication
    By Korhedron in forum Game Programming
    Replies: 4
    Last Post: 01-12-2004, 06:37 AM
  5. PHP 4.3.0 released
    By codingmaster in forum A Brief History of Cprogramming.com
    Replies: 5
    Last Post: 12-30-2002, 07:40 AM