Jump to content

uk_skinner

Members
  • Posts

    7
  • Joined

  • Last visited

uk_skinner's Achievements

Rookie

Rookie (2/14)

  • First Post
  • Conversation Starter
  • Week One Done
  • One Month Later
  • One Year In

Recent Badges

0

Reputation

  1. Thanks Thomas I think I will take more details look in that site. At this moment, this just my hobby and a way to learn PHP script. No intention to have my site becomes a "commercial" site. Understanding how the PHP script is much more important to get the weather information. Do I make any sense??
  2. Robert, thanks for being patience with me. This is all the newbit can hope for. In simple words, yes I would like to able to get pieces information from This Page. I was hoping using the PHP codes to get all the contents containing weather information. Instead, I only got the contents of "redirecting" codes. Is this something impossible to do?
  3. Thanks for pointing out the sites. However, just fill my curiosity. Please take look my PHP scrips <?php $baseurl = "http://de.weather.com/weather/local/GMXX0128"; $weatherroot = file_get_contents($baseurl); header('Content-Type: text/plain'); echo $weatherroot; ?> The echo page I saw was again like this : <html> <head> <meta http-equiv="Pragma" content="no-cache"> <meta http-equiv="Refresh" content="0;URL=http://de.w2.weather.com/common/jump2_de.html?/weather/local/GMXX0128?"> </head> <body> <img height=1 width=1 border=0 src="/RealMedia/ads/adstream_nx.ads/noad.weather.com/noad@TopBanner"> <img src="http://fcgi.weather.com/fcgi-bin/partner_redirect/partner_url.pl?ref=(none)" alt="" width=1 height=1 border=0> </body> </html> Not the webpage I saw at http://de.weather.com/weather/local/GMXX0128 on my browser.
  4. Thanks, Don. I got a dog too, he is a westy. Sorry to my bad English. I was not trying to view the source of PHP, I was trying extract the weather infromation from that weather page which I can see the source from my PC side browser. So my logical is (maybe it is wrong), if I can use the browser on my PC (client) to view the source of the weather page, can I have a browser on the server and get source code out (of website not PHP). It is just like I can open the website, view the website and view the source code and save as a text file from my PC. Can I write a PHP script and let the server do all the tasks? That means everything is executed at server site then I can download the results (text format of source code of that weather website). Am I too naive?
  5. Wow...Robert, you are quick and very helpful..This is like a dream come true for a newbie. Here is one of example :http://de.weather.com/weather/local/GMXX0128. When I tried to get source codes of that page using the PHP codes: $baseurl = "http://de.weather.com/weather/local/GMXX0128"; $weatherroot = file_get_contents($baseurl); The result was : "<html> <head> <meta http-equiv="Pragma" content="no-cache"> <meta http-equiv="Refresh" content="0;URL=http://de.w2.weather.com/common/jump2_de.html?/weather/local/GMXX0128?"> </head> <body> <img height=1 width=1 border=0 src="/RealMedia/ads/adstream_nx.ads/noad.weather.com/noad@TopBanner"> <img src="http://fcgi.weather.com/fcgi-bin/partner_redirect/partner_url.pl?ref=(none)" alt="" width=1 height=1 border=0> </body> </html> And if I did "echo $weatherroot", then I saw the right page on my PC browser. I guessed what happened was the original url "redirect" to a url containing the right source code. Am I right? I need to have the source codes of the final "weather page" to extract the weather infromation within it using my PHP script on the server. So that was my impression that I need the server to have browser to "process" the website first then I can get information extracted then send them back to client side.
  6. Thanks for the warm welcome. I was a little bit nervous. Thanks. I do know where to download it. Can I install the Linux version on my server? Sorry, I was not very clear about what I would like to accomplish. I would like to install FireFox browser on the server and be able to execute from a PHP scripts. When I open a webpage, the output has been processed by the browser at my PC side (client side). I was looking for a possibility to have website processed at server side then download the resulting source code (containing some processed data) to my PC (client side). Based on my limited knowledge, I do need a browser at server side, right? Thansk for the help
  7. I just got a server from TotalChoice and am a newbe for this. Please forgive me if my questions are too naive or I posted the wrong place. Moderator, please move my post to anywhere if this thread is not the right one. I would like to use FireFox to processing some website and saved the resulted source of that page using PHP script. Here are my questions: 1) Where I can install the FireFox (Linux) or we have already got one? 2) What PHP codes I should use to accomplish it? Any suggestion or help are appreciated. Thanks in advance.
×
×
  • Create New...