Php

This is a discussion on Php within the Tech Board forums, part of the Community Boards category; Originally Posted by laserlight EDIT: I see that you have tried ctype_alnum() and it didnt work. Most probably you have ...

  1. #61
    They Call me Mister Sako
    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
    AIM: MisterSako | MSN: sakotheinsane@hotmail.com | E-mail: klinerr1@nc.rr.com
    The goal of computer science is to be lazy

  2. #62
    Cat without Hat CornedBee's Avatar
    Join Date
    Apr 2003
    Posts
    8,893
    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

Page 5 of 5 FirstFirst 12345
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, 09:55 AM
  2. PHP installation
    By ssharish2005 in forum Tech Board
    Replies: 8
    Last Post: 11-23-2007, 08:42 PM
  3. PHP on my Computer!
    By xxxrugby in forum Tech Board
    Replies: 4
    Last Post: 03-15-2005, 08:34 AM
  4. C++ and PHP communication
    By Korhedron in forum Game Programming
    Replies: 4
    Last Post: 01-12-2004, 05: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, 06:40 AM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21