Skip to content

Fatal error: Uncaught TypeError: deletePostById(): Argument #1 ($id) must be of type string, null given

<?php include_once ‘Post.php’; const DATA_FILE = ‘posts.txt’; savePost(new Post(null, “title”, “text 2”)); print postsToString(getAllPosts()); function getAllPosts() : array { $lines = file(DATA_FILE); $posts = []; foreach ($lines as $line) { [$id, $title, $text] = explode(‘;’, trim($line)); $posts[] = new Post(urldecode($id),… Read More »Fatal error: Uncaught TypeError: deletePostById(): Argument #1 ($id) must be of type string, null given

Convert VPS to personal hosting

I rented a VPS. How can I convert this to hosting in the best and easiest way? I will host websites in it. Do you know of any free or open s… | Read the rest of https://www.webhostingtalk.com/showthread.php?t=1905446&goto=newpost