Title: Problem with getting data from extern website
Last modified: January 22, 2020

---

# Problem with getting data from extern website

 *  [royslond](https://wordpress.org/support/users/royslond/)
 * (@royslond)
 * [6 years, 4 months ago](https://wordpress.org/support/topic/problem-with-getting-data-from-extern-website/)
 * Allen,
 * As an ice hockey club we have a competition program which we collect from the
   website of the association.
    See: _[ redundant link removed ]_ data from the 
   site of the union are retrieved and shown on our site in our layout. In the table
   under “SCORE” you will find the result of the weekend and that is a link that
   refers to the score form. We have received the following explanation from the
   association: To access the competition form you must put the code below (and 
   no more than that!) In a php file with the name nijbsheet.php on the server in
   the directory / competition program /
 *     ```
       <?php
       header("location: https://www.nijb.nl/nijbsheet.php?GameID={$_GET['GameID']}");
       ?>
       ```
   
 * Now that gives a problem. We then get the error message:
    Forbidden You don’t
   have permission to access /wedstrijdprogramma/ on this server.
 * However, if I change the name of the folder in “wedstrijdprogramma_test” you 
   can see through the link below that the php does work.
    `https://www.ijshockeyclub-
   yetis.nl/wedstrijdprogramma_test/nijbsheet.php?GameID=56477`
 * Who oh who can help you get it working.
    Indeed, there are more and more associations
   that face the same problem.
    -  This topic was modified 6 years, 4 months ago by [royslond](https://wordpress.org/support/users/royslond/).
    -  This topic was modified 6 years, 4 months ago by [royslond](https://wordpress.org/support/users/royslond/).
    -  This topic was modified 6 years, 4 months ago by [royslond](https://wordpress.org/support/users/royslond/).
    -  This topic was modified 6 years, 4 months ago by [Jan Dembowski](https://wordpress.org/support/users/jdembowski/).
      Reason: Moved to Fixing WordPress, this is not a Requests and Feedback topic
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fproblem-with-getting-data-from-extern-website%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

Viewing 15 replies - 1 through 15 (of 16 total)

1 [2](https://wordpress.org/support/topic/problem-with-getting-data-from-extern-website/page/2/?output_format=md)
[→](https://wordpress.org/support/topic/problem-with-getting-data-from-extern-website/page/2/?output_format=md)

 *  [webmasterfreya](https://wordpress.org/support/users/webmasterfreya/)
 * (@webmasterfreya)
 * [6 years, 4 months ago](https://wordpress.org/support/topic/problem-with-getting-data-from-extern-website/#post-12353336)
 * Probeer eens `header("location: https://www.nijb.nl/nijbsheet.php?GameID=$_GET['
   GameID']");`
 *  Thread Starter [royslond](https://wordpress.org/support/users/royslond/)
 * (@royslond)
 * [6 years, 4 months ago](https://wordpress.org/support/topic/problem-with-getting-data-from-extern-website/#post-12353345)
 * Same result, et the error message:
    **Forbidden** You don’t have permission to
   access /wedstrijdprogramma/ on this server.
 *  [webmasterfreya](https://wordpress.org/support/users/webmasterfreya/)
 * (@webmasterfreya)
 * [6 years, 4 months ago](https://wordpress.org/support/topic/problem-with-getting-data-from-extern-website/#post-12353635)
 * [https://www.ijshockeyclub-yetis.nl/wedstrijdprogramma_test/nijbsheet.php?GameID=57075](https://www.ijshockeyclub-yetis.nl/wedstrijdprogramma_test/nijbsheet.php?GameID=57075)
   
   verwijst naar [https://www.nijb.nl/nijbsheet.php?GameID=57075](https://www.nijb.nl/nijbsheet.php?GameID=57075)
   en geeft idd output (wedstrijdsheet)
 * Zoetermeer, met uitslag
    [https://www.ijshockeyclub-yetis.nl/wedstrijdprogramma/nijbsheet.php?GameID=57697](https://www.ijshockeyclub-yetis.nl/wedstrijdprogramma/nijbsheet.php?GameID=57697)
   wordt niet gevonden daar nijbsheet.php niet op /www.ijshockeyclub-yetis.nl/wedstrijdprogramma
   staat
 * Breda, geen uitslag
    [https://www.ijshockeyclub-yetis.nl/wedstrijdprogramma/?GameID=58012](https://www.ijshockeyclub-yetis.nl/wedstrijdprogramma/?GameID=58012)
   Hier staat geen nijbsheet.php voor de parameter, dus verwijst naar zichzelf
 * Zet je nijbsheet.php ook eens op [https://www.ijshockeyclub-yetis.nl/wedstrijdprogramma/](https://www.ijshockeyclub-yetis.nl/wedstrijdprogramma/)
   om te zien wat er dan gebeurt en wat de links worden.
 *  Thread Starter [royslond](https://wordpress.org/support/users/royslond/)
 * (@royslond)
 * [6 years, 4 months ago](https://wordpress.org/support/topic/problem-with-getting-data-from-extern-website/#post-12353699)
 * Als ik de map aanpas in westrijdprogramma dan krijg je een foutmelding en laad
   de pagina helemaal niet meer.
    Daarom had ik de map hernoemd in westrijdprogramma_test
   om te zien of het wel werkt.
 *  [webmasterfreya](https://wordpress.org/support/users/webmasterfreya/)
 * (@webmasterfreya)
 * [6 years, 4 months ago](https://wordpress.org/support/topic/problem-with-getting-data-from-extern-website/#post-12353721)
 * Wat bedoel je precies met “Als ik de map aanpas in westrijdprogramma”
 * Wat ik bedoel is om het aangemaakte bestandje nijbsheet.php via bv ftp op de 
   directory [https://www.ijshockeyclub-yetis.nl/wedstrijdprogramma/](https://www.ijshockeyclub-yetis.nl/wedstrijdprogramma/)
   neer te zetten.
 *  [webmasterfreya](https://wordpress.org/support/users/webmasterfreya/)
 * (@webmasterfreya)
 * [6 years, 4 months ago](https://wordpress.org/support/topic/problem-with-getting-data-from-extern-website/#post-12354078)
 * PS gebruik kladblok om bestandje nijbsheet.php aan te maken.
 *  Thread Starter [royslond](https://wordpress.org/support/users/royslond/)
 * (@royslond)
 * [6 years, 4 months ago](https://wordpress.org/support/topic/problem-with-getting-data-from-extern-website/#post-12354513)
 * De map op de server heet westrijdprogramma_test daar staat het bestand in. Als
   ik de mapnaam aanpas is westrijdprogramma werkt de pagina niet.
 * Ik zal het bestand er nu eens inzetten en dan kan je zien welke melding je krijgt.
 *  [webmasterfreya](https://wordpress.org/support/users/webmasterfreya/)
 * (@webmasterfreya)
 * [6 years, 4 months ago](https://wordpress.org/support/topic/problem-with-getting-data-from-extern-website/#post-12354604)
 * Wat lijkt te missen is een index.php (of index.html dan wel index.htm).
 * Staan er meerdere bestanden in die directory (map) ?
 *  Thread Starter [royslond](https://wordpress.org/support/users/royslond/)
 * (@royslond)
 * [6 years, 4 months ago](https://wordpress.org/support/topic/problem-with-getting-data-from-extern-website/#post-12354643)
 * Nee ik heb de map zelf aangemaakt en alleen de php erin gezet.
    Zou niet weten
   waar ik het bestand anders in zou moeten zetten
 *  Thread Starter [royslond](https://wordpress.org/support/users/royslond/)
 * (@royslond)
 * [6 years, 4 months ago](https://wordpress.org/support/topic/problem-with-getting-data-from-extern-website/#post-12354676)
 * Staat in deze folder:
    /domains/ijshockeyclub-yetis.nl/public_html/
 * Heb hem nu een folder hoger gezet
 *  [webmasterfreya](https://wordpress.org/support/users/webmasterfreya/)
 * (@webmasterfreya)
 * [6 years, 4 months ago](https://wordpress.org/support/topic/problem-with-getting-data-from-extern-website/#post-12354707)
 * aha. ok, de pagina in wordpress “wedstrijdprogramma” is niet hetzelfde als de
   fysieke directory /wedstrijdprogramma. Kun je permissies bekijken en vergelijken
   van de directories /wedstrijdprogramma en /wedstrijdprogramma_test
 *  Thread Starter [royslond](https://wordpress.org/support/users/royslond/)
 * (@royslond)
 * [6 years, 4 months ago](https://wordpress.org/support/topic/problem-with-getting-data-from-extern-website/#post-12354727)
 * Hoe kan ik dat doen?
 *  [webmasterfreya](https://wordpress.org/support/users/webmasterfreya/)
 * (@webmasterfreya)
 * [6 years, 4 months ago](https://wordpress.org/support/topic/problem-with-getting-data-from-extern-website/#post-12354736)
 * Als je via ftp de directory met de rechtermuisknop aanklikt en dan kiezen voor
   eigenschappen (of rechten).
 *  [webmasterfreya](https://wordpress.org/support/users/webmasterfreya/)
 * (@webmasterfreya)
 * [6 years, 4 months ago](https://wordpress.org/support/topic/problem-with-getting-data-from-extern-website/#post-12354993)
 * Kwartje is gevallen. Ik snap wat er gebeurd 🙂
 * [https://www.ijshockeyclub-yetis.nl/wedstrijdprogramma/](https://www.ijshockeyclub-yetis.nl/wedstrijdprogramma/)
   is een permalink.
 *  Als je dan een fysieke directory maakt /wedstrijdprogramma dan zal je webserver
   WordPress niet bereiken maar zoeken op de fysieke directory en niks vinden (of
   503 geven).
 * Een oplossing kan zijn om een andere fysieke directory te gebruiken en de link
   vanuit de WordPress pagina naar nijbsheet.php hierop aan te passen. Echter ik
   vermoed dat deze pagina gebaseerd is op een template (wedstrijdprogramma.php 
   oid) waarin je dan deze aanpassing moet maken. Komt er een nieuwe versie dan 
   moet je dat wederom doen. Beter is dan dat de leverancier hier een directory 
   gebruikt die niet als permalink voor komt.
 *  Thread Starter [royslond](https://wordpress.org/support/users/royslond/)
 * (@royslond)
 * [6 years, 4 months ago](https://wordpress.org/support/topic/problem-with-getting-data-from-extern-website/#post-12355033)
 * inderdaad dat lijkt er aan de hand. Het is echter gewoon een lege pagina met 
   hierin via de plugin “PHPCode Snippets” een php geladen:
 * <?php
    echo file_get_contents(“[https://www.nijb.nl/result.ajax.php?ClubID=40&Before=4&After=200&#8221](https://www.nijb.nl/result.ajax.php?ClubID=40&Before=4&After=200&#8221););?
   >
 * Dat is dus de tabel welke je ziet op de pagina.
    -  This reply was modified 6 years, 4 months ago by [royslond](https://wordpress.org/support/users/royslond/).

Viewing 15 replies - 1 through 15 (of 16 total)

1 [2](https://wordpress.org/support/topic/problem-with-getting-data-from-extern-website/page/2/?output_format=md)
[→](https://wordpress.org/support/topic/problem-with-getting-data-from-extern-website/page/2/?output_format=md)

The topic ‘Problem with getting data from extern website’ is closed to new replies.

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 16 replies
 * 2 participants
 * Last reply from: [webmasterfreya](https://wordpress.org/support/users/webmasterfreya/)
 * Last activity: [6 years, 4 months ago](https://wordpress.org/support/topic/problem-with-getting-data-from-extern-website/page/2/#post-12355132)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
