PageRenderTime 1435ms queryFilters 0ms Sphinxql 107ms app.CodeModel.GetByIds 1078ms findMatchingLines 232ms GetByIds 1310ms meta 0ms repositoryFilters 178ms languageFilters 2ms sourceFilters 3ms

44,336 results for 'hello world php' (1435 ms)

Source

Language

Repository

views.rst git://github.com/Elgg/Elgg.git | ReStructuredText | 653 lines
35Elgg handles this situation quite nicely. For example, our simple view might live in
36``/views/default/hello/world.php``, in which case it would be called like so:
37
226
227You might be wondering: "Why ``/views/default/hello/world.php`` instead of just ``/views/hello/world.php``?".
228
274For example, if we wanted to customize the ``hello/world`` view to use an ``h2``
275instead of an ``h1``, we could create a file at ``/mod/example/views/default/hello/world.php`` like this:
276
322
323	// appends 'hello/greeting' to every occurrence of 'hello/world'
324	elgg_extend_view('hello/world', 'hello/greeting');
326	// prepends 'hello/greeting' to every occurrence of 'hello/world'
327	elgg_extend_view('hello/world', 'hello/greeting', 450);
328
PHPInJavaTest.java git://github.com/collegeman/php-in-java.git | Java | 90 lines
12	public void testExecuteFromClasspath() {
13		assertEquals("Hello, world!", new PHP("classpath:/com/faux/php/HelloWorld.php").toString());
14		
14		
15		assertEquals("Hello, world!", new GroovyPHP("classpath:/com/faux/php/HelloWorld.php").toString());
16	}
32	public void testExecuteGlobalFunction() {
33		PHP php = new PHP("classpath:/com/faux/php/HelloWorldFx.php");
34		assertEquals("Hello, world!", php.fx("repeat", "Hello, world!").toString());
35		
36		GroovyPHP gphp = new GroovyPHP("classpath:/com/faux/php/HelloWorldFx.php");
37		assertEquals("Hello, world!", gphp.fx("repeat", "Hello, world!").toString());
40	public void testExecuteInstanceMethod() {	
41		assertEquals("Hello, world!", new PHP("classpath:/com/faux/php/HelloWorldClass.php")
42			.newInstance("Repeater", "Hello, world!")
scaffold.feature https://github.com/rclilly/wp-cli.git | Unknown | 202 lines
86
87    When I run `wp scaffold plugin hello-world`
88    Then STDOUT should not be empty
88    Then STDOUT should not be empty
89    And the {PLUGIN_DIR}/hello-world/hello-world.php file should exist
90    And the {PLUGIN_DIR}/hello-world/readme.txt file should exist
95
96    When I run `wp scaffold plugin hello-world --skip-tests`
97    Then STDOUT should not be empty
97    Then STDOUT should not be empty
98    And the {PLUGIN_DIR}/hello-world/hello-world.php file should exist
99    And the {PLUGIN_DIR}/hello-world/readme.txt file should exist
112      """
113    And the {PLUGIN_DIR}/hello-world/phpunit.xml file should exist
114    And the {PLUGIN_DIR}/hello-world/.travis.yml file should exist
output.txt git://github.com/duckduckgo/zeroclickinfo-fathead.git | Unknown | 174 lines
4hello world (Haxe)		https://github.com/leachim6/hello-world	Hello World in Haxe (Haxe.hx)	class Haxe {\n\tstatic function main() {\n\t\ttrace("Hello, World!");\n\t}\n}\n			
5hello world (Eiffel)		https://github.com/leachim6/hello-world	Hello World in Eiffel (Eiffel.eiff)	indexing "Hello World in Eiffel , from http://roesler-ac.de/wolfram/hello.htm#Eiffel"\n\nclass HELLO\n\ncreation\n\trun\n\nfeature\n\n\trun is\n\t\tlocal\n\t\t\tio : BASIC_IO;\n\t\tdo\n\t\t\t!!io;\n\t\t\tio.put_string("Hello World!");\n\t\t\tio.put_newline\n\t\tend; -- run\nend; -- class HELLO\n			
6hello world (erlang_hw)		https://github.com/leachim6/hello-world	Hello World in erlang_hw (erlang_hw.erl)	-module(erlang_hw).\n-export([start/0]).\n\nstart() ->\n  io:format("Hello World~n").			
6hello world (erlang_hw)		https://github.com/leachim6/hello-world	Hello World in erlang_hw (erlang_hw.erl)	-module(erlang_hw).\n-export([start/0]).\n\nstart() ->\n  io:format("Hello World~n").			
7hello world (ebuild)		https://github.com/leachim6/hello-world	Hello World in ebuild (ebuild.ebuild)	# Copyright 1999-2008 Gentoo Foundation\n# Distributed under the terms of the GNU General Public License v2\n# $Header: $\n\nDESCRIPTION="Hello World"\nHOMEPAGE="http://hello-world.org/"\nSRC_URI="http://hello-world.org/"\n\nLICENSE="GPL"\nSLOT="0"\nKEYWORDS="~x86"\nIUSE=""\n\nDEPEND=""\nRDEPEND=""\n\nsrc_compile() {\n\teinfo "Hello World"\n}\n			
8hello world (whenever)		https://github.com/leachim6/hello-world	Hello World in whenever (whenever.whenever)	1 print("Hello world!"); \n			
42hello world (nu)		https://github.com/leachim6/hello-world	Hello World in nu (nu.nu)	(puts "Hello World")\n			
43hello world (vhdl)		https://github.com/leachim6/hello-world	Hello World in vhdl (vhdl.vhdl)	use std.textio.all;\n\nentity hello_world is\nend hello_world;\n\narchitecture behaviour of hello_world is\nbegin\n\tprocess\n    begin\n       write (output, String'("Hello world!"));\n       wait;\n    end process;\nend behaviour;			
44hello world (vbnet)		https://github.com/leachim6/hello-world	Hello World in vbnet (vbnet.vb)	Module HelloWorld\n    Sub Main()\n        System.Console.WriteLine("Hello World")\n    End Sub\nEnd Module			
51hello world (qore)		https://github.com/leachim6/hello-world	Hello World in qore (qore.q)	#!/usr/bin/env qore\n%exec-class HelloWorld\nclass HelloWorld\n{\n    constructor()\n    {\n\t    background $.say("Hello World");\n    }\n    private say($arg)\n    {\n\t    printf("%s\\n", $arg);\n    }\n}\n			
52hello world (php)		https://github.com/leachim6/hello-world	Hello World in php (php.php)	<?php\n\tprint("Hello World");\n?>\n			
53hello world (python3)		https://github.com/leachim6/hello-world	Hello World in python3 (python3.py)	#!/usr/bin/env python\nprint("Hello World")\n			
148hello world (actionscript2)		https://github.com/leachim6/hello-world	Hello World in actionscript2 (actionscript2.as)	trace( "Hello World" );			
149hello world (ada)		https://github.com/leachim6/hello-world	Hello World in ada (ada.ada)	with Text_IO;\nprocedure Hello_World is\n\tbegin\n\t\tText_IO.Put_line("Hello World!");\n\tend Hello_World;\n			
150hello world (awk)		https://github.com/leachim6/hello-world	Hello World in awk (awk.awk)	# awk -f awk.awk\nBEGIN { print "Hello World" }\n			
index.xtp http://railoapacheportable.googlecode.com/svn/trunk/ | Unknown | 101 lines
20</td></tr><tr><td><viewfile-link file="hello.php"/>
21    </td><td>The PHP Hello, World
22</td></tr></deftable>
68file name in double quotes.  IE: "resin-web.xml").</li>
69<li>Cut and paste the "hello-world.php" into your text editor.</li>
70<li>Save the file into C:\resin-3.0.14\webapps\ROOT</li>
71<li>Open your favorite browser and type in the
72following URL: http://localhost:8080/hello-world.php.</li>
73</ol>
82
83<example title="hello-world.php">
84&lt;?php
96<p>You can now create your own PHP pages and store them in the same
97directory as the hello-world.php file.</p>
98</s1>
syntax.textile git://github.com/geraldb/slideshow.git | Unknown | 217 lines
144begin
145  Text_IO.Put_Line("Hello World!");
146end Hello_World;
153#!c
154/* Hello World in C, Ansi-style */
155
176
177h1. Hello World - From Erlang to PHP
178
198
199class HelloWorld {
200  static public void main( String args[] ) {
211<?php
212  // Hello World in PHP
213  echo 'Hello World!';
index.md https://github.com/dchester/rockplatform.github.com.git | Unknown | 182 lines
71
72 1. Create `bin/hello-world`
73
127            public function testGreeting() {
128                $this->assertEquals('Hello World', greeting());
129            }
136
137        Configuration read from /home/vagrant/php-example/phpunit.xml
138
148
149        run: HTTP_PORT=${HTTP_PORT-9000} hello-world
150
165          # check response body
166          if [[ "$body" != 'Hello World' ]]; then
167            die "ERROR: '$body' != 'Hello World'"
README.markdown git://github.com/jeffturcotte/moor.git | Markdown | 461 lines
6- Concepts To Understand
7- Hello World (PHP 5.1+)
8- Hello World (PHP 5.3+)
39	
40## Hello World (PHP 5.1+)
41
42	<?php
43	Moor::route('/hello/:name', 'hello_world')->run();
44	
48	
49## Hello World (PHP 5.3+)
50	
71
72The primary feature of Moor is routing URLs to a callback. This is achieved with the Moor::route method. Moor::route takes 3 parameters in a few configurations: a URL definition, a valid callback, and a closure. The PHP Callback can be any valid PHP callback: function or method. For security reasons, if calling a method, the class must extend (at-least) MoorAbstractController. 
73
README.markdown https://github.com/chandu2406/KodeKombat-server.git | Unknown | 461 lines
6- Concepts To Understand
7- Hello World (PHP 5.1+)
8- Hello World (PHP 5.3+)
39	
40## Hello World (PHP 5.1+)
41
42	<?php
43	Moor::route('/hello/:name', 'hello_world')->run();
44	
48	
49## Hello World (PHP 5.3+)
50	
71
72The primary feature of Moor is routing URLs to a callback. This is achieved with the Moor::route method. Moor::route takes 3 parameters in a few configurations: a URL definition, a valid callback, and a closure. The PHP Callback can be any valid PHP callback: function or method. For security reasons, if calling a method, the class must extend (at-least) MoorAbstractController. 
73
2010-11-21.txt https://github.com/Marak/node-stats.git | text | 1,853 lines
196[02:34] polotek: wtf. github pull requests aren't as clear as I thought they were
197[02:34] cainus_: hey all...any express users in here?  the hello world example doesn't respond to http requests, and I'm wondering if the example's out of date, or if I'm just a total failure
198[02:34] sudoer has joined the channel
464[15:33] iszak: Aikar, and with something as large as a database adapter it's going to take MUCH longer.
465[15:34] Aikar: iszak: i think its safe to say anyone who is playing with node is likely not your run of the mill hello world php dev
466[15:34] iszak: but what's to say they're not the run of the mill hello world js dev
555[16:51] matjas has joined the channel
556[16:52] johan_bouveng: hello, any tip on how to catch errors in a good way with mongodb+mongoose?
557[16:52] johan_bouveng: especially when a insert fails.
1540[22:33] sh1m has joined the channel
1541[22:34] CIA-95: node: 03Silas Sewell 07master * r11b2ee7 10/ (15 files): Various doc tweaks (2-spaces vs tabs, EOL-whitespace, repl prompt, "world" vs "World", etc...) - http://bit.ly/9nJVGb
1542[22:34] mscdex: Wizek: can you gist the code?
1709[23:28] CIA-95: node: 03Ryan Dahl 07master * rbb6d468 10/ src/node.js : requireNative doesn't depend on rest of module system - http://bit.ly/aHClEF
1710[23:28] pfarrel: just to do a websocket hello world basically
1711[23:28] Wizek: bnoordhuis: https://gist.github.com/709277
README.md https://gitlab.com/IsGaytan/super_morenos_systems_punto_de_venta.git | Markdown | 352 lines
8-----------
9A "hello world" receipt can be generated easily (Call this `hello-world.php`):
10```php
20# Networked printer
21php hello-world.php | nc 10.x.x.x. 9100
22# Local printer
22# Local printer
23php hello-world.php > /dev/...
24# Windows local printer
24# Windows local printer
25php hello-world.php > foo.txt
26net use LPT1 \\server\printer
62
63On Windows, the device files will be along the lines of `LPT1` (parallel) or `COM1` (serial). Use the `WindowsPrintConnector` to tap into system printing on Windows (eg. [Windows USB](https://github.com/mike42/escpos-php/tree/master/example/interface/windows-usb.php), [SMB](https://github.com/mike42/escpos-php/tree/master/example/interface/smb.php) or [Windows LPT](https://github.com/mike42/escpos-php/tree/master/example/interface/windows-lpt.php)) - this submits print jobs via a queue rather than communicating directly with the printer.
64
README.md git://github.com/Dolibarr/dolibarr.git | Markdown | 589 lines
228```bash
229php hello-world.php | nc 10.x.x.x. 9100
230```
234```bash
235php hello-world.php > /dev/usb/lp0
236```
240```bash
241php hello-world.php > foo.txt
242lpr -o raw -H localhost -P printer foo.txt
247```
248php hello-world.php > foo.txt
249net use LPT1 \\server\printer
312
313On Windows, the device files will be along the lines of `LPT1` (parallel) or `COM1` (serial). Use the `WindowsPrintConnector` to tap into system printing on Windows (eg. [Windows USB](https://github.com/mike42/escpos-php/tree/master/example/interface/windows-usb.php), [SMB](https://github.com/mike42/escpos-php/tree/master/example/interface/smb.php) or [Windows LPT](https://github.com/mike42/escpos-php/tree/master/example/interface/windows-lpt.php)) - this submits print jobs via a queue rather than communicating directly with the printer.
314
examples.xml https://github.com/ifeghali/phpdocs.git | XML | 121 lines
13   It defines some document info field contents, loads the Helvetica-Bold
14   font and outputs the text "Hello world! (says PHP)".
15  </para>
17   <example>
18    <title>Hello World example from PDFlib distribution for PHP 4</title>
19    <programlisting role="php">
30PDF_set_info($p, "Author", "Rainer Schaaf");
31PDF_set_info($p, "Title", "Hello world (PHP)!");
32
68   <example>
69    <title>Hello World example from PDFlib distribution for PHP 5</title>
70    <programlisting role="php">
83    $p->set_info("Author", "Rainer Schaaf");
84    $p->set_info("Title", "Hello world (PHP)!");
85
embeddable-apps.html http://raxan.googlecode.com/svn/trunk/ | HTML | 123 lines
59
60<h4><strong>Emebedded Hello World app</strong></h4>
61
69            // use the CLX to sent and alert action script to the client
70            c()-&gt;alert('Hello World!!! - PHP Rules!');
71        }
78
79<pre><code class="javascript">&lt;script type="text/javascript" src="hello.php?embed[js]"&gt;&lt;/script&gt;
80</code></pre>
83
84<pre><code class="javascript">&lt;script type="text/javascript" src="hello.php?embed[js]=noxcss,noxjs"&gt;&lt;/script&gt;
85</code></pre>
94
95<pre><code class="php">&lt;?php
96    $div = $this['&lt;div id="box1" class="box" /&gt;'];
README.md git://github.com/radiosilence/Ham.git | Markdown | 185 lines
6
7PHP Microframework for use with whatever you like. Basically just a fast router
8with nice syntax, and a cache singleton. Will add more things as I go, like
64
65Hello World
66-----------
73$app->route('/', function($app) {
74    return 'Hello, world!';
75});
93
94$hello = function($app, $name='world') {
95    return $app->render('hello.html', array(
98};
99$app->route('/hello/<string>', $hello);
100$app->route('/', $hello);
scaffold.feature https://github.com/TheLastCicada/wp-cli.git | Unknown | 83 lines
20    When I run `wp scaffold taxonomy zombie-speed --theme`
21    Then the {STYLESHEETPATH}/taxonomies/zombie-speed.php file should exist
22
23    When I run `wp scaffold post-type zombie --theme`
24    Then the {STYLESHEETPATH}/post-types/zombie.php file should exist
25
79
80    When I run `wp scaffold plugin hello-world`
81    Then STDOUT should not be empty
81    Then STDOUT should not be empty
82    And the {PLUGIN_DIR}/hello-world/hello-world.php file should exist
83    And the {PLUGIN_DIR}/hello-world/readme.txt file should exist
PhpProcessTest.php git://github.com/symfony/symfony.git | PHP | 74 lines
22    {
23        $expected = 'hello world!';
24        $process = new PhpProcess(<<<PHP
35        $process = new PhpProcess(<<<'PHP'
36<?php echo phpversion().PHP_SAPI;
37PHP
59PHP;
60        $process = new PhpProcess($script, null, null, 60, $php);
61        $process->run();
67        static::expectException(LogicException::class);
68        static::expectExceptionMessage('The "Symfony\Component\Process\PhpProcess::fromShellCommandline()" method cannot be called when using "Symfony\Component\Process\PhpProcess".');
69        PhpProcess::fromShellCommandline(<<<PHP
69        PhpProcess::fromShellCommandline(<<<PHP
70<?php echo 'Hello World!';
71PHP
016.phpt git://github.com/php/php-src.git | Unknown | 129 lines
3--SKIPIF--
4<?php 
5include "skipif.inc"; 
11<?php
12$php = getenv('TEST_PHP_EXECUTABLE');
13
19$codes[1] = <<<EOT
20echo 'Hello world';
21exit
56	$code = escapeshellarg($code);
57	echo `echo $code | "$php" -a`, "\n";
58}
67
68php > echo 'Hello world';
69Hello world
test_phpcompiler.py https://bitbucket.org/farazdagi/hippyvm | Python | 188 lines
3from hippy.test.directrunner import run_php_source, DirectInterpreter
4from hippy.phpcompiler import compile_php, PHPLexerWrapper
5from hippy.objspace import ObjSpace
46
47class TestPHPCompiler(BaseTestPHP):
48
165?>''')
166        assert output == 'Hello World'
167
169        output = self.run('''<? $x = <<<PHP
170Hello World
17112
178?>''')
179        assert output == 'Hello World\n12\n;;\n"hello"\n19x333\nclass var'
180
examples.xml https://github.com/andregoiano/hack-hhvm-docs.git | XML | 121 lines
13   It defines some document info field contents, loads the Helvetica-Bold
14   font and outputs the text "Hello world! (says PHP)".
15  </para>
17   <example>
18    <title>Hello World example from PDFlib distribution for PHP 4</title>
19    <programlisting role="php">
30PDF_set_info($p, "Author", "Rainer Schaaf");
31PDF_set_info($p, "Title", "Hello world (PHP)!");
32
68   <example>
69    <title>Hello World example from PDFlib distribution for PHP 5</title>
70    <programlisting role="php">
83    $p->set_info("Author", "Rainer Schaaf");
84    $p->set_info("Title", "Hello world (PHP)!");
85
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21