LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 09-17-2006, 04:54 AM   #1
kornerr
Member
 
Registered: Dec 2004
Location: Russia, Siberia, Kemerovo
Distribution: Slackware
Posts: 893

Rep: Reputation: 35
I want to parse a php page, is there anything to do that?


First, I need to login in php page, then I'm redirected to a necessary php page which contains some text I want to parse. Is there any tool to do that?
Thanks.
 
Old 09-18-2006, 03:08 PM   #2
sundialsvcs
LQ Guru
 
Registered: Feb 2004
Location: SE Tennessee, USA
Distribution: Gentoo, LFS
Posts: 10,659
Blog Entries: 4

Rep: Reputation: 3940Reputation: 3940Reputation: 3940Reputation: 3940Reputation: 3940Reputation: 3940Reputation: 3940Reputation: 3940Reputation: 3940Reputation: 3940Reputation: 3940
Well, when you enter into any sort of HTTP exchange, you really don't know and you really don't care whether the information you're seeing is being generated by a PHP program or not. You see only the HTTP data-stream that the PHP program produced.

Yes, in a variety of languages such as Java, Perl, Python, and I believe PHP, there are classes and objects which know how to carry out an HTTP exchange with a client.

These languages also have a variety of general-purpose parsing and text-grabbing facilities, which are often described under the somewhat peculiar term "regular expressions," sometimes abbreviated "regex." This is a dollar-and-twenty-nine-cent word for "text pattern matching." It's something the Unix environments are quite famous for.

Your programming will be made considerably easier if the PHP program in question can generate an XML-formatted output.

Last edited by sundialsvcs; 09-18-2006 at 03:09 PM.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
What's the meaning of "PHP Parse error: parse error, unexpected $ in..." frandalla Programming 23 03-04-2009 12:34 PM
Parse HTML using PHP jilljack Programming 1 11-07-2005 09:46 AM
PHP parse error in config.inc.php.in Confusedious Linux - Software 2 11-03-2005 05:08 AM
Parse PHP, not open!! mattp Programming 2 10-10-2005 12:09 AM
daunting task - read wml input, insert variables into URL, DL page, parse, write file jeffreybluml Programming 1 05-12-2005 06:31 AM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 06:27 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration