Tracking Forums, Newsgroups, Maling Lists
Home Scripts Tutorials Tracker Forums
  Advanced Search
  HOME    TRACKER    PHP


SuperbHosting.net have generously sponsored dedicated servers to ensure a reliable and scalable dedicated hosting solution for BigResource.com.





Wiki Parser


I posted this in comp.programming before, but I figured the question applies
to a PHP wiki parser only, so I am taking a shot at posting it here:

I might be missing the obvious here, but I am looking for a (simplified)
wiki parser to put in a page, preferably in PHP. Of course I can code all
the parsing myself, but if I can save the time, I might as well. Having to
alter the source for the parser is not a problem, so it does not have to
perfectly meet my requirements.




View Complete Forum Thread with Replies

Related Forum Messages:
Wiki Tags Parser
I want parse subset wiki tags to html (mainly lists). If i want use parser form existing opensource (mediawiki and cowiki) i have problem with configuration, parser make much harder work than my requirements.

View Replies !
Wiki Words
I'd like to know
how it is possible to parse a text
in order to find words matching
keywords included in a database.

I.e. like in a wiki site:

http://en.wikipedia.org/wiki/Symbolic_logic

Everytime a keyword is found in the text
the page automatically inserts a link
to the keyword's page.

View Replies !
DotProject Wiki?
Does anyone know of a wiki module for dotProject? Or a Wiki that could
easily be bolted onto dotProject?

View Replies !
Wiki Recommendations???
After playing with a few wikis, and failing to get them to work, can
anyone recommend a wiki that actually works under php5?

View Replies !
PHP Svn Client Or Wiki
I'm searching for a pure svn client in PHP, but didn't find one yet. Also, I see many Wiki system designs are somewhat flawed as they didn't use incremental diff. Is there anyone who is aware of either such one?

View Replies !
Simple Wiki As PHP Coding Example?
I'm currently learning PHP using the ORA "cuckoo" book. I'm looking for
some reasonably interesting sample code to read and thought that a
*simple* Wiki could be ideal. Can anyone recommend a Wiki which
implements the basic functionality only to keep things simple, written
in nice clear PHP code? I'm hoping that a couple of hundred lines or
less of PHP will suffice to get a basic wiki running, without resorting
to obfusticated coding contest tactics...

View Replies !
Wich CMS Wiki Do You Suggest?
We are a grou of persons and we like to write (togeter) a documentation
about command's Router. Which wiki CMS do you suggest?

View Replies !
PHP And Command Line (for Wiki)
I started to "program" in PHP (better say to read it :P) from a
few days because I am installing a Wiki on a virtual server (Windows
Server 2003 with Plesk 7.6). I have PHP5 and all is working just fine.

However, I am trying to parse latex equations and encountered some
troubles. I have already installed all the necessary software and when
I execute the following by command line:

C:miktexinlatex.exe --output-directory=C:Inetpubvhostsmysite.com
httpdocswikiimages mp --interaction=nonstopmode C:a.tex

I generate the right file in the right folder. However, when I try to
execute (adding it to a PHP routine that is executed for sure):

$command = "C:miktexinlatex.exe --output-directory=C:Inetpub
vhostsmysite.comhttpdocswikiimages mp --
interaction=nonstopmode C:a.tex";
$text = exec($command);

View Replies !
Good PHP Programming Wiki?
Is there a good PHP Wiki around (not a script, an actual wiki about php programming)? If not maybe it would be a good idea for some of us oldies here to start one up and compile a lot of the tips and tricks we've learned over the years.

View Replies !
Wiki Style Linking
I am looking for a way to implement the "wiki" way of internal linking. What I mean by this is is that I simply wrap [[]] around the page I want to link to, i.e [[Water]] and it creates a link. I am currently struggling to do this though and wondered if anyone can help, I suspect it should be fairly simple.

View Replies !
Wiki-Style Highlights
I've been boggled over how do do this efficently for almost a week now; How would you compare and highlight the differences between two large paragraphs efficently; Similar to the way you can view the differences in a Wiki article after it's edited.

http://en.wikipedia.org/w/index.php?title=PHP&diff=59815132&oldid=59809982

