php mysql error

Discussion in 'PHP' started by adminravi, Jun 25, 2008.

  1. #1
    hi,

    I have downloaded Real Estate Management license. Version 1.27a from http://real-estate-management-software.org/realestate-management-terms.php and followed the readme.htm file.

    I uploaded the site to www.kncbuilders.com and gave full rights to the upload and upload/tmp folders CHMOD 777. Then I made the following changes in the site.xml file. and copy pasted the code from db.sql into sql section in phpmyadmin and it created all the tables. the database name I gave in my server is re001.

    <database type="mysql">
    <server>www.kncbuilders.com</server>
    <login>charan123</login>
    <password>abc123</password>
    <default>realestate</default>
    </database>
    Thats all I had to do I guess, according to the readme.html file. Then when I try to access the website by typing in the url http://kncbuilders.com/admin I get the following error message.

    CDatabase::SelectDB() error the declaration of call_user_func(). If you would like to enable call-time pass-by-reference, you can set allow_call_time_pass_reference to true in your INI file. However, future versions may not support this any longer. in D:\Domains\kncbuilders.com\wwwroot\admin\lib\forms.php on line 571

    Can you please, tell me where am I making the mistake?
    I am using helm control panel in my web server.

    Thanks
    Ravi
     
    adminravi, Jun 25, 2008 IP
  2. mrtinn

    mrtinn Peon

    Messages:
    27
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #2
    looking in php.ini file and find some thing like this

    allow_call_time_pass_reference = On

    If it Off turn it On.

    Good luck.
     
    mrtinn, Jun 25, 2008 IP
  3. adminravi

    adminravi Peon

    Messages:
    20
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #3
    where is the php.ini file??? it's not in the software directory? where will I find the php.ini file?
     
    adminravi, Jun 25, 2008 IP
  4. Danltn

    Danltn Well-Known Member

    Messages:
    679
    Likes Received:
    36
    Best Answers:
    0
    Trophy Points:
    120
    #4
    I seem to remember allow_call_time_pass_reference is a INI_ALL setting so you should be able to do:

    ini_set('allow_call_time_pass_reference', true);
    At the beginning of your script/main file.

    Dan
     
    Danltn, Jun 25, 2008 IP
  5. adminravi

    adminravi Peon

    Messages:
    20
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #5
    I can't fine the said code in any of the files, I downloaded. kindly, download the application from this website http://real-estate-management-software.org/realestate-management-terms.php it will take hardly one minute to get downloaded and check the files. kindly help me out.
     
    adminravi, Jun 25, 2008 IP