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

Recommended Answers

do your includes do includes as well? Read the following comment:
http://www.php.net/manual/en/function.dirname.php#91208

Jump to Post

All 3 Replies

*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 learning and sharing knowledge.