View Replies !
Wiki Style Text Input
I have a text file called test.txt which is I am trying to get to load
into a webpage. This is simple enough, but I am trying to make it so
that it recognises certain formatting, similar to how wikipedia pages
work.

so, my text file contains ONLY the following:

This is /just/ some test text *to see* if the PHP works
and to /*evaluate*/ what it actually does

The intention is that /just/ will show as italic, *to see* will show as
bold and /*evaluate*/ will show as bold italic.

Creating the text inside the page works fine.

<?php
$s = 'hello. /this/ works *bolding* works. /*Both work*/!'
$search = array ( '@/(.*?)/@si',
'@*(.*?)*@si');
$replace = array ( '<i>1</i>',
'<b>1</b>');
echo preg_replace($search, $replace, $s);
?>

However when I try and read from a text file using

$s = file('./wiki.txt');
$search = array ( '@/(.*?)/@si',
'@*(.*?)*@si');
$replace = array ( '<i>1</i>',
'<b>1</b>');
echo preg_replace($search, $replace, $s);
?>

All that is shown is the single word 'Array'. This confuses me a lot as

<?
$s = file('./test.txt');
print_r($s);
?>

shows that the text is being read into the page
Array ( [0] => This is /just/ some test text *to see* if the PHP works
[1] => and to /*evaluate*/ what it actually does )

View Replies !
Wiki Software Selection Advice ?
We have a short list of wiki software listed below that we are
evaluating. The project will also be using wordpress and there will
need to be some integration between the wiki and wordpress. It seems a
wiki that can use mysql and is also PHP based would be favorable.

I had also considered DBM/DBA which are object persistent databases,
but our team does not seem to favor that solution, though I have not
really analyzed that approach or have enough experience to feel I
understand all possible advantages or disadvantages that it might
have. I have not been able to find a DBM that works with PHP on
windows which some development will be on. It has been mentioned that
DBA is not going to cache the way a database does, although I also
heard somewhere else it would be faster and I suspect using memcache
with DBA would work, but I am not sure if there would be references
inside the objects that would cause a problem with that ?

I had looked into phpwiki, but had many problems with the install on
windows and I didn't see that it have very good wysiwyg editing.

Anyway, the short list:

mediawiki
bitweaver
jspwiki
snipsnap

pmwiki is set up to use flatfiles, so we may be dropping that,
although possibly it could be modified to work with mysql.

View Replies !
Wiki Style Site Structure
Ever seen sites with URLs such as http://randomsite.com/help/faq or a wiki URL such as http://wikipedia.org/wiki/Breakfast_Muffins ? Theres no actual directory/file, it just works as a kind of get variable.

I can think of a couple of ways to do this, just wondering what you think would be the best way to go about it.

View Replies !
Wiki Software Suggestions For An Extensive Project?
I've been working someplace for a year now where a previous employee
spent 4 years writing hundreds of pages and tens of thousands (perhaps
hundreds of thousands) of lines of code in PHP.
And I and a newer employee have pounded our heads on various functions
and pages and includes... and it just occured to me to start making a
wiki for the site!
As we work on pages and components we can add to the wiki and be able
to search and find tips and tricks that were before commited only to
memory or scratch paper.

View Replies !
Regular Expression :: Wiki Like Text Links
I need to auto generate links to other parts of my site within text, much as wikis do using square brackets. I've tried all sorts, testing each with a regex tester and have got nowhere (maybe I should try and sleep instead). My users can currently input text to a database with a title for each piece of text.

i'd like them to be able to put <<double lt and double gt>> around words in their text that are titles for other pieces of text. When the text is retrieved from the database, any characters within << >> will form a get statement appended to a url to make the link to a page showing the associated text.

View Replies !
Content Mangement System/Wiki For Writing
I'm looking for a good (ideally free), system for quite a big writing job. There will be some collaboration, but it is mainly on one system. I am keen to have easy to use indexing and cross-referencing as well as excellent backup and recovery of data. I've looked at a few wiki systems and they seem quite good, but don't support all that much
formatting. I know things must have changed a lot in the last couple of years since
I last looked into this in detail.

