Get file not working

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
SolidSolutions
Forum Newbie
Posts: 1
Joined: Mon Sep 22, 2008 2:00 pm

Get file not working

Post by SolidSolutions »

<?php
echo file_get_contents("http://commentingforlinks.com/reviews/95457755.txt");
?>

that code is inside this page:
http://ebiz-made-easy.com/index.php

The text file is simply html code which should essentially display a table near the bottom of the page, but it is not.

Any ideas?
Thanks,
Dan
User avatar
jaoudestudios
DevNet Resident
Posts: 1483
Joined: Wed Jun 18, 2008 8:32 am
Location: Surrey

Re: Get file not working

Post by jaoudestudios »

If it is a remote file just use file not file_get_contents
Post Reply