Trending questions in PHP

0 votes
0 answers

Using Jquery Ajax to retrieve data from Mysql

list.php: A simple ajax code that I ...READ MORE

Jun 20, 2022 in PHP by Kithuzzz
• 38,000 points
924 views
0 votes
0 answers

Read a plain text file with php

How do I read all the information ...READ MORE

Jun 26, 2022 in PHP by narikkadan
• 63,600 points
687 views
0 votes
0 answers

PHP page redirect

I am working on a function where ...READ MORE

Jun 23, 2022 in PHP by narikkadan
• 63,600 points
818 views
0 votes
0 answers

PHP Fatal error: Using $this when not in object context

I am working on a new WebApp without ...READ MORE

Jun 18, 2022 in PHP by narikkadan
• 63,600 points
1,033 views
0 votes
0 answers

How to base64 encode php in this format?

Can someone please guide me on how ...READ MORE

Jun 10, 2022 in PHP by narikkadan
• 63,600 points
1,372 views
0 votes
0 answers

How to send email with SMTP in php

I need to send an email using SMTP. ...READ MORE

Jun 24, 2022 in PHP by narikkadan
• 63,600 points
745 views
0 votes
0 answers

ErrorDocument 404 /404.php is not working in .htaccess file in PHP

This is the Content of my .htaccess file is: ErrorDocument ...READ MORE

Jun 21, 2022 in PHP by narikkadan
• 63,600 points
839 views
0 votes
0 answers

PHP Notice: Undefined offset: 1 with array when reading data

I am getting this error : PHP Notice: ...READ MORE

Jun 9, 2022 in PHP by Kichu
• 19,040 points
1,346 views
0 votes
0 answers

Localhost giving an error "ERR_NAME_NOT_RESOLVED "

I created a folder in the "www" ...READ MORE

Jun 27, 2022 in PHP by narikkadan
• 63,600 points
563 views
0 votes
0 answers

How to calculate the difference between two dates using PHP?

I have two dates on the form: Start ...READ MORE

Jun 24, 2022 in PHP by narikkadan
• 63,600 points
685 views
0 votes
0 answers

XXHash for PHP (without module/extension)

I want to create a plugin for ...READ MORE

Jun 26, 2022 in PHP by narikkadan
• 63,600 points
580 views
0 votes
0 answers

PHP - exit or return which is better?