View Replies !
To Show Entries That Match Over Two Categories In Wiki
I'm trying to enable users to search any entries that match a few categories in mediawiki. I just don't know how.

For example, if someone looks up a singer who is in [[cateogry:male]], [[category:born in 1971]], [[Category:Rap]], what should I do to show all entries in Mediawiki that matches these categories?

View Replies !
The PHP XML-parser Doesn't Like &lt; Or &gt; ??
I'm using PHP's SAX parser to parse an XML file and display it as a chat-style application.

However, to prevent people posting tags, I'm using htmlspecialchars() to convert <, > and ". These go into an XML document fine.

Once it comes to parsing, the parser seems to interpret < and > as actual XML tags though, and it messes up everything. Is this a known bug, or is there a way of combatting it?

View Replies !
Php-xml Parser
I have a PHP script which sends a authorisation request to a Servlet and receives a response in XML format. I have also created a parser (using both DOM as well as SAX) for parsing the output.

My problem: The parser takes in input from an external xml file but the output from the servlet needs to be dynamically fed into the parser something like this: PHP Code:

View Replies !
Php Parser
I like to know wheter it is possible with php to do the following
taskes:
- read a file (.txt, .doc, .pdf, ...) word by word to chek if a word
or a sentencs exists...
- chek the form of presentation of a word i.e. chek if the word is
bold, in which size, is it centered or aligned to left,...

View Replies !
PDF Parser
i am trying to make a PDF parser in PHP which will be able to extract
data from PDF files. i want to basically convert pdf files to XML
data. any idea from where i could start?

View Replies !
XML Parser
I have a very complex xml doc which if convert into array gives you a lot of nested array.
i wanted some good parser which would parse this complex xml data.
any idea about a good parser or code..which would work on php 4.4.4
I want to extract values from one offset tag and get those extracted values to the DB.

View Replies !
Rss Parser
im using this script that somebody else has made. well some feeds work just fine, some feeds end up with nothing in the item array at all and some feeds come up with this fopen error. Code:

View Replies !
DOM XML Parser
Can we parse Xhtml file using DOM XML parser of PHP. What i really want is this, I have an xhtml file and i want to edit/delete some of the contents in that xhtml file. Xhtml file is organized into parts using <div> tags. this is how it looks like,

<div id="book1">
this is the book introduction part.
<div id="part1">
This is the part introduction
<div id="sec1">
This is the section intrduction
<div id="subSec1">This is the sub section introduction</div>
</div>
</div>
</div>

now what i want is to get the contents that resides inside the <div> tag and edit / delete that content. Which <div> tag to choose, is depending on the parameter i passes and the parameter i pass to the script will hold the <div> id . So according to that i know which <div> tag to choose. Can i do this using XML parser.

View Replies !
Parser
can anyone give me a good defination of a parser, (ive used it to take text from one website and put it into another) but i need some background knowledge of the workings of a parser etc.

View Replies !
Parser?
I am in the process of creating a parser, the following is the code i have started with:

<?php
/*  &copy; MMVI weiqiang's minisite productions
    This programme is intented to be used only on weiqiang's minisite,and no unauthorised usage is allowed.
    You may use the programme if only granted permission by the author.
    Programme filename: manager.php
    Programme function:
    Programme authorised to: Original Copy(weiqiang's minisite)
*/
/*Start Of Programme*/
function parsedocument($document,$returnview=null){
    //document is with regards to root folder
    if(stristr($document,'.php')){
        $handle = fopen($document, "r");
        $contents = fread($handle, filesize($document));
        fclose($handle);
        sprintf($contents);
        preg_replace("{title}","$title",$content);
    }
    /*elseif(!stristr($document,'.php')){
        die(error_note(1010));
        return false;
    }*/
}
parsedocument('bbcode.php');
?>

But i am having a problem of "printing" out the final code
as print() does not support anything other than variable,html and characters right?I mean it doesn't suppot those "<?php" and "?>".

View Replies !
SQL Parser
IS there a script out there in PHP that can run over a simple SQL statement a report in plain english what it will do? E.g.

Updating data in company table
name is now xxx
date is now xxx.

