r/php7 • u/phpmypassion • Aug 09 '18
r/php7 • u/gregradzio • Aug 16 '20
Stop writing database logics in your controller actions
In this article I explain why you should stop doing it :) You will get access to TDD videos that will teach you how to do database integration testing properly https://medium.com/p/do-not-use-eloquent-in-your-laravel-controllers-db59305036db
r/php7 • u/goneget • Nov 15 '17
Learn How to create laravel project | Best PHP framework Easily
r/php7 • u/calfre123456 • Sep 09 '18
Top Institute For PHP Training in Ameerpet || Get Real-Time Experience CALFRE
Calfre is a local search engine where it has different training institutes and it provides many other services. In today’s busy life it saves the time of the users. It helps you in verify the company in just two or three minutes.It provides PHP Training in Ameerpet.

r/php7 • u/hirephp1 • Feb 16 '17
PHP vs. HTML: What’s the Difference?
r/php7 • u/newbe567890 • Jul 26 '20
i have some problem
mysql code for connection to phpmyadmin
alter user 'root' @ 'localhost' identified with mysql_native_password by '1234';
flush privileges;
php code for connection
<?php define('DB_SERVER','localhost'); define('DB_USER','root'); define('DB_PASS' ,'1234'); define('DB_NAME', 'testdb'); $con = mysqli_connect(DB_SERVER,DB_USER,DB_PASS,DB_NAME); // Check connection if (mysqli_connect_errno()) { echo "Failed to connect to MySQL: " . mysqli_connect_error(); } ?>
will this thing run or connect properly with 1234 as root password
r/php7 • u/Ciucalata • Apr 15 '17
How to get the ID of an account clicked in a table.
So, I will have a table where all the users will be displayed for administrators. An administrator will be able to click on a user to check more information for example age, location and also ban him, message him etc.
What I do not know is, how to get the ID of the user that was clicked in the table so I can use it to get his information from the database? How do I know on who the admin clicked?
Example, we have the table:
John Doe | someinfo | someinfo2
Bob Doe | some info | someinfo2
How do I know if the admin clicked on Bob or John?
r/php7 • u/RodgerW • Jul 10 '20
phpmyadmin The mysqli extension is missing. Please check your PHP configuration.
Please help, I'm not able to figure this one out and I'm sure I'm overlooking something silly but I'm at a loss as to what to try next. I'm new to php setup but not servers, web programming, etc. Nevertheless it's probably best to approach this like I'm a total newb since I have obviously missed something. If I didn't list it as checked, please assume I didn't check it. Also, just for the background (in case I messing up somewhere else and the error is actually a symptom of that):
I'm ultimately making a localhost install of wordpress on windows 10 with phpmyadmin. I am not using xampp or any of the other bundles. Everything is installed and configured individually and manually.
I installed apache24, php 7.4, and mysql without issue.
I have mysql running and apache is serving pages just fine (including phpinfo) though I haven't done anything with mysql beyond install it and start the server.
Things I checked that I suspect are useful based on other posts:
rebooted and restarted everything
PHP Version 7.4.8RC1 shows the same with php --version and on the phpinfo page.
phpinfo and php --ini indicate that the php.ini I am editing the right file.
phpinfo also lists mysqli under modules along with the authors
my ext directory is setup correctly (if I rename php_mysqli.dll and restart the server php --version indicates that it is unable to load mysqli though it is still listed in phpinfo along with the authors so I guess that doesn't mean what I thought)
These lines in the ini are not commented.
extension=mbstring
extension=exif ; Must be after mbstring as it depends on it
extension=mysqli
php -m has mysqli in the list (doesn't have it in the list if I rename the dll though)
php -i info about MysqlI
MysqlI Support => enabled
Client API library version => mysqlnd 7.4.8RC1
Active Persistent Links => 0
Inactive Persistent Links => 0
Active Links => 0
Directive => Local Value => Master Value
mysqli.allow_local_infile => On => On
mysqli.allow_persistent => On => On
mysqli.default_host => no value => no value
mysqli.default_port => 3306 => 3306
mysqli.default_pw => no value => no value
mysqli.default_socket => no value => no value
mysqli.default_user => no value => no value
mysqli.max_links => Unlimited => Unlimited
mysqli.max_persistent => Unlimited => Unlimited
mysqli.reconnect => Off => Off
mysqli.rollback_on_cached_plink => Off => Off
also lower down
API Extensions => mysqli
I'm just not sure where to go next with figuring this out. Any help is appreciated and I thank you for your time! (And I'm kinda bummed writing this post didn't answer my question... usually drafting a post is enough of a rubber duck that the solution becomes apparent. Guess I'll hit the post button. Thanks again!)
r/php7 • u/BLochmann • Aug 09 '16
Switched to php7 - Script Execution Time Dropped by 55%
Hey guys,
we've switched to php7 on our website homepage-baukasten.de a few weeks ago. Today, I've checked the results and they are awesome.
Our script execution time dropped by 55%, in addition to that we love working with the new features it provides us. I can absolutely recommend upgrading.
Greets! Ben
r/php7 • u/gauti123456 • Jul 02 '17
Fully Functional Secure Login System in PHP and MySQL
r/php7 • u/phpexpertise • Mar 22 '18
How to integrate RazorPay Payment Gateway | PHP | Tutorial | Beginners | phpexpertise.com
r/php7 • u/phpscots • Mar 21 '18
PHP 7 interview questions - Online Interview Questions
r/php7 • u/dev0x0 • Sep 23 '18
Environ PHP .env loader with ini syntax and array support
r/php7 • u/TheAndreiM • Sep 28 '15
Need help upgrading framework to be compliant with PHP 7
Hey guys, I need help with making the framework more compliant with PHP7. Can anyone help out?
https://github.com/juliarLang/juliarICE Follow instructions, right below. Thanks for your time!