PHP Assistance

Good evening

A user has recently lef tour firm,he was responsible in designing our interactive telephone list using PHP and MySQL (i think)

Basically we have the Intranet server on site A and the server which contains our new telephone directory on site B

When clicking on the link on the Intranet i now get an error stating Internet Explorer cannot display the webpage

The link that it is trying to resolve to is
http://IPADDRESS OF INTRANET/index.php?option=com_wrapper&view=wrapper&Itemid=5

If i right click in the area where the directory should launch i get the following
res://ieframe.dll/dnserrordiagoff.htm#http://IPADDRESS OF CONTENT/teldircss2.php

I can only think that somewhere i need ti change a php file with the new IP of the server which now hosts the content, i cannot for the life of me know which file this is and also how i go about accessing the php file other than via notepad

Do i need to change anything on IIS?

Is this a straightforward change for me to do? also is there a specific PHP file i need to look for to amend?

Any help or advice is welcome, sorry i have never done anything with PHP before

Barrie

Well, unfortunately, Barrie, this is very hard to “guess” what you need. Normally, if you have two systems that
use an intranet to communicate, it means that you have this type of set up:

  1. On the “Site B”, you would have the IIS running which means that system is the server for your telephone
    system. On this system, you should have the database for the telephone data and also PHP files that is
    coded to access the database and display the needed data. This, of course, would be where ALL of the
    work is handled and the only area that needs fixing.

  2. On all other site’s as you call them, they are just connections to the server system and are just users that
    bring up the webpage from the server in the local browser. Therefore, there is no code on them and you
    do not need to do any programming on those systems.

Now, this means that your work needs to be on the “site2” system and you need to find what was changed
on it and fix the error there. One thing that is a common error is the IP address used. Some computers are
not hard-coded to the correct IP address. If you do not hard-code an IP address, a computer makes up it’s
own and it can change if the computer is shut down or the router is restarted. Therefore, the first step would
be for you to find out the IP address of the computer that is called “site2” and make sure it is the one you are
using in your link to it on the other system.
( http://IPADDRESS OF INTRANET/index.php?option=com_wrapper&view=wrapper&Itemid=5 )
If the IP address on the site2’s system is what you are using in the link to it, then there is an issue with either
your IIS not running or a problem with the index.php file itself.
So, basically, check out this problem using these steps…

  1. Check the IP address on the “site2” system which houses the IIS system.
  2. Make sure that is what the other computers are using in the link to the system.
  3. If they are correct, check your IIS to make sure it is up and running.
  4. If the IP address is correct and the IIS says it is up and running without errors, then look at the index.php
    file in the “site2” system and look for errors in it. If you need help with that, post the index.php file here
    and make sure you place it inside of the PHP tags. Also, do not post passwords or email addresses in that
    file if any exists in it.

Not sure if all this helps, but, hope it gives you a starting point. Good luck.

The site is running Joomla, based on the URL you’ve provided.

If the link points to the intranet IP is there any reason you expect this is to be changed? Have you switched servers? Do you know how/where the site is hosted?

Hi ErnieAlex

Thanks for your detailed steps, i can however confirm the following

‘live’ Intranet is on Site A 10.1.x.x

‘teldircss2.php’ file is on Site B 10.2.x.x

'live intranet can be accessed from any of our sites, upon clicking the tel link which takes you here ‘http://10.1.50.10/index.php?option=com_wrapper&view=wrapper&Itemid=5

That’s when the Internet explorer cannot display the webpage appears

On Site B there is a ‘teldircss2.php’ file, i think the ‘live intranet’ is trying to access this php file but cannot locate it because SITE B has recently been moved to a new location with a new subnet

It is finding that link which i am having trouble with, here is a copy of the PHP

Attached is the Index.php file

Barrie


Index.txt (1.29 KB)

Hi

Thanks for pointing that out

yes i do see some references to Joomla, however i am not able to find any GUI side to this to enable me to try and link the pages together correctly

Thanks
Barrie

Well, BarrieLee, this is a hard thing to sort out by guessing remotely, but…

Your line:
http://10.1.50.10/index.php?option=com_wrapper&view=wrapper&Itemid=5
basically says to connect to the machine at the IP of 10.1.50.10 and then pull up the index.php file on that
system. In that file, it most likely redirects to the teldircss2.php file.

Therefore, you would need to review the index.php file on the machine at 10.1.50.10 and see what it does.
If that server was moved to a different subnet, you are in some trouble. Usually subnets are not direction
accessible from a different subnet. Subnet access depends on how the routers are set up in the intranet. If
they are set up correctly, you can just change the 10.1.50.10 to the new one.

So, check the new machines index.php file and see what it does. Then, find where the teldircss2.php file was
moved to and make sure they are connected up. OR, just contact the guy who left and ask for some help.

Sponsor our Newsletter | Privacy Policy | Terms of Service