<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Mutale85</title>
    <description>The latest articles on DEV Community by Mutale85 (@mutale85).</description>
    <link>https://dev.to/mutale85</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F115673%2Fee73ee4b-88bc-4dee-9c8a-fa9e1b1400b4.jpeg</url>
      <title>DEV Community: Mutale85</title>
      <link>https://dev.to/mutale85</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/mutale85"/>
    <language>en</language>
    <item>
      <title>HELP HTACCESS</title>
      <dc:creator>Mutale85</dc:creator>
      <pubDate>Tue, 04 Aug 2020 16:22:36 +0000</pubDate>
      <link>https://dev.to/mutale85/help-htaccess-43jj</link>
      <guid>https://dev.to/mutale85/help-htaccess-43jj</guid>
      <description>&lt;p&gt;Mine is a question.&lt;br&gt;
I have a redirect from, (example.com/users?user='username')&lt;br&gt;
I have redirected this to (example.com/username)&lt;br&gt;
How I am also trying to redirect (example.com/members/settings) to (example.com/settings), the redirect seems to work, except that, its opening the page of (example.com/username).&lt;/p&gt;

&lt;p&gt;Here is my code.&lt;/p&gt;

&lt;p&gt;RewriteEngine On&lt;br&gt;
RewriteCond %{REQUEST_FILENAME} !-d&lt;br&gt;
RewriteCond %{REQUEST_FILENAME} !-f&lt;br&gt;
RewriteRule ^([^/]*)$ users/index.php?id=$1 [L]&lt;br&gt;
RewriteEngine on&lt;br&gt;
RewriteCond %{QUERY_STRING} ^$&lt;br&gt;
RewriteRule ^example.com/members/settings$ &lt;a href="http://example.com/settings/"&gt;http://example.com/settings/&lt;/a&gt; [R=301,L]&lt;/p&gt;

&lt;p&gt;How can i make (example.com/settings) to open its own page?&lt;/p&gt;

</description>
      <category>htaccess</category>
    </item>
    <item>
      <title>How many projects can one person run?</title>
      <dc:creator>Mutale85</dc:creator>
      <pubDate>Mon, 03 Aug 2020 18:19:31 +0000</pubDate>
      <link>https://dev.to/mutale85/how-many-projects-can-one-person-run-bah</link>
      <guid>https://dev.to/mutale85/how-many-projects-can-one-person-run-bah</guid>
      <description>&lt;p&gt;I created an all in one university and college application system.&lt;br&gt;
Then it was a big challenge signing up institution. They seem not to understand the whole concept of helping prospective applicants being able to apply to more than one college with just a click. &lt;/p&gt;

&lt;p&gt;I have been thinking of giving up, then I feel, i can still make it work and it can be the next big school application system for Africa.&lt;/p&gt;

&lt;p&gt;While it stalled, I developed a dating website. &lt;br&gt;
I launched, after a month os 25 users, i pulled it down, I was using a free domain and hosted it on vultr... &lt;br&gt;
The sad thing was, i missed the payment when i was deployed in the bush for military recap course. So vulture deleted my server and my data without backing it up. &lt;br&gt;
I lost much time and I have felt lazy to get my dating site up again.&lt;/p&gt;

&lt;p&gt;My Macbook charger broke and had no PC for two months. I was trying to organise funds to get a new charger... Here in my country, Macbook original chargers from Apple store cost a fortune, those from small local stores are typical Chinese (not original), they don't last long.&lt;br&gt;
So, I lost valuable time. And if you are used to coding, then you find yourself with no computer, its almost like getting a toothache... &lt;br&gt;
I resorted to doing morning and evening runs, while i sourced for funds.&lt;br&gt;
A friend from Canada brought me a new charger and I excitedly got back to coding.&lt;br&gt;
Its two months now, am thinking of either getting back my dating site online. &lt;br&gt;
I forgot to mention that I also lost my domain name to goddady, and they have raised the price * 10 to get it back.&lt;/p&gt;

&lt;p&gt;Anyway, am hoping no one buys the domain, and they release it so that i get get it again.&lt;/p&gt;

