December 1, 2018

How to download and install latest version of wordpress on localhost syste usgin xampp?

Step: 1
  - First you need to Download XAMPP and install in your local sysmte.

   - Now you need to Download latest version of Wordpress.


Step: 2
   - Start your Apache and MySQL services from XAMPP Controler Panel.



Step: 3
   - After start success MySQL service open phpMyAdmin in browser and create new database.



Step: 4
   - Now unzip downloaded wordpress zip file here: c://xampp/htdocs/your_folder/

Step: 5
   - After unzip file you have one wp-config-sample.php file, rename this file name to wp-config.php.

   - Open wp-config.php file in any editor for change databse details. And change following details on this file (by default username: 'root', password: '', hostname: 'localhost')

/** The name of the database for WordPress */
define('DB_NAME', 'wordpress_demo');

/** MySQL database username */
define('DB_USER', 'root');

/** MySQL database password */
define('DB_PASSWORD', '');

/** MySQL hostname */
define('DB_HOST', 'localhost');


Step: 6
   - Need some other wordpress configuration, So open this path in browser http://localhost/your_folder and you have option for select language and press continue button

Step: 7
   - Now you need to insert wordpress admin details like Site tile, username, password and email address, So fill this details and install wordpress


Step: 8
  - After wordpress installed you get successfully message and wordpress admin login link to access wp-admin.

Spte: 9
  - On wordpress admin page you should enter username and password to access wordpress admin.




Enjoy! And my next tutorial is How to post a blog from wordpress admin?


September 23, 2018

How to draw different type of pyramid in PHP using short code?



To draw a simple pyramid:
Example:

<pre>
<?php
 $no = $i = 5;
 while ($i--)
    echo str_repeat(' ', $i).str_repeat('*', $no - $i)."\n";
?>
</pre>

Output:

    *
   **
  ***
 ****
*****

Note: If you want display in middle like below

    *
   * *
  * * *
 * * * *
* * * * *

- You need just give space after start in while loop in ablove example like:
Example:
<pre>
<?php
 $no = $i = 5;
 while ($i--)
    echo str_repeat(' ', $i).str_repeat('* ', $no - $i)."\n";
?>
</pre>


- The next example for display below pyramid:
Example:

<?php
$num=1;
for($i=1;$i<5;$i++){
   for($j=1;$j<=$i;$j++){
       echo $num;
       $num=$num+1;
   }
   echo "<br />";
}
?>

Output:
1
23
456
78910

September 8, 2018

HTML5 elements for media content!



Below are list of all new HTML5 elements for media content.

<audio>
      - Ites define sound content. Its (<audio>) used to add audio content to a Web Page.
Syntax  - <audio src="define path" type="auto/mpeg" ></audio>

<video>
      - Video eletemt is same basic syntax of audio element. Its also used to add video content to a Web Page.
Syntax  - <video src="define path" type="video/mp4" ></video>

<embed>
    - Its can be define container for non - HTML application

<source>
      - Used for multiple media resources for media elements like <audio> and <video>
Syntax  - <source controls>
<video src="define path" type="video/mp4" ></video>
        </source>
<track>
        - Track eletemt used as a child for <audio> and <video> element
Syntax - <video controls>
<track kind="subtitle" src="" srclang="en" label="English">
        </video>

September 20, 2017

How to display image from an undisclosed folder using PHP?



You can easly display image using another PHP file.

You can pass image name after .php file.

Instead of linking directly to the image in your web page, the <img> tag links to the proxy script, and passes the name of the image as a query string.

Example:

<img src="proxy.php?img=profile.jpg" alt="This is drawn from a hidden folder" ... />

Enjoy!

Get online rgba color codes from CSS #color code




If you want to convert your css color code online,  Then many sites are available like: https://www.hexcolortool.com/

Example

Convert this CSS code : #0f72b8 into rgba code : rgba(15, 114, 184, 0.8)

Enjoy!

The Future of Technology: Emerging Trends to Watch in 2025

Introduction As we navigate through 2025, the technological landscape continues to evolve at an unprecedented pace. Innovations that once se...