blob_id
stringlengths
40
40
language
stringclasses
1 value
repo_name
stringlengths
5
116
path
stringlengths
2
241
src_encoding
stringclasses
31 values
length_bytes
int64
14
3.6M
score
float64
2.52
5.13
int_score
int64
3
5
detected_licenses
listlengths
0
41
license_type
stringclasses
2 values
text
stringlengths
14
3.57M
download_success
bool
1 class
60591874e74e0764edc5308f7e92f8fbede58e3e
PHP
zesanriky/Symfony
/src/Service/DateTimeService.php
UTF-8
1,594
2.78125
3
[]
no_license
<?php /** * Created by PhpStorm. * User: naimo * Date: 11/12/18 * Time: 10:27 AM */ namespace App\Service; use Carbon\Carbon; use Psr\Container\ContainerInterface; use Psr\Log\LoggerInterface; use Symfony\Component\OptionsResolver\Exception\InvalidArgumentException; use Symfony\Component\Validator\Exception\Val...
true
b534a07aa36c026d0bd5dfc2a76ba80ec0e555a9
PHP
liutongju/thinkphp-admin
/Application/Admin/Common/function.php
UTF-8
936
3.109375
3
[]
no_license
<?php /** * 判断用户是否登陆 * @return bool|int */ function is_login(){ return session('is_login'); } /** * 检测当前登录用户是否为管理员 * @return boolean true-管理员,false-非管理员 */ function is_administrator($uid = null){ if(!is_login()) return false; if(is_null($uid)) { $administrator = session('administrato...
true
c24c2393fea18e8495a15d5226dcfcaa1528317f
PHP
google-code/balloon
/kernel/classes/Team.php
UTF-8
27,168
2.609375
3
[]
no_license
<?php /** une classe pour modéliser les équipes * @author Sebastian Mosser */ class Team implements iPersistantData, iHTMLViewable, iLookable, iXMLSerializable { private $_id; ///< Identifiant private $_admin; ///> administrateur balloon de l'equipe private $_name; ///< Nom ...
true
49f3571456136ce9ec6bed2bd42806b3e0c91f6f
PHP
gomuku/gomoku-api
/tests/Integration/BaseTestCase.php
UTF-8
3,442
2.859375
3
[]
no_license
<?php namespace Tests\Integration; use Slim\App; use Slim\Http\Request; use Slim\Http\Response; use Slim\Http\Environment; /** * This is an example class that shows how you could set up a method that * runs the application. Note that it doesn't cover all use-cases and is * tuned to the specifics of this skeleton ...
true
eb3b6a4cd848ff3bc2cda2fa6239c235f1fe5292
PHP
torstorruste/dkp
/controllers/update_activity.php
UTF-8
3,612
2.53125
3
[]
no_license
<?php session_start(); if(isset($_SESSION['admin'])) { try { include_once("../dao/genericDao.php"); include_once("../dao/raidDao.php"); include_once("../dao/playerDao.php"); include_once("../dao/instanceDao.php"); $raidDao = new RaidDao(); $playerDao = new PlayerDao(); $instanceDao = new Instan...
true
cdc64d0c5bd9c63db600ee3245f319dd26920f8d
PHP
randopa/ragnarprog
/user.php
UTF-8
598
2.765625
3
[]
no_license
<!DOCTYPE html> <html> <head> <meta charset="utf-8"> <title>User</title> </head> <body> <?php require "api.php"; $id = $_GET["id"]; $userData = display($id); print '<img src="' . "./db/$id/pilt.jpg" . '" height="100" width="100">'. "<br>"; print "Username : ". $userData["username"]. "<br>"; print "Fir...
true
428a900240139a4a73006b95f753f53da719435e
PHP
foxcodenine/tutorials
/object_oriented_php_for_beginners/part10_namespaces/catsAndDogs.php
UTF-8
255
2.765625
3
[]
no_license
<?php namespace cats { class CatClass { function hello () { return '...meow meow!'; } } } namespace dogs { class DogClass { function hello () { return '...woff woff!'; } } }
true
281ecfc502bd631bb7d5aee16991533756657a23
PHP
v1ct0r-LH/BitWasp
/application/models/bitcoin_model.php
UTF-8
4,347
2.953125
3
[ "Unlicense", "LicenseRef-scancode-unknown-license-reference" ]
permissive
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed'); /** * Bitcoin Model * * This class handles the database queries relating to orders. * * @package BitWasp * @subpackage Models * @category Bitcoin * @author BitWasp * */ class Bitcoin_model extends CI_Model { /** * Constructo...
true
60c3141a2fba9ecfaa07179cd62a16b384fbf1bb
PHP
oshyam/PHP-7
/function.php
UTF-8
223
2.90625
3
[]
no_license
<?php // //Function in PHP function greetToUser(){ echo "Welcome to PHP 7 <br/>"; } //parametrized function function onBoardMessage($msg){ echo $msg; } greetToUser(); onBoardMessage("Happy to Have to You..! "); ?>
true
7044fe91b039acfe108001f10c3cb46f8be58a5f
PHP
mpf-soft/mpf
/datasources/sql/DbRelation.php
UTF-8
24,936
3.03125
3
[ "Apache-2.0" ]
permissive
<?php /** * Created by PhpStorm. * User: mirel * Date: 06.04.2015 * Time: 10:26 */ namespace mpf\datasources\sql; use mpf\base\LogAwareObject; class DbRelation extends LogAwareObject { public $name; public $type; public $model; public $conditions = []; public $joins = []; public $joinTy...
true
0024d980bcb2b2439aa67ad1b9739e0bab71b876
PHP
dazzle-php/util
/src/Util/Parser/Json/JsonParser.php
UTF-8
1,249
3.09375
3
[ "MIT" ]
permissive
<?php namespace Dazzle\Util\Parser\Json; use Dazzle\Util\Enum\EnumInterface; use Dazzle\Util\Enum\EnumTrait; use Dazzle\Util\Parser\ParserInterface; class JsonParser implements ParserInterface, EnumInterface { use EnumTrait; /** * @var int */ const DECODE_DEFAULT = 2; /** * @var int ...
true
31868b11800d77c0ab9d846a8499b7c5efa9d9c4
PHP
BagInCode/chat
/ChatTable.php
UTF-8
3,298
3.015625
3
[]
no_license
<?php class ChatTable { private $chat_id; private $chat_name; public $connect; public function __construct() { require_once ('database_connection.php'); $database_object = new Database_connection; $this->connect=$database_object->connect(); } f...
true
eb548c50c1259069d1eca9c927c65cd363fa5250
PHP
spiral/framework
/src/Storage/src/File/ReadableTrait.php
UTF-8
1,515
2.671875
3
[ "LicenseRef-scancode-unknown-license-reference", "MIT" ]
permissive
<?php declare(strict_types=1); namespace Spiral\Storage\File; use JetBrains\PhpStorm\ExpectedValues; use Spiral\Storage\BucketInterface; use Spiral\Storage\Visibility; /** * @mixin ReadableInterface */ trait ReadableTrait { /** * {@see EntryInterface::getPathname()} */ abstract public function g...
true
b9f18b641fcc1ebf2e555e98485ab99b330d14aa
PHP
DannyX1993/SPaceX_PHP
/app/models/repositories/UsersRepository.php
UTF-8
1,910
2.71875
3
[]
no_license
<?php namespace models\repositories; use \models\entities\UserEntity as UserEntity; class UsersRepository extends AbstractRepository { protected $_entity; public function __construct(\Doctrine\ORM\EntityManager &$em) { parent::__construct($em); $this->_entity = $this->_em->getRepository...
true
1f034bdcad694bbaf7f620bc6abd933d7e776bb6
PHP
webriq/tagcloud
/src/Grid/TagCloud/Model/Paragraph/Structure/TagCloud.php
UTF-8
2,914
2.609375
3
[ "BSD-3-Clause" ]
permissive
<?php namespace Grid\TagCloud\Model\Paragraph\Structure; use Grid\Tag\Model\Tag\Model as TagModel; use Grid\Paragraph\Model\Paragraph\Structure\AbstractLeaf; /** * TagCloud * * @author David Pozsar <david.pozsar@megaweb.hu> */ class TagCloud extends AbstractLeaf { /** * @const string */ const ...
true
53ac38708e4736a6a221a6390add909af00dc2d1
PHP
lastxiaojing/php_mysql_apache
/test_php_mysql_00.php
UTF-8
836
2.59375
3
[]
no_license
/////////////////////////////////////////////////////////////////////////////////////// <?php echo "FileName: addpeople.php"; echo "<br>"; echo "Data : 2016-09-18"; echo "<br>"; $servername = "localhost"; $username = "root"; $password = "12345"; // connect to mysqlserver $conn = mysql_connect($servername,...
true
41e4c99b327a634739853f481b2d7d92d2b569b7
PHP
Dimedrollum/TaglitCRM
/controllers/template.php
UTF-8
1,889
2.6875
3
[]
no_license
<?php // this is a test controller //the controller class needs to initiate class TemplateController extends IndexController { public function __construct() { $this->controllerName = "template"; } /** * Action with No Logic template * * @param array $getVars - Keys=>Value...
true
0bd182398adc3af02294ab3cc4ab075aa9cbf5f4
PHP
kilabs/archer
/protected/models/Post.php
UTF-8
6,628
2.546875
3
[]
no_license
<?php /** * This is the model class for table "post". * * The followings are the available columns in table 'post': * @property integer $id * @property string $judul * @property string $slug * @property integer $idKategori * @property string $foto * @property integer $status * @property string $tanggalBuat ...
true
4f51671eb8a239a36e7d552c1d7d400417b8fae4
PHP
raitman005/usqcode
/app/Mail/SendLoginLink.php
UTF-8
1,443
2.53125
3
[]
no_license
<?php namespace App\Mail; use Illuminate\Bus\Queueable; use Illuminate\Mail\Mailable; use Illuminate\Queue\SerializesModels; use Illuminate\Contracts\Queue\ShouldQueue; use App\Models\User; use Helper; class SendLoginLink extends Mailable { use Queueable, SerializesModels; /** * The use...
true
c780935b84094808f35d7d477fd5858f4513dfa2
PHP
Prodeep13/Video-Streaming
/update.php
UTF-8
2,442
2.578125
3
[ "CC-BY-3.0" ]
permissive
<?php include("connect.php"); error_reporting(0); $_POST['id']; $_POST['un']; $_POST['ps']; $_POST['dob']; $_POST['c']; $_POST['e']; $_POST['p']; ?> <html> <head> <title>user update form</title> <style> #html { font-family:arial, helvetica, sans-seri...
true
267404fed51c67103d8a6dbe94591202b52b8f22
PHP
kampoenghalaman/madrasah
/application/controllers/testpdf.php
UTF-8
3,048
2.8125
3
[ "MIT", "LicenseRef-scancode-unknown-license-reference" ]
permissive
<?php Class Testpdf extends CI_Controller{ function __construct() { parent::__construct(); $this->load->library('pdf'); } function index(){ $pdf = new FPDF('p','mm','A4'); // membuat halaman baru $pdf->AddPage(); // setting jenis font yang akan digun...
true
699d18e086047701cf942b597febc7d8548c2a41
PHP
karthickvmd/design-qubes-task-s
/design-qubes-master/2019 goals/add/index.php
UTF-8
1,386
2.59375
3
[]
no_license
<?php require_once 'dbconnect.php'; $sql = "SELECT * FROM `todo`"; $result = $conn->query($sql); ?> <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <meta http-equiv="X-UA-Compatible" content="ie=edge"> ...
true
7b5ca4058b33cf860f7567eb116bd9a4530bb3cb
PHP
kovacskri/graphql-drupal
/modules/graphql_json/src/Plugin/GraphQL/Fields/JsonLeafValue.php
UTF-8
671
2.515625
3
[]
no_license
<?php namespace Drupal\graphql_json\Plugin\GraphQL\Fields; use Drupal\graphql_core\GraphQL\FieldPluginBase; use Youshido\GraphQL\Execution\ResolveInfo; /** * Retrieve json leaf values. * * TODO: Right now this always returns strings. When Scalar union types are * possible in GraphQL we could return the pro...
true
769e3cd5e1544f528313af93cf99294920d61ff1
PHP
fre5h/datetime-php
/src/DateRangeInterface.php
UTF-8
709
2.8125
3
[ "MIT" ]
permissive
<?php /* * This file is part of the DateTime library. * * (c) Artem Henvald <genvaldartem@gmail.com> * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ declare(strict_types=1); namespace Fresh\DateTime; /** * DateRangeInterface. ...
true
4464c48d646d56b43ddf9c4a7d6ba0b44cc649c7
PHP
RocRodVal/demo-real
/application/models/Client_model.php
UTF-8
2,952
2.765625
3
[]
no_license
<?php /** * Created by PhpStorm. * User: dbourgon * Date: 23/09/2015 * Time: 12:56 */ /** * Class Client */ class Client_model extends CI_Model { private $id = NULL; private $type = NULL; private $name = NULL; private $picture_url = NULL; private $description = NULL; private $facturab...
true
f71db114112ba184cf0fc42895544d7a154aa588
PHP
jtrobisch/AjaxExamples
/returnExample.php
UTF-8
1,067
2.6875
3
[]
no_license
<!DOCTYPE html> <html> <head> <script> function foundResults(str) { if (str.length == 0) { document.getElementById("result").innerHTML = ""; return; } else { var xmlhttp = new XMLHttpRequest(); xmlhttp.onreadystatechange = function() { if (this.readyState ...
true
29808238e02eed1c8fd0108a00722b5a4ccc31fc
PHP
stormpath/stormpath-sdk-php
/src/Mfa/Challenge.php
UTF-8
3,310
2.5625
3
[ "Apache-2.0" ]
permissive
<?php /** * Copyright 2017 Stormpath, Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or...
true
f062125a3a5a688185f1f0fa9a0b1a510dafa339
PHP
AFanaei/ed
/sys/db/PDOCon.php
UTF-8
6,149
2.90625
3
[]
no_license
<?php if (!defined('SYSPATH')) { require('../AccessDenied/AccessDenied.php'); exit; } /** * EasyDev * * An open source application development framework for PHP 5.1.6 or newer * * @package EasyDev * @subpackage DB/PDOCon * @Developer Hassan nasiri * @copyright Copyright (c) 2013, Hassan nasiri * @license http://www....
true
0ff54c34b12f08549397a57060660b7369064d17
PHP
mvesovic/angular-material
/api/classes/Users.php
UTF-8
1,843
3.109375
3
[]
no_license
<?php class Users{ private $db; private $response = ['success' => [], 'error' => []]; function __construct($db){ $this->db = $db; } public function fetchAll(){ $users = []; $users = $this->db->get('users'); return json_encode($users); } public function insertUser(){ $data = (array)(...
true
04c695fa3763df73e6291fed4fa584087798d4c8
PHP
dilanlongla/mf_online_savings
/app/Http/Controllers/API/AccountAPIController.php
UTF-8
3,191
2.71875
3
[]
no_license
<?php namespace App\Http\Controllers\API; use App\Http\Requests\API\CreateAccountAPIRequest; use App\Http\Requests\API\UpdateAccountAPIRequest; use App\Models\Account; use App\Repositories\AccountRepository; use Illuminate\Http\Request; use App\Http\Controllers\AppBaseController; use Response; /** * Class AccountCo...
true
95c6df4fe1d01d1a3de7874a95ef783a194a90c2
PHP
LiftUX/wp-webhooks
/src/classes/integrations/class-wp-webhooks-route.php
UTF-8
3,559
2.640625
3
[]
no_license
<?php /** * WP Webhooks Route * * @package Lift\WP_Webhooks * @subpackage Integrations */ namespace Lift\WP_Webhooks\Integrations; use Lift\Core\Hook_Catalog; use Lift\Core\Interfaces\Integration; use Lift\Core\Interfaces\Subscriber; use Lift\Core\Interfaces\Provider; use Lift\Core\Decorators\Integration_Decorat...
true
23aea9b9aa6fedd8b40812feeb762c153a32bdbc
PHP
arquivei/flysystems-php
/src/ArquiveiStorage/Adapters/LogMonologAdapter.php
UTF-8
1,539
2.640625
3
[ "MIT" ]
permissive
<?php namespace Arquivei\Flysystems\ArquiveiStorage\Adapters; use Monolog\Formatter\JsonFormatter; use Monolog\Handler\StreamHandler; use Monolog\Logger; class LogMonologAdapter { private $log; public function __construct() { $handler = new StreamHandler("php://stdout"); $handler->setFor...
true
f320c43bf080e73dfc62c757d34590cb5e5e6fe9
PHP
JRobertoMA/album-products
/modules/category/add_category.php
UTF-8
1,087
2.515625
3
[]
no_license
<?php require_once "../../php/database.php"; require_once "../../php/web_token.php"; date_default_timezone_set("America/Mexico_City"); $database = new Database(); $webToken = new WebToken(); $connection = $database->conexion(); $dateTime = date("Y-m-d H:i:s"); $name = mysqli_real_escape_string($connection, $_POST["name...
true
290912e944b0cc34ae1412b526a621878a69f9b7
PHP
paooolino/speedy-framework
/lib/Core/Controller.php
UTF-8
1,040
2.890625
3
[]
no_license
<?php /** * The Controller. */ namespace NgFramework\Core; use \NgFramework\Exception\FileNotFoundException; /** * The Controller base class. */ class Controller { private $router; private $data; /** * */ public function __construct($router = null) { $this->router = $router; } /** * Render fu...
true
fc33793548f77b286c2951ab344041d0ad814d1c
PHP
nayi10/UniPortal
/Answer.php
UTF-8
5,859
2.9375
3
[]
no_license
<?php include_once 'functions.php'; /* * To change this license header, choose License Headers in Project Properties. * To change this template file, choose Tools | Templates * and open the template in the editor. */ /** * Deals with answers posted by members * * @author Alhassan Kamil */ class Answer { p...
true
588181a8a1bc6a04496af9589d8e9371c8426949
PHP
fraserreed/multiship
/src/MultiShip/Response/Elements/Note.php
UTF-8
1,278
2.796875
3
[ "MIT" ]
permissive
<?php /* * This file is part of the MultiShip package. * * (c) 2013 Fraser Reed * <fraser.reed@gmail.com> * github.com/fraserreed * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace MultiShip\Response\Elements; ...
true
bb6767ee18727debedafaca073b2f8395d18f307
PHP
ismynr/laundry-management
/app/TransactionDetail.php
UTF-8
1,004
2.53125
3
[ "MIT" ]
permissive
<?php namespace App; use Illuminate\Database\Eloquent\Model; use Spatie\Activitylog\Traits\LogsActivity; class TransactionDetail extends Model { use LogsActivity; protected $table = 'transaction_details'; protected $primaryKey = 'id'; protected $fillable = [ 'id_transaction', 'id_package', ...
true
bead359d543542906909c4bad6920f68d7a05544
PHP
Indieaiden/Daw2
/Javi/Entorno_Servidor_(Laura)/Tema7/sentenciasParametrizadas.php
UTF-8
1,458
3.15625
3
[]
no_license
<?php $Id = new mysqli("127.0.0.1","root","","dwes"); if ($Id ->connect_errno) { echo "Falló conexión a MySQL: " . $Id ->connect_errno . " - " . $Id ->connect_error ; exit; } if ( ! $Id ->query( "DROP TABLE IF EXISTS T1") || ! $Id ->query("CREATE TABLE T1(n INT, ciudad varchar(50))") ){ die("Falló creación de la...
true
97305dd5ed0c552fd3b72b90199930912e3ca125
PHP
helsont/phpsite
/libs/StatusPost.php
UTF-8
752
3.125
3
[]
no_license
<?php include_once 'Post.php'; class StatusPost implements Post { var $user; var $title; var $text; var $date; var $subPosts; function StatusPost($user, $title, $text, $date){ $this->user = $user; $this->title = $title; $this->text = $text; $this->date = $date; } public function ...
true
041f030d4d3ad261c9b3a838fb8780a47ae01921
PHP
jewel-rana/pickle-shop
/app/Http/Controllers/OrderDeliveryController.php
UTF-8
1,496
2.53125
3
[]
no_license
<?php namespace App\Http\Controllers; use App\Constants\AppConstant; use App\Http\Requests\DeliveryUpdateRequest; use App\Http\Requests\OrderDeliveryStoreRequest; use App\Models\OrderDelivery; use App\Services\DeliveryService; class OrderDeliveryController extends Controller { public $deliveryService; publi...
true
0688afdbf229b53634d8f742a312bad7c3ec066d
PHP
bug-L/LMS
/app/Department.php
UTF-8
428
2.609375
3
[]
no_license
<?php namespace App; use Illuminate\Database\Eloquent\Model; class Department extends Model { //9. fillable option for department set protected $fillable = [ 'name', ]; //10. Department relationships set public function professors() { return $this->hasMany('App\Professor'); }...
true
07d86a8a7890f63eb4eac9b4147ce8978b73c933
PHP
adeleinr/Tickler
/View/ServerPresentation/HTML/HTMLElement.class.php
UTF-8
854
3.546875
4
[]
no_license
<?php /** * Class for creating the HTML element base attributes * */ class HTMLElement { private $id; private $name; private $className; /** * Sets the HTML element base * * @param String $id * @param String $className * */ function __construct($name, $id, $className =...
true
76bb78ec7c9427502e67970fe62d2c0fafb94bf5
PHP
digitalvillainy/sorry
/tests/tests/CardsTest.php
UTF-8
2,669
2.875
3
[]
no_license
<?php class CardsTest extends \PHPUnit\Framework\TestCase { public function test_cards() { $Cards = new Sorry\Cards(); $this->assertInstanceOf('Sorry\Cards', $Cards); $this->assertEquals(0, $Cards->getCurrentCardValue()); $deck = $Cards->getCardStack(); $this->asse...
true
771437be133444d6f97b93f9f069decb4d8a8d01
PHP
saputraRL/Latihan_Algoritma
/sorting/quicksort/quicksort.php
UTF-8
1,133
3.3125
3
[]
no_license
<?php function quicksort($my_array) { $loe = $gt = array(); if (count($my_array) < 2) { return $my_array; } $pivod_key = key($my_array); $povid = array_shift($my_array); foreach ($my_array as $val) { if ($val <= $povid) { $loe[] = $val; }elseif ($val > $povid){ $gt[] = $val; } } r...
true
6551e2e2d5d7c80a930d2bbd2550558b5fc945a4
PHP
kcabading/CodeEvalChallenges
/php/Easy/agedistribution.php
UTF-8
994
3.59375
4
[]
no_license
<?php /*Sample code to read in test cases: $fh = fopen($argv[1], "r"); while (true) { $test = fgets($fh); # break loop if $test is an empty line # $test represents the test case, do something with it } */ $fh = fopen($argv[1], "r"); while (!feof($fh)) { $intAge = (int) fgets($fh); if($intAge > 0 &&...
true
565a2e7a19953e66b961004dcf0340dc59eea3f2
PHP
Mihail0v/mongodb-odm
/tests/Documents/Phonebook.php
UTF-8
995
2.84375
3
[ "MIT" ]
permissive
<?php declare(strict_types=1); namespace Documents; use Doctrine\Common\Collections\ArrayCollection; use Doctrine\ODM\MongoDB\Mapping\Annotations as ODM; /** @ODM\EmbeddedDocument */ class Phonebook { /** @ODM\Field(type="string") */ private $title; /** @ODM\EmbedMany(targetDocument=Phonenumber::class)...
true
01e68af3b84d9a690f348afa6e25a0995a7554f7
PHP
alexeagleson/personnel_database_php
/model/dbfunction.php
UTF-8
2,082
3.21875
3
[]
no_license
<?php require 'datavalidate.php'; // CREATE function insertNewEmployee($db, $employeeData) { $validator = new DataValidator; if (!$validator->uniqidValidator($employeeData['person-id'])) return false; if (!$validator->stringValidator($employeeData['person-name'])) return false; if (!$validator->string...
true
8de5bd1bf98034ed8a21a65c35d7dba918c132c4
PHP
clem96/clement
/PHPweb/DB/index.php
UTF-8
1,480
3.234375
3
[]
no_license
<?php require 'Personne.Class.php'; try { $db = New PDO('mysql:host=localhost;port=3307;dbname=personne;charset=utf8', 'root', ''); } catch(Exception $e) { die('Erreur' . $e->getMessage()); }; echo"on est connecter à la base de donne"; $requette = $db->query("SELECT `IdPersonne`, `Nom`, `Prenom`, ...
true
acf175ca1510d77122fd101ca2a5609487c96b3a
PHP
zsyzlyj/hr_seven
/application/libraries/PDF_rotate.php
UTF-8
500
2.515625
3
[ "LicenseRef-scancode-unknown-license-reference", "MIT" ]
permissive
<?php require('rotation.php'); class PDF extends PDF_Rotate { function Header() { #$this->AddFont('kozminproregular','','kozminproregular.php'); //Put the watermark /* $this->SetFont('Arial','B',50); $this->SetTextColor(255,192,203); $this->RotatedText(35,190,'W a t e r m a r k d e m o',45); ...
true
6e14b513efcd41dbc6a27e214a694b6f48ac0da4
PHP
tim1mw/repo_filemanager-moodle-block
/repos/coursefilearea.php
UTF-8
14,943
2.515625
3
[]
no_license
<?php // This file is part of Moodle - http://moodle.org/ // // Moodle is free software: you can redistribute it and/or modify // it under the terms of the GNU General Public License as published by // the Free Software Foundation, either version 3 of the License, or // (at your option) any later version. // // Moodle ...
true
393dfca51f2027e9c1cebbe8c3f13f4b2dcb65ac
PHP
pigma15/phpHomeWorks
/objects/04/index.php
UTF-8
2,327
3.359375
3
[]
no_license
<h1>Objects 4</h1> <?php echo 'Uzduotis nr. 4'; echo '<br><br>'; echo 'Patobulinti 1 uždavinio piniginę taip, kad būtų galima skaičiuoti kiek piniginėje yra monetų ir kiek banknotų. Parašyti metodą monetos, kuris skaičiuotų kiek yra piniginėje monetų ir metoda banknotai - popierinių pinigų skaičiavimui.<br><br>'; cl...
true
33380076b5c5e17aec951e6036df6c5622afc4b5
PHP
Thaotb02/Thaotb-de1-AHT
/Models/TaskRepository.php
UTF-8
809
2.703125
3
[]
no_license
<?php namespace MyApp\Models; use MyApp\Models\TaskResourceModel; use MyApp\Models\TaskModel; class TaskRepository { protected $taskResourceModel; public function __construct() { $task =new TaskModel(); $this->taskResourceModel = new TaskResourceModel('tasks', 'id', $task); } pu...
true
e5a1d05400e61524089a81e552e3c1f08d961edb
PHP
karolbrennan/retrogamingzone
/app/views/consoles/consoles.php
UTF-8
2,000
2.734375
3
[]
no_license
<?php if($data['title']) { echo "<h2>" . $data['title'] . "</h2>"; } ?> <?php if($data['message']) { echo "<p>" . $data['message'] . "</p>"; } ?> <?php if(empty($data['consoles'])) { echo "<p>" . $data['no-consoles'] . "</p>"; } else { echo "<ul class='consoles'>"; foreach ($data['cons...
true
6db6d773ac9110d747f233506971205b5ecdc3dc
PHP
Ztwen-Ostrograsdki/Ztwen-Ostro-Schrohamilzwei
/MySite/commands/faker.php
UTF-8
1,286
2.734375
3
[]
no_license
<?php require dirname(__DIR__).'/../vendor/autoload.php'; use Vincent\Connected\Connected; $faker = Faker\Factory::create('fr-FR'); $cbd = (new Connected())->connectedToDataBase(); //$posts = []; //$categories = []; // //for ($i = 1; $i < 50; $i++){ // $req = $cbd->prepare("INSERT INTO post(name, slug, content, ...
true
bdd1f730f5de4b192c89fe9961ad7d7c5da054c6
PHP
AshrafBasry/laravelDash
/src/Traits/Assets.php
UTF-8
1,027
2.578125
3
[ "MIT" ]
permissive
<?php /** * Created by PhpStorm. * User: yasser * Date: 13/03/19 * Time: 20:19 */ namespace Yasser\LaravelDashboard\Traits; use Illuminate\Http\Response; use Illuminate\Support\Facades\File; trait Assets { /** * The Dashboard_assets function generates a URL for an asset using the current scheme of the...
true
ac5801d3f6577eaf88c58b3805ea3b7d9b49b66e
PHP
mattdean1/gym
/summary2.php
UTF-8
7,885
2.9375
3
[ "MIT" ]
permissive
<?php //retrieves data from previous page $namepost = $_POST["duration"]; $typepost = $_POST["type"]; $pricepost = $_POST["price"]; $title = $_POST["title"]; $fname = $_POST["firstname"]; $lname = $_POST["lastname"]; $email = $_POST["email"]; $hphone = $_POST["homephone"]; $mphone = $_POST["mobile"]; //get membershi...
true
2b896ccd5b5fa71ed4d2386d022ba567cf3166b2
PHP
Grapheme/sro61
/application/models/mdorganization.php
UTF-8
1,086
2.609375
3
[]
no_license
<?php if(!defined('BASEPATH')) exit('No direct script access allowed'); class Mdorganization extends MY_Model{ var $id = 0; var $docnumber = 1; var $title = 0; var $type = 0; function __construct(){ parent::__construct(); } function insert_record($id,$title,$type){ $this->id = $id; $this->titl...
true
1d012f09081864d6e256830d49769587291fbed6
PHP
takemo101/php-support
/src/Contract/Facade/Container.php
UTF-8
1,526
2.859375
3
[]
no_license
<?php namespace Takemo101\PHPSupport\Contract\Facade; use Closure; /** * facade inject container interface */ interface Container { /** * 別名の設定 * * @param string $class * @param string $alias * @return mixed */ public function alias(string $class, string $alias); /** ...
true
ffd74477de2bfe8e0944b46c94831ba4ce31bb95
PHP
Faldi767/inventory_hp
/app/Http/Controllers/RoleController.php
UTF-8
2,350
2.59375
3
[ "MIT" ]
permissive
<?php namespace App\Http\Controllers; use Illuminate\Http\Request; use App\Role; use Session; class RoleController extends Controller { public function index() { $role = Role::all(); return view('role/role', ['role' => $role]); } public function tambah() { return view('role/tamb...
true
7c6acdba275d462c77ad1dcd511073c9fdbba4f9
PHP
edgarzapeka/comp3015_php
/SecondAssignment/signup.php
UTF-8
5,204
2.78125
3
[]
no_license
<?php session_start(); require ("includes/functions.php"); $host = 'localhost'; $userName = 'root'; $password = 'root'; $database = 'second_assignment'; $link = mysqli_connect($host, $userName, $password, $database); $message = ''; $firstName = ''; $lastName = ''; $phoneNumber = ''; $dob ...
true
0eb9e10f5cbedee9bfb7e58c9e4e0610048ade88
PHP
HarturFranco/TrabalhoISBD
/endereco.php
UTF-8
2,527
2.921875
3
[]
no_license
<?php header("Content-Type: text/html; charset=utf8",true); ?> <html> <head><title>Endereço <?php echo $_GET['table']; ?>: <?php echo $_GET['id']; ?>.</title></head> <body> <center> <h3>Endereço Completo <?php echo $_GET['table']; ?>: <?php echo $_GET['id']; ?></h3> </center> <table border="0" align="center"...
true
80597bbb9b7360c5424099396c8cc71337e4e665
PHP
NewEXE/php-oop-tasks-solutions
/27/User.php
UTF-8
380
3.796875
4
[]
no_license
<?php /* * Задача 27.7 * Сделайте класс User с публичным свойствами name (имя) и surname (фамилия). */ class User { public string $name; public string $surname; public function __construct(string $name, string $surname) { $this->name = $name; $this->surname = $surname;...
true
2190867ade47c3c92fc10145f981f23a2e753dfc
PHP
bytecod3/gate_auth
/pages/post_article.php
UTF-8
938
2.734375
3
[]
no_license
<?php // include core functions require "../core/core.php"; session_start(); // get link id if(isset($_GET['id'])){ $article_page_id = $_GET['id']; }else{ $article_page_id = 0; } if (isset($_SESSION['logged_in'])){ // allow user to access this page if logged in display_content(); }else{ // user ...
true
79b7a602790a8e8dcf208089add8dad3744ed4d2
PHP
p3rv3z/blood-donor-management
/app/Models/User.php
UTF-8
1,499
2.515625
3
[ "MIT" ]
permissive
<?php namespace App\Models; use Illuminate\Contracts\Auth\MustVerifyEmail; use Illuminate\Database\Eloquent\Factories\HasFactory; use Illuminate\Foundation\Auth\User as Authenticatable; use Illuminate\Notifications\Notifiable; use Laravel\Sanctum\HasApiTokens; use Haruncpi\LaravelIdGenerator\IdGenerator; class User ...
true
7e6ee36ae468d5ea8a38c0ad2a2255b3af27809e
PHP
gelhaar/klipsmobile
/backend/auth/login.php
UTF-8
1,158
2.78125
3
[]
no_license
<?php /** * Authentifieziert den Benutzer. * Greift auf die Datenbank zu und holt zum Benutzernamen den passenden Passwort-String. * Bei Fehlern landet der Benutzer wieder auf der Login-Seite * * @author: Benjamin Gelhaar */ require_once "../includes/error_reporting.php"; session_start(); require_once "../i...
true
934851f89f341bf3c64cde0e72626fc3ae52eacb
PHP
GelekW/Compare
/signin.php
UTF-8
2,037
2.78125
3
[]
no_license
<?php require_once('database.php'); $username = isset ($_POST['username']) ? $_POST['username'] : null; $password = isset ($_POST['password']) ? $_POST['password'] : null; $database = Database::instance(); $status = null; if ($username != null && $password != null) { $s...
true
3af12f5d0baa8ea74f4f010d4c85df46bfe963b7
PHP
Moro3/duc
/application/libraries/WConfig/driver/array4.php
UTF-8
10,504
3.015625
3
[]
no_license
<?php class Array_php{ /** * Массив с распарсенными значениями * * @var array */ private $array = array(); /** * Содержание файла * * @var string */ private $content; /** * Расширение файла * * @var string */ private $ext_file = ...
true
422884611cd3975c6fb63e8456a9d77c1b9fd937
PHP
erikvanzijst/oldschool
/vu/internet_programming/assignment_4/stockmanip.php
UTF-8
4,124
3.5
4
[]
no_license
<? /* * array * ( * "product_1 => array * ( * name => "product_1" * instock => 4 * sold => 1 * ) * "product_2 => array * ( * name => "product_2" * instock => 6 * sold => 12 * ) * ) */ /* * This function takes a productname and returns the number of items we have in * stock. If the s...
true
4f50f82737c2a70ae01efb4f8c7f192aec1a808b
PHP
lisues/Mercari_Assignment
/mercari-php-test-master/src/test.php
UTF-8
1,173
2.9375
3
[]
no_license
<?php require_once('banner.php'); function bannerTestResult($banner, $result) { if ($result) { echo "<br> ".$banner." display: Yes"; } else { echo "<br> ".$banner." display: No"; } } $banner1 = new banner("1.2.3.4", "Start Date/Time = 2014-08-10T12:00:00+0900", "End Date/Time = 20...
true
015972d7b164be2ee10e4294648a76333a875f4a
PHP
mitchellurgero/cloudron-ldap-proxy
/vendor/react/react/examples/pump-shitload-of-data.php
UTF-8
613
2.578125
3
[ "MIT" ]
permissive
<?php // serve a lot of data over TCP // useful for profiling // you can run this command to profile with xdebug: // php -d xdebug.profiler_enable=on examples/pump-shitload-of-data.php require __DIR__.'/../vendor/autoload.php'; $loop = React\EventLoop\Factory::create(); $socket = new React\Socket\Server($loop); $so...
true
5b6ffdd2d1e3c2d34472cf8deca1e0f7153f598c
PHP
shagaevmv/laraapitestwork
/app/Repositories/Contracts/ProductCategoryRepository.php
UTF-8
328
2.796875
3
[]
no_license
<?php namespace App\Repositories\Contracts; interface ProductCategoryRepository { /** * @param int[] $categoryIds */ public function add(int $productId, array $categoryIds): void; public function deleteByProductId(int $productId): void; public function deleteByCategoryId(int $categoryId): ...
true
bb1946a162c6b10e2d99ffbaecd615053198c020
PHP
ZhanZongHan/php_design
/src/beans/GoodsImg.php
UTF-8
999
2.8125
3
[]
no_license
<?php /** * Created by PhpStorm. * User: zzh * Date: 18-12-29 * Time: 上午9:53 */ class GoodsImg { private $goods_img_id; private $goods_img_url; private $goods_id; /** * @return int */ public function getGoodsImgId() { return $this->goods_img_id; } /** * @pa...
true
771287beda0bc3e5ab26071b0f37e96df2822701
PHP
jpatipan1709/propertyguru
/app/Http/Requests/CheckEvent.php
UTF-8
1,696
2.6875
3
[]
no_license
<?php namespace App\Http\Requests; use Illuminate\Foundation\Http\FormRequest; class CheckEvent extends FormRequest { /** * Determine if the user is authorized to make this request. * * @return bool */ public function authorize() { return true; } /** * Get the ...
true
8bf7525b4f9fc0081fbeec2ccd94bad64a7604e5
PHP
xavierauana/apex
/app/models/PageContent.php
UTF-8
1,065
2.671875
3
[ "MIT" ]
permissive
<?php class PageContent extends \Eloquent { protected $fillable = ['title', 'lang_id', 'page_id']; protected $table = "page_content"; public function page() { return $this->belongsTo('Page'); } public function addNewContent($page, $input) { $data = []; $data['page_id']...
true
4a158cfb2aa9f3dff3ea5133ae563ac496cf82c9
PHP
anekdotes/cache
/Tests/FileCacheTest.php
UTF-8
3,937
2.78125
3
[ "MIT" ]
permissive
<?php /* * This file is part of the Cache package. * * (c) Anekdotes Communication inc. <info@anekdotes.com> * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace Tests; use Anekdotes\Cache\FileCache; use PHPUnit\Framework\T...
true
6f51d232462a0454d0afeb59e95db1b7c4241fe0
PHP
wi1dcard/learnku-deploy-bot
/src/Commands/ArticleListCommand.php
UTF-8
1,287
2.734375
3
[]
no_license
<?php namespace Wi1dcard\LearnkuDeployBot\Commands; use Wi1dcard\LearnkuDeployBot\Requests\ArticleListRequest; use Symfony\Component\Console\Input\InputOption; use Wi1dcard\LearnkuDeployBot\Exceptions\ExtractorException; use Wi1dcard\LearnkuDeployBot\Extractors\ArticleListExtractor; final class ArticleListCommand ex...
true
e28b9596b90b46b14609e34fe917a1d665b2187f
PHP
ajsora97/tienda
/administrador/libros-administrador/registro/datos-libro.php
UTF-8
4,425
3.15625
3
[]
no_license
<?php class books { //Parámetros que vienen del POST public $errores = 0; public $titulo = null; public $autor = null; public $publicacion = null; public $edicion = null; public $precio = null; public $genero = null; public $paginas = null; public $tipo = null; public $editorial = null; /* Titulo */ ...
true
8461fa1032f03e03bc11a7ce67ed2e1a7f8d2ff1
PHP
HarmonyIO/Validation
/src/Rule/BankAccount/Iban/Country/Estonia.php
UTF-8
353
2.546875
3
[ "MIT" ]
permissive
<?php declare(strict_types=1); namespace HarmonyIO\Validation\Rule\BankAccount\Iban\Country; use HarmonyIO\Validation\Rule\BankAccount\Iban\Country; final class Estonia extends Country { private const PATTERN = '~^EE\d{2}\d{2}\d{2}\d{12}$~'; public function __construct() { parent::__construct(se...
true
d37373e69d033f0678046f117596fbfbceb22699
PHP
jean-cap/curso-php7
/funcoes/exemplo-05.php
UTF-8
400
3.5
4
[]
no_license
<?php require_once '../include/exemplo-01.php'; $a = 10; // Passagem de parâmetro como referência function trocaValor(&$a) { $a += 50; return $a; } echo 'Valor da variável $a: ' . $a; quebraLinha(); echo 'Varlos do retorno da função: ' . trocaValor($a); quebraLinha(); echo 'Varlos do retorno da função: ...
true
f3a33efd5f8e8a81aaffeec43061a27b2b2827f1
PHP
kandeol/Camagru-project-42
/reset.php
UTF-8
1,313
2.578125
3
[]
no_license
<?php session_start(); if (isset($_SESSION['user'])) { header('location: membre.php'); } ?> <!DOCTYPE html> <html> <head> <meta name="viewport" content="width=device-width, initial-scale=1.0" charset="utf-8" /> <meta http-equiv="content-type" content="text/css"> <title>Ma première page avec du style</t...
true
3130cc90d75f5b90515af6221980322adcd1915b
PHP
KoenNL/doodah
/app/src/Transformer/HeroTransformer.php
UTF-8
898
2.515625
3
[]
no_license
<?php namespace App\Transformer; use App\Document\Hero; use App\Document\HeroAttribute; use App\Document\HeroRole; use App\Document\HeroRoleCollection; use App\Helper\HeroAttributeHerlper; use stdClass; class HeroTransformer extends OpenDotaObjectTransformer { public function transform(stdClass $jsonObject): Her...
true
85b8c51019b69eff8bef5ec1bda6063387c7fa7f
PHP
FazilNusrat/msoft-academy-system
/app/Http/Controllers/LibraryController.php
UTF-8
4,068
2.578125
3
[ "MIT" ]
permissive
<?php namespace App\Http\Controllers; use App\Models\library; use Illuminate\Http\Request; class LibraryController extends Controller { protected $library; public function __construct(library $library) { $this->library = $library; } /** * Display a listing of the resource. * ...
true
123285161c17cb34ad4c52176e41d2869344b674
PHP
takara1102/okinawakanko
/view.php
UTF-8
1,129
3
3
[]
no_license
<?php // 1.データベースに接続する $dsn = 'mysql:dbname=okinawakanko;host=localhost'; $user = 'root'; $password = ''; $dbh = new PDO($dsn, $user, $password); $dbh->query('SET NAMES utf8'); // 2.SQL文を実行する $sql = 'SELECT * FROM `utina-`'; $stmt = $dbh->prepare($sql); $stmt->execute(); while (1) { $rec = $stmt->fetch(PDO::FETCH_A...
true
c1c5f0d2550856c119fd513ddde78798fddb2e7a
PHP
SWillis31/Capstone
/resources.php
UTF-8
1,818
2.515625
3
[]
no_license
<?php $title="Resources"; $extra_stylesheet="css/main_content.css"; include("header.php"); echo "<ul>"; $sql = "SELECT * FROM resources"; $result = $conn->query($sql); while($row = $result->fetch_assoc()){ echo "<li><a href='" . $row["resource_link"] . "' class='resource-link'>" . $row["resource_name"] . "</a><...
true
763b3db576d3524cea9a4ed5c6eb8bd2af72bcb3
PHP
rcj0003/CS230Lab
/includes/controllers/login-controller.php
UTF-8
1,403
2.84375
3
[]
no_license
<?php class LoginController { const USER_ID_FIELD = "userId"; const USERNAME_FIELD = "username"; const EMAIL_FIELD = "email"; const PASSWORD_FIELD = "password"; const FIRST_NAME_FIELD = "firstName"; const LAST_NAME_FIELD = "lastName"; function login($username, $password) { ...
true
c370f7e256dafe77ada4ba470166df209a94cef4
PHP
Hereward/pinkpages
/System/Utils/SitemapXML.php
UTF-8
3,420
3.125
3
[]
no_license
<?php class SitemapXML { /*** * * $type has 3 possible values sitemap1, sitemap, sitemapIndex * $arrayRows is an array of strings that simply contains the URLS * ***/ public function createSitemapXML($arrayRows, $type, $chunkCount){ if($type == 'sitemap1'){ $content = ...
true
ddacdead8547de34b9debf0f771987bc88839ff1
PHP
lovranitstamas/laravel8-prooktatas
/app/helpers.php
UTF-8
1,115
2.65625
3
[ "MIT" ]
permissive
<?php if (!function_exists('authCustomer')) { function authCustomer() { return auth()->guard('customer')->user(); } } if (!function_exists('orderTableHeader')) { function orderTableHeader($field, $tableHeaderText) { $currentRouteName = \Route::currentRouteName(); $sortBy =...
true
333dce319022750d99c42755f056df96a1c63929
PHP
abhijith-shetty/Aadya
/base/memcacheLib.class.php
UTF-8
1,040
2.90625
3
[ "MIT" ]
permissive
<?php /** * Author : Abhijith Shetty * Date : 27-05-2014 * Description : Handles memcache connection and data transfer */ class memcacheLib { static private $connection; public static function init($config) { self::$connection = new Memcached(); //self::$connection->setOption(Memcached::OPT_C...
true
18f1016a5ca44a0fb0c7298ca0d061719bb3fa7c
PHP
vtereshenkov/reservation-bundle
/Model/AbstractOrder.php
UTF-8
6,480
2.515625
3
[ "Apache-2.0" ]
permissive
<?php /* * This file is part of the VtereshenkovReservationBundle package. * * (c) Vitaliy Tereshenkov * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace Vtereshenkov\ReservationBundle\Model; use Symfony\Component\Securit...
true
f1ddee19f0012fffaf24750b7e99a40604e3a60f
PHP
vickyjodha/oopsPHP
/Inheritance/multipule.php
UTF-8
433
3.359375
3
[]
no_license
<?php class Dish { function Roti(){ echo "this roti nmae of data "; } function Sbaji(){ echo "sbaji name this data "; } } trait Sweet { function Sweet(){ echo "Sweet Name of this data"; } } trait ButterMilk{ function ButterMilk() { echo " butter milk name ...
true
713ee6556aa2ef0384a7245009bde5771c955822
PHP
alexjp7/MijdasServer
/requests/assessment/toggleActivation.php
UTF-8
934
2.578125
3
[]
no_license
<?php /************************************************ Author: Alex Perceval Group: Mijdas(kw01) Purpose: Allows coordinators to toggle the active status of an assessment. ************************************************/ include_once("../../config/database.php"); inc...
true
198df3a66c55a0c492d6baee5e3819b76a214480
PHP
KangAgung/PPL-1
/latihan_template/viewdetail.php
UTF-8
1,973
2.734375
3
[]
no_license
<?php $nim = $_GET['nim']; $host = "localhost"; $database = "dbakademis"; $user = "root"; $password = ""; $koneksi=mysqli_connect($host,$user,$password,$database); if(!$koneksi) { die("Error : ".mysql_error()); } $sql = "SELECT * FROM mahasiswa WHERE nim = $nim "; $res ...
true
dabc9e7f9dd1268966b65bb6a9fc945893ae583d
PHP
kamaroly/project-manager-laravel
/app/Services/ProjectMemberService.php
UTF-8
2,220
2.5625
3
[]
no_license
<?php namespace ProjectManager\Services; use ProjectManager\Repositories\ProjectMemberRepository; use ProjectManager\Validators\ProjectMemberValidator; use Prettus\Validator\Exceptions\ValidatorException; class ProjectMemberService { protected $memberRepository; protected $memberValidator; protected $st...
true
fb64f13a5dcece12fc4a5de73d84ba24d43e15e5
PHP
tasofen/secure-transfer
/src/RSA.php
UTF-8
2,675
2.921875
3
[]
no_license
<?php namespace Tasofen\SecureTransfer; class RSA implements Secure { private $privateKey; private $publicKey; private $cipher = 'aes-256-cbc'; private $ivLength = 16; public function __construct(array $data) { $publicKey = $data['publicKey'] ?? ''; $privateKey = $data['privat...
true
95e895e471bd1f49c319198201667315afdb475d
PHP
wqcsimple/yii2-best-practice
/services/TokenService.php
UTF-8
1,156
2.640625
3
[ "BSD-3-Clause" ]
permissive
<?php /** * Created by PhpStorm. * User: whis * Date: 5/3/17 * Time: 2:25 PM */ namespace app\services; use app\models\Token; use dix\base\exception\ServiceErrorSaveException; class TokenService { public static function makeToken($user_id, $type = Token::TYPE_ADMIN) { self::makeTokenInvalid($use...
true
8aa53efdc519cae518755c10ae4056523dc76b8d
PHP
adrianacastroalencastre/ecommerce
/validar.php
UTF-8
509
2.6875
3
[ "MIT" ]
permissive
<?php session_start(); // Obtengo los datos cargados en el formulario de login. $usuario = $_POST['txtUsuario']; $password = $_POST['txtPassword']; if ($usuario == "juan" and $password == "123") { // Guardo la sesion del Usuario. $_SESSION['usuario'] = $usuario; // Redirecciono al u...
true
f3029f60147429cbeabb75209be15d79e8038991
PHP
jacano1969/MVC_framework
/clases/sql/mysql/MySQLBlobHandler.class.php
UTF-8
2,134
3
3
[]
no_license
<?php namespace sql\mysql; use sql\Connection; use sql\BlobHandler; use sql\SQLException; /** * Class MySQLBlobHandler * * This class extends BlobHandler providing specific methods for updating blobs on a MySQL database. */ class MySQLBlobHandler extends BlobHandler { /*** * Updates the given record on the d...
true
230336a8ba8f1515627343ddf79200c9d0ffeaec
PHP
frmcclurg/kirkwood
/courses/php/examples/chapter06/hashOfHashes.php
UTF-8
1,668
3.421875
3
[]
no_license
<?php function PrintArray( $array, $indent ) { foreach( $array as $key => $value ) { $spacer = str_repeat(" &nbsp; ", $indent ); printf( "%s Key: %s", $spacer, $key ); if ( is_array( $value ) ) { printf( "<br>" ); // recursive...
true
f851560db59ab3f0a68d21718ba12371769062fc
PHP
lexloren/E99-Language-Learning
/dictionary-upload/upload_dictionary.php
UTF-8
1,969
3.015625
3
[]
no_license
<?php require "backend.php"; $dictionary_file_names = array("cn–en"); //, "jp.txt"); $index_delimiter = " "; foreach ($dictionary_file_names as $dictionary_file_name) { if (file_exists($dictionary_file_name)) { $language_codes = explode("–", $dictionary_file_name); $language_known = mysql_fetch_assoc(mysql_ge...
true
3856728ba655c60b8691160090c27268c4b8e8a8
PHP
MargotCALVIE/Ebay-ECE
/Ebay code margot v2/Vendreconnexion.php
UTF-8
2,543
2.65625
3
[]
no_license
<?php session_start(); $host = 'localhost'; $user = 'root'; $password = ''; //To be completed if you have set a password to root $database = 'projet'; //To be completed to connect to a database. The database must exist. $db_handle = mysqli_connect($host, $user, $password); $db_found = mysqli_sele...
true