Web Analytics Made Easy -
StatCounter c vrs c++ mime - CodingForum

Announcement

Collapse
No announcement yet.

c vrs c++ mime

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • c vrs c++ mime

    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

    PHP Code:

    text
    /x-ccharset=us-ascii 
    Array
    (
        [
    0] => text
        
    [1] => x-ccharset=us-ascii

    and the php file lets call it file1.php i have issues with looks like this

    PHP Code:

    text
    /x-c++; charset=us-ascii 
    Array
    (
        [
    0] => text
        
    [1] => x-c++; charset=us-ascii

    I save the file like this

    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'
    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?
    I am not crazy, my computer had me checked but its on dialup and im still waiting for results :)
    A good way to remember objects from arrays is you shoot objects with arrows Example: $name->id; then Arrays are $name['id'];
    durangod is short for durango dave

  • #2
    nevermind hold on, i just found another c++ file and tested and worked fine, so there is obviously something up with this one file somehow. Ill get back to ya thanks.
    I am not crazy, my computer had me checked but its on dialup and im still waiting for results :)
    A good way to remember objects from arrays is you shoot objects with arrows Example: $name->id; then Arrays are $name['id'];
    durangod is short for durango dave

    Comment

    Working...
    X
    😀
    🥰
    🤢
    😎
    😡
    👍
    👎