hi PHP-folks
i want to run preg_match/replace or substr on a file; Well I'm on the search of a way to drag down some problems. - got to know which tool to use.
ereg for the sarch of a string
ereg_replace for search thorug and replace in a string
eregi for the search in a Strings, case insensitive
eregi_replace search in a String and replace, case insensitive
split runs like explode, but you can use REGEX also
spliti runs like split, case insensitive
sql_regcase makes a RegEx,
So out of intuition and looking at some examples i managed to come up with the data...below;:i guess that ereg is a regular expression function, based on the POSIX regular expression standard. Preg (Based on PCRE) should be used instead, as its more extensive, often faster,
see http://www.phpbbdoctor.com/doc_tables.php ] click to see the sourcecde - this is what sould get parsed
phpbb_categories
phpbb_forums Forums for your board.
phpbb_groups A group of users
phpbb_posts Posts for your board. Each post is part of a Topic.
phpbb_posts_text The text for the post
phpbb_topics Topics for your board. A Forum contains Topics.
phpbb_users Base user information, preference settings, and so on.
product every user is a member of at least one group.
and the timestamp -
how to parse the Source - of a example page http://www.phpbb.de/viewtopic.php?t=129465&view=next
Finds all data on web page with that have to do with the data
[cf http://www.phpbbdoctor.com/doc_tables.php ]
see http://www.phpbbdoctor.com/doc_tables.php ] click to see the sourcecde - this is what sould get parsed
but which statement shold i use.
ereg for the sarch of a string
ereg_replace for search thorug and replace in a string
eregi for the search in a Strings, case insensitive
eregi_replace search in a String and replace, case insensitive
split runs like explode, but you can use REGEX also
spliti runs like split, case insensitive
sql_regcase makes a RegEx,
i guess that ereg is a regular expression function, based on the POSIX regular expression standard. Preg (Based on PCRE) should be used instead, as its more extensive, often faster,
and POSIX will disappear into PCECL in future versions).
In likelihood, we ll take the source code and
use preg_match/replace or substr on it, searching for the bits you need.
Using PCRE modifiers, we can specify that the file's contents are treated as
a single line, which negates the need for linebreak sanitization.
but how do we proceed.
look forward to hear from you
regards
bh :evilgrin: