- Details
- Written by: Stanko Milosev
- Category: PHP
- Hits: 6041
So, this is my first post
How to check is anything passed to $_GET or $_POST variables?
Easily:
if (!isset($_GET['download'])) {
Example:
<?php
if (!isset($_GET['download'])) {
echo ('Error download is not assigned');
} else {
echo ($_GET['download']);
}
?>
Taken from here.
- Details
- Written by: Stanko Milosev
- Category: Windows
- Hits: 35
winget install GitHub.Copilot
- Details
- Written by: Stanko Milosev
- Category: Windows
- Hits: 35
Set-ExecutionPolicy -Scope CurrentUser -ExecutionPolicy RemoteSigned
Otherwise, I received the following error:
.\.venv\Scripts\Activate.ps1 : File C:\Users\user\.venv\Scripts\Activate.ps1 cannot be loaded. The file
C:\Users\user\.venv\Scripts\Activate.ps1 is not digitally signed. You cannot run this script on the current
system. For more information about running scripts and setting execution policy, see about_Execution_Policies at
https:/go.microsoft.com/fwlink/?LinkID=135170.
At line:1 char:1
+ .\.venv\Scripts\Activate.ps1
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : SecurityError: (:) [], PSSecurityException
+ FullyQualifiedErrorId : UnauthorizedAccess
Next, I created a virtual environment by running:
python -m venv .venvThen, I activated the virtual environment by running:
.\.venv\Scripts\Activate.ps1With the virtual environment activated, I executed the following command:
(.venv) PS C:\Users\user> pip install "markitdown[all]"