in my bid to try to find out why one file displays differently than the other i did a mime output.
my index file which displays fine looks like this
and the php file lets call it file1.php i have issues with looks like this
I save the file like this
I can run all kinds of php files thru this and they all work fine, but file1 explodes on the screen meaning i see the file content as well as my php/html content all mixed up on the screen.
Could it have something to do with the C++ in the mime type?
my index file which displays fine looks like this
PHP Code:
text/x-c; charset=us-ascii
Array
(
[0] => text
[1] => x-c; charset=us-ascii
)
PHP Code:
text/x-c++; charset=us-ascii
Array
(
[0] => text
[1] => x-c++; charset=us-ascii
)
PHP Code:
if ($mime['0'] == "text")
{
$dbf->query("SELECT datid FROM content WHERE datid = '$filehash' ");
if ($dbf->nf() == 0) //does not exist
{
$dbf->query("INSERT INTO content (datid, content) VALUES('$filehash','$contents') ");
}
$status = 'added';
Could it have something to do with the C++ in the mime type?
Comment