skip to Main Content

uploading image by using php does not work – Apache

I am trying to upload image as shown here w3schools But it always shows the error Sorry, there was an error uploading your file. PHP <?php if(!isset($_POST["submit"])){ die('Error'); } $target_dir = "/var/www/img/"; $target_file = $target_dir . basename($_FILES["file"]["name"]); $uploadOk = 1;…

VIEW QUESTION

Login to apache server using a web page

I have this code right here: <html> <body style="color:white;background-color:#222222"> <center> <br> <input type="text" id="username"> Username</input> <br> <input type="text" id="password"> Password</input> <br><br> <button onclick="test()">Submit</button> <p id="url"/> <script type="text/javascript"> function test(){ var userInput = document.getElementById("username").value; var userPass = document.getElementById("password").value; document.getElementById("url").innerHTML = encodeURI('http://'+userInput+':'+userPass+'@'+window.location.hostname+':81/Home/');…

VIEW QUESTION

Varnish WordPress SSL Apache

i'm using wordpress, and i need web page accelerator. I have SSL and i've decided to install Varnish. Configurations looks like that Request -> Apache (:443) -> Varnish (:80) -> Apache (:8080). All works fine, page display correctly, my header…

VIEW QUESTION
Back To Top
Search