Get current url path

How many examples I have not seen, all are essentially the same, and perform the same thing. Let’s take a look at one of them. Route::current()->uri() We have url https://example.com/test and we …

Get latest from array of microtimes

I am looping through a list of files and grabbing their modified date, which is returned in microtime format: int(1633986072) int(1633971686) int(1634014866) int(1634000474) I can loop through these, …

change number of digits user inputs

I was trying to set up a signin/signup section on my website and I found a github account with codes that satisfy my target. This are the github files Anyway, the only thing I want to change is that …

param is missing or the value is empty laravel

I am creating a user with the api provided. I am using Laravel and trying to store data to smartrmail and docs to create new subscriber is here https://docs.smartrmail.com/en/articles/636615-list-…

Route [admin.editcategory] not defined

Hello Everyone I am new in laravel. I just started to watch a series of ecommerce from youtube. In the series at the 15th video , when editing the category i did as same as the youtuber did. But there …

How to stop PHP cron job after 30 minutes from sh file

I’m running a php yii2 cron from cronjob through a sh file every minute, so if previous job doesn’t complete within a minute so it won’t execute more than 1 time. But my problem is that, it got stuck …

Return Array values from PHP Function

I’m trying to get the users from PHP form. PHP Function has to create new users (username, first name & email) with registeruser($user),that is to insert to database. I was able to insert only one …

stop other form1 from submitting when submitting form2 using php/javascript or jquery

this is the real code I am doing the first post contains the same problem, as you can see the form 1 buttons is to control the iteration of the $_SESSION[‘clicks’] value i am using sessions in this …

XML file/data handling with PHP

I have a XML file as a master file (master.xml) and its content is blank. I have a loop in which i get some data and …

How do I redirect my login link to show the landing page when someone logs into his account

I have two login links that appears on the navbar and the other one appears when a user clicks on the checkout button. I.ve configured the links at the logincontroller for the checkout page to be like …