PHP: Simple question

Do you have a question? Post it now! No Registration Necessary.  Now with pictures!

Threaded View
In C and other languages I have had the need to convert from a character to  
an integer.  This is easy.  Now, however, this is the first time I have had  
to do this in PHP and I can't find the proper function.  The reason I need  
this is that upon downgrading to MySQL 4.0.7 (upon changing servers), data  
that are in the tables contain characters that are not translated properly.  
These characters are (at least two of them are)  and ?.  I want to decode  
part of the string to its integer representation to see how I can handle  
this problem.  Interestingly, the character T translates properly.  The  
actual sequence (or one of them) is ?T

I would love to avoid the necessity of fixing all those strings in the  


PS: I included the PHP prefix label for the filtering challenged :-)  

Re: PHP: Simple question

Quoted text here. Click to load it

try ord()


Re: PHP: Simple question

Kimmo Laine wrote:
Quoted text here. Click to load it

Unless next_page.php generates PHP, the script with this include will
only get HTML.

Quoted text here. Click to load it


    if (isset($_GET['foo'])) {
      echo '<?php echo $_GET[\'foo\']; ?>';
    } else {
      echo '<?php echo \'Not available\'; ?>';

File not found: (R)esume, (R)etry, (R)erun, (R)eturn, (R)eboot

Site Timeline