Category "php"

Yii2 redirecting to previous page after login

Hello World! so here is the deal, i am trying to redirect the users after loginin' in to the previous page but it's not working .. i tried to use all of these

How to save session data permenantly when the data are sent from Flutter function using http.post method

I want to access the session value in PHP from another PHP file that is assigned with a value sent from the Flutter HTTP.post method. When I try this I got the

JQuery content editable div and text box on submit not sending POST

I have a website where you can edit and format text, then you can save it on to the server. I am using jquery to send the data to a PHP page where it will be sa

No definition found for function in vendor vscode

My vscode does not see the definition of functions in vendor library. I don't know if it has anything to do with gitignore, where I have put vendor, but I woul

WordPress and WPML : rewrite slug + language = 404

I use WPML with WordPress. I created 3 custom post types for a project with students. I would like for each student's page to add their names in the slug like t

Old problem PHP still not resolved. PDO pgsql is slower than pg functions

i fight with same issue as described here: Slow connection PHP PDO Postgres but not MySQL here's the thing - PDO Postgresql connections seem to be really slow

Symfony - "framework.test" config is not set to true

Using Symfony 5.2 and PhpUnit last version, I have this error with my functional test LogicException: You cannot create the client used in functional tests if t

Laravel Polymorphism for different content types (Multisite)

I started to develop a little Content Management System for two languages (de, en) that starts to grow bigger. In that context, I have Posts and Pages (a bit li

Alert message after submitting form in PHP

I'm using form with POST method to apply session, once the form is submitted the page reloads and I can't have any alerts on the screen. So I've used some tric

Php not updating word document

I had created an automation system with php which takes information straight from a contact form on my website and fills in the information into a word template

php retrieve specific data onclick from database in a list format

<?php include ("../navbar.php"); ?> <?php include("../conn.php"); $query = "select * from semi_synthetic"; $result =

Adding custom body class to the custom archive pages

I have created two custom archive pages: archive-one.php and archive-two.php. Archive pages are placed inside main catalog of my theme. Now what I trying to do

Updating and Synchronizing Woocommerce Subscriptions to Custom Date

We have a client who is shipping Subscription products (which are actually Composite products with four to five Bundles of products in them) and they offer deli

php Blob url to directory

throught ajax send a blob url var blob = new Blob([content], { type: 'text/html; charset=utf-8' }); var urlBlob = URL.createObjectURL(blob); $.ajax({ url:

Unable to uninstall brew php from homebrew

I am trying to uninstall [email protected] using homebrew but it keeps on saying Error: No such keg: /usr/local/Cellar/[email protected] how to uninstall it and what is keg?

How to run a shell as root from php (apache)

I am using ubuntu server 20.04 LTS, where I have multiple shell files, using php from apache I need to run multiple shell files from a browser but need to run a

display WooCommerce “Add to cart” button with short-code [add_to_cart ] dynamically

I use WooCommerce short-code [add_to_cart ] inside a widget sidebar On WordPress website to display “Add to cart” button on product pages (wanted to

Duplicate hidden form with not unique input ID

I have a layout that require to have the same form in 2 different place for mobile and desktop view What I did is to wrap both in a container that hide one or a

LARAVEL: How to fetch id dynamically in a query builder?

I want to join multiple tables in laravel with query builder. My problem is that my code only works if I specify the id myself that I want like this: $datauser

XAMPP/SQLSRV: Unable to find Sqlsrv in PHPINFO(); - errors coming from connection

I'm attempting to connect into a SQL Server DB I have hosted on my Linux VM. I'm running xampp on my development windows machine and the connection is coming fr