Warning:
Please, don't use
mysql_*
functions to write new code. They are no longer maintained and the community has begun the deprecation process. See the red box?Instead, you should learn about prepared statements and use either PDO or [MySQLi][manual-mysqli]. [This article][choosing-an-api] should give some details about deciding which API to use. For PDO, here is a [good tutorial][pdo-tutorial].
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
"""MIT License | |
Copyright (c) 2021-2022 Mate Cserep, https://mcserep.web.elte.hu/ | |
Permission is hereby granted, free of charge, to any person obtaining a copy | |
of this software and associated documentation files (the "Software"), to deal | |
in the Software without restriction, including without limitation the rights | |
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | |
copies of the Software, and to permit persons to whom the Software is | |
furnished to do so, subject to the following conditions: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
class TypedKeyValuePair_Tokn_Stor | |
{ | |
private $_key; | |
private $_value; | |
public function __construct(&$key, &$value) | |
{ | |
$this->setKey(&$key); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
### BEGIN INIT INFO | |
# Provides: scriptname | |
# Required-Start: | |
# Required-Stop: | |
# Default-Start: 2 3 4 5 | |
# Default-Stop: S 0 1 6 | |
# Short-Description: Script short description | |
# Description: Starts/Stops the script |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function prettyVar($variable = NULL) | |
{ | |
return str_replace(array("\n"," "),array("<br>"," "), var_export($variable,true))."<br>"; | |
} |