Welcome Guest, Not a member yet? Register   Sign In
Solved - Content of text file into a database
#11

[eluser]murphy2006[/eluser]
No offence taken Popcorn :-)

All works fine and info is written to the database but I still get the headers error.
Perhaps I cannot use include() in a controller?
#12

[eluser]Popcorn[/eluser]
Don't output anything in your controller.
#13

[eluser]murphy2006[/eluser]
Ok, I found the problem now, there was an extra whitespace in the bottom of the included file. Removed it and now it all works like a charm!

Thanks both of you of your help!
#14

[eluser]Popcorn[/eluser]
Don't mention it ;-)
#15

[eluser]xwero[/eluser]
[quote author="murphy2006" date="1231363021"] there was an extra whitespace in the bottom of the included file.[/quote]
To prevent this from happening don't close the php tag
Code:
<?php

    $data['module']['displayname']     = "Default";
    $data['module']['description']     = 'The default theme';
    $data['module']['version']     = "1.0";
    $data['module']['author']     = "Author Name";
    $data['module']['homepage']    = "http://website.com";




Theme © iAndrew 2016 - Forum software by © MyBB