Category "php"

php echo remove slashes from url [duplicate]

I have experienced a strange problem with the slideshow on our corporate site and i haven't figured what is whong. After Joomla updated to 3.7

Yoast SEO (WordPress Plugin) - Get plugin generated data manually

I wanted to get the Yoast SEO generated data manually, see example code below This data is being generated by Yoast and automatically add it inside the head ta

How to pass data to all views in Laravel 5?

I want to have some default data accessible in all views in my Laravel 5 application. I have tried to search for it but only find results for Laravel 4. I have

Detect a fetch request in PHP

How can I detect requests from the Fetch API in PHP? I am currently using the approach below to detect an AJAX request: $context['isAJAX'] = (!empty($_SERVER['

Access denied when making connection from php container to mysql container

I’ve been searching the web for hours but do not find any solution to my problem. I have 3 containers: - nginx - php - mysql They are all connected to th

How to replicate ASP Classic SHA512 Hash function in PHP

I'm currently rewriting an asp classic site in PHP, everything so far has been simple until I reached the password hashing function. In PHP I've used hash_hmac

PHP Include for HTML?

I have a navigational bar, an image, and a heading that I'll be including in every page of my website, so I wanted to use php include to refer to this code in s

PHP if in_array() how to get the key as well?

Struggling with a tiny problem. I have an array: Array ( [0] => [6] => 6 [3] => 5 [2] => 7 ) I am checking if a set value is in

How to keep value of selected value after form submission?

I know there are a lot of questions related to it but believe me, no solution is working for me. <form action="index" method="post" > <s

Nginx RTMP not recording

I already setting up Nginx RTMP in ubuntu linux hosted by DigitalOcean. And currently running my laravel web application in localhost mode in my desktop. Everyt

Laravel Unknown Column 'updated_at'

I've just started with Laravel and I get the following error: Unknown column 'updated_at' insert into gebruikers (naam, wachtwoord, updated_at, created_a

why is Blade code getting rendered on the page?

I just started learning Laravel, Installed Laravel 7.6.2, and PHP 7.4.4 Without modifying a single line of code in the entire Laravel project, I try to open the

Reading emails with MAPI in PHP?

As you know Microsoft Exchange Server uses a proprietary protocol called MAPI. Is that possible to read emails from the Ms exchange with that protocol in PHP. I

Why ping attribute not working correctly in html5

Hi I'm building an tracking system for my project and I'm try to use ping attribute, but this attribute not working correctly on localhost. Here is my code wit

How to assert parameter attribute sub-structures in PHPUnit mock call expectations

I am testing an parameter sent to a mocked event handler. The parameter is an object of "Event" sub-type, which itself has some data nested inside it. I want to

java URL working on browser but not in client program

Client JAVA Program part : try { String downloadUrl1="https://www......&downloaded=1";

Laravel PHP: multiple project run at the same time [closed]

I want to run multiple laravel frame work project at the same time.Exactly how to do it I dont know. I used a command : php artisan serv

Laravel - Browser displays message again when I press back button

Every time I create a new category in my application, it displays a message of success. Here is my code: return redirect('dashboard/categorias')->with('mess

onKeyUp event calculation not working on the following rows from php generated forms except the first one

-------------------------------------------------- |No|Style No|Item Desc|Qty|Unit Price|Total Price| ----------------------------------------------

Laravel dosen't connect with Oracle

I'm using yajra/laravel-oci8 for Oracle connection with laravel. But I couldn't connected to Oracle, from my client PC to Server. showing this error: I'm u