On the PHP::Impact blog today Federico points out a few HTML DOM parsers that work similar to jQuery:
Check out a previous tutorial of his for more information on using DOM parsers to scrape information from remote sites.
![]() |
|||||
|
|||||
Sections
![]()
Recent Jobs
News Archive
|
PHPImpact Blog: PHP Simple HTML DOM Parser (jQuery Style) August 08, 2008 @ 12:03:55
On the PHP::Impact blog today Federico points out a few HTML DOM parsers that work similar to jQuery: Check out a previous tutorial of his for more information on using DOM parsers to scrape information from remote sites.
Skaldrom's Blog: Want to create your own progranning language? Lexer & Parser in PHP! November 02, 2007 @ 11:12:00
Skaldrom passed along a link to an article he's written up to show how to use one of the more powerful PEAR packages in a simple "Hello World" kind of script - the PHP_LexerGenerator and PHP_ParserGenerator packages.
0 comments voice your opinion now!Who doesn't dream about it: Your own programming language, because the syntax and the word are expression! A step continue to go to ascend and from the programming language user to the language creator! This is now possible in PHP, but unfortunately only with minimum documentation. He provides an example of the Lexer/Generator in action - handling a simple mathematical operation. The execution code is first with the Lexer definition file and the code for the parser following. Lastly, he has included the code to make things work - passing the test string into his custom Lexer which is passed off to the Parser and a value returned.
David Coallier's Blog: SVN log-per-user parser using SimpleXML March 27, 2007 @ 08:33:00
David Coallier has a quick hit post today on his blog. In it, he shows how, with a little bit of SimpleXML magic, to parse the log files from your Subversion installation.
He includes the script and a brief set of instructions on how to use it in your installation.
Pàdraic Brady's Blog: YAML for the Zend Framework - well, maybe... March 23, 2007 @ 10:49:00
On Pàdraic Brady's blog, he talks about some thought he had on a YAML component for the Zend Framework and some of the feedback he's gotten so far.
He notes that there is already a YAML parser for PHP5 (Syck), but that creating one for the Zend Framework is a different animal. He finishes up the post talking about where to start with the parser, what it is, and the next steps for him in its development.
Wez Furlong's Blog: parser and lexer generators for PHP November 27, 2006 @ 09:34:00
When finding he was in need of a parser and lexer, Wez Furlong decided to work up one that was PHP-based and a take off of the popular lemon parser and JLex lexer. From time to time, I find that I need to put a parser together. Most of the time I find that I need to do this in C for performance, but other times I just want something convenient, like PHP, and have been out of luck. His result is two new packages - lemon-php and JLexPHP (under a BSDish license) you can download and compile on your own system. Also, if you'll remember a while back, Greg Beaver had wanted something similar (as mentioned in the comments) and created his own lexer/generator as well.
Greg Beaver's Blog: PHP_ParserGenerator and PHP_LexerGenerator June 25, 2006 @ 17:00:41
Greg Beaver has blogged today with more about the port he's been wokring on of the Lemon parser generator to PHP5, this time discussion the creation of two packages - PHP_ParserGenerator and PHP_LexerGenerator.
He goes on to explain this process, showing how a simple regular expresion call (and a look at its return arguments) could create a simple, easy solution. Since the re2c format is still unsupported in PHP (without a goto to go to), he opts to stick with the regular expressions and creates a "lex2php" format instead. He's packaged up both halves of this setup and has already posted proposals for them to the PEAR site:
Greg Beaver's Blog: A parser generator for PHP - *finally* June 17, 2006 @ 07:19:38
Greg Beaver has a new post today with mentions of a few things, but mainly the work that he's done to create a parser generator in PHP.
He follows the path he took, using the code from the Lemon parser, translating it into a PHP version, and correcting a few bugs along the way. In the process, I have a fully working PGN file parser that will make its way into a PEAR proposal as soon as I get around to integrating it with Games_Chess to do full validation of the contents of the PGN file. However, the parser works 100% even with some of the weirdest PGN things I could throw at it. He finishes off the post with some example code, including a method for using it on the command line. You can grab the code for the project and related files here Sebastian Bergmann also comments in his blog about the work Greg's done.
SitePoint PHP Blog: J4P5 - Javascript For PHP5 January 20, 2006 @ 07:12:54
On the SitePoint PHP Blog today, there's a new post from Harry Fuecks talking about J4P5, a native PHP5 Javascript interpreter.
0 comments voice your opinion now!
Aside from novelty, one real world use might be an extension to SimpleTest's web testing capabilities. With a little work there's also potential to create an awesome Javascript source compressor'"the lexing patterns are all there.
He also mentions another project, metaphp, that builds a "higher level langauge" on top of PHP. The parser for it was used in the J4P5 project mentioned above... |
Community Events
Don't see your event here? Let us know! |
|||
|
example ajax database PEAR releases security framework PHP5 mysql cakephp conference zend developer zendframework book application release code job package |
|||||
| All content copyright, 2009 PHPDeveloper.org :: info@phpdeveloper.org - Powered by the Solar PHP Framework | |||||