Skip to content

Calling text from a different php file

I’m looking to find a way to make a config.php file to setup the website easier. See below; config.php – index.php – contact.php (same setup, just a different page) – I’m fairly new to PHP so I’m not sure if echo is the best way to do it or not. Thanks! Answer Ye so just cr…

Setting up a web application using MySQL

I’m new to setting up a web based application. I have a server with MySQL setup with a database. The site is running my login web page. Currently I have users setup using MyPhpAdmin which will quickly prove burdensome. More importantly, once I run the command “$connection = mysqli_connect(‘1…

Twig i18n extension

I’m aware there are a number of topics like this on SO, but they are from years ago mostly, and all I’m trying to do is install the latest version of the Twig i18n extension (and possibly the Intl one …

Replace a string with array values in Twig

I searched on Google for some options to replace a string with some array values in Twig, but I couldn’t find anything useful. Is it possible to replace a string with array values in Twig? I tried to …