I've googled and looked all around the web for an answer to this, but without any success. I am getting this error:

Parse error: syntax error, unexpected T_REQUIRE_ONCE in /home/xxxinl5/public_html/xxx/content/.../.../submitter.php on line 1

And here's the code:

<?php
/*
* My Prog
*
*/
require_once(dirname(__FILE__) . '/config.php');
require_once(dirname(__FILE__) . '/log.php');
require_once(dirname(__FILE__) . '/export.php');
require_once(dirname(__FILE__) . '/submit.php');
require_once(dirname(__FILE__) . '/database.php');
require_once(dirname(__FILE__) . '/cron_job.php');
require_once(dirname(__FILE__) . '/extrafeed.php');
....

I checked config.php, all the matching parentheses, semicolons, and other minor stuff, but this still comes out. What can be wrong with this?

Also, can this be a server setup problem? I tried copying my script to another web server, and the error does not come out.

Any help would be much appreciated.

Thanks!

John

*BUMP* anyone who can help me here?T__T

@hielo: thanks for that, I will be sure to check and test that out.

On my first server, yes, the includes are including rightly, but on another, displays the error mentioned above.

I will try to test this out and see what happens.

John

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.