Category

PHP

Category

First, write your HTML code like this, and don’t forget to add enctype=”multipart/form-data” <form action=”upload.php” method=”post” enctype=”multipart/form-data”> <input type=”file” name=”fileToUpload” id=”fileToUpload”> <input type=”submit” value=”Upload Image” name=”submit”> </form> Then create a file name called upload.php <?php $path = “form/”; $target_file = $path.basename($_FILES[“fileToUpload”][“name”]); $file=$_FILES[‘fileToUpload’][‘name’]; $result = move_uploaded_file($_FILES[‘fileToUpload’][‘tmp_name’],$target_file.$file); if ($result) { echo “file successfully uploaded”; } else { echo “please select your file”; }

Index..php remove php remove and HTTP to https redirect in CodeIgniter. make web.conig file and put the code. <?xml version=”1.0″ encoding=”UTF-8″?> <configuration> <system.webServer> <httpErrors errorMode=”Detailed” /> <asp scriptErrorSentToBrowser=”true”/> <rewrite> <rules> <rule name=”Rule” stopProcessing=”true”> <match url=”^(.*)$” ignoreCase=”false” /> <conditions> <add input=”{REQUEST_FILENAME}” matchType=”IsFile” ignoreCase=”false” negate=”true” /> <add input=”{REQUEST_FILENAME}” matchType=”IsDirectory” ignoreCase=”false” negate=”true” /> <add input=”{URL}” pattern=”^/favicon.ico$” ignoreCase=”false” negate=”true” /> </conditions> <action type=”Rewrite” url=”index.php/{R:1}” appendQueryString=”true” /> </rule> <!– redirect non http to https –> <rule name=”www redirect” enabled=”true” stopProcessing=”true”>…

<?php $string = “OUR RESOURCE CENTRE Get free access to Jamboree’s rich resource pool of preparation tips, mock tests, admission information & much moreddd ddOUR RESOURCE CENTRE Get free access to Jamboree’s rich resource pool of preparation tips, mock tests, admission information & much moreOUR RESOURCE CENTRE Get free access to Jamboree’s rich resource pool of preparation tips, mock tests, admission information & much moreOUR RESOURCE CENTRE Get free access to Jamboree’s rich resource pool…

How to change root password to MySQL and PHPMyAdmin You can change the MySQL root password by logging in to the database directly (MySQL -h your_host -u root) then run SET PASSWORD FOR [email protected] = PASSWORD(your password’); PHPMyAdmin should use that password so not quite sure what you mean by “for both”. Make sure to set the new password into phpmyadmin’s config.inc.php too, at line $cfg[‘Servers’][$i][‘password’] = ‘yourpassword’; Otherwise, phpmyadmin may not work, echoing Access denied for user ‘user’@’localhost’…

How to increase phpmyadmin upload file size 1. create an info.php page and check all details about the file phpinfo(); ?> 2. run in your browser search upload_max_filesize and post_max_size change by default value 2M to 80M. 3. Run sudo -H gedit /etc/php5/apache2/php.ini 4. change both values upload_max_filesize and post_max_size change by default value 2M to 80M 5.Restart apache sudo /etc/init.d/apache2 restart

PHP versus Node.js—what’s the distinction? Both power the backend of dynamic sites, however with unmistakable contrasts. PHP is a standout amongst the most developed, universal server-side contents on the web. Node.js isn’t a content, however, a back-end advancement condition that is composed in JavaScript—until at that point, an entire customer side content. Be that as it may, Node.js made it conceivable to utilize JavaScript programming on the server side when it was presented in 2009,…

With more than four years of experience with Codeigniter PHP framework, we believe that learning, setting up and working on it is all pretty easy. Even our junior developers are able to inculcate the skills necessary for scheduled delivery, from a business standpoint, which is lucrative. Over time, though we realised that perhaps a PHP framework that is modern with a lot more flexibility in terms of a structured coding pattern with scope for applications that we…