Results 1 to 8 of 8
-
28th Apr 2012, 06:05 PM #1OPMember
how to parse url?
hi,
Just wondering and need to create a parser that parse url and store content in php variable and we can extract our wish-able content from it is this possible
can any one show with example
RegardsCometolearn Reviewed by Cometolearn on . how to parse url? hi, Just wondering and need to create a parser that parse url and store content in php variable and we can extract our wish-able content from it is this possible can any one show with example Regards Rating: 5
-
28th Apr 2012, 06:07 PM #2MemberWebsite's:
sborg.us
V3g3ta | Halcyon | Abhi
-
28th Apr 2012, 06:16 PM #3OPMember
i want to extract content from page and store in variable and use for purposes.
e.g
in this page source
i want to find "<tr><td class="vbmenu_option"><a href="/members/list/">"" and find its preceding literal
store precedings in variable . limit is, mean stop saving character when its find
"</a>"
so final varible should contain string "Members List"
-
28th Apr 2012, 06:25 PM #4Respected MemberWebsite's:
DL4Everything.com Soft2050.inFor heavier: http://php.net/manual/en/class.domdocument.php or a good class : http://simplehtmldom.sourceforge.net/
For simpler tasks, you could take support of regex or indexof... and substring to parse
-
28th Apr 2012, 06:29 PM #5OPMember
thanks for help can u please tell where can i learn regex in simple and in easy way . it's look complicated
-
28th Apr 2012, 06:34 PM #6Respected MemberWebsite's:
DL4Everything.com Soft2050.inFor testing: http://gskinner.com/RegExr/, that website also gives a good description of different types of sets & special characters you can use.
Try to search for a quick tutorial on Regular Expressions and you will find loads of them.
-
29th Apr 2012, 09:51 AM #7OPMember
i am using HTML DOM Parser but i have encoding problem how can i solve it
for as-trope character its show some alien character
please guide
thanx
-
29th Apr 2012, 09:58 AM #8Respected MemberWebsite's:
DL4Everything.com Soft2050.inTry to use iconv function to convert charset of text to the charset you use on page before outputting.
Sponsored Links
Thread Information
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)
Similar Threads
-
lighttpd parse error
By Mutikasa in forum Server ManagementReplies: 1Last Post: 15th Feb 2012, 05:20 AM -
No Parse Tag
By soft2050 in forum Feedback and SuggestionsReplies: 0Last Post: 12th Nov 2011, 08:26 AM -
Sborg Parse Error
By aggiefury101 in forum Technical Help Desk SupportReplies: 13Last Post: 4th Jun 2011, 08:26 PM -
Getting a parse error (OOP) PHP
By timtamboy63 in forum Web Development AreaReplies: 2Last Post: 23rd Jul 2010, 04:11 AM -
[TUT]Parse emoticons in comments
By Lease in forum IP.BoardReplies: 0Last Post: 13th Jan 2008, 01:33 AM
themaPoster - post to forums and...
Version 5.22 released. Open older version (or...