Current location: Hot Scripts Forums » Other Discussions » Web Servers » [SOLVED] Really Weird Problem ?!


[SOLVED] Really Weird Problem ?!

Reply
  #1 (permalink)  
Old 03-14-08, 10:57 AM
DAL's Avatar
DAL DAL is offline
Code Master
 
Join Date: Jun 2003
Location: North East England/UK
Posts: 874
Thanks: 0
Thanked 0 Times in 0 Posts
X_X [SOLVED] Really Weird Problem ?!

Hi

I have a really weird problem. Im working away on my PC with an server I have installed (Xampp) for my PHP. I work from the http://RootAdmin/ root and I have been busy with a script which basically uses AJAX to populate a list item on a page.

Sometimes I need to refresh the page in Firefox and sometimes in the past 2 days Ive had server errors. I refresh again and it still shows an error. I then take off the last backslash on my friendly URL and hit refresh again. There is then a 404 server error which I was a little confussed by at first then I realised this;

My path changes from ;

http://RootAdmin/localeventguide/htm...n/wsearch1.php

to

http://eric.eberhardt.us/localeventg...n/wsearch1.php

I dont know where the hell this eric.eberhardt.us has come from - I only have 3 bookmarks in FF and Ive never seen the site before.

I have the links to the two screen shots here:

http://www.imagewebdesign.co.uk/myspace/serverfail.jpg
http://www.imagewebdesign.co.uk/myspace/serverfail2.jpg

Can ANYONE give me an explaination of why this might happen?

Thanks
Dal
__________________
"once upon a midnight dreary, while i pron surfed, weak and weary, over many a strange and spurious site of 'hot xxx galore'. While i clicked my fav'rite bookmark, suddenly there came a warning, and my heart was filled with mourning, mourning for my dear amour," 'Tis not possible!", i muttered, "give me back my free hardcore!" quoth the server, 404."
Reply With Quote
  #2 (permalink)  
Old 03-14-08, 11:45 AM
TheKiser TheKiser is offline
Wannabe Coder
 
Join Date: Aug 2007
Location: Texas
Posts: 151
Thanks: 0
Thanked 0 Times in 0 Posts
Umm, I don't know what kind of system you're on but don't you need 'localhost' or '127.0.0.1'?
__________________
6 Steps to Successfully Solving Problems:
Step 1: RTFM ............................. Step 4: Post in ProgrammingTalk
Step 2: See Step 1. ................... Step 5: Wait for answers.
Step 3: See Step 2. ................... Step 6: While Waiting RTFM.
Reply With Quote
  #3 (permalink)  
Old 03-14-08, 12:00 PM
DAL's Avatar
DAL DAL is offline
Code Master
 
Join Date: Jun 2003
Location: North East England/UK
Posts: 874
Thanks: 0
Thanked 0 Times in 0 Posts
localhost is what I used to use but Im sitting on a network of 3 machines. 1 used for xampp, my machine and another machine which can also access the xampp. The http://rootadmin/ is the same as accessing localhost on that machine but its through the network.
__________________
"once upon a midnight dreary, while i pron surfed, weak and weary, over many a strange and spurious site of 'hot xxx galore'. While i clicked my fav'rite bookmark, suddenly there came a warning, and my heart was filled with mourning, mourning for my dear amour," 'Tis not possible!", i muttered, "give me back my free hardcore!" quoth the server, 404."
Reply With Quote
  #4 (permalink)  
Old 03-15-08, 04:12 PM
Jay6390's Avatar
Jay6390 Jay6390 is offline
Code Master
 
Join Date: Apr 2007
Location: United Kingdom
Posts: 1,330
Thanks: 0
Thanked 0 Times in 0 Posts
It sounds to me like you are being redirected by the script for whatever the index page is. check the index.php file for a redirect or a link of some sort to that address. really is an odd thing

Jay
__________________
Useful Tutorials
[ PHP Video-1-2-3 ] [ MySQL 1-2-3 ]
For any php function reference type

www.php.net/FunctionName
Reply With Quote
  #5 (permalink)  
Old 03-16-08, 06:59 AM
DAL's Avatar
DAL DAL is offline
Code Master
 
Join Date: Jun 2003
Location: North East England/UK
Posts: 874
Thanks: 0
Thanked 0 Times in 0 Posts
Like I say, Ive never heard of the website so I couldnt have put it into my script. all addresses are relative to the root anyway so that all start from after where the domain would be in the address.
ie /mydir/script.php

Ive been working away the last couple of days and it hasnt occurred again but its making me nervous. The website first of all that it ends up going to is some religious guy who works with server networking and from what I can see he knows what hes talking about...thing is my server I hope is secure and I hope he hasnt somehow tapped in on my home network.

Can anyone confirm that duplication of an IP address is impossible from over the web? I mean Ive allowed one IP into my network but only that IP on certian ports which is a laptop computer which I have access to when Im away from home.
__________________
"once upon a midnight dreary, while i pron surfed, weak and weary, over many a strange and spurious site of 'hot xxx galore'. While i clicked my fav'rite bookmark, suddenly there came a warning, and my heart was filled with mourning, mourning for my dear amour," 'Tis not possible!", i muttered, "give me back my free hardcore!" quoth the server, 404."
Reply With Quote
  #6 (permalink)  
