nimish01 Posted October 24, 2007 Share Posted October 24, 2007 THIS IS THE ERROR Parse error: syntax error, unexpected in config.php on line 20 this is my config.php <?php $fop = fopen('secure/settings.mfh', 'r'); $content = fread($fop, '999'); fclose($fop); $content = explode("|", $content); $compname = "NIMISH"; ////Your Company Name $slogan = "YOUTH ARE NOT USELESS BUT ARE USED LESS"; //// Your Company Slogan $scripturl = "upload/config.php"; //// the URL to this script with a trailing slash $adminpass = password; //// set this password to something other than default //// it will be used to access the admin panel $email = nimish00678@gmail.com; //// your eMail-Adress for abuse/support and user registration page $maxfilesize = 1024; //// the maximum file size allowed to be uploaded (in megabytes) $downloadtimelimit = 0; //// time users must wait before downloading another file (in minutes) $uploadtimelimit = 0; //// time users must wait before uploading another file (in minutes) $nolimitsize = 0; //// if a file is under this many megabytes, there is no time limit $deleteafter = 10000; //// delete files if not downloaded after this many days $downloadtimer = 0; //// length of the timer on the download page (in seconds) $language = $content[15]; if ($content[9]=="false") $result9 = false; else $result9 = true; $enable_filelist = true; //// allows users to see a list of uploaded files. set to false to disable if ($content[10]=="false") $result10 = false; else $result10 = true; $shourturl = frendz.110mb.com/upload/files; //// Short url Eg yourdomain.com/13232 needs mod_rewrite enabled. For More Info See Our Froum if ($content[11]=="false") $result11 = false; else $result11 = true; $emailoption = $result11; //// set this to true to allow users to email themselves the download links if ($content[12]=="false") $result12 = false; else $result12 = true; $passwordoption = false; //// set this to true to allow users to password protect their uploads if ($content[13]=="false") $result13 = false; else $result13 = true; $descriptionoption = false; //// set this to true to disable the description field if ($content[14]=="false") $result14 = false; else $result14 = true; $topten = true; //// Make It true if you want to enable Top ten files $perpage = 50; //// if $enable_filelist is true (above), how many files to display per page (recommended default is 50); //$categories = array("Documents","Applications","Audio","Misc"); //// remove the //'s from the above line to enable categories //// Users will be able to choose from this list of categories $allowedtypes = array("txt","gif","jpg","jpeg","jpeg","mp3","sisx","avi","wmv","sis","rar","zip","mp4","exe"); //// remove the //'s from the above line to enable file extention blocking //// only file extentions that are noted in the above array will be allowed $pps1 = true; //// the hits shows on admin's filelist $pps2 = true; //// the hits shows on filelist $pps3 = true; //// the hits shows on admin's filelist $style = css/default.css; //// The Style of your MiniFileHost $your_name = NIMISH; //// Your Name $your_street = MUMBAI; //// Your Street $your_city = MUMBAI; //// Your Name $your_url = http://frendz.110mb.com; //// Your Internet $your_phone = 1234567890; //// Your Phone-Number $your_aemail = nimish00678@gmail.com; //// Your Abuse-EMail ?> PLZ HELP ME Quote Link to comment https://forums.phpfreaks.com/topic/74579-help-with-parse-error/ Share on other sites More sharing options...
GingerRobot Posted October 24, 2007 Share Posted October 24, 2007 You need to place strings inside of quotes: <?php $fop = fopen('secure/settings.mfh', 'r'); $content = fread($fop, '999'); fclose($fop); $content = explode("|", $content); $compname = "NIMISH"; ////Your Company Name $slogan = "YOUTH ARE NOT USELESS BUT ARE USED LESS"; //// Your Company Slogan $scripturl = "upload/config.php"; //// the URL to this script with a trailing slash $adminpass = 'password'; //// set this password to something other than default //// it will be used to access the admin panel $email = 'nimish00678@gmail.com'; //// your eMail-Adress for abuse/support and user registration page $maxfilesize = 1024; //// the maximum file size allowed to be uploaded (in megabytes) $downloadtimelimit = 0; //// time users must wait before downloading another file (in minutes) $uploadtimelimit = 0; //// time users must wait before uploading another file (in minutes) $nolimitsize = 0; //// if a file is under this many megabytes, there is no time limit $deleteafter = 10000; //// delete files if not downloaded after this many days $downloadtimer = 0; //// length of the timer on the download page (in seconds) $language = $content[15]; if ($content[9]=="false") $result9 = false; else $result9 = true; $enable_filelist = true; //// allows users to see a list of uploaded files. set to false to disable if ($content[10]=="false") $result10 = false; else $result10 = true; $shourturl = frendz.110mb.com/upload/files; //// Short url Eg yourdomain.com/13232 needs mod_rewrite enabled. For More Info See Our Froum if ($content[11]=="false") $result11 = false; else $result11 = true; $emailoption = $result11; //// set this to true to allow users to email themselves the download links if ($content[12]=="false") $result12 = false; else $result12 = true; $passwordoption = false; //// set this to true to allow users to password protect their uploads if ($content[13]=="false") $result13 = false; else $result13 = true; $descriptionoption = false; //// set this to true to disable the description field if ($content[14]=="false") $result14 = false; else $result14 = true; $topten = true; //// Make It true if you want to enable Top ten files $perpage = 50; //// if $enable_filelist is true (above), how many files to display per page (recommended default is 50); //$categories = array("Documents","Applications","Audio","Misc"); //// remove the //'s from the above line to enable categories //// Users will be able to choose from this list of categories $allowedtypes = array("txt","gif","jpg","jpeg","jpeg","mp3","sisx","avi","wmv","sis","rar","zip","mp4","exe"); //// remove the //'s from the above line to enable file extention blocking //// only file extentions that are noted in the above array will be allowed $pps1 = true; //// the hits shows on admin's filelist $pps2 = true; //// the hits shows on filelist $pps3 = true; //// the hits shows on admin's filelist $style = 'css/default.css'; //// The Style of your MiniFileHost $your_name = 'NIMISH'; //// Your Name $your_street = 'MUMBAI'; //// Your Street $your_city = 'MUMBAI'; //// Your Name $your_url = 'http://frendz.110mb.com'; //// Your Internet $your_phone = '1234567890'; //// Your Phone-Number $your_aemail = 'nimish00678@gmail.com'; //// Your Abuse-EMail Quote Link to comment https://forums.phpfreaks.com/topic/74579-help-with-parse-error/#findComment-376912 Share on other sites More sharing options...
nimish01 Posted October 24, 2007 Author Share Posted October 24, 2007 now new ERROR Parse error: syntax error, unexpected T_DNUMBER in upload/config.php on line 53 now wat to do?????? i did as u said and got this error Quote Link to comment https://forums.phpfreaks.com/topic/74579-help-with-parse-error/#findComment-376918 Share on other sites More sharing options...
GingerRobot Posted October 24, 2007 Share Posted October 24, 2007 Hmm. I know, you could always try looking at line 53. Sure, i missed one of your strings out. But im pretty sure it's not that difficult to work out what you need to do. Quote Link to comment https://forums.phpfreaks.com/topic/74579-help-with-parse-error/#findComment-376981 Share on other sites More sharing options...
nimish01 Posted October 24, 2007 Author Share Posted October 24, 2007 plz bro tell me what to do coz i have no knowledge bout php so i cant edit it myself Quote Link to comment https://forums.phpfreaks.com/topic/74579-help-with-parse-error/#findComment-377042 Share on other sites More sharing options...
kenrbnsn Posted October 24, 2007 Share Posted October 24, 2007 If you have no knowledge about PHP, you should take this opportunity to learn it. Read the online manual. Look at the examples. Ken Quote Link to comment https://forums.phpfreaks.com/topic/74579-help-with-parse-error/#findComment-377083 Share on other sites More sharing options...
rajivgonsalves Posted October 24, 2007 Share Posted October 24, 2007 Please quote all your strings with quote(") it should work <?php $fop = fopen('secure/settings.mfh', 'r'); $content = fread($fop, '999'); fclose($fop); $content = explode("|", $content); $compname = "NIMISH"; ////Your Company Name $slogan = "YOUTH ARE NOT USELESS BUT ARE USED LESS"; //// Your Company Slogan $scripturl = "upload/config.php"; //// the URL to this script with a trailing slash $adminpass = "password"; //// set this password to something other than default //// it will be used to access the admin panel $email = "nimish00678@gmail.com"; //// your eMail-Adress for abuse/support and user registration page $maxfilesize = 1024; //// the maximum file size allowed to be uploaded (in megabytes) $downloadtimelimit = 0; //// time users must wait before downloading another file (in minutes) $uploadtimelimit = 0; //// time users must wait before uploading another file (in minutes) $nolimitsize = 0; //// if a file is under this many megabytes, there is no time limit $deleteafter = 10000; //// delete files if not downloaded after this many days $downloadtimer = 0; //// length of the timer on the download page (in seconds) $language = $content[15]; if ($content[9]=="false") $result9 = false; else $result9 = true; $enable_filelist = true; //// allows users to see a list of uploaded files. set to false to disable if ($content[10]=="false") $result10 = false; else $result10 = true; $shourturl = "frendz.110mb.com/upload/files"; //// Short url Eg yourdomain.com/13232 needs mod_rewrite enabled. For More Info See Our Froum if ($content[11]=="false") $result11 = false; else $result11 = true; $emailoption = $result11; //// set this to true to allow users to email themselves the download links if ($content[12]=="false") $result12 = false; else $result12 = true; $passwordoption = false; //// set this to true to allow users to password protect their uploads if ($content[13]=="false") $result13 = false; else $result13 = true; $descriptionoption = false; //// set this to true to disable the description field if ($content[14]=="false") $result14 = false; else $result14 = true; $topten = true; //// Make It true if you want to enable Top ten files $perpage = 50; //// if $enable_filelist is true (above), how many files to display per page (recommended default is 50); //$categories = array("Documents","Applications","Audio","Misc"); //// remove the //'s from the above line to enable categories //// Users will be able to choose from this list of categories $allowedtypes = array("txt","gif","jpg","jpeg","jpeg","mp3","sisx","avi","wmv","sis","rar","zip","mp4","exe"); //// remove the //'s from the above line to enable file extention blocking //// only file extentions that are noted in the above array will be allowed $pps1 = true; //// the hits shows on admin's filelist $pps2 = true; //// the hits shows on filelist $pps3 = true; //// the hits shows on admin's filelist $style = "css/default.css"; //// The Style of your MiniFileHost $your_name = "NIMISH"; //// Your Name $your_street = "MUMBAI"; //// Your Street $your_city = "MUMBAI"; //// Your Name $your_url = "http://frendz.110mb.com"; //// Your Internet $your_phone = 1234567890; //// Your Phone-Number $your_aemail = "nimish00678@gmail.com"; //// Your Abuse-EMail ?> Quote Link to comment https://forums.phpfreaks.com/topic/74579-help-with-parse-error/#findComment-377103 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.