Find the best tutors and institutes for PHP

Find Best PHP Classes

Please select a Category.

Please select a Locality.

No matching category found.

No matching Locality found.

Outside India?

Search for topics

PHP Updates

Ask a Question

Post a Lesson

All

All

Lessons

Discussion

Answered 3 days ago IT Courses/Programming Languages/PHP

What are the best ORM frameworks available for Java and PHP? Why?

Ashish Kumar

Eliquent which is availlable with Laravel Framework.
Answers 1 Comments
Dislike Bookmark

Answered 4 days ago IT Courses/Programming Languages/PHP

Do you prefer core PHP or PHP framework for developing web-based appliations?

Dot Com Inventions

PHP Framework is preferred over Core PHP as with framework, you can manage the project and have an excellent working structure. Frameworks makes it easy to code and have lighter files.
Answers 1 Comments
Dislike Bookmark

Answered on 08 Sep IT Courses/Programming Languages/PHP

Ankush Singhal

No it is not good programming. Html is use for design client side where as Php is use for sever side programming. Thanks.
Answers 3 Comments
Dislike Bookmark

Looking for PHP Classes

Find best PHP Classes in your locality on UrbanPro.

FIND NOW

Answered on 10 Sep IT Courses/Programming Languages/PHP

Hradyesh Chaturvedi

Software Developer

Yes
Answers 3 Comments
Dislike Bookmark

Answered on 08 Sep IT Courses/Programming Languages/PHP

STACKODES TECHNOLOGIES

1. What is the full form of PHP and what is the PHP? Ans: the full form of PHP is Hypertext Pre-processor. Php is server-side scripting language and Its open source and freely available. PHP easily integrated with HTML, javascript and other fount End Technologies. 2. Why PHP called server side... read more
  • 1. What is the full form of PHP and what is the PHP?

Ans: the full form of PHP is Hypertext Pre-processor.

Php is server-side scripting language and Its open source and freely available. PHP easily integrated with HTML, javascript and other fount End Technologies.

  • 2. Why PHP called server side scripting language?

Ans: All PHP script are executed on server and send response back as HTML as browser can only understand the HTML so due to all PHP code executed on server its called as server-side scripted language

  • 3. Describe the $_GET ,$_POST , $_REQUEST method in PHP ?

Ans: in the PHP, you can use the $_REQUEST variable to get the data from client.we can get server response using $_GET.$_POST,$_REQUEST. When we are using “get” method from the client that time we have to use $_GET method. And when we use “post ” that time we have to use $_POST.if we are not aware of client method we can use $_REQUEST, $_REQUEST supports both $_GET and $_POST.

  • 4. What is the Difference between Session and cookies in PHP?

Ans: A cookie is a small file with the maximum size of 4KB that the web server stores on the client computer.Once a cookie has been set, all page requests that follow return the cookie name and value.

read less
Answers 4 Comments
Dislike Bookmark

Answered 4 days ago IT Courses/Programming Languages/PHP

Is there a website where I can download working final year projects in PHP for free?

Nice Computers

You can try 1000projects.com, kashipara.com, phptpoint.com
Answers 1 Comments
Dislike Bookmark

Looking for PHP Classes

Find best PHP Classes in your locality on UrbanPro.

FIND NOW

Answered on 08 Sep IT Courses/Programming Languages/PHP

What is the difference between PHP and core PHP?

Ankush Singhal

Difference is nothing between php and core php. In php or core php each and every function or logic written in manual.
Answers 1 Comments
Dislike Bookmark

Asked on 24 Aug IT Courses/Programming Languages/PHP

How do I download files using PHP and MySQL?

Answers 1

Answered on 10 Sep IT Courses/Programming Languages/PHP

How do I upload and download multiple type of files in PHP from MySQL database?

Hradyesh Chaturvedi

Software Developer

For upload <html lang="en"> <head> <meta charset="UTF-8" /> <title>Multiple File Ppload with PHP</title> </head> <body> <form action="" method="post" enctype="multipart/form-data"> <input type="file" id="file" name="files" multiple="multiple"... read more

