# What in the name of god is happening?!

**URL:** <https://forum.kirupa.com/t/what-in-the-name-of-god-is-happening/159326>\
**Category:** Uncategorized\
**Created:** [August 16, 2005, 6:54pm UTC](https://forum.kirupa.com/t/what-in-the-name-of-god-is-happening/159326 "2005-08-16T18:54:32Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![bandinopla](https://avatars.discourse-cdn.com/v4/letter/b/9e8a1a/32.png) [@bandinopla](https://forum.kirupa.com/u/bandinopla)\
**Post date:** [August 16, 2005, 6:54pm UTC](https://forum.kirupa.com/t/what-in-the-name-of-god-is-happening/159326/1 "2005-08-16T18:54:32Z")

</div>

this is my code:

```php

$r=file("http://serverX/dir/txtfile.txt");
 
 foreach($r as $value){
 echo $value;
 
 }

```

after the file is loaded… this happen:

the url is: [http://www.something.etc/file.php](http://www.something.etc/file.php)

after finish loading the file… it load, I don’t know why:

the url is: [http://www.something.etc/file](http://www.something.etc/file)

404 - error… I don’t know why the same page is called without the .php extension!!

HEELLP
