<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Php on Yuvrajsinh Jhala</title><link>https://imyuvii.com/tags/php/</link><description>Recent content in Php on Yuvrajsinh Jhala</description><generator>Hugo -- gohugo.io</generator><language>en-us</language><lastBuildDate>Mon, 26 Jun 2023 13:24:04 +0530</lastBuildDate><atom:link href="https://imyuvii.com/tags/php/index.xml" rel="self" type="application/rss+xml"/><item><title>Efficient Error Logging: How to Log jQuery/JavaScript Errors to a File in Laravel</title><link>https://imyuvii.com/posts/efficient-error-logging-jquery-javascript-errors-laravel/</link><pubDate>Mon, 26 Jun 2023 13:24:04 +0530</pubDate><guid>https://imyuvii.com/posts/efficient-error-logging-jquery-javascript-errors-laravel/</guid><description>&lt;h2 id="introduction"&gt;Introduction&lt;/h2&gt;
&lt;p&gt;Error handling is an essential part of web development to identify and troubleshoot issues. In this blog post, we&amp;rsquo;ll explore how to log jQuery/JavaScript errors to a file using Laravel, a popular PHP framework. By logging these errors, you can gain valuable insights into client-side issues and streamline the debugging process.&lt;/p&gt;
&lt;h2 id="why-log-jqueryjavascript-errors"&gt;Why log jQuery/JavaScript errors?&lt;/h2&gt;
&lt;p&gt;Logging JavaScript errors is a fundamental practice for web developers. It involves capturing and recording errors that occur in JavaScript code during runtime. By implementing error logging, developers gain insights into the nature and frequency of errors, aiding in debugging, troubleshooting, and optimizing their web applications.&lt;/p&gt;</description></item><item><title>How to Build a RESTful API with PHP and Laravel</title><link>https://imyuvii.com/posts/building-restful-api-php-laravel/</link><pubDate>Sat, 20 May 2023 14:27:38 +0530</pubDate><guid>https://imyuvii.com/posts/building-restful-api-php-laravel/</guid><description>&lt;h2 id="introduction"&gt;Introduction&lt;/h2&gt;
&lt;p&gt;In this blog post, we&amp;rsquo;ll dive into the world of RESTful APIs and learn how to build one using PHP and the Laravel framework. RESTful APIs have become the standard for communication between different systems and are widely used in web development. By the end of this post, you&amp;rsquo;ll have a solid understanding of the fundamentals of RESTful APIs and be equipped with the knowledge to create your own using PHP and Laravel.&lt;/p&gt;</description></item><item><title>Execute Shell commands via PHP</title><link>https://imyuvii.com/posts/execute-shell-commands-via-php/</link><pubDate>Mon, 20 Nov 2017 13:56:12 -0500</pubDate><guid>https://imyuvii.com/posts/execute-shell-commands-via-php/</guid><description>&lt;p&gt;Not everyone aware about &lt;a href="https://imyuvii.com/tags/php/"&gt;PHP&lt;/a&gt;‘s capabilities of making SSH connections and executing remote commands, but it can be very handy. I’ve been using it a lot in PHP CLI applications that I run from cronjobs, but initially it was a pain to get it to work. The &lt;a href="http://www.php.net/manual/en/ref.ssh2.php"&gt;PHP manual on Secure Shell2 Functions&lt;/a&gt; is not very practical or methodical for that matter, so I would like to share my understandings on how to make setting this up in less time.&lt;/p&gt;</description></item><item><title>Installing LAMP stack on Ubuntu</title><link>https://imyuvii.com/posts/installing-lamp-stack-ubuntu/</link><pubDate>Wed, 29 Mar 2017 13:56:12 -0500</pubDate><guid>https://imyuvii.com/posts/installing-lamp-stack-ubuntu/</guid><description>&lt;p&gt;LAMP is short for &lt;strong&gt;L&lt;/strong&gt;inux, &lt;strong&gt;A&lt;/strong&gt;pache, &lt;strong&gt;M&lt;/strong&gt;ySQL, &lt;strong&gt;P&lt;/strong&gt;HP. This tutorial shows how you can install LAMP stack (Apache2, PHP and MySQL) on an Ubuntu 16.04 server.&lt;/p&gt;
&lt;h2 id="why-i-still-reference-this"&gt;Why I Still Reference This&lt;/h2&gt;
&lt;p&gt;When I was doing freelance PHP work, spinning up a fresh Ubuntu VPS for a client was something I did every few weeks. Each time I would end up re-Googling the same commands, because the package names and the correct sequence of steps are just different enough across PHP versions that I could never fully commit them to memory.&lt;/p&gt;</description></item><item><title>Migrating to PHP 7: What Changed and What You Need to Know</title><link>https://imyuvii.com/posts/last-flight-php7/</link><pubDate>Fri, 24 Mar 2017 13:56:12 -0500</pubDate><guid>https://imyuvii.com/posts/last-flight-php7/</guid><description>&lt;p&gt;Eleven years after its 5.0 release, a new major version is finally coming our way!. PHP7 is out, and it’s time to get your code ready. I’ve already started migrating from &lt;a href="http://php.net/manual/en/migration70.php"&gt;5.6 to 7&lt;/a&gt;, Here is the official document for Migration PHP 5.6 to 7.&lt;/p&gt;
&lt;p&gt;But how will this impact your current PHP codebase? What really changed? How safe is it to update? This post will answer these questions and give you a taste of what’s to come with PHP7&lt;/p&gt;</description></item></channel></rss>