Topic: (n00b) Parse error: syntax error, unexpected T_IF

hi guys!

I'm trying to use xajax on my server using php 5.2.6
I dumped the files in the www, tried to open the test pages and it gives me the error :
Parse error: syntax error, unexpected T_IF in /home/client/public_html/Bidup/admin/xajax/xajax_core/plugin_layer/xajaxEventPlugin.inc.php on line 1

I tried locally and it works great. So I don't know what I need to setup for my server to have it work correctly.

Thanks for your help !

Re: (n00b) Parse error: syntax error, unexpected T_IF

I used an older version I had in a old project and it works...
Hope this helps others.

Re: (n00b) Parse error: syntax error, unexpected T_IF

Hi Jahren

I did the same.  I hope for somebody give us the correct solution.

Re: (n00b) Parse error: syntax error, unexpected T_IF

Hi,

I have run  0.5 and 0.6b locally and on the hosting server with no issues.  PHP 5.35 and 5.2 with no issues.

What versions of each are you using?

Ed

If you ever stop learning you may as well dig a hole, crawl in and pull the top over yourself.

Re: (n00b) Parse error: syntax error, unexpected T_IF

Hello, i have the same error. In my local server run correctly, but when i install in my hosting, i have this error.

Can do any problem with configuration of server of my hosting??

Thanks

Amadeu

Re: (n00b) Parse error: syntax error, unexpected T_IF

Perhaps the file was saved with the BOM?

T_IF in /home/client/public_html/Bidup/admin/xajax/xajax_core/plugin_layer/xajaxEventPlugin.inc.php on line 1
Line 1 does not contain any IF

Try to change your upload from ASCII to Binary (or reverse)

if u are using the Eaccelerator clear his cache.

please send me an PN to get my mail-addy, then send me the ziped file.

hope it helps to find the errors

Re: (n00b) Parse error: syntax error, unexpected T_IF

Thanks, i've changed my type of upload to Binay, and now run correctly

Re: (n00b) Parse error: syntax error, unexpected T_IF

Thanks romacron! Solution worked for me too