For upload

  1. <html lang="en">
  2. <head>
  3. <meta charset="UTF-8" />
  4. <title>Multiple File Ppload with PHP</title>
  5. </head>
  6. <body>
  7. <form action="" method="post" enctype="multipart/form-data">
  8. <input type="file" id="file" name="files[]" multiple="multiple" accept="image/*" />
  9. <input type="submit" value="Upload!" />
  10. </form>
  11. </body>
  12. </html>

PHP CODE

  1. $valid_formats = array("jpg", "png", "gif", "zip", "bmp");
  2. $max_file_size = 1024*100; //100 kb
  3. $path = "uploads/"; // Upload directory
  4. $count = 0;
  5. if(isset($_POST) and $_SERVER['REQUEST_METHOD'] == "POST"){
  6. // Loop $_FILES to exeicute all files
  7. foreach ($_FILES['files']['name'] as $f => $name) {
  8. if ($_FILES['files']['error'][$f] == 4) {
  9. continue; // Skip file if any error found
  10. }
  11. if ($_FILES['files']['error'][$f] == 0) {
  12. if ($_FILES['files']['size'][$f] > $max_file_size) {
  13. $message[] = "$name is too large!.";
  14. continue; // Skip large files
  15. }
  16. elseif( ! in_array(pathinfo($name, PATHINFO_EXTENSION), $valid_formats) ){
  17. $message[] = "$name is not a valid format";
  18. continue; // Skip invalid file formats
  19. }
  20. else{ // No error found! Move uploaded files
  21. if(move_uploaded_file($_FILES["files"]["tmp_name"][$f], $path.$name))
  22. $count++; // Number of successfully uploaded file
  23. }
  24. }
  25. }
  26. }

Download FIle

  1. <?php
  2. function zipFilesAndDownload($file_names,$archive_file_name,$file_path)
  3. {
  4. $zip = new ZipArchive();
  5. if ($zip->open($archive_file_name, ZIPARCHIVE::CREATE )!==TRUE) {
  6. exit("cannot open <$archive_file_name> ");
  7. }
  8. foreach($file_names as $files)
  9. {
  10. $zip->addFile($file_path.$files,$files);
  11. //echo $file_path.$files,$files."<br />";
  12. }
  13. $zip->close();
  14. header("Content-type: application/zip");
  15. header("Content-Disposition: attachment; filename=$archive_file_name");
  16. header("Pragma: no-cache");
  17. header("Expires: 0");
  18. readfile("$archive_file_name");
  19. exit;
  20. }
  21. require_once("config.php");
  22. $cqurfetch=mysql_query("SELECT * FROM albums where user_id='$user_id' and accept='1'");
  23. while($row = mysql_fetch_array($cqurfetch))
  24. {
  25. $file_names[] = $row['user_album_images'];
  26. }
  27. $archive_file_name=time().'.gallery.zip';
  28. $file_path="/uploads/";
  29. zipFilesAndDownload($file_names,$archive_file_name,$file_path);
  30. ?>
read less
Answers 2 Comments
Dislike Bookmark

Looking for PHP Classes

Find best PHP Classes in your locality on UrbanPro.

FIND NOW

Answered on 08 Sep IT Courses/Programming Languages/PHP

How do I display a user name after login in PHP and SQL?

Ankush Singhal

First we register the user with mail id and other details then save in a user table. After this at the time of login with unique user-id or mail id we fetch the details from user table and through php mysql, echo them. Have Fun.
Answers 2 Comments
Dislike Bookmark

About UrbanPro

UrbanPro.com helps you to connect with the best PHP Classes in India. Post Your Requirement today and get connected.

Overview

Questions 686

Lessons 35

Total Shares  

16,540 Followers

Top Contributors

Connect with Expert Tutors & Institutes for PHP

x

Ask a Question

Please enter your Question

Please select a Tag

UrbanPro.com is India's largest network of most trusted tutors and institutes. Over 25 lakh students rely on UrbanPro.com, to fulfill their learning requirements across 1,000+ categories. Using UrbanPro.com, parents, and students can compare multiple Tutors and Institutes and choose the one that best suits their requirements. More than 6.5 lakh verified Tutors and Institutes are helping millions of students every day and growing their tutoring business on UrbanPro.com. Whether you are looking for a tutor to learn mathematics, a German language trainer to brush up your German language skills or an institute to upgrade your IT skills, we have got the best selection of Tutors and Training Institutes for you. Read more