php not parsing when php.ini file is present

Discussion in 'PHP' started by VAIO, Jul 31, 2006.

  1. #1
    Hey everyone. I am fairly new to PHP, but i'm getting the hang of it.

    I am running Mandrake 10.1 with Apache2, PHP5, MySQL4. I got everything set up and running fine and have been working with PHP files just fine without a php.ini file. However, now i need to start working with sessions, so i need to have php.ini to set the session.save_path. My phpinfo() says php.ini is located in the /usr/local/php5/lib directory, but when i look it isn't really there. So i put the php.ini file in that directory for it to find. But when i do that, PHP no longer parses the code. I can view the source of the page and actually see the PHP code.

    The php.ini i am using is exactly from php.ini-recommended.

    If i recompiled and told it where to look for that file, would it fix the problem? Probably not. Anyone have any thoughts?

    Thanks
     
    VAIO, Jul 31, 2006 IP
  2. T0PS3O

    T0PS3O Feel Good PLC

    Messages:
    13,219
    Likes Received:
    777
    Best Answers:
    0
    Trophy Points:
    0
    #2
    T0PS3O, Aug 1, 2006 IP