alexsumner1 Posted June 20, 2008 Share Posted June 20, 2008 Hello everyone. I am having a really annoying problem setting up MRBS on linux. I am trying to set up a system to book IT rooms for my school, and I am getting "Parse error: syntax error, unexpected T_VARIABLE in /var/www/config.inc.php on line 105" when trying to set up custom periods for booking. When I disable periods and remove them, everythings fine, i can log in to the web based booking system, however, the time blocks are stuck at every hour, and this is not flexible enough for my requirements, and so custom periods would be useful. The strange thing is, is that the error is on the second period, which is what i dont understand, its no different from the first, just different times... Here is a snip of my config file: Code: # Define the name or description for your periods in chronological order # For example: # $periods[] = "Period 1" # $periods[] = "Period 2" # ... # or # $periods[] = "09:15 - 09:50" # $periods[] = "09:55 - 10:35" # ... # is used to ensure that the name or description is not wrapped # when the browser determines the column widths to use in day and week # views #(THESE ARE THE PERIODS I WANT) $periods[] = "09:10 - 10:10" $periods[] = "10:11 - 11:10" $periods[] = "11:11 - 11:30" $periods[] = "11:31 - 12:30" $periods[] = "12:30 - 13:15" $periods[] = "13:30 - 14:30" $periods[] = "14:31 - 15:30" I am following the instructions correctly, but its just when periods are enabled, it goes mental. Its annoying me and it needs finishing by the end of the week. If you need the whole file, see attached... O, wait, i have to rename my config file because this forum is awkward Thankyou!! Alex Sumner [attachment deleted by admin] Quote Link to comment https://forums.phpfreaks.com/topic/111072-help-unexpected-t_variable-error-in-mrbs-room-booking-system/ Share on other sites More sharing options...
hip_hop_x Posted June 20, 2008 Share Posted June 20, 2008 shouldn't you add ; at the end ? Quote Link to comment https://forums.phpfreaks.com/topic/111072-help-unexpected-t_variable-error-in-mrbs-room-booking-system/#findComment-570034 Share on other sites More sharing options...
alexsumner1 Posted June 23, 2008 Author Share Posted June 23, 2008 yes, it turned out to be that! =] i found out that i also needed to put some # next to some lines up at the top too! Thanks soo much =] Bye Quote Link to comment https://forums.phpfreaks.com/topic/111072-help-unexpected-t_variable-error-in-mrbs-room-booking-system/#findComment-572097 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.