PageRenderTime 2996ms queryFilters 1ms Sphinxql 2188ms GetByIds 788ms meta 0ms repositoryFilters 7ms languageFilters 0ms sourceFilters 1ms

84,481 results for 'php chr repo:teplitsa/easy-digital-downloads' (2996 ms)

Source

Language

Repository

test.PHPCLI.php https://github.com/costinu/cms.git | PHP | 136 lines
30{
31    public function PHPCLI() { parent::AbstractTest("PHP Command Line", "Testing PHP command line (default is php)"); }
32    public function doTest()
39        }
40        $windows = (PHP_OS == "WIN32" || PHP_OS == "WINNT" || PHP_OS == "Windows");
41
72        $testScript = AJXP_CACHE_DIR."/cli_test.php";
73        file_put_contents($testScript, "<?php file_put_contents('".$robustCacheDir.DIRECTORY_SEPARATOR."cli_result.php', 'cli'); ?>");
74
78            /* Next 2 lines modified by rmeske: Need to wrap the folder and file paths in double quotes.  */
79            $cmd = $defaultCli." ". chr(34).$robustCacheDir .DIRECTORY_SEPARATOR."cli_test.php".chr(34);
80            $cmd .= " > ".chr(34).$logFile.chr(34);
87                $tmpBat = implode(DIRECTORY_SEPARATOR, array(str_replace("/", DIRECTORY_SEPARATOR, AJXP_INSTALL_PATH), "data","tmp", md5(time()).".bat"));
88                $cmd .= "\n DEL ".chr(34).$tmpBat.chr(34);
89                file_put_contents($tmpBat, $cmd);
TokenizerTest.php https://github.com/prateeksachan/search-api-sandbox.git | PHP | 308 lines
195  /**
196   * Like PHP chr() function, but for unicode characters.
197   *
197   *
198   * chr() only works for ASCII characters up to character 255. This function
199   * converts a number to the corresponding unicode character. Adapted from
207    if ($num < 2048) {
208      return chr(($num >> 6) + 192) . chr(($num & 63) + 128);
209    }
211    if ($num < 65536) {
212      return chr(($num >> 12) + 224) . chr((($num >> 6) & 63) + 128) . chr(($num & 63) + 128);
213    }
215    if ($num < 2097152) {
216      return chr(($num >> 18) + 240) . chr((($num >> 12) & 63) + 128) . chr((($num >> 6) & 63) + 128) . chr(($num & 63) + 128);
217    }
class.AJXP_Controller.php https://github.com/costinu/cms.git | PHP | 580 lines
328        $robustInstallPath = str_replace("/", DIRECTORY_SEPARATOR, AJXP_INSTALL_PATH);
329        $cmd = ConfService::getCoreConf("CLI_PHP")." ".$robustInstallPath.DIRECTORY_SEPARATOR."cmd.php -u=$user -t=$token -a=$actionName -r=$currentRepositoryId";
330        /* Inserted next 3 lines to quote the command if in windows - rmeske*/
331        if (PHP_OS == "WIN32" || PHP_OS == "WINNT" || PHP_OS == "Windows") {
332            $cmd = ConfService::getCoreConf("CLI_PHP")." ".chr(34).$robustInstallPath.DIRECTORY_SEPARATOR."cmd.php".chr(34)." -u=$user -t=$token -a=$actionName -r=$currentRepositoryId";
333        }
351        /*
352        if (PHP_OS == "WIN32" || PHP_OS == "WINNT" || PHP_OS == "Windows") {
353            if(AJXP_SERVER_DEBUG) $cmd .= " > ".$logFile;
358                $tmpBat = implode(DIRECTORY_SEPARATOR, array( $robustInstallPath, "data","tmp", md5(time()).".bat"));
359                $cmd .= "\n DEL ".chr(34).$tmpBat.chr(34);
360                AJXP_Logger::debug("Writing file $cmd to $tmpBat");
378    {
379        if (PHP_OS == "WIN32" || PHP_OS == "WINNT" || PHP_OS == "Windows") {
380              if(AJXP_SERVER_DEBUG) $cmd .= " > ".$logFile;
chr.html git://github.com/kvz/phpjs.git | HTML | 53 lines
20layout: function
21title: PHP's chr in JavaScript
22description: >-
23  Here’s what our current JavaScript equivalent to <a
24  href="https://php.net/manual/en/function.chr.php">PHP's chr</a> looks like.
25function: chr
27language: php
28permalink: php/strings/chr/
29alias:
31  - /functions/strings/chr/
32  - /php/chr/
33  - /functions/chr/
35{% codeblock lang:javascript %}module.exports = function chr (codePt) {
36  //  discuss at: https://locutus.io/php/chr/
37  // original by: Kevin van Zonneveld (https://kvz.io)
chr.html https://github.com/andriuspetrauskis/phpjs.git | HTML | 53 lines
20layout: function
21title: PHP's chr in JavaScript
22description: >-
23  Here’s what our current JavaScript equivalent to <a
24  href="http://php.net/manual/en/function.chr.php">PHP's chr</a> looks like.
25function: chr
27language: php
28permalink: php/strings/chr/
29alias:
31  - /functions/strings/chr/
32  - /php/chr/
33  - /functions/chr/
35{% codeblock lang:javascript %}module.exports = function chr (codePt) {
36  //  discuss at: http://locutus.io/php/chr/
37  // original by: Kevin van Zonneveld (http://kvz.io)
stripslashes_variation2.php git://github.com/facebook/hiphop-php.git | PHP | 103 lines
49                    'he said, ""he will be on leave"',
50                    '"""PHP"""',
51                    "",
65                    'hello'.chr(0).'world',
66                    chr(0).'hello'.chr(0),
67                    chr(0).chr(0).'hello',
67                    chr(0).chr(0).'hello',
68                    chr(0),
69
72                    "'\\0.0.0.0'".chr(0),
73                    chr(0)."'c:\php\'",
74                    '"\\0.0.0.0"',
74                    '"\\0.0.0.0"',
75                    '"c:\php\"'.chr(0)."'",
76                    '"hello"'."'world'".chr(0).'//',
addslashes_variation2.php git://github.com/facebook/hiphop-php.git | PHP | 85 lines
38                    'he said, ""he will be on leave"',
39                    '"""PHP"""',
40                    "",
52                    'hello'.chr(0).'world',
53                    chr(0).'hello'.chr(0),
54                    chr(0).chr(0).'hello',
54                    chr(0).chr(0).'hello',
55                    chr(0),
56
59                    "'\\0.0.0.0'".chr(0),
60                    chr(0)."'c:\php\'",
61                    '"\\0.0.0.0"',
61                    '"\\0.0.0.0"',
62                    '"c:\php\"'.chr(0)."'",
63                    '"hello"'."'world'".chr(0).'//',
SearchTokenizerTest.php git://github.com/drupal/drupal.git | PHP | 152 lines
124  /**
125   * Like PHP chr() function, but for unicode characters.
126   *
126   *
127   * chr() only works for ASCII characters up to character 255. This function
128   * converts a number to the corresponding unicode character. Adapted from
136    if ($num < 2048) {
137      return chr(($num >> 6) + 192) . chr(($num & 63) + 128);
138    }
140    if ($num < 65536) {
141      return chr(($num >> 12) + 224) . chr((($num >> 6) & 63) + 128) . chr(($num & 63) + 128);
142    }
144    if ($num < 2097152) {
145      return chr(($num >> 18) + 240) . chr((($num >> 12) & 63) + 128) . chr((($num >> 6) & 63) + 128) . chr(($num & 63) + 128);
146    }
php-strings.el git://github.com/ejmr/php-mode.git | Lisp | 769 lines
20
21;; http://php.net/manual/en/ref.strings.php
22;; file:///usr/share/doc/php-doc/html/ref.strings.html
36
37(define-skeleton php-bin2hex
38  "Insert a bin2hex statement"
48
49(define-skeleton php-chr
50  "Insert a chr statement. Returns a specific character from ascii code"
77
78(define-skeleton php-convert_uuencode
79  "Insert a bin2hex statement"
587
588(define-skeleton php-strrchr
589  "Insert a strrchr statement. Find the last occurrence of a character in a string"
addslashes_variation2.php https://github.com/abhiskaushik/hhvm.git | PHP | 85 lines
1<?php
2/* Prototype  : string addslashes ( string $str )
38                    'he said, ""he will be on leave"',
39                    '"""PHP"""',
40                    "",
52                    'hello'.chr(0).'world',
53                    chr(0).'hello'.chr(0),
54                    chr(0).chr(0).'hello',
54                    chr(0).chr(0).'hello',
55                    chr(0),
56
59                    "'\\0.0.0.0'".chr(0),
60                    chr(0)."'c:\php\'",
61                    '"\\0.0.0.0"',
61                    '"\\0.0.0.0"',
62                    '"c:\php\"'.chr(0)."'",
63                    '"hello"'."'world'".chr(0).'//',
stripslashes_variation2.php https://github.com/abhiskaushik/hhvm.git | PHP | 103 lines
1<?php
2/* Prototype  : string stripslashes ( string $str )
49                    'he said, ""he will be on leave"',
50                    '"""PHP"""',
51                    "",
65                    'hello'.chr(0).'world',
66                    chr(0).'hello'.chr(0),
67                    chr(0).chr(0).'hello',
67                    chr(0).chr(0).'hello',
68                    chr(0),
69
72                    "'\\0.0.0.0'".chr(0),
73                    chr(0)."'c:\php\'",
74                    '"\\0.0.0.0"',
74                    '"\\0.0.0.0"',
75                    '"c:\php\"'.chr(0)."'",
76                    '"hello"'."'world'".chr(0).'//',
addslashes_variation2.php https://github.com/agoglev/hhvm.git | PHP | 85 lines
1<?php
2/* Prototype  : string addslashes ( string $str )
38                    'he said, ""he will be on leave"',
39                    '"""PHP"""',
40                    "",
52                    'hello'.chr(0).'world',
53                    chr(0).'hello'.chr(0),
54                    chr(0).chr(0).'hello',
54                    chr(0).chr(0).'hello',
55                    chr(0),
56
59                    "'\\0.0.0.0'".chr(0),
60                    chr(0)."'c:\php\'",
61                    '"\\0.0.0.0"',
61                    '"\\0.0.0.0"',
62                    '"c:\php\"'.chr(0)."'",
63                    '"hello"'."'world'".chr(0).'//',
stripslashes_variation2.php https://github.com/agoglev/hhvm.git | PHP | 103 lines
1<?php
2/* Prototype  : string stripslashes ( string $str )
49                    'he said, ""he will be on leave"',
50                    '"""PHP"""',
51                    "",
65                    'hello'.chr(0).'world',
66                    chr(0).'hello'.chr(0),
67                    chr(0).chr(0).'hello',
67                    chr(0).chr(0).'hello',
68                    chr(0),
69
72                    "'\\0.0.0.0'".chr(0),
73                    chr(0)."'c:\php\'",
74                    '"\\0.0.0.0"',
74                    '"\\0.0.0.0"',
75                    '"c:\php\"'.chr(0)."'",
76                    '"hello"'."'world'".chr(0).'//',
addslashes_variation2.php https://github.com/andriuspetrauskis/hiphop-php.git | PHP | 85 lines
1<?php
2/* Prototype  : string addslashes ( string $str )
38                    'he said, ""he will be on leave"',
39                    '"""PHP"""',
40                    "",
52                    'hello'.chr(0).'world',
53                    chr(0).'hello'.chr(0),
54                    chr(0).chr(0).'hello',
54                    chr(0).chr(0).'hello',
55                    chr(0),
56
59                    "'\\0.0.0.0'".chr(0),
60                    chr(0)."'c:\php\'",
61                    '"\\0.0.0.0"',
61                    '"\\0.0.0.0"',
62                    '"c:\php\"'.chr(0)."'",
63                    '"hello"'."'world'".chr(0).'//',
stripslashes_variation2.php https://github.com/andriuspetrauskis/hiphop-php.git | PHP | 103 lines
1<?php
2/* Prototype  : string stripslashes ( string $str )
49                    'he said, ""he will be on leave"',
50                    '"""PHP"""',
51                    "",
65                    'hello'.chr(0).'world',
66                    chr(0).'hello'.chr(0),
67                    chr(0).chr(0).'hello',
67                    chr(0).chr(0).'hello',
68                    chr(0),
69
72                    "'\\0.0.0.0'".chr(0),
73                    chr(0)."'c:\php\'",
74                    '"\\0.0.0.0"',
74                    '"\\0.0.0.0"',
75                    '"c:\php\"'.chr(0)."'",
76                    '"hello"'."'world'".chr(0).'//',
addslashes_variation2.php https://github.com/AojiaoZero/hhvm.git | PHP | 85 lines
1<?php
2/* Prototype  : string addslashes ( string $str )
38                    'he said, ""he will be on leave"',
39                    '"""PHP"""',
40                    "",
52                    'hello'.chr(0).'world',
53                    chr(0).'hello'.chr(0),
54                    chr(0).chr(0).'hello',
54                    chr(0).chr(0).'hello',
55                    chr(0),
56
59                    "'\\0.0.0.0'".chr(0),
60                    chr(0)."'c:\php\'",
61                    '"\\0.0.0.0"',
61                    '"\\0.0.0.0"',
62                    '"c:\php\"'.chr(0)."'",
63                    '"hello"'."'world'".chr(0).'//',
stripslashes_variation2.php https://github.com/AojiaoZero/hhvm.git | PHP | 103 lines
1<?php
2/* Prototype  : string stripslashes ( string $str )
49                    'he said, ""he will be on leave"',
50                    '"""PHP"""',
51                    "",
65                    'hello'.chr(0).'world',
66                    chr(0).'hello'.chr(0),
67                    chr(0).chr(0).'hello',
67                    chr(0).chr(0).'hello',
68                    chr(0),
69
72                    "'\\0.0.0.0'".chr(0),
73                    chr(0)."'c:\php\'",
74                    '"\\0.0.0.0"',
74                    '"\\0.0.0.0"',
75                    '"c:\php\"'.chr(0)."'",
76                    '"hello"'."'world'".chr(0).'//',
SearchTokenizerTest.php git://github.com/drupal/drupal.git | PHP | 155 lines
128  /**
129   * Like PHP chr() function, but for unicode characters.
130   *
130   *
131   * Function chr() only works for ASCII characters up to character 255. This
132   * function converts a number to the corresponding unicode character. Adapted
140    if ($num < 2048) {
141      return chr(($num >> 6) + 192) . chr(($num & 63) + 128);
142    }
144    if ($num < 65536) {
145      return chr(($num >> 12) + 224) . chr((($num >> 6) & 63) + 128) . chr(($num & 63) + 128);
146    }
148    if ($num < 2097152) {
149      return chr(($num >> 18) + 240) . chr((($num >> 12) & 63) + 128) . chr((($num >> 6) & 63) + 128) . chr(($num & 63) + 128);
150    }
SearchTokenizerTest.php https://github.com/albatrossdigital/albatrossdigital.git | PHP | 159 lines
133  /**
134   * Like PHP chr() function, but for unicode characters.
135   *
135   *
136   * chr() only works for ASCII characters up to character 255. This function
137   * converts a number to the corresponding unicode character. Adapted from
145    if ($num < 2048) {
146      return chr(($num >> 6) + 192) . chr(($num & 63) + 128);
147    }
149    if ($num < 65536) {
150      return chr(($num >> 12) + 224) . chr((($num >> 6) & 63) + 128) . chr(($num & 63) + 128);
151    }
153    if ($num < 2097152) {
154      return chr(($num >> 18) + 240) . chr((($num >> 12) & 63) + 128) . chr((($num >> 6) & 63) + 128) . chr(($num & 63) + 128);
155    }
SearchTokenizerTest.php https://github.com/alnutile/drunatra.git | PHP | 153 lines
127  /**
128   * Like PHP chr() function, but for unicode characters.
129   *
129   *
130   * chr() only works for ASCII characters up to character 255. This function
131   * converts a number to the corresponding unicode character. Adapted from
139    if ($num < 2048) {
140      return chr(($num >> 6) + 192) . chr(($num & 63) + 128);
141    }
143    if ($num < 65536) {
144      return chr(($num >> 12) + 224) . chr((($num >> 6) & 63) + 128) . chr(($num & 63) + 128);
145    }
147    if ($num < 2097152) {
148      return chr(($num >> 18) + 240) . chr((($num >> 12) & 63) + 128) . chr((($num >> 6) & 63) + 128) . chr(($num & 63) + 128);
149    }
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21