•Each release branch of PHP is fully supported for two years from its initial stable release https://www.php.net/supported-versions.php
PHP Backup: https://ry3yr.github.io/php.zip
Run php server locally (android): https://apkcombo.com/de/palapa-web-server/com.alfanla.android.pws/download/apk#urusai.social/@alcea/111761622206017944#i.ibb.co/cx175BB/Screenshot-20240115-165447-Opera.png
Install ComposerPackagesManually(Windows) https://m.youtube.com/watch?v=j8kpwzE6ju0
https://alcea-wisteria.de/PHP/composer-packages/
___________________________________________________________________________________________________________________
_____https://stackoverflow.com/questions/40545795/how-do-i-install-composer-php-packages-without-composer------
*php-install
Anti Cors Forward (redirect to *.hp via ?query= querystring) (!)
-----------------------
'Invalid URL'];
}
// Use file_get_contents or cURL to fetch the data
$context = stream_context_create(['http' => ['ignore_errors' => true]]);
$response = @file_get_contents($url, false, $context);
if ($response === false) {
return ['error' => 'Unable to fetch data from URL'];
}
return ['data' => $response, 'headers' => $http_response_header];
}
// Check if the request is a GET request
if ($_SERVER['REQUEST_METHOD'] === 'GET') {
if (isset($_GET['query'])) {
$url = htmlspecialchars($_GET['query']);
$result = fetchDataFromUrl($url);
if (isset($result['error'])) {
// Return a JSON response with an error
header('Content-Type: application/json');
echo json_encode($result);
} else {
// Determine the content type from the headers
$contentType = 'text/plain'; // Default content type
foreach ($result['headers'] as $header) {
if (stripos($header, 'Content-Type:') === 0) {
$contentType = substr($header, strlen('Content-Type: '));
break;
}
}
header('Content-Type: ' . $contentType);
echo $result['data'];
}
} else {
header('Content-Type: application/json');
echo json_encode(['error' => 'No query parameter provided']);
}
} else {
header('Content-Type: application/json');
echo json_encode(['error' => 'Invalid request method']);
}
___________________________________-
Check php server enabled extensions/modules
----------------------------
(↓)
PHP Version:
Server Extensions
';
if (in_array($ext, get_loaded_extensions())) {
echo '
☑ ' . $ext . '
';
} else {
echo '
☐ ' . $ext . '
';
}
echo '';
}
function get_unpacked_extensions() {
$extension_dir = ini_get('extension_dir');
$extensions = array();
if ($extension_dir) {
$dir = new DirectoryIterator($extension_dir);
foreach ($dir as $fileinfo) {
if ($fileinfo->isFile() && pathinfo($fileinfo->getFilename(), PATHINFO_EXTENSION) === 'so') {
$extensions[] = pathinfo($fileinfo->getFilename(), PATHINFO_FILENAME);
}
}
}
return $extensions;
}
?>
____________________
htaccess disable access to certian filetypes in folder (here: png):
--------------------------------------
Order Allow,Deny
Deny from all
______________________________________
Last played Game Steam
-------------------------
loadHTML($html);
libxml_clear_errors(); // Clear HTML parsing errors
// Initialize variables
$gameFound = false;
$achievementSection = null;
// Find all the div elements
$elements = $dom->getElementsByTagName('div');
// Loop through the div elements and find the game and achievement sections
foreach ($elements as $element) {
$classAttribute = $element->getAttribute('class');
// Check for the recent game element
if (!$gameFound && strpos($classAttribute, 'recent_game') !== false) {
// Get the game info
$gameInfo = $element->getElementsByTagName('div')->item(0);
$gameCapsule = $gameInfo->getElementsByTagName('img')->item(0)->getAttribute('src');
$gameTitle = $gameInfo->getElementsByTagName('a')->item(0)->nodeValue;
$totalPlaytime = $gameInfo->getElementsByTagName('div')->item(1)->nodeValue;
$lastPlayed = $gameInfo->getElementsByTagName('div')->item(2)->nodeValue;
// Get the achievement info
$achievementInfo = $element->getElementsByTagName('div')->item(1);
$achievementSummary = $achievementInfo->getElementsByTagName('span')->item(0)->nodeValue;
$achievementProgress = $achievementInfo->getElementsByTagName('div')->item(0)->getAttribute('style');
// Extract the relevant information
$achievementCount = explode(' ', $achievementSummary)[1];
$achievementTotal = explode('/', $achievementCount)[1];
$achievementProgress = str_replace('width: ', '', str_replace('%', '', $achievementProgress));
// Display the game information with the background image
echo "
";
$gameFound = true; // Mark the game as found
}
// Check for the achievement section
if (strpos($classAttribute, 'game_info_achievements_only_ctn') !== false) {
$achievementSection = $element;
}
}
// If the achievement section is found, extract and display the achievement information
if ($achievementSection) {
$achievementSummary = $achievementSection->getElementsByTagName('span')->item(0)->textContent;
$achievementProgressBar = $achievementSection->getElementsByTagName('div')->item(1);
$achievementProgressStyle = $achievementProgressBar->getAttribute('style');
// Parse the achievement information
$achievementCount = trim(explode('/', $achievementSummary)[0]);
$achievementTotal = trim(explode('/', $achievementSummary)[1]);
$achievementProgress = str_replace('width: ', '', str_replace('%', '', $achievementProgressStyle));
// Display the achievement information
echo "
";
echo "
$gameTitle
";
echo "
Total Playtime: $totalPlaytime
";
//echo "
Last Played: $lastPlayed
";
echo "
Achievements: $achievementCount out of $achievementTotal ($achievementProgress%)
";
echo "
";
echo "
";
//echo "
";
echo "
";
//echo "Achievements: $achievementCount out of $achievementTotal ($achievementProgress%)";
}
// If no recent game is found, display a message
if (!$gameFound) {
echo "No recent games found.";
}
?>
____________________
Famitsu Top 30 Chart parser
-------------------------------
Game Sales Data
_____________________
PersonalInteraction collector
------------------------------
==chart.html==
Chart.js Example
Chart.js Example
===send.php===
$selectedName,
'number1' => $numberField1,
'number2' => $numberField2,
'info' => $infoField
);
// Convert the data array to JSON
$json = json_encode($data);
// Check if the file exists
$filename = $selectedName . '_data.json';
if (file_exists($filename)) {
// If the file exists, read the existing data
$existingData = file_get_contents($filename);
$existingData = json_decode($existingData, true);
// Prepend the new data to the existing data
array_unshift($existingData, $data);
// Convert the updated data back to JSON and write it to the file
$updatedData = json_encode($existingData);
file_put_contents($filename, $updatedData);
} else {
// If the file doesn't exist, create a new file with the data
file_put_contents($filename, "[$json]");
}
// Store the first number and the info field in the local storage
echo "";
// Optionally, you can display a success message or redirect the user to another page
echo "Data saved to " . $filename;
}
// Check if the first number and info field are stored in the local storage
$storedNumber1 = isset($_POST['number1']) ? $_POST['number1'] : (isset($_COOKIE['number1']) ? $_COOKIE['number1'] : '');
$storedInfo = isset($_POST['info']) ? $_POST['info'] : (isset($_COOKIE['info']) ? $_COOKIE['info'] : '');
?>
Name Selection
_______
Fetch newest Nintendo Direct dekudeals url
---------------------------
_______________
(PHP) Basic notes app with wysiwyg capability
-----------------------------------
===load.php===