<?php

header("Content-type: text/html; charset=UTF-8");
?>
<html>
	<head>
		<title>Hello World demo</title>
	</head>
<body>
<?php 
require "setup.php";
my_include("src/helloworld.php");
$params = array();
echo create_helloworld($params);
?>
</body></html>
Beispiel #2
0
<?php

header('Content-type: text/html; charset=UTF-8');
?>
<html>
	<head>
		<title>Lilypond music</title>
	</head>
<body>
<?php 
require 'setup.php';
my_include('src/utils.php');
my_include('src/lilypond.php');
my_mysql_connect();
echo create_lilypond();
my_mysql_disconnect();
?>
</body></html>
Beispiel #3
0
<?php

// url to use this script:
// http://veltzer.net/~mark/php/pages/GetBlob.php?table=TbMsLilypond&id=5&field=pdf&type=application/pdf&name_field=filebasename
require 'setup.php';
my_include('src/utils.php');
$p_slug = $_GET['slug'];
$debug = 0;
my_mysql_connect();
$query = sprintf('SELECT id,name,slug,mime,data FROM TbRsBlob where slug="%s"', $p_slug);
if ($debug == 1) {
    echo $query . '<br/>';
}
$result = my_mysql_query($query);
# make sure we really have a result
assert($result);
# we should only get one result...
assert(mysql_num_rows($result) == 1);
$row = $result->fetch_assoc();
$r_id = $row['id'];
$r_name = $row['name'];
$r_slug = $row['slug'];
$r_mime = $row['mime'];
$r_data = $row['data'];
# You can see more HTTP headers that may improve stuff in
# http://en.wikipedia.org/wiki/List_of_HTTP_headers
# ideas are: Content-MD5, Content-Length, Last-Modified
# if you want to debug HTTP headers just use wget -S on the
# command line and compared the headers that you are generating
# with the headers that a regular content generates by using
# the web server...
Beispiel #4
0
<?php

header('Content-type: text/html; charset=UTF-8');
?>
<html>
	<head>
		<title>Business info sheet</title>
	</head>
<body>
<?php 
require 'setup.php';
my_include('src/utils.php');
my_include('src/business.php');
my_mysql_connect();
$params = array();
echo create_courses($params);
echo create_consulting($params);
echo create_teaching($params);
echo create_certification($params);
my_mysql_disconnect();
?>
</body></html>