Problem connecting MySQL Database in RADPHP XE2

Posted on 2012-09-04
Last Modified: 2012-12-05

I was make a little application with RADPHP XE2 and i try to connect with a MySQL database...

I put in the form a Database non visual control from the palette and i fill the properties:

When I start I get the following error in my web browser:

Fatal error: Call to undefined function mysql_connect() in C:\PHP5\pear\rpcl\ on line 257

Anyone know where can be the problem?

Question by:josepmd_madd
    LVL 29

    Expert Comment

    by:Randy Downs
    Sounds like an issue with php.ini. You may have more than one .ini file.

    Is this the path to php? C:\PHP5\pear\rpcl\

    Author Comment


    Well... I am a two PHP folders:

    C:\PHP5 ...


    C:\Program Files (x86)\Embarcadero\RadPHP\4.0\php ...

    I'm not sure what is the folder that PHP uses...
    If i rename the first one (C:\PHP5) my project do not run...
    The second one is the folder that RADPHP XE2 create in the installation...

    In the folder of C:\PHP5 no exists any file named php.ini
    In the folder of C:\Program Files (x86)\Embarcadero\RadPHP\4.0\php exists one file named php.ini

    You know how can i know where is located the correct php.ini. Any environment variable...

    LVL 29

    Expert Comment

    by:Randy Downs
    Maybe this will help

    You can actually customize all PHP settings of RadPHP integrated web server:

        Open php.ini.template file, which is inside php folder in your RadPHP installation directory.
        Edit it. File is full of comments explaining everything, but you can also check php.ini directives chapter in PHP Documentation.
        Delete php.ini file in shared data folder. It will be replaced with the file you edited later.
    LVL 49

    Expert Comment

    by:Julian Hansen

    Try running the above script and checking that the mysql libraries are loaded - if in doubt do a search on mysql on the ouput and post that section here.

    Accepted Solution


    Finnally i was solved this question reinstalling RadPHP (HTML5 Builder) with a Administrator user...


    Author Closing Comment

    I was not found the solution in any response... I reinstall the product and it runs fine... I do not know the correct solution to solve this but the reinstallation was solve my problem...

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    How to improve team productivity

    Quip adds documents, spreadsheets, and tasklists to your Slack experience
    - Elevate ideas to Quip docs
    - Share Quip docs in Slack
    - Get notified of changes to your docs
    - Available on iOS/Android/Desktop/Web
    - Online/Offline

    I imagine that there are some, like me, who require a way of getting currency exchange rates for implementation in web project from time to time, so I thought I would share a solution that I have developed for this purpose. It turns out that Yaho…
    Load balancing is the method of dividing the total amount of work performed by one computer between two or more computers. Its aim is to get more work done in the same amount of time, ensuring that all the users get served faster.
    Learn how to match and substitute tagged data using PHP regular expressions. Demonstrated on Windows 7, but also applies to other operating systems. Demonstrated technique applies to PHP (all versions) and Firefox, but very similar techniques will w…
    This tutorial will teach you the core code needed to finalize the addition of a watermark to your image. The viewer will use a small PHP class to learn and create a watermark.

    737 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    22 Experts available now in Live!

    Get 1:1 Help Now