CGI/Perl Guide | Learning Center | Forums | Advertise | Login
Site Search: in

  Main Index MAIN
INDEX
Search Posts SEARCH
POSTS
Who's Online WHO'S
ONLINE
Log in LOG
IN

Home: Perl Programming Help: Beginner:
help for parsing!

 



lucaonori
Deleted

May 17, 2000, 6:22 AM

Post #1 of 5 (562 views)
help for parsing! Can't Post

I have to parse a news file from www.thestreet.com....

If i copy the original file on my server and I parse it my program is ok but, if I read the original file on thestreet server my program not read the file.

Why????


Jasmine
Administrator / Moderator

May 19, 2000, 3:51 AM

Post #2 of 5 (561 views)
Re: help for parsing! [In reply to] Can't Post

Please post your code that is fetching the news file. Without it, it's impossible to see where the program's going awry.


lucaonori
Deleted

May 19, 2000, 7:34 AM

Post #3 of 5 (561 views)
Re: help for parsing! [In reply to] Can't Post

I've send an email to you with attached file.
Thanx, Luca.


Jasmine
Administrator / Moderator

May 19, 2000, 9:25 AM

Post #4 of 5 (561 views)
Re: help for parsing! [In reply to] Can't Post

Because the comments are in Italian, they are useless for me Smile Does the line copied below mean something similar to "enter the news filename relative to the original file"? If so, what's the original file, and where is it on your server?

One thing, based on your message and the code, that looks suspect is

# valorizzazione variabile del file delle notizie con il percorso del file originale
# $filenews=("http://www.thestreet.com/feeds/markets/xml/index.xml");
# $filenews=("http://web.tiscalinet.it/oneweb/prove/index.xml");
# $filenews=("http://www.thestreet.com/feeds/free/xml/index.xml");

# $filenews="/users.vr9.com/oneweb/index.xml"; # with this not function
$filenews="../index.xml"; # with this (the same with relative path) all good

If /users/vr9.com/etc isn't your server, you can't access it. You'll need to use the http path as noted in the http examples provided.

If it is on your server, make sure that /users/vr9.com/etc... is your document root. Your document root is located in the $ENV{'DOCUMENT_ROOT'} environment variable.


lucaonori
Deleted

May 20, 2000, 7:57 AM

Post #5 of 5 (561 views)
Re: help for parsing! [In reply to] Can't Post

Hi jasmine, thank you for your reply.
The original news file is located at this address: http://www.thestreet.com/feeds/markets/xml/index.xml
The news file for my test is this http://users.vr9.com/oneweb/index.xml
but, in this case, the program is good only if I use the relative path "../index.html".

Thanx and good weekend.
Luca

 
 


Search for (options) Powered by Gossamer Forum v.1.2.0

Web Applications & Managed Hosting Powered by Gossamer Threads
Visit our Mailing List Archives