GIDForums  

Go Back   GIDForums > Computer Programming Forums > MySQL / PHP Forum
User Name
Password
Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

 
 
Thread Tools Search this Thread Rate Thread
  #1  
Old 18-Dec-2007, 16:46
Khrysller Khrysller is offline
New Member
 
Join Date: Dec 2007
Posts: 1
Khrysller is on a distinguished road

...unexpected '"', expecting T_STRING or T_VARIABLE or T_NUM_STRING_


Hi Allz

First post around.. google tells me this one of the best place in the universe to get a little help about php.. so I come ^^

I am trying to use Quixplorer (quixplorer.sourceforge.net, so I installed it locally (Windows XP, MySQL 5.1, PHP 5.x) and all went fine... after, I installed it on a Windows 2003 with Mysql 4.x and PHP 4 and it went fine too.. but (there is always a 'but', ya?) with I upload to my server I am receiving the error:

Quote:
PHP Parse error: syntax error, unexpected '"', expecting T_STRING or T_VARIABLE or T_NUM_STRING in E:\home\company\Web\.config\conf.php on line 28

the conf.php file is:

PHP Code:

<?php
//------------------------------------------------------------------------------
// Configuration Variables
    
    // login to use QuiXplorer: (true/false)
    $GLOBALS["require_login"] = false;
    
    // language: (en, de, es, fr, nl, ru)
    $GLOBALS["language"] = "en";
    
    // the filename of the QuiXplorer script: (you rarely need to change this)
    $GLOBALS["script_name"] = "http://".$GLOBALS['__SERVER']['HTTP_HOST'].$GLOBALS['__SERVER']["PHP_SELF"];
    
    // allow Zip, Tar, TGz -> Only (experimental) Zip-support
    $GLOBALS["zip"] = false;    //function_exists("gzcompress");
    $GLOBALS["tar"] = false;
    $GLOBALS["tgz"] = false;
    
    // QuiXplorer version:
    $GLOBALS["version"] = "2.3";
//------------------------------------------------------------------------------
// Global User Variables (used when $require_login==false)
    
    // the home directory for the filemanager: (use '/', not '\' or '\\', no trailing '/')
    $GLOBALS["home_dir"] = "e:\home\company\web\";
    
    // the url corresponding with the home directory: (no trailing '/')
    $GLOBALS["home_url"] = "http://company/web/";
    
    // show hidden files in QuiXplorer: (hide files starting with '.', as in Linux/UNIX)
    $GLOBALS["show_hidden"] = true;
    
    // filenames not allowed to access: (uses PCRE regex syntax)
    $GLOBALS["no_access"] = "^\.ht";
    
    // user permissions bitfield: (1=modify, 2=password, 4=admin, add the numbers)
    $GLOBALS["permissions"] = 7;
//------------------------------------------------------------------------------
/* NOTE:
    Users can be defined by using the Admin-section,
    or in the file ".config/.htusers.php".
    For more information about PCRE Regex Syntax,
    go to http://www.php.net/pcre.pattern.syntax
*/
//------------------------------------------------------------------------------
?>


This is a program that will allow me to upload, download, create, delete... file and folders throught a web browser... if someone has another tool and would like to suggest it.. I am open to it ^^

Thanks for any info, and congratulations for the forum ^^
  #2  
Old 18-Dec-2007, 18:28
TurboPT's Avatar
TurboPT TurboPT is offline
Regular Member
 
Join Date: Feb 2006
Location: Atlanta, GA
Posts: 926
TurboPT is a jewel in the roughTurboPT is a jewel in the roughTurboPT is a jewel in the rough

Re: ...unexpected '"', expecting T_STRING or T_VARIABLE or T_NUM_STRING_


Make sure to follow the comments:
Quote:
// the home directory for the filemanager: (use '/', not '\' or '\\', no trailing '/')
The last back-slash has escaped the last double-quote character on this line:
PHP Code:

$GLOBALS["home_dir"] = "e:\home\company\web\"; 


... and the string continues assignment for a couple of more lines (down to line 28), until another double-quote appeared, and that is where the parser puked! (notice in the code post, the trailing ; is also red, as if part of the string)
__________________
Use the force...read the source!!
WYCIWYG -- what you code is what you get!
 
 

Recent GIDBlogNARMY by crystalattice

Thread Tools Search this Thread
Search this Thread:

Advanced Search
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 Off
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Apologies In Advance Parse error: parse error, unexpected T_STRING, expecting T_VARI sph2005 MySQL / PHP Forum 11 17-Jul-2006 09:28

Network Sites: GIDNetwork · GIDWebHosts · GIDSearch · Learning Journal by J de Silva, The

All times are GMT -6. The time now is 04:18.


vBulletin, Copyright © 2000 - 2008, Jelsoft Enterprises Ltd.