&lt;p&gt;Right now, build &lt;a href="https://weblister.co"&gt;https://weblister.co&lt;/a&gt; just to keep myself busy as I try to come up with a more viable project.&lt;/p&gt;

&lt;p&gt;Tell me what you think if this article.&lt;/p&gt;

</description>
    </item>
    <item>
      <title>Spent the whole day redoing my landing Page</title>
      <dc:creator>Mutale85</dc:creator>
      <pubDate>Mon, 03 Aug 2020 01:42:48 +0000</pubDate>
      <link>https://dev.to/mutale85/spent-the-whole-day-redoing-my-landing-page-46m6</link>
      <guid>https://dev.to/mutale85/spent-the-whole-day-redoing-my-landing-page-46m6</guid>
      <description>&lt;p&gt;&lt;a href="https://www.weblister.co"&gt;https://www.weblister.co&lt;/a&gt;&lt;br&gt;
I created a site which i wish everyone of you to add your websites, so that we make an online directory for website.&lt;br&gt;
So far, 4 sites listed.&lt;br&gt;
Then i got to work from 2-August 2020 at 09:00 Am till now - 03-August 2020 02:20 AM.&lt;/p&gt;

&lt;p&gt;What have i achieved?&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;A new landing page with. Which speaks more about what the site is. &lt;/li&gt;
&lt;li&gt;A new page for more information&lt;/li&gt;
&lt;li&gt;A new user profile's page with more functions. &lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;What am I up to now? &lt;br&gt;
Taking a nap, God willing, wake up to another project.&lt;/p&gt;

</description>
    </item>
    <item>
      <title>PHP To XML API</title>
      <dc:creator>Mutale85</dc:creator>
      <pubDate>Fri, 07 Dec 2018 06:34:01 +0000</pubDate>
      <link>https://dev.to/mutale85/php-to-xml-api-5hg3</link>
      <guid>https://dev.to/mutale85/php-to-xml-api-5hg3</guid>
      <description>&lt;p&gt;Hello People, &lt;br&gt;
i have php data that i should send to my API provider who requested the data to be in XML format like this:&lt;/p&gt;

&lt;p&gt;I am getting data from a form that has a PAY NOW button.&lt;/p&gt;

