[eluser]prager[/eluser]
[quote author="prager" date="1305169865"]I am trying to run CodeIntiter on remote server and always get this parse error (it's shortened):
Parse error: syntax error, unexpected T_STRING, expecting T_OLD_FUNCTION or T_FUNCTION or T_VAR or '}' on line 141
The same code runs on localhost with no problem (minus the Base URL).
I am sure I set the base URL correctly in config.php
Any ideas?
Thank you in advance...[/quote]
I uploaded the same code on different server. Interestingly the page ran, but with different errors in the same URI.php file. Both on line 176: "Message: Use of undefined constant PHP_URL_PATH - assumed 'PHP_URL_PATH'" and the other one "Message: parse_url() expects exactly 1 parameter, 2 given". Perhaps they run different PHP versions? I'll check them out later when I have time, but if anyone has better idea what's going on, I would highly appreciate any input...
PS: I am determining Base Site URL dynamically by:
$config['base_url'] = "http://".$_SERVER['HTTP_HOST']."/pics/";