Case I: <?php if ( $fileSize > 100 ) { ...READ MORE

Jun 23, 2022 in PHP by narikkadan
• 63,600 points
690 views
0 votes
0 answers

Sending email with PHP from an SMTP server

I get an error: SMTP server response: 530 ...READ MORE

Jun 25, 2022 in PHP by narikkadan
• 63,600 points
600 views
0 votes
0 answers

Insert current date in datetime format mySQL

I am having an issue inserting date ...READ MORE

Jun 25, 2022 in PHP by narikkadan
• 63,600 points
596 views
0 votes
0 answers

Get URL query string parameters

What is the best way to get ...READ MORE

Jun 24, 2022 in PHP by narikkadan
• 63,600 points
638 views
0 votes
0 answers

How to open php files through localhost?

I am creating a student management program ...READ MORE

Jun 10, 2022 in PHP by narikkadan
• 63,600 points
1,237 views
0 votes
0 answers

mysqli_fetch_array while loop columns

I have this code to iterate over ...READ MORE

Jun 4, 2022 in PHP by Kichu
• 19,040 points
1,475 views
0 votes
0 answers

php convert date to mktime function

I posted a date input $_POST['date'] with format 2013/11/22 and time $_POST['time'] with ...READ MORE

Jun 27, 2022 in PHP by narikkadan
• 63,600 points
484 views
0 votes
0 answers

Show a number to two decimal places

What's the correct way to round a ...READ MORE

Jun 24, 2022 in PHP by narikkadan
• 63,600 points
604 views
0 votes
0 answers

How can I remove a package from Laravel using PHP Composer?

What is the best way to remove ...READ MORE

Jun 25, 2022 in PHP by narikkadan
• 63,600 points
555 views
0 votes
0 answers

What is the best IDE for PHP?

I use Notepad++ for code editing, I need an ...READ MORE

Jun 23, 2022 in PHP by narikkadan
• 63,600 points
641 views
0 votes
0 answers

When to generate a new Application Key in Laravel?

As it automatically sets it for me ...READ MORE

Jun 25, 2022 in PHP by narikkadan
• 63,600 points
553 views
0 votes
0 answers

Why PHP variables start with a $ sign symbol?

Why should we write $var_name = value; ...READ MORE

Jun 23, 2022 in PHP by narikkadan
• 63,600 points
639 views
0 votes
0 answers

Why use $_SERVER['PHP_SELF'] instead of ""

In a form on a PHP page, ...READ MORE

Jun 25, 2022 in PHP by narikkadan
• 63,600 points
541 views
0 votes
0 answers

PHP sleep delay

I want to put a number of ...READ MORE

Jun 26, 2022 in PHP by narikkadan
• 63,600 points
488 views
0 votes
0 answers

php create object without class

How can I create an object in ...READ MORE

Jun 20, 2022 in PHP by narikkadan
• 63,600 points
697 views
0 votes
0 answers

php is a scripting language or server side language?

I read that the scripting languages run ...READ MORE

Jun 18, 2022 in PHP by narikkadan
• 63,600 points
809 views
0 votes
0 answers

Difference between call by value and call by reference in php and also $$ means?

What is the difference between call by ...READ MORE

Jun 26, 2022 in PHP by narikkadan
• 63,600 points
458 views
0 votes
0 answers

PHP Unset Array value effect on other indexes

I want to know how unset affects ...READ MORE

Jun 25, 2022 in PHP by narikkadan
• 63,600 points
503 views
0 votes
0 answers

Implode array values?

My array: Array ( [0] => ...READ MORE

Jun 27, 2022 in PHP by narikkadan
• 63,600 points
408 views
0 votes
0 answers

Multi-line strings in PHP

Consider: $xml = "l"; $xml = "vv"; echo $xml; This will ...READ MORE

Jun 26, 2022 in PHP by narikkadan
• 63,600 points
445 views
0 votes
0 answers

PHP function to generate v4 UUID

I am working on a function that ...READ MORE

Jun 4, 2022 in PHP by Kichu
• 19,040 points
1,384 views
0 votes
0 answers

Showing all errors and warnings

The following script is generating a warning ...READ MORE

Jun 23, 2022 in PHP by narikkadan
• 63,600 points
566 views
0 votes
0 answers

Hashing a string in php

This is the hashed output "bWNgAQW2FLc" I ...READ MORE

Jun 27, 2022 in PHP by narikkadan
• 63,600 points
388 views
0 votes
0 answers

Find PHP version on windows command line

I wanted to know the version of ...READ MORE

Jun 14, 2022 in PHP by narikkadan
• 63,600 points
941 views
0 votes
0 answers

What in layman's terms is a Recursive Function using PHP

Can someone please explain the recursive function ...READ MORE

Jun 26, 2022 in PHP by narikkadan
• 63,600 points
398 views
0 votes
0 answers

Generate Controller and Model

How can I generate Controller and Model ...READ MORE

Jun 27, 2022 in PHP by narikkadan
• 63,600 points
329 views
0 votes
0 answers

How Can I add HTML And CSS Into PDF

The HTML document I have renders perfectly fine ...READ MORE

Jun 26, 2022 in PHP by narikkadan
• 63,600 points
394 views
0 votes
0 answers

Automatic conversion from int to string in PHP

In PHP the variable of type integer ...READ MORE

Jun 12, 2022 in PHP by narikkadan
• 63,600 points
983 views
0 votes
0 answers

MySQL mysql_num_rows();

The variable: "$num_rows" is not even being ...READ MORE

Jun 23, 2022 in PHP by narikkadan
• 63,600 points
507 views
0 votes
0 answers

How are echo and print different in PHP?

What is the Fundamental difference between these ...READ MORE

Jun 26, 2022 in PHP by narikkadan
• 63,600 points
368 views
0 votes
0 answers

How to access function value in another function in PHP Classes

How can I return a variable value ...READ MORE

Jun 10, 2022 in PHP by narikkadan
• 63,600 points
1,042 views
0 votes
0 answers

Create PDF file using PHP

I want to create a PDF file ...READ MORE

Jun 24, 2022 in PHP by narikkadan
• 63,600 points
430 views
0 votes
0 answers

Remove all html tags from php string

I want to display the first 110 ...READ MORE

Jun 16, 2022 in PHP by narikkadan
• 63,600 points
769 views
0 votes
0 answers

php index of item

I have this array: $fruit = array('apple','orange','grape'); How can ...READ MORE

May 29, 2022 in PHP by Kichu
• 19,040 points
1,536 views
0 votes
0 answers

Laravel 5 – Clear Cache in Shared Hosting Server

php artisan cache:clear Is there any workaround to ...READ MORE

Jun 20, 2022 in PHP by Kithuzzz
• 38,000 points
550 views
0 votes
0 answers

mysql not working with php

 I'm using Apache2, php5, and MySQL. Every time I try ...READ MORE

Jun 24, 2022 in PHP by narikkadan
• 63,600 points
406 views
0 votes
0 answers

How to use __dir__?

I want to use __dir__. I don't ...READ MORE

Jun 25, 2022 in PHP by narikkadan
• 63,600 points
356 views
0 votes
0 answers

Creating a config file in PHP

I am working on creating config file ...READ MORE

Jun 24, 2022 in PHP by narikkadan
• 63,600 points
397 views
0 votes
0 answers

How to connect MySQL db using new XAMPP

What is the best way to connect ...READ MORE

Jun 26, 2022 in PHP by narikkadan
• 63,600 points
308 views