Conditional Link in page
From: CiRcUiT (jcodlingATjcodlingDOTcom)
Date: 03/09/04
- Next message: Nikola: "Re: Conditional Link in page"
- Previous message: Andreas Rueckert: "Re: PHP compiler"
- Next in thread: Nikola: "Re: Conditional Link in page"
- Reply: Nikola: "Re: Conditional Link in page"
- Reply: CiRcUiT: "Re: Conditional Link in page"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Tue, 9 Mar 2004 14:53:21 -0500
I am having trouble with the following code:
~~Code below
<?php
if(file_exists('http://MY_OTHER_URL_GOES_HERE/files.htm')){
include('filesbutton.htm');
} else {
echo('<img src="assets/nofiles.jpg" width="110"
height="30" border="0" />');
}
?>
~~END Code
To me this is pretty straight forward and shouldn't have a
problem but no matter what I do it always shows FALSE.
Can you not check for a file on another server? I just want
the link to be active if my server at home is on and be
inactive if it is not.
Thanks in advance for the help! I've been teaching myself
PHP for the last month and this group is a great resource!
Many helpful people.
-- ttyl, CiRcUiT -=- J. Codling -=- www.jcodling.com *This message represents the official opinions of the voices in my head*
- Next message: Nikola: "Re: Conditional Link in page"
- Previous message: Andreas Rueckert: "Re: PHP compiler"
- Next in thread: Nikola: "Re: Conditional Link in page"
- Reply: Nikola: "Re: Conditional Link in page"
- Reply: CiRcUiT: "Re: Conditional Link in page"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]