Skip to main content
The 2024 Developer Survey results are live! See the results

All Questions

Tagged with
1 vote
0 answers
35 views

Major IMAP services aren’t connecting to imap_open() in PHP

When connecting to a major IMAP service in PHP, I get a "Connection refused" error. I don't understand why this is happening. I have tried iCloud (imap.mail.me.com), Yahoo! (imap.mail.yahoo....
Dneail's user avatar
  • 11
0 votes
1 answer
40 views

Create server locally with laravel but can not accessed

i create server locally on my PC, with laravel project and running with command php artisan serve --host 0.0.0.0 i try to access with google chrome type http://192.168.099:8000 and it can be access. ...
Dena Achmad's user avatar
0 votes
0 answers
31 views

Xampp Php Informix jdbc

I need help to get result from informix server through xampp. I installed Xampp 3.3.0 on windows 11. I used $conn= osbc_connect (DSN, username, password); and also used $dbo = new pdo (odbc:dsnname,...
Amit's user avatar
  • 1
0 votes
1 answer
85 views

Laravel project fails to connect to database when using PHP artisan serve but works with MAMP

I have a Laravel project set up on my MacBook and I'm encountering an issue with connecting to the database when using PHP artisan serve. Here's the problem: When I access the project via localhost/...
Aamish's user avatar
  • 239
0 votes
0 answers
23 views

Is there a way to create connection pooling in codeigniter 3 using custom mysqli driver? [duplicate]

I have created custom mysqli driver and loaded from database.php, when I am calling any API from postman its creating connection pooling and getting connection from connection pool, and when request ...
Rajeshkumar Krishnan's user avatar
0 votes
1 answer
49 views

Cannot use Facades Auth On PHP

I try to check auth on API PHP but the result is uncaught. This is my code on db.php: <?php use Illuminate\Support\Facades\Auth; $host = "localhost"; $user = "root"; $pass = &...
M Saintone's user avatar
0 votes
0 answers
15 views

Multi domain connect with single react build

My current project developed by code PHP and now we are planning to migrate react. The current architecture of the website, we have 500 client domains and each client domain is having individual ...
Ramesh K R's user avatar
0 votes
1 answer
91 views

Changing the database name dynamically over the same connection does not work

In the login section of the application, the user selects the database to be connected from the list of companies and the main page of the program opens according to the selected database. The ...
Thor's user avatar
  • 1
-2 votes
1 answer
540 views

PDO object is not initialized, constructor was not called in

I pretty new using PHP with PDO and I'm trying to create a connection but I'm getting this error. PDO object is not initialized, constructor was not called. The code of my connection is this, ...
Chochomona's user avatar
0 votes
0 answers
347 views

Why is connecting to localhost not working when using PHP and curl?

I have been trying to connect to a local host, but it has been giving me an error message: 404 Page Not Found The server cannot find the requested page: localhost/user-validation.php (port 80) I ...
Matthew Wright's user avatar
0 votes
1 answer
349 views

How to change the timed out time when trying to login to databse?

I want to check if we can't connect to the database with symfony 6.2.6. I'm using this code: $conn = $doctrine->getConnection($dbName); try { $conn->connect(); } catch(Exception $e) { ...
Elikill58's user avatar
  • 4,497
-1 votes
1 answer
61 views

What prevents an evil user including my DB Connect script and making a script to update my database on their server?

Like most PHP developers, I include a script on every page that requires connection to the MySQL DB. The script contains the mysqli_connect function which contains the DB username and password. What ...
Ben's user avatar
  • 1
0 votes
0 answers
52 views

Security Connection Form (Laravel)

I'm currently making a feature on my form so that the user can't login multiple times from different tabs. I use a token which is then compared. If it's the same one the user doesn't go through the ...
Eloi Jahan's user avatar
0 votes
2 answers
3k views

MySQL connection from docker container php:8.1.17-apache to docker container mysql:8.0.32 doesn't work

I am trying to connect from this docker container: version: '3.8' services: vidslide-api: image: php:8.1.17-apache ports: - "80:80" volumes: - ./htdocs:/var/www/...
ihaveaquestion's user avatar
0 votes
0 answers
15 views

mysql_connect returning false even though I'm well below my connection limit [duplicate]

EDIT: I don't understand why my question was closed because the other question is nothing at all like my question. That's asking why we shouldn't use mysql_ functions. I'm not asking that at all. ...
Vincent's user avatar
  • 1,949

15 30 50 per page
1
2 3 4 5
58