Hi, i just typed in my url of my forum and i got this:
Parse error: parse error, unexpected T_VARIABLE in /home/bootmusi/public_html/cache/attach_config.php on line 1
The thing is, i havent changed anything from my site and it was fine last time i looked....
what's up?
here is the coding for it, I have tried deleting all files in the cache, then deleting both the contents of the files........both to no avail, what other possibilities could it be?
Code:
<?php$attach_config['upload_dir'] = 'files';$attach_config['upload_img'] = 'images/icon_clip.gif';$attach_config['topic_icon'] = 'images/icon_clip.gif';$attach_config['display_order'] = '0';$attach_config['max_filesize'] = '262144';$attach_config['attachment_quota'] = '52428800';$attach_config['max_filesize_pm'] = '262144';$attach_config['max_attachments'] = '3';$attach_config['max_attachments_pm'] = '1';$attach_config['disable_mod'] = '0';$attach_config['allow_pm_attach'] = '1';$attach_config['attachment_topic_review'] = '0';$attach_config['allow_ftp_upload'] = '0';$attach_config['show_apcp'] = '1';$attach_config['attach_version'] = '2.3.9';$attach_config['default_upload_quota'] = '0';$attach_config['default_pm_quota'] = '0';$attach_config['ftp_server'] = '';$attach_config['ftp_path'] = '';$attach_config['Download _path'] = '';$attach_config['ftp_user'] = '';$attach_config['ftp_pass'] = '';$attach_config['ftp_pasv_mode'] = '1';$attach_config['img_display_inlined'] = '1';$attach_config['img_max_width'] = '0';$attach_config['img_max_height'] = '0';$attach_config['img_link_width'] = '0';$attach_config['img_link_height'] = '0';$attach_config['img_create_thumbnail'] = '0';$attach_config['img_min_thumb_filesize'] = '12000';$attach_config['img_imagick'] = '';$attach_config['wma_autoplay'] = '0';$attach_config['flash_autoplay'] = '0';$attach_config['board_lang'] = 'german';?>could you make that code more readable by ending the lines properly....
as far as I can tell, you have about 30 or so statements in one line, and my brain is fudging over it...Might not be a bad idea to check with your ISP and see if they've recently upgraded their version of PHP. On occasion code that works fine in older versions will become invalid in newer versions.
Rys
(Note that I haven't looked through your code because it's eight in the morning and my brain isn't functioning yet, so it may well be something else entirely. This is only a guess.)right - a little easier to read now:
<?php
$attach_config['upload_dir'] = 'files';
$attach_config['upload_img'] = 'images/icon_clip.gif';
$attach_config['topic_icon'] = 'images/icon_clip.gif';
$attach_config['display_order'] = '0';
$attach_config['max_filesize'] = '262144';
$attach_config['attachment_quota'] = '52428800';
$attach_config['max_filesize_pm'] = '262144';
$attach_config['max_attachments'] = '3';
$attach_config['max_attachments_pm'] = '1';
$attach_config['disable_mod'] = '0';
$attach_config['allow_pm_attach'] = '1';
$attach_config['attachment_topic_review'] = '0';
$attach_config['allow_ftp_upload'] = '0';
$attach_config['show_apcp'] = '1';
$attach_config['attach_version'] = '2.3.9';
$attach_config['default_upload_quota'] = '0';
$attach_config['default_pm_quota'] = '0';
$attach_config['ftp_server'] = '';
$attach_config['ftp_path'] = '';
$attach_config['Download _path'] = '';
$attach_config['ftp_user'] = '';
$attach_config['ftp_pass'] = '';
$attach_config['ftp_pasv_mode'] = '1';
$attach_config['img_display_inlined'] = '1';
$attach_config['img_max_width'] = '0';
$attach_config['img_max_height'] = '0';
$attach_config['img_link_width'] = '0';
$attach_config['img_link_height'] = '0';
$attach_config['img_create_thumbnail'] = '0';
$attach_config['img_min_thumb_filesize'] = '12000';
$attach_config['img_imagick'] = '';
$attach_config['wma_autoplay'] = '0';
$attach_config['flash_autoplay'] = '0';
$attach_config['board_lang'] = 'german';
?>
I can't find anything wrong in there...if you have it like Horus's code then it won['t error. it is erroring out cause you put them so close together at the start.
<?php$attach_config['upload_dir'] = 'files';
it is confused on that it more than likely thinks it is all one variable but invalidnope, still the same error is that all is in the file? if so then there is nothing wrong with it. is it being included in another file?the only files that are in my cache folder of my forum is the attatch_config.php and index.htm
it doesn't matter what is in the folder. it matters is how the page is being called. what file is being typed in the url and what is in that file?Originally posted by scoutt
it doesn't matter what is in the folder. it matters is how the page is being called. what file is being typed in the url and what is in that file?
What do you mean by what file is being typed in the url?
How do i find that out???what page do you goto to get that error?my actual url <!-- w --><a class="postlink" href="http://www.bootmusic.orgso">www.bootmusic.orgso</a><!-- w --> the file which "includes" the attach_config.php file is your index.php?
question - have you re-edited your code in the attach_config.php so that it is formatted like in my post?
because if yes, then you seem to have a problem in your index.php which is not becoming apparent until you include the attach_config.php for some reason.
can we have a look at your index.php code?i think we may have got our wires crossed somewhere.......the problem is in my attatch_config.php file which is located in my cache with one other file.......the index.htm
I will include the code of my index.php anyway's. Is it the one that is located just in my public_html of my ftp??? this is trhe one i have included. I have had to attatch the file as it is too big to post on this forum as just text
**
the file is invalid to upload so i had to rename as a .doc
Thanks in advance for you help!and also,
i replaced the text that was edited for my attatch_config.php..............and still got the same message........so hopefully it must be what you said.
*fingers crossed*right, you are not actually including the attach_config.php directly in the index.php.
in the index.php you have several "include" commands, and one of those files muct be including the attach_config.php file.
now that you have edited your attach_config.php file, can you copy the code as it is now?the code of the attatch_config.php file is on the previous page, apart from the one that is on my site is in black.....yipeeeeeeeeeee,
i got this message from my host and it's all good now!!!!
Hi
/home/bootmusi/public_html/cache/attach_config.php
You don't have any linebreaks in the file
I added a carriage return after the ?php
And one before the closing ?
And it now loads the site for you
Looks like you uploaded in binary not ascii mode
Lizzie
Lizzie, if you read this..........YOU RULE!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
THANK YOU EVER SO MUCH!!! Originally posted by propagandhi
Lizzie, if you read this..........YOU RULE!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
THANK YOU EVER SO MUCH!!!
why?? Horus told you that from the very begining. and I even told you that.yeah, but he was fixing it and then uploading in binary - so linebreaks were being removed...ahh yes, very true. hey, thanks guy's for your input on this matter, everything is running smooth now, i would have never have found out it was uploading in binary that screwed it over,
will be back to this section of the site very soon........with another prob lolfuture reference:
Most ALL files upload in ascii
ONLY exe,image, doc files in binary. your safe to do most things in ascii thoughthanks man, will definatley do that in future.
Parse error: parse error, unexpected T_VARIABLE in /home/bootmusi/public_html/cache/attach_config.php on line 1
The thing is, i havent changed anything from my site and it was fine last time i looked....
what's up?
here is the coding for it, I have tried deleting all files in the cache, then deleting both the contents of the files........both to no avail, what other possibilities could it be?
Code:
<?php$attach_config['upload_dir'] = 'files';$attach_config['upload_img'] = 'images/icon_clip.gif';$attach_config['topic_icon'] = 'images/icon_clip.gif';$attach_config['display_order'] = '0';$attach_config['max_filesize'] = '262144';$attach_config['attachment_quota'] = '52428800';$attach_config['max_filesize_pm'] = '262144';$attach_config['max_attachments'] = '3';$attach_config['max_attachments_pm'] = '1';$attach_config['disable_mod'] = '0';$attach_config['allow_pm_attach'] = '1';$attach_config['attachment_topic_review'] = '0';$attach_config['allow_ftp_upload'] = '0';$attach_config['show_apcp'] = '1';$attach_config['attach_version'] = '2.3.9';$attach_config['default_upload_quota'] = '0';$attach_config['default_pm_quota'] = '0';$attach_config['ftp_server'] = '';$attach_config['ftp_path'] = '';$attach_config['Download _path'] = '';$attach_config['ftp_user'] = '';$attach_config['ftp_pass'] = '';$attach_config['ftp_pasv_mode'] = '1';$attach_config['img_display_inlined'] = '1';$attach_config['img_max_width'] = '0';$attach_config['img_max_height'] = '0';$attach_config['img_link_width'] = '0';$attach_config['img_link_height'] = '0';$attach_config['img_create_thumbnail'] = '0';$attach_config['img_min_thumb_filesize'] = '12000';$attach_config['img_imagick'] = '';$attach_config['wma_autoplay'] = '0';$attach_config['flash_autoplay'] = '0';$attach_config['board_lang'] = 'german';?>could you make that code more readable by ending the lines properly....
as far as I can tell, you have about 30 or so statements in one line, and my brain is fudging over it...Might not be a bad idea to check with your ISP and see if they've recently upgraded their version of PHP. On occasion code that works fine in older versions will become invalid in newer versions.
Rys
(Note that I haven't looked through your code because it's eight in the morning and my brain isn't functioning yet, so it may well be something else entirely. This is only a guess.)right - a little easier to read now:
<?php
$attach_config['upload_dir'] = 'files';
$attach_config['upload_img'] = 'images/icon_clip.gif';
$attach_config['topic_icon'] = 'images/icon_clip.gif';
$attach_config['display_order'] = '0';
$attach_config['max_filesize'] = '262144';
$attach_config['attachment_quota'] = '52428800';
$attach_config['max_filesize_pm'] = '262144';
$attach_config['max_attachments'] = '3';
$attach_config['max_attachments_pm'] = '1';
$attach_config['disable_mod'] = '0';
$attach_config['allow_pm_attach'] = '1';
$attach_config['attachment_topic_review'] = '0';
$attach_config['allow_ftp_upload'] = '0';
$attach_config['show_apcp'] = '1';
$attach_config['attach_version'] = '2.3.9';
$attach_config['default_upload_quota'] = '0';
$attach_config['default_pm_quota'] = '0';
$attach_config['ftp_server'] = '';
$attach_config['ftp_path'] = '';
$attach_config['Download _path'] = '';
$attach_config['ftp_user'] = '';
$attach_config['ftp_pass'] = '';
$attach_config['ftp_pasv_mode'] = '1';
$attach_config['img_display_inlined'] = '1';
$attach_config['img_max_width'] = '0';
$attach_config['img_max_height'] = '0';
$attach_config['img_link_width'] = '0';
$attach_config['img_link_height'] = '0';
$attach_config['img_create_thumbnail'] = '0';
$attach_config['img_min_thumb_filesize'] = '12000';
$attach_config['img_imagick'] = '';
$attach_config['wma_autoplay'] = '0';
$attach_config['flash_autoplay'] = '0';
$attach_config['board_lang'] = 'german';
?>
I can't find anything wrong in there...if you have it like Horus's code then it won['t error. it is erroring out cause you put them so close together at the start.
<?php$attach_config['upload_dir'] = 'files';
it is confused on that it more than likely thinks it is all one variable but invalidnope, still the same error is that all is in the file? if so then there is nothing wrong with it. is it being included in another file?the only files that are in my cache folder of my forum is the attatch_config.php and index.htm
it doesn't matter what is in the folder. it matters is how the page is being called. what file is being typed in the url and what is in that file?Originally posted by scoutt
it doesn't matter what is in the folder. it matters is how the page is being called. what file is being typed in the url and what is in that file?
What do you mean by what file is being typed in the url?
How do i find that out???what page do you goto to get that error?my actual url <!-- w --><a class="postlink" href="http://www.bootmusic.orgso">www.bootmusic.orgso</a><!-- w --> the file which "includes" the attach_config.php file is your index.php?
question - have you re-edited your code in the attach_config.php so that it is formatted like in my post?
because if yes, then you seem to have a problem in your index.php which is not becoming apparent until you include the attach_config.php for some reason.
can we have a look at your index.php code?i think we may have got our wires crossed somewhere.......the problem is in my attatch_config.php file which is located in my cache with one other file.......the index.htm
I will include the code of my index.php anyway's. Is it the one that is located just in my public_html of my ftp??? this is trhe one i have included. I have had to attatch the file as it is too big to post on this forum as just text
**
the file is invalid to upload so i had to rename as a .doc
Thanks in advance for you help!and also,
i replaced the text that was edited for my attatch_config.php..............and still got the same message........so hopefully it must be what you said.
*fingers crossed*right, you are not actually including the attach_config.php directly in the index.php.
in the index.php you have several "include" commands, and one of those files muct be including the attach_config.php file.
now that you have edited your attach_config.php file, can you copy the code as it is now?the code of the attatch_config.php file is on the previous page, apart from the one that is on my site is in black.....yipeeeeeeeeeee,
i got this message from my host and it's all good now!!!!
Hi
/home/bootmusi/public_html/cache/attach_config.php
You don't have any linebreaks in the file
I added a carriage return after the ?php
And one before the closing ?
And it now loads the site for you
Looks like you uploaded in binary not ascii mode
Lizzie
Lizzie, if you read this..........YOU RULE!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
THANK YOU EVER SO MUCH!!! Originally posted by propagandhi
Lizzie, if you read this..........YOU RULE!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
THANK YOU EVER SO MUCH!!!
why?? Horus told you that from the very begining. and I even told you that.yeah, but he was fixing it and then uploading in binary - so linebreaks were being removed...ahh yes, very true. hey, thanks guy's for your input on this matter, everything is running smooth now, i would have never have found out it was uploading in binary that screwed it over,
will be back to this section of the site very soon........with another prob lolfuture reference:
Most ALL files upload in ascii
ONLY exe,image, doc files in binary. your safe to do most things in ascii thoughthanks man, will definatley do that in future.