Category "php"

What might the issue with this my code to upload image in my users form

I created a form to capture user details including their passport, but when ever the user fill the form, it went blank without populating the database with the

Is there a way to use Foundry Model for Authentification inside Functional Tests?

1) App\Tests\Controller\Admin\Api\Promotion\PromotionDeleteControllerTest::test_deleting_promotion LogicException: The first argument of "Symfony\Bundle\Framewo

Importing Data from a Password Protected Website

I've the following macros working independently of each other (sort of). I need them working together. First I import data from a URL that points to a CSV file

Dropdown with current value from Mysql

I am struggling to solve a problem in a CRUD working with MySQL (MariaDB). The situation is the following: I have a DB table called "tools" in this table I have

Losing session data after POST from third party website

I have a Laravel site that redirects to a payment provider (external third party website). When the user completes their payment, they are redirected back to my

Laravel s3 upload file with metadata using pre-signed url

I am implementing S3 file uploads and downloads using pre-signed urls. I have one s3 bucket (versioning enabled) and one AWS user but I want to track the histor

How to convert RGBA color codes to 8 Digit Hex in PHP?

I'm attempting to convert some rgba values into a format suitable for SubStation Alpha subtitle files. The .ass file format requires a colour format like &H

Elastic beanstalk cron with laravel schedule

I have just made two schedule in laravel. Register them in kernel like this $schedule->command('jobs:expire')->everyMinute(); $schedule->command('job

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