Jump to content

HELP WITH PARSE ERROR


nimish01

Recommended Posts

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

Link to comment
Share on other sites

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

 

 

Link to comment
Share on other sites

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

?>

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.