mardi 25 octobre 2016

How to open a URL with PHP

I have this code:

if (count($results) == 1) {
    fopen("http://example.com/", "r");
}
echo "More than one result";
}

The if-statemant is working itself. But when fopen("http://example.com/", "r"); should get excluded the side just gets reloaded but it doesn't open http://example.com.

What am I doing wrong?

Aucun commentaire:

Enregistrer un commentaire