Fatal error: Cannot redeclare replace() in D:\apachefriends\xampp\htdocs\empires\funcs.php on line 15
And all files in which is included funcs.php (the most of the files) there is the same error help pls!!!!!
ok vernaror you are right it all goes to plan you are genius but one more question can i ask you when i open the page HALL OF FAME it opens but on top there is an error message :Veranor wrote: Have you made any modifications to the source?
Perhaps there is trouble with Win version of require_once... which would result in some troubles. html.php is required by and requires funcs.php, perhaps removing 'require_once("funcs.php");' from html.php will resolve this issue for most pages. However, there might be some trouble with pages where news is included.
Other devs: is there any page which includes or requires html.php which does not also include funcs.php? If so that require in html.php is probably unnecessary and while it shouldn't cause errors, it appears to here.
Edit: Wait for some more responses before editing it out though.
You need to set up a cron job. But you're running Windows right? You can use the "Task Scheduler". Go to the control panel. Double-Click Scheduled Tasks. Double click "Add Scheduled Tasks". Click next and then hit browse and select the turns file (these should be configured to be auto run by the php engine, if not write a batch script that simply calls "php -f C:/whatever/file/here/"). Choose "one time only". Choose a start time. You don't have to input a password if you only want it to run when you're logged in (otherwise put in the password). Now hit the little check box that says "Open advanced properties..." then hit Finish. A new window should come up. Click the "Schedule" tab and hit the "Advanced" button. If you click repeat task, you can have the task repeat every X minutes.generalbg wrote: And again one question i fixed the hall of fame but now i cant get turns.When i use all my turns and there is a time "next turn in .... minutes" but when the time runs out i dont get any turns and the time runs again and again but i havent got turns any suggestions about this please