Skip to content

Instantly share code, notes, and snippets.

@dmongeau
dmongeau / popunder.js
Created October 13, 2011 18:51
Pop under
function winClose()
{
window.top.opener=null;
window.close();
}
function closeWindow()
{
window.open('','_parent','');
window.close();
<?
//ON INCLUS TOUTES LES VARIABLES NECESSAIRE A BIXI
//require_once ("../../path.inc.php");
////////////////////////////////////////////////////////////////
//ini_set(allow_url_fopen, 1);
function getAllStationsWithoutId(){
$in="https://profil.bixi.ca/data/bikeStations.xml";
$content= file_get_contents($in);
$xml=new SimpleXMLElement($content);
//Cr�ation d un tableau tres accessible
<?php
 
set_time_limit(0);
 
/*
 * Okay, the project is LIFE.php so we want to skip all the boring pre-life part.
 * Thanks to php, we can just do a 5 billion years sleep.
 *
 */
define('YEAR',3600*24*365);