View Replies !
How To Use My Own Parser?
My web host's PHP doesn't provide curl, so I want to run .php files thru my own PHP parser. However, I don't want to rename all the .php files into .cgi files and add some #!/path/to/php as the first line. Code:

View Replies !
Best Xml Parser
I need to use some Ajax for a site running PHP, I was wondering which
is the best xml parser to use?

View Replies !
Css Parser
is there any reason for this script not to work? after trying various ways of reading in the css files for some reason all im getting is the echo statements at the bottom. Code:

View Replies !
XML Parser Installation
I am using RH 7.1 with Php4.1.0 and Apache 1.3.22 .... I have installed libxml and zlib also configured php with dom support. now problem is that when i try to open xml file it gives following error:

Fatal error: Call to undefined function: xmldocfile() in /development/test.php on line 19
any idea where is the problem ?

View Replies !
Parser Question
I would like to make a simple parser which should work as follows:

this is my text {link:href=mypage,link_text} some other text
{link:href=otherpage,other_description}

This is a string I would like to store in the database and then load
in php. Later I would like to insert some other text between { and }
signs. I would have a function name "link" with one parameter passed.
Return value of this function would be a string to replace that one
between { and } signs.

function link($params)
{
... some logic ...
return string;
}

This function will return something like <a
href="/mydir/some_file.php">link_text</a>

View Replies !
Simple Parser In PHP?
I'm coming to the end of a large and exhausting project, done in my
new favorite language PHP, and its time for a diversion.

I'm wondering if anyone has experience with writing simple parsers. I've
never done it myself, but I know they are not as mysterious as they may
seem, it's a matter of finding the tools.

The idea is to take something like CSS format, except that it allows
nesting, and turn it into associative arrays, such as:

anykey {
property: value;
property: value;
nestedkey {
property: value;
property: value;
}
}

could be processed by a command like:

<?php
$parsed = ParseMyFile(...)
?>

and $parsed would hold the same as if we'd done this:

$arr = array(
anykey("property"=>"value",...

View Replies !
Stand Alone PHP Parser
I'm wondering if someone could give some direction on a problem I have
or share their experiences.

I'm wanting to create a little PHP application that will run on a
local machine and use ODBC to connect to a Access database on that
machine. A series of forms will interact with the database but if I
understand correctly, I need some way to parse the PHP code. Is there
a stand alone parser that could be used in place of a HTTP server?

View Replies !
Php Parser And Editor
Does anyone know of a HTML/PHP editor that has syntax highlighting support for PHP and HTML and a Windows/DOS based parser for checking the PHP syntax? At the minute I write in notepad, upload to my site and run it, which isn't ideal. I have various HTML editors but they only allow the addition of simple tags. Linux is out of the question, as I only have Windows on my works computer.

View Replies !
Html Parser For Php
i need to parse an html document from a PHP script. i want to extract the URLs in <a>, <img>,etc. tags, make some changes (which i know how todo with regexp) and then output the HTML document with url changed. is there something as perl-HTML-Parser in PHP
or i have to program it myself?

View Replies !
Simple XML Parser
I am trying to write a simple XML parser with PHP. What would be the best way to assign the string/text stored in between <TAG> … and … </TAG> to a variable? The 'content' between the XML tags can have multiple lines and may contain other html tags.

View Replies !
Xml & Xsl Parser Method?
I have 3 xml files and they are connected with 3 different xsl pages..

i want to make a Object Class that first build up the first xml.. then the 2
etc and parse it in 1 time together..

or how can i merge 3 different xsl files and xml at the same time together
and with the DOM parser memdump() all? at once..?

[Project]
I have a header.. that is also dynamicly fron database, a main content from
database and a static footer..
so i need to make first a UML static case.. and then programm the classes
and parse them in html :)


View Replies !
Text Parser
I have a string of text assigned to a variable $text. What l want to do is to read through the text file and according to a set of rules change parts of the text into html format. For example if $text contained: hello my name is [[jim]], how are you. I would like the parser to change $text to: hello my name is <strong>jim</strong>, how are you.

Then the new text will be printed out on the screen and will be styled properly. This system is to enable users of the website to click an edit button on a webpage and change the content easily using a set of rules rather than having to use pure html.

My question is: What is the best was to accomplish this sort of text parsing??

I was thinking of doing something along the lines of placing each element of $text into an array then checking what the first and last elements were of each element. If they are letters do nothing, but if they are 'special characters' (i.e ones in my rules) then change the element to the relevant html.

View Replies !
Easy PHP+XML Parser
I have data like:

<?xml version="1.0" encoding="ISO-8859-2"?>
<news>
<post>
<date>10.04.2004</date>
<text>Test test test</text>
</post>
<post>
<date>15.04.2004</date>
<text>Bleh bleh bleh <a href="www.test">test</a></text>
</post>
</news>

and I want to have it in PHP as array looking like:

array(
[0] =>
array(
date => "10.04.2004"
text => "Test test test"
)
[1] =>
array (
date => "15.04.2004"
text => "Bleh bleh bleh <a href="www.test">test</a>"
)
)

problem - text can have some HTML tags, so I want to just have it all in
string.

How can I do this in PHP if I have XML data in some data.xml ?

View Replies !
ICal Parser For Php
I was googling for some php scripts/class that would help me
generate/parse iCal files for events.

But I could not find anything proper. I got hold of
http://www.phpicalendar.sf.net/. But i cannot generate iCal file. It
can only read them.

View Replies !
Most Efficient XML Parser For PHP
I was trying to get the answer on the net but I only found partial answers -
I hope someone can help me out...

I am looking for an XML parser that would:

1) validate XML before doing anything
2) be fast
3) allow parsing of big XML documents (small memory footprint)

