I have written modules for webservers with so many php/html files that
I lost track, so I come out with this simple module to simplify the
logic among pages.
Imagine my module is a book, with many chapter inside.
-- The book is the main page, normally index.html or index.php.
-- The module comprises of many files, each file performs some
functions.
Thus file is equivalent to a chapter.
-- Each file may contain several functions. This are the sections in
the
chapter.
Imagine if I can say goto this book, this chapter and this section. I
will need a content page to look up the pages. Thus the idea is
formed.
The content pages is stored in an .ini format and read in using my
INIPARSER class. It will be in the form:
[]
=
=,
=, , ...
If I hit the page with the action text embedded through
index.php?action="..."
or
The index.php will just call up the function I want.
I hope that this will help to modularize your php codes as well.
Grok Headline matches for PHP Class 'PageLogic' released
PHP Class 'PHP or Java Class Code Generator' released
PHP Class 'PHP or Java Class Code Generator' released03/06/2004 02:00 AM This package is meant is automate the generation of classes to access
databases in Java beans style.
It uses the Fast Template engine to process template files that define
the skeleton of functions and variables of classes that store and
retrieve data object property values from a given database table,
getter and setter functions to access those properties and a function
to delete a data object row from the respective database table.
The package comes with templates to generate classes either in PHP or
Java. The PHP template defines code to access data objects in a MySQL
database. The Java template defines code to access data objects in any
database supported by JDBC.
PHP Class 'Convert Class To HTML Table' released
PHP Class 'Convert Class To HTML Table' released02/10/2004 02:46 AM This class is meant to display the structure of any class as an HTML
table.
The class being displayed can have variables that contain objects of
other classes or arrays and treats those variables each accordingly.
PHP Class 'Bs_StopWatch.class.php' released
PHP Class 'Bs_StopWatch.class.php' released11/07/2002 07:59 PM You can take times during a code run and at the end get a time table
as HTML or text table. The output will contain total and as delta
between each take in microseconds.
Free Code; This Class is part of the BlueShoes PHP Application
Framework, see blueshoes.org.
PHP Class 'Bs_CsvUtil.class.php' released
PHP Class 'Bs_CsvUtil.class.php' released11/08/2002 08:17 PM Features:
supports any separator char sequence, default is semicolon ";".
supports separator characters in the values. eg you use a ; as
separator, your line may look like
blah;hello world;"foo";"foo;bar";"this is a ""string""";got it?;foo
as you can see, the values can be in "quotes". if your text uses
quotes itself as in the "string"
example, they are escaped in ms-style with 2 quotes. and by using
quotes we can even have your
separator inside the text (example "foo;bar").
line breaks. a csv line may spread over multiple lines using crlf in a
field value.
see the checkMultiline param and the _checkMultiline() method.
PHP Class 'calend.class.php' released
PHP Class 'calend.class.php' released01/03/2003 07:52 PM This class generates HTML calendars in the portuguese language.
In portuguese:
Esta classe gera um calendário em português em HTML.
PHP Class 'My Db' released
PHP Class 'My Db' released06/09/2004 06:55 PM This package is a SQL database wrapper supporting MySQL, Interbase and
MS SQL server.
It can establish database server connections, execute SQL queries,
retrieve query results into arrays and display query results as HTML
tables.
PHP Class 'My DB' released
PHP Class 'My DB' released02/15/2004 07:40 PM This class is a simple wrapper around MySQL database acess functions.
It provides wrapper functions around most of the PHP MySQL extension
function like database, connection, queries execution and result data
access, error message retrieval, database creation and locking of
tables.
PHP Class 'numeroaletra' released
PHP Class 'numeroaletra' released10/01/2002 10:18 AM Extensión de la clase number2words de Bas Jobsen (bas@startpunt.cc)
con
la traducción de numeros a letras en español y de numeros a euros
PHP Class 'htmldoc' released
PHP Class 'htmldoc' released10/11/2002 07:54 AM Object Library for Creation of PDF Documents out of HTML Pages by
using htmldoc as conversion facility.
PHP Class 'WebWidgets' released
PHP Class 'WebWidgets' released10/11/2002 07:54 PM WebWidgets is a library of classes to produce any HTML(XML) documents,
create, validate forms.
It allow to create any "complicated" forms easy.
Any tag is an object. Your can build tags tree by inserting one tag
into another and get its content as HTML.
Based upon "Composite" OOP patern.
Library is very flexible, so your may derive your own classes.
Documentation in html format can be downloaded from here:
http://scancode.ru/dev/WebWidgets/webwidgets.08.doc.tar.gz (it is not
fine:( )
PHP Class 'bstCountdown' released
PHP Class 'bstCountdown' released10/15/2002 07:15 AM Display a list of 'days until' a set of events, includes a simple
example and a more complex one as child classes. Could easily be
extended to multi-user and notifications via email by adding a user
table and owner columns. Written to MySQL but db access is simple
enough to adapt.
PHP Class 'Spreadsheet_WriteExcel' released
PHP Class 'Spreadsheet_WriteExcel' released09/26/2002 07:29 PM Class for generating Excel files, based on John McNamara's
Spreadsheet::WriteExcel from CPAN.
It supports all the basic values for cells.
It doesn't support URLs, images (working on it) and charts. It has
very basic support for formulas.
PHP Class 'rhc' released
PHP Class 'rhc' released10/15/2002 07:15 AM RHC is actually a few files which give the user the ability to do
custom error handling, debugging, and handle database abstraction
(currently only through Informix).
PHP Class 'URLHelper' released
PHP Class 'URLHelper' released10/15/2002 07:15 AM This class give you access to the http header information and provides
some help for retrieving and parsing urls.
FUNCTIONS:
function isURLAvailable($url)
function isValidURLFormat($url, $strict=false)
function addHTTPtoURL($url)
function getHTTPStatusCode($url)
function getRealURL ($url, $simple = true, $method = "HEAD")
function getHTTPHeader($url)
function getMD5FromURL($url, $estFilesize=500000)
function _openHTTPConnection($url, $method = "HEAD")
PHP Class 'SQLCall' released
PHP Class 'SQLCall' released09/26/2002 07:29 PM SQLCall uses PHP's highly dynamic nature to give the calling class
unprecedented access to the result set in an intuitive way. It
currently only supports connections to mySQL databases. This class is
perfect for those who like their results at hand - no hashes or lists
to have to walk through.
PHP Class 'color' released
PHP Class 'color' released10/15/2002 07:15 AM These class converts colortypes.
It supports the following colors formats and types:
- CMYK
- RGB
- Pantone
- HEX Codes for HTML
PHP Class 'BarcodeI25' released
PHP Class 'BarcodeI25' released10/15/2002 07:15 AM HTML Barcode generator for Interleaved 2 of 5 Codes.
Código de barras fator Intercalado 2 de 5, padrão FEBRABAN (BRASIL).
PHP Class 'cellroll_lib' released
PHP Class 'cellroll_lib' released10/15/2002 08:29 PM Very simple class for faster building of table-rollovers (changing
bgcolor for rows or cells) js-scripts
PHP Class 'BaseDB' released
PHP Class 'BaseDB' released10/11/2002 07:54 AM Excellent oo base class for mysql interaction. worth looking at. you
must use this as a base class and extend your classes which map to a
table name.
your tables must have a 'id', 'created' and 'modified' field to work
properly and the class takes care of the rest. check it out.
PHP Class 'DBgrid' released
PHP Class 'DBgrid' released10/10/2002 09:55 AM Show the result of a mysql query on HTML table.
Easy to use. 1 line code. $grid = new DBgrid($result);
PHP Class 'Pagination' released
PHP Class 'Pagination' released01/10/2004 07:54 PM This package is a set of classes is meant to generate navigation bars
to display database query result sets split in multiple pages.
The packake is based on the factory design pattern that is used to
create objects of specific classes to provide the result set
pagination support with different databases.
PHP Class 'DCalendar' released
PHP Class 'DCalendar' released10/08/2002 07:09 AM Show a calendar with options view year, month and today link. Dynamic
events with diferent color
PHP Class 'mixer' released
PHP Class 'mixer' released10/01/2002 09:17 AM color mixer for vga (16 colors) - the class create a form for change
backgroundcolor
PHP Class 'COutLook' released
PHP Class 'COutLook' released10/01/2002 10:18 AM This class reads messages from the Inbox and Oubox of an Outlook local
profile through CDO (Colaboration Data Objects).
The class only works under Windows.
PHP Class 'ms_dbx_reader' released
PHP Class 'ms_dbx_reader' released10/01/2002 07:38 PM Microsoft DBX file reader /such as Outlook Express Mailbox database
files/
Author: Zeos
PHP Class 'db_view' released
PHP Class 'db_view' released10/08/2002 07:08 AM "db_view" provides:
* An abstraction class and helpers for multi-tabled Mysql data.
(init, select, select_row, count, insert, update, delete)
* Atomic multi-table updates, inserts, deletes
eg: update items, month set items.price=month.price where
items.id=month.id;
Also primitive non-atomic (=insecure) rollbacks.
* Functions, Triggers and Defaults per action
(select, update, insert, delete; before or after)
* Rich logging and debugging facilities.
PHP Class 'MkDir' released
PHP Class 'MkDir' released05/16/2004 07:21 PM This is a simple class for creating directories in the local file
system or in a remote server file system using a FTP connection.
PHP Class 'burnauth' released
PHP Class 'burnauth' released09/29/2002 08:10 PM Burning Auth is a script to handle user authenticated access to php
scripts.
The goal is quite simple: protect from unauthorized access those pages
who
need to be kept under admin control, such as data/content
administration and/or
members only areas on a website.
Security is achieved through a database authentication and mantained
with a
Session variable set to the authenticated user's name. Every page can
be protected
including the file 'shield.php'; at the beginning of it.
PHP Class 'morse' released
PHP Class 'morse' released09/28/2002 07:48 PM Short class for encoding or decoding morse signs
input: this is my 1st morse
output: - .... .. ... .. ... -- -.-- .---- ... - -- --- .-. ... .
PHP Class 'CISVC' released
PHP Class 'CISVC' released01/16/2004 11:05 AM This class is meant to encapsulate the APIs around the COM object for
Microsoft Indexing service (CISVC).
The class can perform the search query, output the search results
split in multiple pages and also a navigation let the user go back and
forth between the presented search results pages.
PHP Class 'phplibTemplateExtention' released
PHP Class 'phplibTemplateExtention' released10/08/2002 07:09 AM phplib has template.inc - a template class for php to utilize
templates. This is an extension to the class Template needing less
code by:
Automatic detection and declaration of blocks
Automatic "blanking" of unused blocks
Blocks automatically declaired in proper nested order.
All calls to set up template/file/paths/names in the class call.
- LGPL / GPL - phplibs license anyway - its their template class - I
just extended it to make my life a little easier.
PHP Class 'MyTemplate' released
PHP Class 'MyTemplate' released10/15/2002 08:29 PM MyTemplate is very powerful template engine. It allows including a
nested template file directly into another template file and
automaticaly parse it in any template in set.
Working with dinamic blocks is so easy. Only assign block variables
and get result. You do not need to parse each block 'manualy'.
Automaticaly parses PHP constant and global variables into templates.
Supports multiply template directories.
You'll like it :) Your code will become shorter :)
PHP Class 'utilsClass' released
PHP Class 'utilsClass' released10/16/2002 07:47 PM Utils class for phpLib, provide 4 methods to select, insert, update
and delete data from database. It requires phpLib properly installed.
It's really a simple work, but it was helpful to me, so I thought to
make it available.
PHP Class 'DcSessionManager ' released
PHP Class 'DcSessionManager ' released05/14/2004 07:21 PM This class is meant to manage sessions storing the information about
their state in a MySQL database table.
It generates an hash with 64 characters that is used to identify each
session and may be passed between pages using cookies or request
variables.
This class has security in mind, providing means to prevents session
hijack by using 2 hashes (double crypted) in only one "session".
You can store more than 5kbytes of data in each session.
The class provides other features, like:
- Explicitly creating and destroing session
- Register and deleting a session value
- Check if a session key value is assigned
PHP Class 'page_handle' released
PHP Class 'page_handle' released10/28/2002 08:29 PM A template engine geared to be able to display data without much
hassle in PHP code, just fetching of data and giving it to the
template engine. Create HTML templates with the data's keywords
PHP Class 'mimetype' released
PHP Class 'mimetype' released10/28/2002 08:29 PM This class enables PHP scripts to determine the mime type of a file
based on file extension, useful for PHP versions without access to
other utilities that determine mime type. Built from the Apache mime
type file.
PHP Class 'CSQLite' released
PHP Class 'CSQLite' released05/14/2004 07:21 PM This class is a wrapper to access SQLite file databases using SQLite
extension for PHP 5.
The functions are similar to those used to access MySQL databases:
open, query, fetch_row and get_num_rows.
PHP Class 'phpsecureweb' released
PHP Class 'phpsecureweb' released10/29/2002 07:48 PM Protect your sites or intranet with the power of PHP Secure Web. It is
database independent as what adODB supports. You required to have a
database of your liking. Simply install the tables, sign on as an
Admin, create users and groups, assign users and actions to the
groups, and you are almost done. Now write 4-5 lines of code for the
pages you want to protect (you can copy it from the examples) and you
are done. You will love the powerful and advanced Administration
features.
PHP Class 'innodb' released
PHP Class 'innodb' released01/04/2003 07:10 PM Class to store and retrieve information stored in MySQL innodb tables.
In portuguese:
Classe para banco de dados mysql com algumas funes especificas para
tabelas innodb. Grok Description matches for PHP Class 'PageLogic' released GrokA matches for PHP Class 'PageLogic' released
PageLogic
PageLogic11/18/2002 06:02 PM I have written modules for webservers with so many php/html files that
I lost track, so I come out with this simple module to simplify the
logic among pages.
Imagine my module is a book, with many chapter inside.
-- The book is the main page, normally index.html or index.php.
-- The module comprises of many files, each file performs some
functions.
Thus file is equivalent to a chapter.
-- Each file may contain several functions. This are the sections in
the
chapter.
Imagine if I can say goto this book, this chapter and this section. I
will need a content page to look up the pages. Thus the idea is
formed.
The content pages is stored in an .ini format and read in using my
INIPARSER class. It will be in the form:
[]
==, =, , ...
If I hit the page with the action text embedded through
index.php?action="..."
or
The index.php will just call up the function I want.
I hope that this will help to modularize your php codes as well.
Myriad hacks are
emerging for the PSP as eager tweakers have their way with the black
box. Add to the list the ability to control your home automation
system (and TiVo) wirelessly. Liquidice explains:
I now
have the ability to turn my lights on and off. [I] have full control
(Play, Stop, Pause, Menu) of my DVD player, TIVO, and High Def TV, all
wirelessly from my PSP. ... I put an image map on [some] graphics and
created some HTML pages which are hosted on my WACI NX server. The
links are crafted so that when the PSP highlights and clicks on a spot
on the image map, it instructs the WACI NX server to send an IR signal
to my A/V equipment or triggers it's relays to cut power on the
lights.
While he doesn't have step-by-step instructions,
he explains his methodologies pretty clearly, and mentions that an
official Sony web browser for the PSP will make things much
simpler.
(#gizmodo frequenter AMIB points out (with some
sass, it's noted) that the PSP isn't so spectacular in this feat
because all the heavy lifting is handled by the home automation web
server. A valid point, by way of saying any device or code that can
make a GET request to a web server can accomplish the same
thing.)
Friends finale and NBC Tivo-b0rking -- TiVo Strikes Back
Friends finale and NBC Tivo-b0rking -- TiVo Strikes Back05/07/2004 10:49 AM Following up on yesterday's post about NBC's apparent attempts to b0rk
potential TiVoers of the Friends finale, BoingBoing reader Douglas
Clark says,
I am a loyal Tivo user and Tivo did send out a
message alert to users about the Friends episode. It was more along
the lines of "if you manually extend the time of a recording, you may
miss the beginning of the friends final episode." I find that Tivo is
pretty good about catching unusual start times and other wonky tricks
the networks play. The previous comment about HUT and ratings was
right on the money...
Tech maven Meg Hourihan
adds, "Even weirder is that I got a message on my Tivo warning me that
the finale of Friends would have abnormal times. The message warned
that if I wasn't just using the automatic "start on time" and "end on
time" settings (i.e. I manually set the start time as 8 PM) that I
might miss some. What makes things weirder and worse is that Tivo
still didn't record the whole show! I made sure my settings were what
the message instructed, and happened to watch the show live. Tivo
kicked in to record at 8:59 PM (which is what it listed the start time
as) but stopped at 9:59! According to the time on my digital cable
box, the program didn't end until 10:03 PM. So if I hadn't watched it
live, I would have missed the last four minutes. Seems like a major
screw-up on Tivo's part, especially after sending out that
message!"
TiVo users not happy TiVo is spying on them
TiVo users not happy TiVo is spying on them02/10/2004 02:44 AM Well TiVo's boosting that it Janet Jacksons Garment malfunction was
the single highest re-watched event has many TiVo users asking...
Reuters is running a story about Intel that is chocked full of goo
info, including information that their 'Manitoba' mobile chipset has
finally found a customer in mmO2 Pic (the Manitoba came out two years
ago, to little fanfare, let alone actual adoption by phone
manufacturers). But the big news is that Intel will be working with
Tivo to provide Tivo-to-Go functionality in future laptop chipsets,
like their popular Centrino.
What that is, though, is unclear. Is it just a branding initiative?
Tivo-to-Go already works on laptops (that's half the point), so will
it be some sort of native support that makes it easier to move the
Tivo content around? We don't know—the article is very
vague—but at least Tivo is getting some name dropping love from
a mega-vendor (considering it was unlikely they were going to get much
help from Microsoft, considering they sell a competing product to
Windows XP Media Center). (Thanks, Pat!)
Photonics Control Announces Optical Control Breakthrough
Photonics Control Announces Optical Control Breakthrough06/26/2004 02:40 AM Intelligent Photonics Control Corp. (Photonics Control), the world
leader in providing embedded control solutions for optical devices,
announced today that it has reached a significant milestone. The
Company has integrated its solutions into 50 different customer
platforms including Optical Amplifiers, VMUXes, OPMs, DGEs, and
Tunable Lasers. [PRWEB Jun 26, 2004]
You Control: iTunes puts control in OS X menu bar (MacCentral)
You Control: iTunes puts control in OS X menu bar (MacCentral)08/31/2004 07:26 PM MacCentral - You Software Inc. announced on Tuesday the availability
of You Control: iTunes, a free
download that places iTunes controls in the Mac OS X menu bar. Without
leaving the current application, you can pause, play, rewind or skip
songs,
as well as control iTunes' volume and even browse your entire music
library
by album, artist or genre. Each time a new song plays, You Control:
iTunes
also pops up a window that displays the artist and song name and the
album
artwork, if it's in the library. System requirements call for Mac OS X
v10.2.6 and 10MB free hard drive space. ...
You Control: iTunes puts control in OS X menu bar
You Control: iTunes puts control in OS X menu bar08/31/2004 01:50 PM You Software Inc. announced on Tuesday the availability of You Control: iTunes, a
free download that places iTunes controls in the Mac OS X menu bar.
Without leaving the current application, you can pause, play, rewind
or skip songs, as well as control iTunes' volume and even browse your
entire music library by album, artist or genre. Each time a new song
plays, You Control: iTunes also pops up a window that displays the
artist and song name and the album artwork, if it's in the library.
System requirements call for Mac OS X v10.2.6 and 10MB free hard drive
space.
Does anyone have an MP3 of the song "Tivo, My Tivo" from the
off-Broadway [hit | miss] The Gayest Straight Man Alive?
Because I'd really like to hear it. Also, could someone explain what
"surprisingly straight" means? Is that, like, no dicks at all?
Not even your own? (Thanks, Peter, for the "tip.") Read
[NYTheatre]
Update: While I'm exploiting the good humor of our readers, do
any of you 1) live in Canberra, Australia, and 2) take PayPal? I need
to get a few cases of VB delivered to some game developers and am
having a surprisingly hard time of it.
To control or not to control, that is the question
To control or not to control, that is the question06/28/2004 04:51 AM The application vendors should do a better job of standardizing
default storage locations and names (even as aliases) while still
letting users override those choices and pick their own storage
metaphor. This isn't nuclear physics - everyone has experience
organizing their "stuff" (socks, bills, books, DVDs) so why not a) let
them do it and b) use familiar metaphors for it?
The Little TiVo That Could
The Little TiVo That Could06/10/2004 09:27 AM Despite the unpleasant questions, TiVo keeps chugging along.
Pop-up TiVo
Pop-up TiVo03/29/2005 03:08 PM One of the joys of TiVo ownership is skipping commercials. Will the
DVR company's new attempt to cater to advertisers fly with its fans?
Yesterday's item
provoked a flurry of responses. Steven J. Vaughan-Nichols, who wrote
the Washington Post story I dissected, points out that the nature of
his assignment precluded broader coverage, and that he'd otherwise
gladly have included bloglines.
There's been lots of chatter about bloglines lately -- Chad Dickerson
mentions it today -- so I was interested to hear from Martin
Thornell about another web-based product, Rocket RSS reader. Doubtless
there are others too. An implementation of one of these licensed for
behind-the-firewall use, as Chad suggests, would be handy. As a matter
of fact, that's how I use Radio UserLand's reader. It's nominally a
desktop product, but I run it as a server and authenticate to it over
SSL.
...
Men Want TiVo™ More
Men Want TiVo™ More08/09/2004 02:38 AM Male heads-of-household are more likely than their female counterparts
to buy a personal video recorder (PVR) over the next year, according
to the upcoming report Video-on-Demand and PVR: Analysis and Forecast
from Parks Associates. In a recent survey, 21% of male heads-of
household said they are likely to purchase a PVR in the next 12
months, compared with just 16% of female heads-of-household. [PRWEB
Aug 9, 2004]
Who doesn't like TiVo?
Who doesn't like TiVo?04/09/2004 04:11 PM The NY Times ran another of those fawning TiVo articles yesterday
about how everyone who has one loves it like a member of the family.
An excerpt: Mr. Smith has since replaced his older TiVo model with
three ReplayTV units. The new units allow him to stream programs from
one to the other. After recording a program in his darkened home
theater room, he transfers it to his brighter living... (with
comments)
How TiVo May Help The Web
How TiVo May Help The Web04/26/2004 04:07 PM Web advertising is making a big comeback just as TV advertising may be
losing steam. These two things may not be a coincidence, as a new
study suggests that advertisers are looking to move
their advertising dollars to the web, as they fear the impact of
TiVo-like devices on their television commercial spots. Of course, if
advertisers (as they're likely to do) insist on creating more annoying
and intrusive ads online this plan will backfire. However, they
should look on this as an opportunity. Smart advertising (not
intrusive, not annoying) that actually gives people something they
want will be a lot more cost effective than blind TV advertising where
you hope people are paying attention.
TiVo Is On the Go
TiVo Is On the Go01/03/2005 02:06 PM Can TiVo stomp the competition?
TiVo And The Mac
TiVo And The Mac08/30/2004 11:58 AM For some things, the Mac doesn't "just work". Windows might be buggy
malware-infested crapware that is impossible for me to depend on for a
living, but when it comes to things that make the RIAA and MPAA twitch
reflexively, buggy and filled with an infinite number of teenage
monkey hackers beats stale and used by crusty old farts like myself.
By Nathan Torkington, O'Reilly Network (via MyAppleMenu)
The G(r)eek Tragedy of Tivo02/01/2005 10:00 PM What happens when you have a product that is designed for the masses
but remains with the minority? Nobody could...
I missed the original call from Endgadget
to TiVo recommending that they get their software onto PC's but a
follow on thread has me shaking my head up and down saying yes this is
a damn good idea. After all I have a bunch of computers at home with a
significant amount of storage why should I have to buy a separate box
for just such recording activities. I know there are other solutions
out there but I really like TiVo's interface and this would be the
perfect application to add to my self made media center. The Corante
website goes a step further with implementations that make my mouth
water. [Corante<
/a>] [Engadget]
TiVo Goes Direct Again
TiVo Goes Direct Again04/05/2005 03:08 PM A new deal on ads points to the future of digital video recording.
The TiVo Paradox
The TiVo Paradox05/26/2004 09:01 AM A widening loss and dilution play counterpoint to TiVo's great story.
PHP Class 'PageLogic' released
The following phrases have been identified by the grok system as matching this entry: decrypt tivo with kinoma pagelogic control