xaamp htdoc error

Results 1 to 7 of 7
  1. #1
    Valued Member rochey is offline
    MemberRank
    Mar 2021 Join Date
    Remote IslandLocation
    122Posts

    xaamp htdoc error

    hi, i gave my friend the registration website copy over the htdoc folder .but het get this error .??? could it be the site fetch old database since we change it in the new server and this reads old line or read DB different , or ip location . the error seems stay even if i did change ip to local ..

    Fatal error: Uncaught Error: Call to undefined function sqlsrv_connect() in C:\xampp\htdocs\config.php:4 Stack trace: #0 C:\xampp\htdocs\index.php(18): require_once() #1 {main} thrown in C:\xampp\htdocs\config.php on line 4

    Last edited by rochey; 09-07-22 at 06:13 AM.


  2. #2
    Apprentice zolidix is offline
    MemberRank
    Sep 2021 Join Date
    17Posts

    Re: xaamp htdoc error

    You need to download php_pdo_sqlsrv.dll, you can found it here https://docs.microsoft.com/en-us/sql...l-server-ver16

  3. #3
    Valued Member rochey is offline
    MemberRank
    Mar 2021 Join Date
    Remote IslandLocation
    122Posts

    Re: xaamp htdoc error

    https://www.youtube.com/watch?v=WWZANmRNJWQ i not sure this is the prob

    - - - Updated - - -

    i del some line and saw results , but still not see full site

  4. #4
    Proficient Member Kurtivan23 is offline
    MemberRank
    Oct 2020 Join Date
    NOBODY AH!!Location
    190Posts

    Re: xaamp htdoc error

    Lmao, hahahaha that looks like my old web files which is very ugly.

    But seems it was modified by you.

    Here is a simple recreation, still not good with front end

    https://github.com/Kurtivan2223/Drag...Simple-Website

    And a non complete web file with composer

    Uses Medoo for database connection

    https://github.com/Kurtivan2223/DragonNestWebPHP
    Last edited by Kurtivan23; 09-07-22 at 03:17 PM. Reason: Wrong link

  5. #5
    Valued Member rochey is offline
    MemberRank
    Mar 2021 Join Date
    Remote IslandLocation
    122Posts

    Re: xaamp htdoc error

    was it yours? was it mines was it hers ? a Modder i am to modified an free open source is bliss , no such thing as ugly. only bad makeup
    simplicity is beauty , i recreated from scratch using the reference you left in some of the query's ,, i added ajax , for fetching for the spin wheel ,acc .it did its job well however the sync time not match desktop but i have idea how by changing the et time .mines stop working suddenly aswell but i fixed it recently i wonder what causing trouble if it was xammp update
    maybe one day i will release it to see what else other can do with it


    - - - Updated - - -

    however playing with deletion on (;'"$ has led other results on why this happening to Pc #2 when its a copy paste of the entire folder ?..


    - - - Updated - - -

    by following the log i was able to del few variables ? but why requesting this its a total different script
    anyway not i only get one error its not connected to server , well i did del the data base and server files of that pc so i figure it will work now ? if connect to server but php its out my reach but fun to mess with the code


    - - - Updated - - -

    what be the code to connect here .each pc needs different code ?
    Last edited by rochey; 3 Weeks Ago at 04:37 PM.

  6. #6
    Novice Naffsky is offline
    MemberRank
    Dec 2022 Join Date
    3Posts
    <?php
    $serverName = "INDO-SERV\SQLEXPRESS,1443";
    $uid = "sa";
    $pwd = "XXXXXX";
    $databaseName = "web";
    $connectionInfo = array("UID" => $uid, "PWD" => $pwd, "Database"=>$databaseName);
    $conn = sqlsrv_connect( $serverName, $connectionInfo);
    if( $conn )
    {
    echo "Connection established.\n";
    }
    else
    {
    echo "Connection could not be established.\n";
    die( print_r( sqlsrv_errors(), true));
    }
    sqlsrv_close( $conn);
    ?>



    Download driver from:
    https://download.microsoft.com/downl.../SQLSRV510.ZIP

    • Unzip the files
    • Copy the dll files in C:\xampp\php\ext\
    • Open with your favourite editor the file php.ini located in C:\xampp\php\
    • Insert the extensions:


    extension=pdo_sqlsrv_74_ts_x64
    extension=sqlsrv_74_ts_x64

    • Restart Apache and PHP
    Last edited by Naffsky; 3 Weeks Ago at 10:50 PM.

  7. #7
    Valued Member rochey is offline
    MemberRank
    Mar 2021 Join Date
    Remote IslandLocation
    122Posts
    i barley remember this post , was that for again = =



Advertisement