51
snakes
Re: snx_weather... legal?
  • 2004/10/27 22:44

  • snakes

  • Just popping in

  • Posts: 69

  • Since: 2004/8/8 0


I've seen many Linux tools that use weather.com weather data.
www.wunderground.com told me it was possible to do it from weather.com

And I've asked weather.com webmaster the authorization.
They did'nt answer clearly yet.

Stay in touch.



52
snakes
Re:SnX-Weather block link problem - What could be the cause?
  • 2004/10/26 15:38

  • snakes

  • Just popping in

  • Posts: 69

  • Since: 2004/8/8 0


The module is 100% PHP.
No external command line, no wget, lo lynx.
Try this PHP file
<?
echo 
gethostbyname("www.weather.com");
$handle=fopen("http://www.weather.com/","r");
while(!
feof($handle)) {
   
$buf=fgets($handle,2048);
   echo 
htmlspecialchars($buf);
}
close($handle);
?>


This should print the IP: 63.111.66.11
and a HTML source code.

If not then you have some DNS resolving problem with your
host server.

I just got the same pb 2 weeks ago, the host server admin had modified some configurations and now it works for me.



53
snakes
Re: SnX-Weather block link problem - What could be the cause?
  • 2004/10/12 13:07

  • snakes

  • Just popping in

  • Posts: 69

  • Since: 2004/8/8 0


which version are you using ??



54
snakes
Re: SnX-Weather block link problem - What could be the cause?
  • 2004/10/11 22:46

  • snakes

  • Just popping in

  • Posts: 69

  • Since: 2004/8/8 0


Thanks guys.

I'm gonna have a look tomorrow morning.
It's 1AM right now, gonna have to sleep.

G'bye



55
snakes
Re: Register Globals OFF - A suggestion on how to by pass
  • 2004/10/7 15:56

  • snakes

  • Just popping in

  • Posts: 69

  • Since: 2004/8/8 0


OH cool.
The sanitization can be done in a loop before a request.



56
snakes
Re: Register Globals OFF - A suggestion on how to by pass
  • 2004/10/7 15:30

  • snakes

  • Just popping in

  • Posts: 69

  • Since: 2004/8/8 0


Yeah that's right to.
But I'm so lazy that I find tedious to do things such as
$sql="select * from table where name='".$_p["name"]."' order by id;";

I would prefer
$sql="select * from table where name='$p_name' order by id;";




57
snakes
Register Globals OFF - A suggestion on how to by pass
  • 2004/10/7 15:05

  • snakes

  • Just popping in

  • Posts: 69

  • Since: 2004/8/8 0


It is sometime tiring to use $HTTP_POST_VARS and $HTTP_GET_VARS to access variable passed by URLs of forms.

Few couple of minutes ago, I got an idee and wanted to discussed it.

The eval() function is used to evaluate a string as PHP commands. This mean you can create a string dynamically and evaluate it.

So you can recreate the function that Register Globals is calling when set to ON.

You can also add a prefix to each variable so you can tell which are POST and which are GET variables.

$post_prefix="p_";
$get_prefix="g_";
$cmd="";
while(list(
$key,$val)=each($HTTP_GET_VARS)) {
        
$cmd.="$".$get_prefix.$key."="".$val."";";
}
while(list(
$key,$val)=each($HTTP_POST_VARS)) {
        
$cmd.="$".$post_prefix.$key."="".$val."";";
}
eval(
$cmd);


$p_address could then be the Address field of a form sent by POST method.

$g_action could be the variable sent via the URL.

This can also be used to port some PHP script that do not require high security level. Setting
$post_prefix="";
$get_prefix="";

will avoid you to pass by $HTTP_POST_VARS or $HTTP_GET_VARS



58
snakes
Re: New Weather Module: SnX-Weather module v1.0.0
  • 2004/10/7 8:11

  • snakes

  • Just popping in

  • Posts: 69

  • Since: 2004/8/8 0


Yoh !

1) The admin sections is added
2) You now can set your predefined cities
3) The search feature had been optimized

Have fun



59
snakes
Re:SnX-Weather block link problem - What could be the cause?
  • 2004/10/7 8:03

  • snakes

  • Just popping in

  • Posts: 69

  • Since: 2004/8/8 0


ok the trailing slash is added and will be integrate to the next release.
The France cities list will also be added to the next release.
Sylvain send me the UK list. I will add it to.



60
snakes
Re: MS-Weather LICENSE problem?
  • 2004/10/1 16:14

  • snakes

  • Just popping in

  • Posts: 69

  • Since: 2004/8/8 0


Here the first version of my Weather.com module: SnX-Weather
Demo on:
http://www.qmel.com/modules/snx_weather/

Download at:
http://www.qmel.com/modules/mydownloads/viewcat.php?cid=2





TopTop
« 1 ... 3 4 5 (6) 7 »



Login

Who's Online

64 user(s) are online (47 user(s) are browsing Support Forums)


Members: 0


Guests: 64


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: May 31
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits