How to remove index.php from WordPress site URL

Go to your WP-ADMIN–>Settings–>Permalink and use the permalink structure change there, if it generate any .htaccess file copy the content and update your .htaccess file. Or Check if your hosting mod_rewrite is enable by creating a file phpinfo.php with content, Upload this file and browse via Browser. So you know which modules are enabled. You … Read more

How to insert TIMESTAMP into my MySQL table?

In addition to checking your table setup to confirm that the field is set to NOT NULL with a default of CURRENT_TIMESTAMP, you can insert date/time values from PHP by writing them in a string format compatible with MySQL. This will give you the current date and time in a string format that you can insert into MySQL.

PHP: bootstrap.php

No, bootstrapping is not a part of PHP. Rather it is a file that is generally ran at installation time, or with PHP for every request, that takes care of making sure everything is included and general startup procedures are taken care of.

How to make PDF file downloadable in HTML link?

This is a common issue but few people know there’s a simple HTML 5 solution: Where newfilename is the suggested filename for the user to save the file. Or it will default to the filename on the serverside if you leave it empty, like this: Compatibility: I tested this on Firefox 21 and Iron, both worked fine. … Read more

PHP Multiple Checkbox Array

You pass the form name as an array and then you can access all checked boxes using the var itself which would then be an array. To echo checked options into your email you would then do this: Please keep in mind you should always sanitize your input as needed. For the record, official docs … Read more

The difference between \n and
in php

<br /> is a HTML line-break, whereas \n is a newline character in the source code. In other words, <br /> will make a new line when you view the page as rendered HTML, whereas \n will make a new line when you view the source code. Alternatively, if you’re outputting to a console rather than somewhere that will be … Read more

How to use data-saferedirecturl in a tag in PHP?

All links in Gmail are interpreted in the browser. The data-saferedirecturl tag is added automatically. So the href shows the link that you will be clicking in the bottom of your browser but sends you to a google-originated URL like https://www.google.com/url?hl=en-GB&site.com/324dd3. This way the third party don’t have access to sensitive data.

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)