&lt;p&gt;if(isset($_POST['pay_now'])){&lt;br&gt;
$userid = $_POST['user-id'];&lt;/p&gt;

&lt;p&gt;$total_amount = $_POST['total_amount'];&lt;/p&gt;

&lt;p&gt;$currency = $_POST['currency'];&lt;/p&gt;

&lt;p&gt;$firstname = $_POST['firstname'];&lt;/p&gt;

&lt;p&gt;$lastname = $_POST['lastname'];&lt;/p&gt;

&lt;p&gt;$email = $_POST['email'];&lt;/p&gt;

&lt;p&gt;$phone = $_POST['phone'];&lt;/p&gt;

&lt;p&gt;$reasons = $_POST['reasons'];&lt;/p&gt;

&lt;p&gt;$application_id = $_POST['application_id'];&lt;/p&gt;

&lt;p&gt;$order_id = password_hash($application_id, PASSWORD_DEFAULT);&lt;/p&gt;

&lt;p&gt;$token = "XXXXX";&lt;/p&gt;

&lt;p&gt;$payUrl = "&lt;a href="https://secure1.sandbox.directpay.online/payv2.php?ID=%22.%24token"&gt;https://secure1.sandbox.directpay.online/payv2.php?ID=".$token&lt;/a&gt;;&lt;br&gt;
$CompanyRef = "XXXXX";&lt;/p&gt;

&lt;p&gt;$CompanyRefUnique = "olord11of2273host";&lt;/p&gt;

&lt;p&gt;$RedirectURL = "&lt;a href="http://www.mydomain.com/example?success="&gt;www.mydomain.com/example?success=".$CompanyRefUnique."&amp;amp;congrats=".$CompanyRef."&amp;amp;user=".$userid&lt;/a&gt;;&lt;/p&gt;

&lt;p&gt;$DeclinedURL = "&lt;a href="http://www.mydomain.com/example?paymentdecline="&gt;www.mydomain.com/example?paymentdecline=".$CompanyRef."&amp;amp;user=".$userid&lt;/a&gt;;&lt;/p&gt;

&lt;p&gt;$PTLtype = 20 ." minutes";&lt;/p&gt;

&lt;p&gt;$DefaultPayment = "MO";&lt;/p&gt;

&lt;p&gt;$ServiceDescription = $reasons;&lt;/p&gt;

&lt;p&gt;$ServiceType = "5525";&lt;/p&gt;

&lt;p&gt;$ServiceDate = date("YⓂ️d: hⓂ️ ")&lt;/p&gt;

&lt;p&gt;$datainput = '&lt;br&gt;
        &lt;br&gt;
            &lt;br&gt;
                    '.$total_amount.'&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;                &amp;lt;PaymentCurrency&amp;gt;'.$currency.'&amp;lt;/PaymentCurrency&amp;gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;

&lt;p&gt;'.$RedirectURL.'&lt;/p&gt;

&lt;p&gt;'.$DeclinedURL.' &lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;                      &amp;lt;CompanyRefUnique&amp;gt;'.$CompanyRefUnique.'&amp;lt;/CompanyRefUnique&amp;gt;

                        &amp;lt;CompanyRef&amp;gt;'.$CompanyRef.'&amp;lt;/CompanyRef&amp;gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;

&lt;p&gt;'.$PTLtype.'&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;                        &amp;lt;customerFirstName&amp;gt;'.$firstname.'&amp;lt;/customerFirstName&amp;gt;

                        &amp;lt;customerLastName&amp;gt;'.$lastname.'&amp;lt;/customerLastName&amp;gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;

&lt;p&gt;'.$email.'&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;                        &amp;lt;DefaultPayment&amp;gt;'.$DefaultPayment.'&amp;lt;/DefaultPayment&amp;gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;

&lt;p&gt;&lt;br&gt;
    &lt;br&gt;
        &lt;br&gt;
            '.$ServiceType.'&lt;br&gt;
                                                    '.$ServiceDescription.'&lt;br&gt;
                '.$ServiceDate.'&lt;br&gt;
        &lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;&amp;lt;/Services&amp;gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;

&lt;p&gt;';&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;    $ch = curl_init($payUrl);

            curl_setopt($ch, CURLOPT_URL, $payUrl);

            curl_setopt($ch, CURLOPT_HTTPAUTH, CURLAUTH_ANY);

            curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false);

            curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, 0);

            curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);

            curl_setopt($ch, CURLOPT_SSLVERSION,6);

            curl_setopt($ch, CURLOPT_HTTPHEADER, array('Content-Type: text/xml'));

            curl_setopt($ch, CURLOPT_POSTFIELDS, $datainput);

            $response = curl_exec($ch);

            curl_close($ch);
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;

&lt;p&gt;}&lt;/p&gt;

&lt;p&gt;I am not getting any errors, but am not getting a &lt;strong&gt;redirect to the sandbox&lt;/strong&gt; url. How can i make the Paynow Button to work like that?&lt;/p&gt;

</description>
    </item>
    <item>
      <title>PHP SEO</title>
      <dc:creator>Mutale85</dc:creator>
      <pubDate>Wed, 28 Nov 2018 10:39:17 +0000</pubDate>
      <link>https://dev.to/mutale85/php-seo-50l6</link>
      <guid>https://dev.to/mutale85/php-seo-50l6</guid>
      <description>&lt;p&gt;How can i optimise my php coded site for search engine?&lt;br&gt;
Whats the best way to go?&lt;/p&gt;

</description>
    </item>
    <item>
      <title>PHP to Node Js</title>
      <dc:creator>Mutale85</dc:creator>
      <pubDate>Tue, 20 Nov 2018 02:57:26 +0000</pubDate>
      <link>https://dev.to/mutale85/php-to-node-js-i1o</link>
      <guid>https://dev.to/mutale85/php-to-node-js-i1o</guid>
      <description>&lt;p&gt;Is it possible to covert a php website with MySQL database to node js?&lt;br&gt;
The site will have a lot of request for signing up and login and and posting of form data to MySQL DB. Someone suggested that its better i use Node js As my backend to avoid delays in data process? Your comments and suggestions will be highly appreciated.&lt;/p&gt;

</description>
    </item>
  </channel>
</rss>
