General Programming Help
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
User Name:
Password:
Remember me
 
Go Back   Dev Articles Community ForumsProgrammingGeneral Programming Help

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Display Modes
 
Unread Dev Articles Community Forums Sponsor:
  #1  
Old January 14th, 2004, 06:37 PM
bobby01 bobby01 is offline
Junior Member
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Jan 2004
Posts: 1 bobby01 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
parse error pls help!

im still trying to learn php, but cant figure out what to do with this code. ive tried looking everywhere. i keep getting this error

Parse error: parse error in xxx/charset_conversion.lib.php on line 282

PHP Code:
function PMA_convert_file($src_charset$dest_charset$file) {
    switch (
$GLOBALS['PMA_recoding_engine']) {
        case 
PMA_CHARSET_RECODE:
        case 
PMA_CHARSET_ICONV:
        case 
PMA_CHARSET_LIBICONV:
            
$tmpfname tempnam('''PMA_convert_file');
            
$fin      fopen($file'r');
            
$fout     fopen($tmpfname'w');
            if (
$GLOBALS['PMA_recoding_engine'] == PMA_CHARSET_RECODE) {
                
recode_file($src_charset '..'  $dest_charset$fin$fout);
            } else {
                while (!
feof($fin)) {
                    
$line fgets($fin4096);
                    if (
$GLOBALS['PMA_recoding_engine'] == PMA_CHARSET_ICONV) {
                        
$dist iconv($src_charset$dest_charset $GLOBALS['cfg']['IconvExtraParams'], $line);
                    } else {
                        
$dist libiconv($src_charset$dest_charset$line);
                    }
                    
fputs($fout$dist);
                } 


with this line being line 282:

PHP Code:
if ($GLOBALS['PMA_recoding_engine'] == PMA_CHARSET_ICONV) { 


Thanks in advance

Reply With Quote
Reply

Viewing: Dev Articles Community ForumsProgrammingGeneral Programming Help > parse error pls help!


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 6 hosted by Hostway
Stay green...Green IT