Oke, I do have a data problem now: the filling of the table works untill I encounter a record that has a ' in the data...
That is an easy one :
Code:
<?php $records = explode("\n", $input); //$input = the data you have foreach ( $records as $l ) { $rec = explode('|', addslashes( substr($l,0,-1) )); //Do something with the $rec }
Global Moderator
Internet Junkie
Gender:
Posts: 1807
9006 credits Members referred : 6
« Reply #29 on: Jul 13, 2006, 04:29:47 PM »
oke, still not done One of the data files is quite big (50MB) I've tried a few records first to see if the conversions in my php script where working and they did. Now after trying the script on the 50MB file I get a "Internal Server Error The server encountered an internal error or misconfiguration and was unable to complete your request." page. I've just contacted the hosting provider and they say: "PHP works fine on the server, you can try to upload your custom php.ini file." What should be in the php.ini file to fix my problem?