Old 03-16-08, 07:03 AM
Jay6390's Avatar
Jay6390 Jay6390 is offline
Code Master
 
Join Date: Apr 2007
Location: United Kingdom
Posts: 1,330
Thanks: 0
Thanked 0 Times in 0 Posts
Wether duplication of an IP is possible or not, the sheer chance of someone guessing/stealing your ip, and going to all that trouble to access your home web server is, well, astronomically low really still, every now an then, it might. Sounds like you have some sort of malware that's opened up a new page, or just changed the current one in ypur browser
__________________
Useful Tutorials
[ PHP Video-1-2-3 ] [ MySQL 1-2-3 ]
For any php function reference type

www.php.net/FunctionName
Reply With Quote
  #7 (permalink)  
Old 03-18-08, 06:06 AM
JeremyTM JeremyTM is offline
Newbie Coder
 
Join Date: Mar 2008
Posts: 10
Thanks: 0
Thanked 0 Times in 0 Posts
Sounds to me like it's somwhere in a script your running on your server. Check the index file like Jay said for any re directions or links. Good luck!
Reply With Quote
  #8 (permalink)  
Old 03-20-08, 06:16 PM
DAL's Avatar
DAL DAL is offline
Code Master
 
Join Date: Jun 2003
Location: North East England/UK
Posts: 874
Thanks: 0
Thanked 0 Times in 0 Posts
Nothing can be traced back to this eric.eberhardt.us. If somehow http://rootadmin (intranet) finds the global DNS and points me to his IP. I know theres nothing in my scripts for that just as I know theres nothing in my scripts pointing to hehe.chuckyegg.nl/remember_that/on_the/Spectrum because I use niether and have never heard of the domain before.

Heres the latest;

One computer on my network cant use http://RootAdmin/ to access the local intranet server as it resolves constantly as this http://eric.eberhardt.us/ domain. My computer which was having intermitent problems of chosing to look localy for http://RootAdmin and only sometimes finding http://eric.eberhardt.us has completely stopped doing this and I can successfully use http://RootAdmin/ as my server root for the intranet.

This is so strange and Im questioning the integrity of my network but any clue would help me find a solution.

Thanks
__________________
"once upon a midnight dreary, while i pron surfed, weak and weary, over many a strange and spurious site of 'hot xxx galore'. While i clicked my fav'rite bookmark, suddenly there came a warning, and my heart was filled with mourning, mourning for my dear amour," 'Tis not possible!", i muttered, "give me back my free hardcore!" quoth the server, 404."
Reply With Quote
  #9 (permalink)  
Old 03-20-08, 06:25 PM
Jay6390's Avatar
Jay6390 Jay6390 is offline
Code Master
 
Join Date: Apr 2007
Location: United Kingdom
Posts: 1,330
Thanks: 0
Thanked 0 Times in 0 Posts
Check the following file using notepad
C:\WINDOWS\system32\drivers\etc\hosts
If there is a line in there that has RootAdmin and doesnt have 127.0.0.1 then that is the problem

Also you can put
127.0.0.1 rootadmin #Comment here if wanted
127.0.0.1 eric.eberthardt.us #stop this site
which should force your resolution to 127.0.0.1 and force the http://eric.eberhardt.us/ to go to your localhost too


If that doesnt work, I'm all outta idea's sorry DAL
Jay
__________________
Useful Tutorials
[ PHP Video-1-2-3 ] [ MySQL 1-2-3 ]
For any php function reference type

www.php.net/FunctionName
Reply With Quote
  #10 (permalink)  
Old 03-21-08, 11:53 AM
DAL's Avatar
DAL DAL is offline
Code Master
 
Join Date: Jun 2003
Location: North East England/UK
Posts: 874
Thanks: 0
Thanked 0 Times in 0 Posts
Thanks Jay6390

Problem is now solved with your help.

I only had the line 127.0.0.1 Localhost in the host file on all computers so I added the lines;

127.0.0.1 rootadmin
127.0.0.1 x.eric.eberthardt.us

(I assumed that you missed the x. for stopping!?)

Problem sorted...stange how it was doing it though.

Anyway Thanks again.
Dal.
__________________
"once upon a midnight dreary, while i pron surfed, weak and weary, over many a strange and spurious site of 'hot xxx galore'. While i clicked my fav'rite bookmark, suddenly there came a warning, and my heart was filled with mourning, mourning for my dear amour," 'Tis not possible!", i muttered, "give me back my free hardcore!" quoth the server, 404."
Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Weird ASP/SQL Problem cancer10 ASP 1 03-06-07 08:20 AM
Weird innerHTML problem nekeno12 JavaScript 2 03-29-06 01:28 PM
Weird mysql_query and Smarty problem Canglan PHP 3 11-15-05 08:49 PM
Weird Problem. domeger PHP 1 08-05-05 02:17 PM
Weird Problem Dazza203 PHP 7 01-01-04 03:08 AM


All times are GMT -5. The time now is 01:26 PM.
vBulletin® Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.