I am implementing a system that will fetch XMLs from multiple sites across...

View Replies !
Datafeed Parser
I need to build a parser that dumps the data into a MySQL database and I'm hoping someone out there will be kind enough to guide me through this.  My data comes to me via a .txt format and is pipe delimited.  Here's a snippet of the data:

|58196|0206|Lube & tire work. F/T. Bilingual a plus. Apply at Elliott Tire |40008295|
|57719|0206|Heavy Equipment Mechanic  needed North end. (123)555-5555|40020937|

The really tricky thing is that I need the first and last columns to be removed completely. I also need the second column (the 0206) to be converted to a name based on the number. In this example the 0206 would be renamed to 'Mechanical'.

View Replies !
Mime Parser
i am trying to decode a raw email, i succedded to get the headers such as the from & to & subjects field but i seem to have a problem extracting the attachment. does anybody has a clue how to check if there is an attachment & how to save it in a directory?

View Replies !
Parser Generator
What do I do if I need a parser too parse more complex user input? Is there a parser generator like lex/yacc for PHP? Or Can I call a parser written in another language?

View Replies !
Fastest XML Parser?
I want to know where to find the world's fastest PHP XML parser code. I really need it as my page is generated from multiple source of XML feed.

View Replies !
Excel Parser Pro How To
any body know how to use this?

so basicly it is good for importing excell sheets on a linux server and it converts it to php??

i have tryed it but i don't know how to retreive it from the database?

View Replies !
Calling The Php Parser
I would like to know if it is possible to call the php parser from a Win32 program (e.g. a VB or C++ program), WITHOUT calling the commandline php.exe utility. I mean, is there any "php_parse" function, exported by the php5ts.dll, which I can declare in my Win
program and then call to parse a php script?

View Replies !
Best Xml Parser Code
I've searching my way through the forum trying to find some code with a regex to parse through an xml file and turn it into an array because I'm not good enough to write one myself. is there one that is considered as working better than the others ?

View Replies !
Parser For Bug Detection
Using PHP, tracking down a missing semicolon can take a while. I miss
the GNU C compiler:) I have read in places that php parsers do exist
eventhough most people do not use them. Maybe even a php IDE exists out
there somewhere? Can anyone give me any pointers to good php parsers or
IDE's? If possible open source would be my choice.

View Replies !
XML Parser Daemon
I'm trying to write a daemon script that will monitor an xml file (an iPhoto 5 library to be exact). I know PHP can easily parse xml files (right? I actually don't know this, but it's true, right?) but can I compile the script at all so that it runs in the background and executes whenever the xml file changes?

View Replies !

Copyright © 2005-08 www.BigResource.com, All rights reserved