XMLParseFile($parser, $file, $store_positions, $cache, $case_folding, $target_encoding, $simplified_xml, $fail_on_non_simplified_xml)
array_insert($array, $insert, $position) : bool
bool
true = success, false = fail (actually, if fails then dies)
functionid : # 20110524.1951
note : After Justin Cook (# 20110524.1941)
http://www.justin-cook.com/wp/2006/08/02/php-insert-into-an-array-at-a-specific-position
note: The original function had the array given as reference '&$array', that
caused php exclamation 'Call-time pass-by-reference has been deprecated'.
callers : album.html.phpbuildBreadcrumbs($bcs)
buildPathprefixToWafaili()
buildPgrUserinfo()
checkRemoteFile($url) : \functionid
\functionid
: # 20110516.2141
status : NOT TESTED AT ALL, JUST PUT HERE FOR EVENTUAL LATER USE
reference : (# 20110516.2131) Function after
http://php.net/manual/de/function.getimagesize.php
posted by mycrazydream at 24-Jul-2009 04:00 with the remark:
"I had for quite some time been using getimagesize() to check for the existence
of a remote image. This turned out to take way too long. The following
curl solution only checks the http headers so it is much more efficient."
callers :dump_html_tree($node, $show_attr, $deep)
evaluate_post() : \nothing
\nothing
functionid : # 20110507.2121
callers :evaluate_post() : \functionid
\functionid
: # 20110513.1621
callers :evaluate_post() : \nothing
\nothing
functionid : # 20110507.2121
callers :exceptions_error_handler($severity, $message, $filename, $lineno) : \nothing
\nothing
- throws an error if php error_reporting is on
functionid : # 20110829.1321 # 20110518.2121 # 20110515.1721
status : works
reference : http://php.net/manual/de/language.exceptions.php (# 20110829.1322)
and http://www.php.net/manual/de/class.errorexception.php (# 20110829.1323)
note : Standard php functions do not throw exceptions, so they cannot be
wrapped in a try/catch block, but one can extend the error handling.
note : (# 20110829.1321 # 20120108.2121) Keep this file synchronous in the
following projects: Daftari, Gallery, Dataform2web, ...
callers :file_get_html($url, $use_include_path, $context, $offset, $maxLen, $lowercase, $forceTagsClosed, $target_charset, $stripRN, $defaultBRText)
formattedHtml($eleme, $iIndent, $sText)
garanteeConfiguration()
garanteeInifile($sFile)
getBcTime() : string
string
with accurate time
functionid : # 20110526.2251
reference : http://php.net/manual/de/function.microtime.php
callers :getBcTimespan($sStart, $sStop) : string
string
The wanted printable string
functionid : # 20110526.2252
callers :getBreadcrumbs()
getDirFamnams($sBasepath) : array
The folder in which to search for folders
array
The array with the foldersfamilynames
functionid : # 20110522.1341
todo : This is just a wrapper over getDirFams(), extracting from that the names
of a single filefamily. This the quick'n'dirty way to do it. A more
performant way were, not to build the complete filefamilies array first
and then reduce it, but having the relevant wildcard set already when
reading the directory the first time.
callers : album.html.phpgetDirFams($sTargetfolder) : array
The folder in which to search for folders
array
False = error, array = the found foldersfamilies (typically a '*' plus one '*.s' folder)
functionid : # 20110427.2221 # 20110521.2321
todo : (# 20120104.2051) If something is wrong with the folder, the page
hangs. Some paranoia is wanted to prevent hanging!
callers : album.html.php, raw.html.phpgetDirs($sPath) : array
The folder in which to search for folders
array
The array with the found folders
functionid : # 20110427.2221
note : For recursively searching directories compare # 20110102.0121
note : get_buddyfiles() # 20110427.2221 was copied/modified from here
callers : album.html.php, raw.html.phpgetFolderfamilyFromParent($sParentfolder) : array
array
False = error, array = folderfamily
functionid : # 20110522.1541
callers :getFoldernameExtension($sFoldername) : string
string
The wanted foldername extension so far '' or '.s'
functionid : 20110522.1621
callers :get_buddyfiles($sParentFolder) : array
array
The wanted list of buddyfiles (now including their path relative to the archive base)
functionid : # 20110427.222102 # 20110522.1321
note : Version tree (wherefrom copied and modified)
- get_dirs() # 20110427.2221
- get_buddyfiles() # 20110427.222102
note : SHIFTED HERE FROM rawfolder.html.php (# 20110509.1311)
callers :get_filefamily($sBasepath, $sParentFolder, $sFilefamilyname) : array
This function retrieves the filefamily for a given buddyfile
Folder to get files, either local drive or url (so far only localdrive)
The filefamilyname of the files to be listed (e.g. '20110104-1031_n1293')
array
Array of array with the foldernameextension and the filesnames of the filefamily
functionid : # 20110428.2121 # 20110515.0621
note : (# 20110503.1321) The filefamily has the DISADVANTAGE so far,
that it does not contain the folder, only the plainfilenames!
Implement entries with relative pathes like in the albums files.
callers : only __construct()getimagesize_remote($image_url) : \functionid
\functionid
: # 20110516.2143
status : NOT TESTED AT ALL, JUST PUT HERE FOR EVENTUAL LATER USE
reference : (# 20110516.2131) Function after
http://php.net/manual/de/function.getimagesize.php
posted by djwishbone at hotmail dot com 19-Nov-2003 02:31 with remark:
Using remote files with getimagesize($URL) never worked for me. Except
when I would grab files from the same server. However, I developed some
code with the help from the people here that does work. If you are having
problems give this function a shot
callers :getjpegsize($img_loc) : \functionid
\functionid
: # 20110516.2142
status : NOT TESTED AT ALL, JUST PUT HERE FOR EVENTUAL LATER USE
reference : (# 20110516.2131) Function after
http://php.net/manual/de/function.getimagesize.php
posted by james dot relyea at zifiniti dot com 08-Feb-2009 04:49 with remark:
"As noted below, getimagesize will download the entire image before it checks
for the requested information. This is extremely slow on large images that are
accessed remotely. Since the width/height is in the first few bytes of the file,
there is no need to download the entire file. I wrote a function to get the size
of a JPEG by streaming bytes until the proper data is found to report the width
and height"
callers :hexToStr($hex)
htmlElementEdit($sHtml, $sTag, $iIndex, $sReplacement, $sMode, $sErr)
linqfrom(string $name) : \PHPLinq_Initiator
mangleUrlFilename($sFilename, $bForce) : string
This function garantees the file to valid for ...
The filename to be mangled. Only 'http://' are mangled.
Optional. If set true, the function does not skip strings with 'http://' prefix (because for plain filenames, it cannot discern url and localdrive).
string
The mangled filename
functionid : # 20110516.2101
note : Check what exatly about urlencode() and rawurlencode()
todo : Merge functions # 20110502.1821 mkurl() and # 20110516.2101 mangleFilename()
callers : class.obyekt.php readbuddyfile(), readShadowbuddyfile() - the both use a fullfilenamemangleXmlContent($sText) : string
This function garantees the file to valid for ...
The string to be mangled.
string
The mangled string
functionid : # 20110523.1441
note : Check what about a php function like urlencode() and rawurlencode() or the like?
references : e.g. http://en.wikipedia.org/wiki/List_of_XML_and_HTML_character_entity_references (# 20110523.1451)
callers : class.obyekt.php buildShadowbuddyfile()mkurl($sFile) : string
THIS FUNCTION MAY POSSIBLY REPLACED BY rawurlencode() or urlencode()
The filename to be mangled
string
The mangled filename
functionid : # 20110502.1821
note : See
- http://www.blooberry.com/indexdot/html/topics/urlencoding.htm#whatwhy (# 20110502.1623)
- http://de3.php.net/manual/en/function.filter-var.php (# 20110502.1624)
- http://de3.php.net/manual/en/filter.filters.sanitize.php (# 20110502.1625)
Only $s = filter_var(sFilename,FILTER_SANITIZE_STRING) did not
work as expected. So we retreat provisory to the brute force way.
todo : Make it based on PHP's respective function(s)
todo: Merge functions # 20110502.1821 mkurl() and # 20110516.2101 mangleFilename()
callers : album.html.php, class.obyekt.php, object.html.phppreg_split_TEST() : \functionid
.
\functionid
: # 20110518.2021
status : needs be re-tested
note : With this lines, we started writing function parse_filename() (# 20110515.2121).
Now we ripped it out there and placed them in this dedicated function.
For the next use, it probably will have to be re-wired correctly.
Anyway, in the debugger, the results shall be visible
callers :rawurlencodex($sIn) : string
string
The encoded string
functionid : # 20110524.1931
explanation : We pass filenames via form submit mechanism. In this process, periods
are replaced underlines. PHP's rawurlencode does not cover the period
(and not the underline and the dash). So we just make our own extension.
Interestingly, urldecode() then decodes this correctly without any ado.
callers : album.html.phpreadIniVar($sVarname, $sSection, $sFile)
readShadowbuddyfile($sShadowbuddyFullfilename) : array
This reads a shadowbuddyfile into an array
This may be a localdrive path or an http path
array
or false or empty array - ?The wanted shadowbuddy or error .. CHECK the return
details may not be settled yet ..
functionid : # 20110514.1821
callers : so far only Obyekt::__construc()
note : We make it an independend function, so it can be used by other eventual
classes as well. Hm .. not sure this is the optimal decision .. we will see.
note : (# 20110510.1821) we started the simplexml experiments after sample
from http://www.php.net/manual/de/function.simplexml-load-file.php
Only accessing the elements works NOT as described there. E.g. the page
talks about an error with foreach, better using a for loop with counter.
But crazy is, that the element and attribute values are not acessible
as described at all! Solution came with sprintf(), which seems the easiest
way to access the text of a node the same seems true for reading the
attributes. For us, sprintf() was the ONLY way to get the values.read_albumobjects($sAlbum) : \functionid
\functionid
: # 20110502.2131
note : Functional similar to # 20110427.2221 get_buddyfiles() in rawfolder.html.php
callers :retrieveBreadcrumbDefinitions()
retrieve_credentials()
sBrick_Breadcrumbs()
sWafaili_Brick_UserInfo()
strToHex($string)
str_get_html($str, $lowercase, $forceTagsClosed, $target_charset, $stripRN, $defaultBRText)
writeIniVar($sVarname, $sValue, $sSection, $sFile)
xml_parser_character_data_handler($parser, $data)
xml_parser_end_element_handler($parser, $name)
xml_parser_start_element_handler($parser, $name, $attrs)
simple html dom parser Paperg - in the find routine: allow us to specify that we want case insensitive testing of the value of the selector.
« More »simple html dom node PaperG - added ability for "find" routine to lowercase the value of the selector.
« More »AUTH_REQUIRED
DEFAULT_BR_TEXT
DEFAULT_TARGET_CHARSET
HDOM_INFO_BEGIN
HDOM_INFO_END
HDOM_INFO_ENDSPACE
HDOM_INFO_INNER
HDOM_INFO_OUTER
HDOM_INFO_QUOTE
HDOM_INFO_SPACE
HDOM_INFO_TEXT
HDOM_QUOTE_DOUBLE
HDOM_QUOTE_NO
HDOM_QUOTE_SINGLE
HDOM_TYPE_COMMENT
HDOM_TYPE_ELEMENT
HDOM_TYPE_ENDTAG
HDOM_TYPE_ROOT
HDOM_TYPE_TEXT
HDOM_TYPE_UNKNOWN
NOT_FOUND
NO_ERROR
PHPSVN_DIR
PHPSVN_LOGS_REQUEST
PHPSVN_NORMAL_REQUEST
PHPSVN_VERSION_REQUEST
SVN_FILE
SVN_FILE_ID
SVN_IN_FILE
SVN_LAST_MODIFIED
SVN_LOGS_ADDED_FILES
SVN_LOGS_AUTHOR
SVN_LOGS_BEGINGS
SVN_LOGS_COMMENT
SVN_LOGS_DATE
SVN_LOGS_DELETED_FILES
SVN_LOGS_MODIFIED_FILES
SVN_LOGS_RENAMED_FILES
SVN_LOGS_VERSION
SVN_RELATIVE_URL
SVN_STATUS
SVN_URL
UNKNOWN_ERROR