Webmaster Forum


Go Back   Webmaster Forum > Web Development > Web Design Lobby > Coding Forum
Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

Coding Forum Problems with your code? Let's hear about it.

Bidding Directory   ClickBooth Network   V7N Directory

Reply
 
LinkBack Thread Tools Display Modes
Old 08-16-2004, 02:22 AM   #1 (permalink)
Inactive
 
Join Date: 08-05-04
Location: The Netherlands
Posts: 55
iTrader: 0 / 0%
Latest Blog:
None

lajkonik86 is liked by many
explode

heey guys

I'm trying to get some info from this site
http://www.gamershell.com/filehell/d...downloads.html
I would like to get every line with demo and mod in a variable (while keeping the order)
Maybe i could use the explode function and instead of one seperator use two. But can't get that to work.
Does anyone of you know something?
lajkonik86 is offline  
Add Post to del.icio.us
Reply With Quote
Sponsored Links
SEO Hosting by HostGator  Advertise Here  Buy Blog Links
Old 08-17-2004, 08:58 AM   #2 (permalink)
Inactive
 
Join Date: 08-15-04
Location: Europe
Posts: 92
iTrader: 0 / 0%
Latest Blog:
None

Brian911 is liked by many
I'd remove the html tags via a regular expression and replace them with some ascii char, split() by using this ascii character and then just go through each line like
if ($type=="mod") { echo $name . "has been downloaded" . $downloads . "times"; }
Brian911 is offline  
Add Post to del.icio.us
Reply With Quote
Old 08-17-2004, 11:25 AM   #3 (permalink)
Inactive
 
Join Date: 08-05-04
Location: The Netherlands
Posts: 55
iTrader: 0 / 0%
Latest Blog:
None

lajkonik86 is liked by many
but how do i check if a line
containt mod?
lajkonik86 is offline  
Add Post to del.icio.us
Reply With Quote
Old 08-18-2004, 08:08 AM   #4 (permalink)
Inactive
 
Join Date: 08-15-04
Location: Europe
Posts: 92
iTrader: 0 / 0%
Latest Blog:
None

Brian911 is liked by many
by using what I gave as an example in the last line of my post

actually split() can split each line into parts and name these parts accordingly... granted that you plan to use either PHP or Perl.
have a look at the manual there.
Brian911 is offline  
Add Post to del.icio.us
Reply With Quote
Go Back   Webmaster Forum > Web Development > Web Design Lobby > Coding Forum

Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Sponsor Links
Get exposure! Get exposure! Find Scripts Web Hosting Directory Get exposure! SEO Blog


All times are GMT -7. The time now is 04:21 AM.
© Copyright 2008 V7 Inc