www.webdeveloper.com
Results 1 to 3 of 3

Thread: Is php running

  1. #1
    Join Date
    Apr 2013
    Posts
    61

    Is php running

    I recently upgrade xampp versions and even
    though I get indication of good install, I can
    key in 127.0.0.1 and create and edit databses,
    all features of Xampp Console work but my php
    is only producing php code. My files have been
    running successfuly for years but not now. I have
    uninstalled and reinstalled, even gone back
    to my original version (1.7.4) with the same result.
    I've been trying for days find the solution to this.
    I really do need some advice. Below is a little
    test program to illustrate and below that is the result.

    PHP Code:
     <?php
    error_reporting
    (E_ALL E_NOTICE);
    //  error_reporting(0);
    mysql_connect('localhost','root',' ');
    mysql_select_db('pass') or die("Unable to select database");
    $query=" SELECT * FROM word where id = '$id'";
    $result=mysql_query($query);
    $num=mysql_numrows($result);

    echo 
    "<table cellspacing=1 cellpadding=0 border=1>
    <tr>
    <th>dest</th>
    <th>user</th>
    <th>pas</th>
    <th>url</th>
    <th>savd</th>
    </tr>"
    ;
    while(
    $row mysql_fetch_array($result))
    {
    echo 
    "<tr>";
    echo 
    "<td>" $row['destination'] . "</td>";
    echo 
    "<td>" $row['username'] . "</td>";
    echo 
    "<td>" $row['password'] . "</td>";
    echo 
    "<td>" $row['url'] . "</td>";
    echo 
    "<td>" $row['savd'] . "</td>";
    "</td>";
    echo 
    "</tr>";
    echo 
    "</table>";
    mysql_close();
    ?>
    dest user pas url savd ";
    while($row = mysql_fetch_array($result))
    { echo "";
    echo "" . $row['destination'] . "";
    echo "" . $row['username'] . "";
    echo "" . $row['password'] . "";
    echo "" . $row['url'] . "";
    echo "" . $row['savd'] . "";
    ""; echo ""; echo ""; mysql_close();
    ?>

  2. #2
    Join Date
    Mar 2009
    Posts
    452
    check if PHP is configured properly.
    also check your httpd.conf should have
    AddType application/x-httpd-php .php

  3. #3
    Join Date
    Apr 2013
    Posts
    61
    would you please advise me per my configurations?
    The below is the area of my.ini I have edited & further below
    is my config.inc.php. Knowing little to nothing, when I started,
    there were the files php file config.inc and the file
    config.inc.php. Now only the php config.inc . The apache &
    tomcat startr & run but the mysql comes on & right off?
    I'll offer my first born for help.
    --------------------------------------------------------
    # The following options will be passed to all MySQL clients
    [client]
    password =
    port = 3306
    socket = "C:/xampp/mysql/mysql.sock"
    # The MySQL server
    [mysqld]
    port= 3306
    socket = "C:/xampp/mysql/mysql.sock"
    basedir = "C:/xampp/mysql"
    tmpdir = "C:/xampp/tmp"
    datadir = "C:/xampp/mysql/data"
    pid_file = "mysql.pid"
    # enable-named-pipe
    key_buffer = 16M
    max_allowed_packet = 1M
    table_cache = 64
    sort_buffer_size = 512K
    net_buffer_length = 8K
    read_buffer_size = 256K
    read_rnd_buffer_size = 512K
    myisam_sort_buffer_size = 8M
    log_error = "mysql_error.log"
    # Change here for bind listening
    # bind-address="127.0.0.1"
    plugin_dir = "C:/xampp/mysql/data/lib/plugin/"
    #skip-federated
    server-id = 1
    CHANGE MASTER TO MASTER_HOST='125.564.12.1', MASTER_PORT=3306,
    MASTER_USER='root', MASTER_PASSWORD='';
    #master-user = root
    #skip-innodb
    innodb_data_home_dir = "C:/xampp/mysql/data"
    ==============================================
    <?php
    $cfg['blowfish_secret'] = 'guess';
    $i = 0;
    $i++;
    $cfg['Servers'][$i]['auth_type'] = 'cookie';
    $cfg['Servers'][$i]['user'] = 'root';
    $cfg['Servers'][$i]['password'] = '';
    $cfg['Servers'][$i]['extension'] = 'mysql';
    // $cfg['Servers'][$i]['port'] = '3306';
    $cfg['Servers'][$i]['AllowNoPassword'] = true;
    $cfg['Lang'] = 'en';
    $cfg['Servers'][$i]['host'] = '127.0.0.1';
    $cfg['Servers'][$i]['connect_type'] = 'tcp';
    $cfg['Servers'][$i]['controluser'] = 'pma';
    $cfg['Servers'][$i]['controlpass'] = '';
    $cfg['Servers'][$i]['pmadb'] = 'phpmyadmin';
    $cfg['Servers'][$i]['bookmarktable'] = 'pma_bookmark';
    $cfg['Servers'][$i]['relation'] = 'pma_relation';
    $cfg['Servers'][$i]['table_info'] = 'pma_table_info';
    $cfg['Servers'][$i]['table_coords'] = 'pma_table_coords';
    $cfg['Servers'][$i]['pdf_pages'] = 'pma_pdf_pages';
    $cfg['Servers'][$i]['column_info'] = 'pma_column_info';
    $cfg['Servers'][$i]['history'] = 'pma_history';
    $cfg['Servers'][$i]['designer_coords'] = 'pma_designer_coords';
    $cfg['Servers'][$i]['tracking'] = 'pma_tracking';
    $cfg['Servers'][$i]['userconfig'] = 'pma_userconfig';
    $cfg['Servers'][$i]['recent'] = 'pma_recent';
    $cfg['Servers'][$i]['table_uiprefs'] = 'pma_table_uiprefs';
    ?>

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center



Recent Articles