Template Please write your blade template that occurs issues. Context (Environment) write your environment Description Any other informations
Ashik2227 Updated
Fikse kode som står om igjen flere ganger. Finne ut av hvordan man kan lage en loop for php code
OleTheodor Updated
Wanted to try this out but the composer constraints don't include php 8, several dependencies as well
kleijnweb Updated
Hi, I have an problem when I run debops php role. Here is the output 18:37:54 fatal: [myvm]: FAILED! => 18:37:54 msg: 'Version comparison: ''LooseVersion'' object has no attribute ''version''' How can I fix this ?
phpの機能は、namespaceで切り分けて設計するとよい デフォルト namespace gkpotal use namespace gkpotal\Functions functions foo { return 'bar'; };
nominalrune Updated
`Warning: Undefined variable $_SESSION in /home/www/xn----7sbbawujfno3aqk5b5b7b.url3.ru/engine/core.php on line 164 Warning: Undefined variable $_SESSION in /home/www/xn----7sbbawujfno3aqk5b5b7b.url3.ru/engine/core.php on line 164 Warning: Undefined variable $_SESSION in /home/www/xn----7sbbawujfno3aqk5b5b7b.url3.ru/engine/core.php on line 164 Warning: Undefined variable $_SESSION in /home/www/xn----7sbbawujfno3aqk5b5b7b.url3.ru/engine/core.php on line 164 Warning: Undefined variable $_SESSION in /home/www/xn----7sbbawujfno3aqk5b5b7b.url3.ru/engine/core.php on line 164 Warning: Undefined variable $_SESSION in /home/www/xn----7sbbawujfno3aqk5b5b7b.url3.ru/engine/core.php on line 164 Warning: Undefined variable $_SESSION in /home/www/xn----7sbbawujfno3aqk5b5b7b.url3.ru/engine/core.php on line 164 Warning: Undefined property: urlHandler::$configFileName in /home/www/xn----7sbbawujfno3aqk5b5b7b.url3.ru/engine/includes/classes/uhandler.class.php on line 499`
irbees2008 Updated
"require" statement detected. File manipulations are discouraged. require 'db_connection.php'; All output should be run through an escaping function (see the Security sections in the WordPress Developer Handbooks), found 'mysqli_connect_error'. $result = mysqli_query($conn, 'SELECT * FROM vote_event ORDER BY vote_event_id DESC LIMIT 1') or die('Invalid query: ' . mysqli_connect_error()); Use of die language construct is discouraged. $result = mysqli_query($conn, 'SELECT * FROM vote_event ORDER BY vote_event_id DESC LIMIT 1') or die('Invalid query: ' . mysqli_connect_error()); The use of function mysqli_query() is discouraged $result = mysqli_query($conn, 'SELECT * FROM vote_event ORDER BY vote_event_id DESC LIMIT 1') or die('Invalid query: ' . mysqli_connect_error()); The use of function mysqli_fetch_assoc() is discouraged $row = mysqli_fetch_assoc($result); The use of function fopen() is discouraged $o_file = fopen("../admin/post_result.txt", "r") or die("Unable to open file!"); Use of die language construct is discouraged. $o_file = fopen("../admin/post_result.txt", "r") or die("Unable to open file!"); The use of function fgetc() is discouraged $postB = fgetc($o_file); The use of function fclose() is discouraged fclose($o_file); The use of function mysqli_free_result() is discouraged mysqli_free_result($result);
lizpen Updated
Avoid variables with short names like $i. Configured minimum length is 3. function getLists($conn, $enrolled, $arrAdd, $i, $max, & $tiedCandidates, & $winnerList)
lizpen Updated
Thanks for this. Below is what happens. Any pointers appreciated. Regards [http@tower joomla]$ ls cli AddUser.php createthumbnailsfolder.php deletefiles.php finder_indexer.php index.html putonline.php rotateimage.php sessionMetadataGc.php update_cron.php clearcache.php createthumbnails.php filterimage.php garbagecron.php jshell.php README.md sessionGc.php takeoffline.php [http@tower joomla]$ ls administrator cache components htaccess.txt includes jshell layouts LICENSE.txt modules README.txt templates web.config.txt bin cli configuration.php images index.php language libraries media plugins robots.txt tmp [http@tower joomla]$ php74 cli/AddUser.php fred Fred fred@email.com Registered PHP Fatal error: Uncaught Error: Class 'JApplicationCli' not found in /srv/http/joomla/cli/AddUser.php:45 Stack trace: #0 {main} thrown in /srv/http/joomla/cli/AddUser.php on line 45 Fatal error: Uncaught Error: Class 'JApplicationCli' not found in /srv/http/joomla/cli/AddUser.php:45 Stack trace: #0 {main} thrown in /srv/http/joomla/cli/AddUser.php on line 45
nobicycle Updated
New language relevant PR in upstream repo: joomla/joomla-cms#34569 Here are the upstream changes: Click to expand the diff! diff --git a/administrator/language/en-GB/plg_api-authentication_token.ini b/administrator/language/en-GB/plg_api-authentication_token.ini index 982ef1c0655a..60a606763e47 100644 --- a/administrator/language/en-GB/plg_api-authentication_token.ini +++ b/administrator/language/en-GB/plg_api-authentication_token.ini @@ -1,6 +1,6 @@ ; Joomla! Project ; (C) 2020 Open Source Matters, Inc. <https://www.joomla.org> -; License GNU General Public License version 2 or later; see LICENSE.txt, see LICENSE.php +; License GNU General Public License version 2 or later; see LICENSE.txt ; Note : All ini files need to be saved as UTF-8 PLG_API-AUTHENTICATION_TOKEN="API Authentication - Web Services Joomla Token" diff --git a/administrator/language/en-GB/plg_api-authentication_token.sys.ini b/administrator/language/en-GB/plg_api-authentication_token.sys.ini index 982ef1c0655a..60a606763e47 100644 --- a/administrator/language/en-GB/plg_api-authentication_token.sys.ini +++ b/administrator/language/en-GB/plg_api-authentication_token.sys.ini @@ -1,6 +1,6 @@ ; Joomla! Project ; (C) 2020 Open Source Matters, Inc. <https://www.joomla.org> -; License GNU General Public License version 2 or later; see LICENSE.txt, see LICENSE.php +; License GNU General Public License version 2 or later; see LICENSE.txt ; Note : All ini files need to be saved as UTF-8 PLG_API-AUTHENTICATION_TOKEN="API Authentication - Web Services Joomla Token" diff --git a/administrator/language/en-GB/plg_system_accessibility.ini b/administrator/language/en-GB/plg_system_accessibility.ini index 260a1f09d691..99aa7b2430b1 100644 --- a/administrator/language/en-GB/plg_system_accessibility.ini +++ b/administrator/language/en-GB/plg_system_accessibility.ini @@ -1,6 +1,6 @@ ; Joomla! Project ; (C) 2020 Open Source Matters, Inc. <https://www.joomla.org> -; License GNU General Public License version 2 or later; see LICENSE.txt, see LICENSE.php +; License GNU General Public License version 2 or later; see LICENSE.txt ; Note : All ini files need to be saved as UTF-8 PLG_SYSTEM_ACCESSIBILITY="System - Additional Accessibility Features" diff --git a/administrator/language/en-GB/plg_system_accessibility.sys.ini b/administrator/language/en-GB/plg_system_accessibility.sys.ini index 08fad9a0db33..da0147433bb9 100644 --- a/administrator/language/en-GB/plg_system_accessibility.sys.ini +++ b/administrator/language/en-GB/plg_system_accessibility.sys.ini @@ -1,6 +1,6 @@ ; Joomla! Project ; (C) 2020 Open Source Matters, Inc. <https://www.joomla.org> -; License GNU General Public License version 2 or later; see LICENSE.txt, see LICENSE.php +; License GNU General Public License version 2 or later; see LICENSE.txt ; Note : All ini files need to be saved as UTF-8 PLG_SYSTEM_ACCESSIBILITY="System - Additional Accessibility Features" diff --git a/administrator/language/en-GB/plg_system_webauthn.ini b/administrator/language/en-GB/plg_system_webauthn.ini index 4e07ff38b0b4..82046199432c 100644 --- a/administrator/language/en-GB/plg_system_webauthn.ini +++ b/administrator/language/en-GB/plg_system_webauthn.ini @@ -1,6 +1,6 @@ ; Joomla! Project ; (C) 2020 Open Source Matters, Inc. <https://www.joomla.org> -; License GNU General Public License version 2 or later; see LICENSE.txt, see LICENSE.php +; License GNU General Public License version 2 or later; see LICENSE.txt ; Note : All ini files need to be saved as UTF-8 PLG_SYSTEM_WEBAUTHN="System - WebAuthn Passwordless Login" diff --git a/administrator/language/en-GB/plg_system_webauthn.sys.ini b/administrator/language/en-GB/plg_system_webauthn.sys.ini index 2eb13deecc92..5ed4596fcdfc 100644 --- a/administrator/language/en-GB/plg_system_webauthn.sys.ini +++ b/administrator/language/en-GB/plg_system_webauthn.sys.ini @@ -1,6 +1,6 @@ ; Joomla! Project ; (C) 2020 Open Source Matters, Inc. <https://www.joomla.org> -; License GNU General Public License version 2 or later; see LICENSE.txt, see LICENSE.php +; License GNU General Public License version 2 or later; see LICENSE.txt ; Note : All ini files need to be saved as UTF-8 PLG_SYSTEM_WEBAUTHN="System - WebAuthn Passwordless Login" diff --git a/administrator/language/en-GB/plg_user_token.ini b/administrator/language/en-GB/plg_user_token.ini index 3390d6a03de6..358c1f577605 100644 --- a/administrator/language/en-GB/plg_user_token.ini +++ b/administrator/language/en-GB/plg_user_token.ini @@ -1,6 +1,6 @@ ; Joomla! Project ; (C) 2020 Open Source Matters, Inc. <https://www.joomla.org> -; License GNU General Public License version 2 or later; see LICENSE.txt, see LICENSE.php +; License GNU General Public License version 2 or later; see LICENSE.txt ; Note : All ini files need to be saved as UTF-8 PLG_USER_TOKEN="User - Joomla API Token" diff --git a/administrator/language/en-GB/plg_user_token.sys.ini b/administrator/language/en-GB/plg_user_token.sys.ini index 187668caa55a..7f07504beb8f 100644 --- a/administrator/language/en-GB/plg_user_token.sys.ini +++ b/administrator/language/en-GB/plg_user_token.sys.ini @@ -1,6 +1,6 @@ ; Joomla! Project ; (C) 2020 Open Source Matters, Inc. <https://www.joomla.org> -; License GNU General Public License version 2 or later; see LICENSE.txt, see LICENSE.php +; License GNU General Public License version 2 or later; see LICENSE.txt ; Note : All ini files need to be saved as UTF-8 PLG_USER_TOKEN="User - Joomla API Token" diff --git a/administrator/language/en-GB/plg_webservices_installer.ini b/administrator/language/en-GB/plg_webservices_installer.ini index f57c80d77280..bbfc229e87d1 100644 --- a/administrator/language/en-GB/plg_webservices_installer.ini +++ b/administrator/language/en-GB/plg_webservices_installer.ini @@ -1,6 +1,6 @@ ; Joomla! Project ; (C) 2020 Open Source Matters, Inc. <https://www.joomla.org> -; License GNU General Public License version 2 or later; see LICENSE.txt, see LICENSE.php +; License GNU General Public License version 2 or later; see LICENSE.txt ; Note : All ini files need to be saved as UTF-8 PLG_WEBSERVICES_INSTALLER="Web Services - Installer" diff --git a/administrator/language/en-GB/plg_webservices_installer.sys.ini b/administrator/language/en-GB/plg_webservices_installer.sys.ini index f57c80d77280..bbfc229e87d1 100644 --- a/administrator/language/en-GB/plg_webservices_installer.sys.ini +++ b/administrator/language/en-GB/plg_webservices_installer.sys.ini @@ -1,6 +1,6 @@ ; Joomla! Project ; (C) 2020 Open Source Matters, Inc. <https://www.joomla.org> -; License GNU General Public License version 2 or later; see LICENSE.txt, see LICENSE.php +; License GNU General Public License version 2 or later; see LICENSE.txt ; Note : All ini files need to be saved as UTF-8 PLG_WEBSERVICES_INSTALLER="Web Services - Installer" diff --git a/administrator/language/en-GB/plg_workflow_featuring.ini b/administrator/language/en-GB/plg_workflow_featuring.ini index 2136f9a15adf..5afe69ae59f5 100644 --- a/administrator/language/en-GB/plg_workflow_featuring.ini +++ b/administrator/language/en-GB/plg_workflow_featuring.ini @@ -1,6 +1,6 @@ ; Joomla! Project ; (C) 2020 Open Source Matters, Inc. <https://www.joomla.org> -; License GNU General Public License version 2 or later; see LICENSE.txt, see LICENSE.php +; License GNU General Public License version 2 or later; see LICENSE.txt ; Note : All ini files need to be saved as UTF-8 PLG_WORKFLOW_FEATURING="Workflow - Featuring" diff --git a/administrator/language/en-GB/plg_workflow_featuring.sys.ini b/administrator/language/en-GB/plg_workflow_featuring.sys.ini index 25d1b37d6a4e..f2637adce3dd 100644 --- a/administrator/language/en-GB/plg_workflow_featuring.sys.ini +++ b/administrator/language/en-GB/plg_workflow_featuring.sys.ini @@ -1,6 +1,6 @@ ; Joomla! Project ; (C) 2020 Open Source Matters, Inc. <https://www.joomla.org> -; License GNU General Public License version 2 or later; see LICENSE.txt, see LICENSE.php +; License GNU General Public License version 2 or later; see LICENSE.txt ; Note : All ini files need to be saved as UTF-8 PLG_WORKFLOW_FEATURING="Workflow - Featuring" diff --git a/administrator/language/en-GB/plg_workflow_notification.ini b/administrator/language/en-GB/plg_workflow_notification.ini index 0c28b7c63405..36107426612f 100644 --- a/administrator/language/en-GB/plg_workflow_notification.ini +++ b/administrator/language/en-GB/plg_workflow_notification.ini @@ -1,6 +1,6 @@ ; Joomla! Project ; (C) 2020 Open Source Matters, Inc. <https://www.joomla.org> -; License GNU General Public License version 2 or later; see LICENSE.txt, see LICENSE.php +; License GNU General Public License version 2 or later; see LICENSE.txt ; Note : All ini files need to be saved as UTF-8 COM_WORKFLOW_BASIC_STAGE="Basic Stage" diff --git a/administrator/language/en-GB/plg_workflow_notification.sys.ini b/administrator/language/en-GB/plg_workflow_notification.sys.ini index c7662e94c602..7ac14070e032 100644 --- a/administrator/language/en-GB/plg_workflow_notification.sys.ini +++ b/administrator/language/en-GB/plg_workflow_notification.sys.ini @@ -1,6 +1,6 @@ ; Joomla! Project ; (C) 2020 Open Source Matters, Inc. <https://www.joomla.org> -; License GNU General Public License version 2 or later; see LICENSE.txt, see LICENSE.php +; License GNU General Public License version 2 or later; see LICENSE.txt ; Note : All ini files need to be saved as UTF-8 PLG_WORKFLOW_NOTIFICATION="Workflow - Notification" diff --git a/administrator/language/en-GB/plg_workflow_publishing.ini b/administrator/language/en-GB/plg_workflow_publishing.ini index e628dc415425..51067d6e27b4 100644 --- a/administrator/language/en-GB/plg_workflow_publishing.ini +++ b/administrator/language/en-GB/plg_workflow_publishing.ini @@ -1,6 +1,6 @@ ; Joomla! Project ; (C) 2020 Open Source Matters, Inc. <https://www.joomla.org> -; License GNU General Public License version 2 or later; see LICENSE.txt, see LICENSE.php +; License GNU General Public License version 2 or later; see LICENSE.txt ; Note : All ini files need to be saved as UTF-8 PLG_WORKFLOW_PUBLISHING="Workflow - Publishing" diff --git a/administrator/language/en-GB/plg_workflow_publishing.sys.ini b/administrator/language/en-GB/plg_workflow_publishing.sys.ini index 7da2b60a4157..3ba66d9face3 100644 --- a/administrator/language/en-GB/plg_workflow_publishing.sys.ini +++ b/administrator/language/en-GB/plg_workflow_publishing.sys.ini @@ -1,6 +1,6 @@ ; Joomla! Project ; (C) 2020 Open Source Matters, Inc. <https://www.joomla.org> -; License GNU General Public License version 2 or later; see LICENSE.txt, see LICENSE.php +; License GNU General Public License version 2 or later; see LICENSE.txt ; Note : All ini files need to be saved as UTF-8 PLG_WORKFLOW_PUBLISHING="Workflow - Publishing"
This should be rewritten in php
Craftzman7 Updated
Vaga desenvolvedor(a) Fullstack PHP Se você gosta de tecnologia, tem paixão por desenvolver produtos focados em entrega de valor, não tem medo de trabalhar com legado e gostaria de se juntar a uma empresa diferenciada, essa vaga é feita para você! Principais atividades: Desenvolvimento de um projeto de conversão do sistema legado para versão web Atuamos do setor financeiro ( assessorias de cobrança e escritórios de advocacia ) Desenvolvimento de scripts para promover o bom funcionamento e a manutenção contínua de sistemas; Realizar a documentação das entregas; Local : Remoto Benefícios Uma cultura de muita confiança, focada em resultados. Sem micro gerenciamento, muita autonomia e transparência. Muito desafio e aprendizado. Buscamos excelência em tudo o que fazemos, por isso estamos sempre aprendendo. Colaboração e empatia, valorizamos muito as pessoas que estão nesse desafio com a gente Possibilidade de Crescimento real dentro da política da empresa. Requisitos Amplo conhecimento em PHP, APIs RESTFul , Node.Js , Jquery,Jwt, CSS e Bootstrap; Conhecimento avançado em DBs relacionais (PostgreSQL/MySQL); Conhecimento do protocolo HTTP: métodos, status code e principais headers; Garantir qualidade de código; Contratação PJ Faixa de R$ 1500,00 a R$ 3000,00 ( mais bônus ) Nossa empresa Softnew Com 25 anos no mercado, tem ótima base de clientes em todo Brasil, vasto espaço de crescimento. Com políticas de benefícios por produtividade, comissões e vantagens de um grupo enxuto e preocupado com o bem estar da equipe. Candidate-se https://www.linkedin.com/jobs/view/2590993895/
edilsonbica Updated
Hi, Thank for your package. However, i don't really understand how to make it run on my website. Can you help me please ?
Sxndxr Updated
Create PHP template.
Description of class, methods and attributes. Already did when did Api Documentation? It is the same way to do? Even if it's the case, I must document of files I created that are not controllers
valh-runner Updated
This package requires PHP ^5.4 or ^7.0. It will be very useful to add PHP 8 support. Also, it blocks upgrading dhii/wp-events package to use PHP 8.
strangerkir Updated
After upgrading to PHP 8: PHP Fatal error: Declaration of Doctrine\DBAL\Driver\PDOConnection::query() must be compatible with PDO::query(string $query, ?int $fetchMode = null, mixed ...$fetchModeArgs) in phar:///usr/local/bin/tl/vendor/doctrine/dbal/lib/Doctrine/DBAL/Driver/PDOConnection.php on line 86 PHP Stack trace: PHP 1. {main}() /usr/local/bin/tl:0 PHP 2. require() /usr/local/bin/tl:14 PHP 3. Larowlan\Tl\Application->run($input = *uninitialized*, $output = *uninitialized*) phar:///usr/local/bin/tl/bin/tl.php:23 PHP 4. Larowlan\Tl\Application->doRun($input = class Symfony\Component\Console\Input\ArgvInput { private $tokens = [0 => 'stop']; private $parsed = NULL; protected $definition = class Symfony\Component\Console\Input\InputDefinition { private $arguments = [...]; private $requiredCount = 0; private $hasAnArrayArgument = FALSE; private $hasOptional = FALSE; private $options = [...]; private $shortcuts = [...] }; protected $options = []; protected $arguments = []; protected $interactive = TRUE }, $output = class Symfony\Component\Console\Output\ConsoleOutput { private $stderr = class Symfony\Component\Console\Output\StreamOutput { private $stream = resource(165) of type (stream); private ${Symfony\Component\Console\Output\Output}verbosity = 32; private ${Symfony\Component\Console\Output\Output}formatter = class Symfony\Component\Console\Formatter\OutputFormatter { ... } }; private ${Symfony\Component\Console\Output\StreamOutput}stream = resource(154) of type (stream); private ${Symfony\Component\Console\Output\Output}verbosity = 32; private ${Symfony\Component\Console\Output\Output}formatter = class Symfony\Component\Console\Formatter\OutputFormatter { private $decorated = TRUE; private $styles = [...]; private $styleStack = class Symfony\Component\Console\Formatter\OutputFormatterStyleStack { ... } } }) phar:///usr/local/bin/tl/vendor/symfony/console/Application.php:117 PHP 5. Larowlan\Tl\Application->setupCheck($output = class Symfony\Component\Console\Output\ConsoleOutput { private $stderr = class Symfony\Component\Console\Output\StreamOutput { private $stream = resource(165) of type (stream); private ${Symfony\Component\Console\Output\Output}verbosity = 32; private ${Symfony\Component\Console\Output\Output}formatter = class Symfony\Component\Console\Formatter\OutputFormatter { ... } }; private ${Symfony\Component\Console\Output\StreamOutput}stream = resource(154) of type (stream); private ${Symfony\Component\Console\Output\Output}verbosity = 32; private ${Symfony\Component\Console\Output\Output}formatter = class Symfony\Component\Console\Formatter\OutputFormatter { private $decorated = TRUE; private $styles = [...]; private $styleStack = class Symfony\Component\Console\Formatter\OutputFormatterStyleStack { ... } } }) phar:///usr/local/bin/tl/src/Application.php:75 PHP 6. Larowlan\Tl\Application->checkSchema($output = class Symfony\Component\Console\Output\ConsoleOutput { private $stderr = class Symfony\Component\Console\Output\StreamOutput { private $stream = resource(165) of type (stream); private ${Symfony\Component\Console\Output\Output}verbosity = 32; private ${Symfony\Component\Console\Output\Output}formatter = class Symfony\Component\Console\Formatter\OutputFormatter { ... } }; private ${Symfony\Component\Console\Output\StreamOutput}stream = resource(154) of type (stream); private ${Symfony\Component\Console\Output\Output}verbosity = 32; private ${Symfony\Component\Console\Output\Output}formatter = class Symfony\Component\Console\Formatter\OutputFormatter { private $decorated = TRUE; private $styles = [...]; private $styleStack = class Symfony\Component\Console\Formatter\OutputFormatterStyleStack { ... } } }) phar:///usr/local/bin/tl/src/Application.php:124 PHP 7. Doctrine\DBAL\Schema\SqliteSchemaManager->listTables() phar:///usr/local/bin/tl/src/Application.php:144 PHP 8. Doctrine\DBAL\Schema\SqliteSchemaManager->listTableNames() phar:///usr/local/bin/tl/vendor/doctrine/dbal/lib/Doctrine/DBAL/Schema/AbstractSchemaManager.php:264 PHP 9. Doctrine\DBAL\Connection->fetchAll($sql = 'SELECT name FROM sqlite_master WHERE type = \'table\' AND name != \'sqlite_sequence\' AND name != \'geometry_columns\' AND name != \'spatial_ref_sys\' UNION ALL SELECT name FROM sqlite_temp_master WHERE type = \'table\' ORDER BY name', $params = *uninitialized*, $types = *uninitialized*) phar:///usr/local/bin/tl/vendor/doctrine/dbal/lib/Doctrine/DBAL/Schema/AbstractSchemaManager.php:219 PHP 10. Doctrine\DBAL\Connection->executeQuery($query = 'SELECT name FROM sqlite_master WHERE type = \'table\' AND name != \'sqlite_sequence\' AND name != \'geometry_columns\' AND name != \'spatial_ref_sys\' UNION ALL SELECT name FROM sqlite_temp_master WHERE type = \'table\' ORDER BY name', $params = [], $types = [], $qcp = *uninitialized*) phar:///usr/local/bin/tl/vendor/doctrine/dbal/lib/Doctrine/DBAL/Connection.php:785 PHP 11. Doctrine\DBAL\Connection->connect() phar:///usr/local/bin/tl/vendor/doctrine/dbal/lib/Doctrine/DBAL/Connection.php:833 PHP 12. Doctrine\DBAL\Driver\PDOSqlite\Driver->connect($params = ['url' => 'sqlite:////home/michael/.tldb.sq3', 'path' => '/home/michael/.tldb.sq3', 'driver' => 'pdo_sqlite', 'host' => 'localhost'], $username = NULL, $password = NULL, $driverOptions = []) phar:///usr/local/bin/tl/vendor/doctrine/dbal/lib/Doctrine/DBAL/Connection.php:360 PHP 13. Composer\Autoload\ClassLoader->loadClass($class = 'Doctrine\\DBAL\\Driver\\PDOConnection') phar:///usr/local/bin/tl/vendor/doctrine/dbal/lib/Doctrine/DBAL/Driver/PDOSqlite/Driver.php:55 PHP 14. Composer\Autoload\includeFile($file = 'phar:///usr/local/bin/tl/vendor/composer/../doctrine/dbal/lib/Doctrine/DBAL/Driver/PDOConnection.php') phar:///usr/local/bin/tl/.box/vendor/composer/ClassLoader.php:322 PHP 15. include() phar:///usr/local/bin/tl/.box/vendor/composer/ClassLoader.php:444
mstrelan Updated
how to fix tinyfilemanager.php file contain malware so i can't upload file or the file is deleted?
annashhhhhhhh Updated
Setting up PHP PHP is server-side code that runs on top of a normal HTML website. This means you can use HTML and PHP together. Get started by creating a PHP document in the www folder in WAMP. Index.php is considered by most websites to be the "home page" Open index.php in your text editor and type the following HTML code <!DOCTYPE html> <html> <head> <title>PHP Store</title> </head> <body> <?php // Using two forward slashes we create comments in php. // Within the php tag, we can insert values into our HTML. echo "<h1>Welcome!</h1>"; ?> </body> </html> Displaying Content In this example, we used the "echo" command to insert an HTML header within the php tags. All of our php code will be contained in these tags. Make sure you always end every statement with a semicolon In your browser, click on the php-course folder, and you should see the header we inserted being displayed. If it worked, save your changes to GitHub. git add index.php git commit -m"initial php setup" git push origin master
github-learning-lab Updated
index.html <style> input { display: block } </style> <form method="GET" action="sample.php" style='display:block'> name: <input name="name" autocomplete="off"> age: <input name="age" autocomplete="off"> id: <input name="id" autocomplete="off"> <input type="submit"> </form> sample.php <?php if (empty($_GET["name"]) || empty($_GET["age"]) || empty($_GET["id"])) { echo "PLEASE COMPLETE THE WHOLE FORM."; exit(); } echo "name: " . $_GET["name"] . "<br>" . "age: " . $_GET["age"] . "<br>" . "id: " . $_GET["id"]; ?> <style> input { display: block } </style> <form method="GET" action="" style='display:block'> name: <input name="name" autocomplete="off"> age: <input name="age" autocomplete="off"> id: <input name="id" autocomplete="off"> <input type="submit"> </form> <?php echo "name: " . $_GET["name"] . "<br>" . "age: " . $_GET["age"] . "<br>" . "id: " . $_GET["id"]; ?> index.php?a=1&=2&c=3 <?php echo "Hello, World!<br>"; print_r($_GET); echo "<br>"; echo "a: " . $_GET["a"] . "<br>"; echo "b: " . $_GET["b"] . "<br>"; if (isset($_GET["c"])){ echo "c: " . $_GET["c"] . "<br>"; } ?> Hello, World! Array ( [a] => 1 [b] => 2 [c] => 3 ) a: 1 b: 2 c: 3 function plus($a, $b) return $a + $b; echo plus(1, 3); # 4 $arr = array(1, 2, 3, 4, 5); echo "Length: " . sizeof($arr) . "<br>"; echo "Last element: " . $arr[sizeof($arr) - 1]; # Last element: 5 # Length: 5 echo $arr; /* Notice: Array to string conversion in /opt/lampp/htdocs/test/test.php on line 3 Array */ var_dump($arr); # array(5) { [0]=> int(1) [1]=> int(2) [2]=> int(3) [3]=> int(4) [4]=> int(5) } print_r($arr); # Array ( [0] => 1 [1] => 2 [2] => 3 [3] => 4 [4] => 5 )
nuoxoxo Updated notes