<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Softmastx on Medium]]></title>
        <description><![CDATA[Stories by Softmastx on Medium]]></description>
        <link>https://medium.com/@softmastx?source=rss-6daade295a51------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/2*BgH4VOUwTs-VxR1SUM5jLg.jpeg</url>
            <title>Stories by Softmastx on Medium</title>
            <link>https://medium.com/@softmastx?source=rss-6daade295a51------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sat, 28 Nov 2026 21:28:36 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@softmastx/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[Checking SSL certificates expiration date in Let’s Encrypt]]></title>
            <link>https://medium.com/@softmastx/checking-ssl-certificates-expiration-date-in-lets-encrypt-5d9366e32da?source=rss-6daade295a51------2</link>
            <guid isPermaLink="false">https://medium.com/p/5d9366e32da</guid>
            <category><![CDATA[ssl]]></category>
            <category><![CDATA[ssl-certificate]]></category>
            <category><![CDATA[lets-encrypt]]></category>
            <dc:creator><![CDATA[Softmastx]]></dc:creator>
            <pubDate>Fri, 07 Feb 2020 11:20:28 GMT</pubDate>
            <atom:updated>2020-02-07T11:20:28.433Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/640/1*ehhTUdqGF-ldoZj0Z52sQA.png" /><figcaption><a href="https://letsencrypt.org/">https://letsencrypt.org</a></figcaption></figure><p>If you have previously created SSL certificate with <strong>certbot</strong> command like</p><pre>sudo <strong>certbot</strong> — nginx -d example.com -d <a href="http://www.lannapastel.softmastx.com/">www.example.com</a></pre><p>So, you can obtain certificates info with this command.</p><pre>user@:~$ sudo <strong>certbot certificates</strong></pre><p>It will show all certificates info managed by let’s encrypt including expiration date, remaining days and path.</p><pre>- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - <br>Found the following certs:<br>  Certificate Name: example.com<br>    Domains: example.com <a href="http://www.lannapastel.softmastx.com/">www.example.com</a><br>    Expiry Date: 2020-05-04 05:40:24+00:00 (VALID: 86 days)<br>    Certificate Path: /etc/letsencrypt/live/example.com/fullchain.pem<br>    Private Key Path: /etc/letsencrypt/live/example.com/privkey.pem<br>  Certificate Name: example2.com<br>    Domains: example2.com www.example2.com<br>    Expiry Date: 2020-04-09 23:15:06+00:00 (VALID: 62 days)<br>    Certificate Path: /etc/letsencrypt/live/example2.com/fullchain.pem<br>    Private Key Path: /etc/letsencrypt/live/example2.com/privkey.pem<br>- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -</pre><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=5d9366e32da" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How to write HTML code inside  PHP the better way!]]></title>
            <link>https://medium.com/@softmastx/how-to-write-html-code-inside-php-the-better-way-a56a6541bee8?source=rss-6daade295a51------2</link>
            <guid isPermaLink="false">https://medium.com/p/a56a6541bee8</guid>
            <category><![CDATA[html]]></category>
            <category><![CDATA[php]]></category>
            <dc:creator><![CDATA[Softmastx]]></dc:creator>
            <pubDate>Mon, 20 Jan 2020 03:37:43 GMT</pubDate>
            <atom:updated>2020-01-21T00:12:51.131Z</atom:updated>
            <content:encoded><![CDATA[<h3>A better way to write HTML code inside PHP</h3><h4>While making a web application with PHP, we often need to write HTML tags inside PHP file to print out a few results in form of HTML. We can do this task in many different ways. Some of methods I’ve been used below,</h4><h3>Echo or Print the classic way.</h3><p>Almost every developer uses this style for example,</p><pre>&lt;?php <br> $name = &quot;Softmastx&quot;; <br> <strong>echo</strong> &quot;&lt;h1&gt;Hello User, &lt;/h1&gt; &lt;p&gt;Welcome to {$name}&lt;/p&gt;&quot;; <br>?&gt;</pre><p>or</p><pre>&lt;?php<br>$array = array(1, 2, 3, 4);<br>?&gt;</pre><pre>&lt;table&gt;<br>&lt;thead&gt;&lt;tr&gt;&lt;th&gt;Number&lt;/th&gt;&lt;/tr&gt;&lt;/thead&gt;<br>&lt;tbody&gt;<br>&lt;?php foreach ($array as $num) : ?&gt;<br>&lt;tr&gt;&lt;td&gt;&lt;?= htmlspecialchars($num) ?&gt;&lt;/td&gt;&lt;/tr&gt;<br>&lt;?php endforeach ?&gt;<br>&lt;/tbody&gt;<br>&lt;/table&gt;</pre><h3>A better way!</h3><p>Use <strong>?&gt;…&lt;?php </strong>inside normal open and close tag.</p><pre>&lt;?php<br>$name = &quot;Softmastx&quot;;</pre><pre><strong>?&gt;</strong></pre><pre>  &lt;div class=&quot;profile profile-user&quot;&gt;<br>  &lt;h1&gt;Hello User, &lt;/h1&gt; <br>  &lt;p&gt;Welcome to &lt;?php echo $name;?&gt;&lt;/p&gt;<br>  &lt;/div&gt;</pre><pre><strong>&lt;?php</strong></pre><pre>?&gt;</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Dj3BkRxhLEu7PZqJHepsPg.png" /></figure><p>Instead of getting code in green, you still have code highlighting!!!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=a56a6541bee8" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How to prevent google indexing my website?]]></title>
            <link>https://medium.com/@softmastx/how-to-prevent-google-indexing-my-website-986002ac94a7?source=rss-6daade295a51------2</link>
            <guid isPermaLink="false">https://medium.com/p/986002ac94a7</guid>
            <category><![CDATA[nginx]]></category>
            <category><![CDATA[google-index]]></category>
            <category><![CDATA[google-indexing]]></category>
            <dc:creator><![CDATA[Softmastx]]></dc:creator>
            <pubDate>Mon, 13 Jan 2020 05:37:28 GMT</pubDate>
            <atom:updated>2020-01-13T05:37:28.060Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*sDbRK03HVfiahsMeNKPeYg.jpeg" /><figcaption>Photo by <a href="https://unsplash.com/@nadineshaabana?utm_source=unsplash&amp;utm_medium=referral&amp;utm_content=creditCopyText">Nadine Shaabana</a> on <a href="https://unsplash.com/s/photos/stop?utm_source=unsplash&amp;utm_medium=referral&amp;utm_content=creditCopyText">Unsplash</a></figcaption></figure><p>In some cases, if you don’t want to have google indexing your website so, you can add this code in your Nginx Server Block configuration file like so.</p><pre>server {<br>   <br>   listen 443 ssl;...<br>   # This header will prevent search engines from indexing your https pages<br>   <strong><em>add_header X-Robots-Tag &quot;noindex, nofollow, nosnippet, noarchive&quot;;</em></strong></pre><pre>}</pre><p>If you are not familiar to deal with server block, please follow this guide.<br><strong>How To Set Up Nginx Server Blocks (Virtual Hosts) on Ubuntu 16.04</strong> <br><a href="https://www.digitalocean.com/community/tutorials/how-to-set-up-nginx-server-blocks-virtual-hosts-on-ubuntu-16-04">https://www.digitalocean.com/community/tutorials/how-to-set-up-nginx-server-blocks-virtual-hosts-on-ubuntu-16-04</a></p><p><strong>References</strong>:<br><a href="https://stackoverflow.com/questions/44212339/how-to-prevent-google-indexing-my-https-urls"><em>https://stackoverflow.com/questions/44212339/how-to-prevent-google-indexing-my-https-urls</em></a><em><br></em><a href="https://www.digitalocean.com/community/tutorials/how-to-set-up-nginx-server-blocks-virtual-hosts-on-ubuntu-16-04">https://www.digitalocean.com/community/tutorials/how-to-set-up-nginx-server-blocks-virtual-hosts-on-ubuntu-16-04</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=986002ac94a7" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>