Jump to content
The Uniform Server Community

andrewmung

Member
  • Posts

    2
  • Joined

  • Last visited

Previous Fields

  • Main OS
    Windows 8.1

andrewmung's Achievements

Newbie

Newbie (1/14)

0

Reputation

  1. Hi All, Recently I have installed Laravel 8 but 127.0.0.1:8000 (it is defined by laravel artisan serve) shown error message as below: 'Call to undefined function Illuminate\Encryption\openssl_cipher_iv_length()' In order to solve the above problem, the working items were done towards uniform server in the following: extension=openssl was uncommented Adding dll files to directory : "... \core\php74\" included : libcrypto-1_1-x64.dll, libssl-1_1-x64.dll, libeay32.dll, ssleay32.dll Adding dll files to directory: "... \core\php74\extension\" included : php_mcrypt.dll , and also added extension=mcrypt I checked PATH included : "... \core\php74\extension" and "... \core\php74\ and ...\core\apache2\conf\openssl.cnf" and "...\core\apache2\bin\" and "...\core\openssl\openssl.cnf" Runing PHP file : <?php $method = 'AES-128-CBC'; $ivlen = openssl_cipher_iv_length($method); echo $ivlen; ?> and the result is OK to proof that openssl is normal But it is too upset that I do not know why openssl function is undefined when it is to run under Laravel 8 artisan serve Attached please find the screenshot of "127.0.0.1:8000" error message If you have any idea, would you be kind enough that please advise what I can do to solve the above problem Thank you for your kind attention Andrew
  2. Dear All, Please help to advise how to solve my simple problem which made me in trouble i am an new learner of ajax and to try simple application as below: <!DOCTYPE html> <html> <body> <h1>The XMLHttpRequest Object</h1> <button type="button" onclick="loadDoc()">Request data</button> <p id="demo"></p> <script> function loadDoc() { var xhttp = new XMLHttpRequest(); xhttp.onreadystatechange = function() { if (this.readyState == 4 && this.status == 200) { document.getElementById("demo").innerHTML = this.responseText; } }; xhttp.open("GET", "test.txt"); xhttp.send(); } </script> </body> </html> But there was error message of "Failed to load resource: the server responded with a status of 404 (Not Found)" which was shown by development tool of browser and pointed at "xhttp.send()" After checking, the server should be working in normal condition Attached please find the screenshot of messages which were generated by both of server and browser Thank you for your kind attention andrewmung may I get your help.pdf
×
×
  • Create New...