PC Review
Forums
Newsgroups
Microsoft Word
Microsoft Frontpage
Hyperlinking to PHP
Forums
Newsgroups
Microsoft Word
Microsoft Frontpage
Hyperlinking to PHP
![]() |
Hyperlinking to PHP |
|
|
Thread Tools | Rate Thread |
|
|
#1 |
|
Guest
Posts: n/a
|
Hi,
Am trying to hyperlink to a .php file however when I click the hyperlink the FILE DOWNLOAD dialog box opens. Why does this happen..can anyone fill me in...Hyperlinking to another .html file is ok and does not produce this download file thingy.. Rgds |
|
|
|
#2 |
|
Guest
Posts: n/a
|
Running a .php page requires that the page is loaded on a server with PHP
installed, otherwise the page will be "unknown" and the download dialogue presented. Ron -- Reply only to group - emails will be deleted unread. "garwil" <anonymous@discussions.microsoft.com> wrote in message news:aabe01c48843$fb9f3d40$a401280a@phx.gbl... > Hi, > > Am trying to hyperlink to a .php file however when I > click the hyperlink the FILE DOWNLOAD dialog box opens. > Why does this happen..can anyone fill me > in...Hyperlinking to another .html file is ok and does > not produce this download file thingy.. > > Rgds |
|
|
|
#3 |
|
Guest
Posts: n/a
|
Hi Ronx.
Many thanks for the reply My situation is a follows. I have a server installed on my pc (EasyPhp)wherein lies both the HTML and PHP pages. I try and call the php page from withing FP and I get this error. Secondly I thought that a browser would display an html page before a php one..do you know anything about this? Thanks once again >-----Original Message----- >Running a .php page requires that the page is loaded on a server with PHP >installed, otherwise the page will be "unknown" and the download dialogue >presented. > >Ron >-- >Reply only to group - emails will be deleted unread. > > >"garwil" <anonymous@discussions.microsoft.com> wrote in message >news:aabe01c48843$fb9f3d40$a401280a@phx.gbl... >> Hi, >> >> Am trying to hyperlink to a .php file however when I >> click the hyperlink the FILE DOWNLOAD dialog box opens. >> Why does this happen..can anyone fill me >> in...Hyperlinking to another .html file is ok and does >> not produce this download file thingy.. >> >> Rgds > > >. > |
|
|
|
#4 |
|
Guest
Posts: n/a
|
How have you opened the web in FrontPage? As a server-based web (example
http://localhost/webname/ ) or as a disc-based web , (example c:\mywebs\webname ) If FP is opened as a disc-based web, then you are not using the server, and therefore .php files will download, not run. The order files will open depends on the configuration of the server (assuming you are referring to which page [index.php or index.html ] opens in response to a link such as http://example.com/ ). In the configuration there is a list of acceptable default file names, the name at the top of the list gets precedence over the rest. Ron -- Reply only to group - emails will be deleted unread. "garwil" <anonymous@discussions.microsoft.com> wrote in message news:a89601c48849$c1a7db50$a501280a@phx.gbl... > Hi Ronx. > Many thanks for the reply > > My situation is a follows. > > I have a server installed on my pc (EasyPhp)wherein lies > both the HTML and PHP pages. I try and call the php page > from withing FP and I get this error. Secondly I thought > that a browser would display an html page before a php > one..do you know anything about this? > Thanks once again > > >-----Original Message----- > >Running a .php page requires that the page is loaded on > a server with PHP > >installed, otherwise the page will be "unknown" and the > download dialogue > >presented. > > > >Ron > >-- > >Reply only to group - emails will be deleted unread. > > > > > >"garwil" <anonymous@discussions.microsoft.com> wrote in > message > >news:aabe01c48843$fb9f3d40$a401280a@phx.gbl... > >> Hi, > >> > >> Am trying to hyperlink to a .php file however when I > >> click the hyperlink the FILE DOWNLOAD dialog box opens. > >> Why does this happen..can anyone fill me > >> in...Hyperlinking to another .html file is ok and does > >> not produce this download file thingy.. > >> > >> Rgds > > > > > >. > > |
|
|
|
#5 |
|
Guest
Posts: n/a
|
Hi,
I have the server running (localhost)with all my php stuff on it. I then developed a splash page -index.htm as a WELCOME page. I linked it to the php page within the localhost. Made some changes to the splash page and from the PREVIEW pane in FP tried the hyperlink...system wanted to download...I then moved the splash page (index.htm) to localhost into the same folder as the php pages and tried opening the website expecting the Index.html splash page to open...not so..the index.php opened instead... Rgds >-----Original Message----- >How have you opened the web in FrontPage? As a server- based web (example >http://localhost/webname/ ) or as a disc-based web , (example >c:\mywebs\webname ) >If FP is opened as a disc-based web, then you are not using the server, and >therefore .php files will download, not run. > >The order files will open depends on the configuration of the server >(assuming you are referring to which page [index.php or index.html ] opens >in response to a link such as http://example.com/ ). > >In the configuration there is a list of acceptable default file names, the >name at the top of the list gets precedence over the rest. > >Ron >-- >Reply only to group - emails will be deleted unread. > > >"garwil" <anonymous@discussions.microsoft.com> wrote in message >news:a89601c48849$c1a7db50$a501280a@phx.gbl... >> Hi Ronx. >> Many thanks for the reply >> >> My situation is a follows. >> >> I have a server installed on my pc (EasyPhp)wherein lies >> both the HTML and PHP pages. I try and call the php page >> from withing FP and I get this error. Secondly I thought >> that a browser would display an html page before a php >> one..do you know anything about this? >> Thanks once again >> >> >-----Original Message----- >> >Running a .php page requires that the page is loaded on >> a server with PHP >> >installed, otherwise the page will be "unknown" and the >> download dialogue >> >presented. >> > >> >Ron >> >-- >> >Reply only to group - emails will be deleted unread. >> > >> > >> >"garwil" <anonymous@discussions.microsoft.com> wrote in >> message >> >news:aabe01c48843$fb9f3d40$a401280a@phx.gbl... >> >> Hi, >> >> >> >> Am trying to hyperlink to a .php file however when I >> >> click the hyperlink the FILE DOWNLOAD dialog box opens. >> >> Why does this happen..can anyone fill me >> >> in...Hyperlinking to another .html file is ok and does >> >> not produce this download file thingy.. >> >> >> >> Rgds >> > >> > >> >. >> > > > >. > |
|
|
|
#6 |
|
Guest
Posts: n/a
|
If you are using easyPHP as the server, then this is a variant of Apache.
Apache on Windows cannot be configured to use FrontPage extensions. FrontPage cannot be used to edit files on a non-extended server. Therefore you are opening the web in FrontPage as a disc based web. You are opening a web before editing pages, aren't you? If the above is incorrect, please detail the steps you take to edit the index.htm page, starting with "Open FrontPage.... As I said before, unless you open a page on a server with PHP installed, using a URL like http://domain/pagename, the .php page will download, not run. Previewing in FrontPage from a disc based web is not using the server, unless the link clicked in a page being previewed is an absolute link of the form http://domain/pagename The reason the .php page opens instead of the index.html is because the server has been set up that way. If you find the configuration file, named httpd.conf (or something similar) in a subfolder of a folder named apache or easyphp, the list of default file names can be edited. In Windows Explorer search for Files or Folders containing text "DirectoryIndex" In the file, look for DirectoryIndex, and change the list of pagenames to suit your requirements. Ron -- Reply only to group - emails will be deleted unread. "Ronx" <ronx917@hotmail.com> wrote in message news:%23f$473EiEHA.1764@TK2MSFTNGP10.phx.gbl... > How have you opened the web in FrontPage? As a server-based web (example > http://localhost/webname/ ) or as a disc-based web , (example > c:\mywebs\webname ) > If FP is opened as a disc-based web, then you are not using the server, and > therefore .php files will download, not run. > > The order files will open depends on the configuration of the server > (assuming you are referring to which page [index.php or index.html ] opens > in response to a link such as http://example.com/ ). > > In the configuration there is a list of acceptable default file names, the > name at the top of the list gets precedence over the rest. > > Ron > -- > Reply only to group - emails will be deleted unread. > > > "garwil" <anonymous@discussions.microsoft.com> wrote in message > news:a89601c48849$c1a7db50$a501280a@phx.gbl... > > Hi Ronx. > > Many thanks for the reply > > > > My situation is a follows. > > > > I have a server installed on my pc (EasyPhp)wherein lies > > both the HTML and PHP pages. I try and call the php page > > from withing FP and I get this error. Secondly I thought > > that a browser would display an html page before a php > > one..do you know anything about this? > > Thanks once again > > > > >-----Original Message----- > > >Running a .php page requires that the page is loaded on > > a server with PHP > > >installed, otherwise the page will be "unknown" and the > > download dialogue > > >presented. > > > > > >Ron > > >-- > > >Reply only to group - emails will be deleted unread. > > > > > > > > >"garwil" <anonymous@discussions.microsoft.com> wrote in > > message > > >news:aabe01c48843$fb9f3d40$a401280a@phx.gbl... > > >> Hi, > > >> > > >> Am trying to hyperlink to a .php file however when I > > >> click the hyperlink the FILE DOWNLOAD dialog box opens. > > >> Why does this happen..can anyone fill me > > >> in...Hyperlinking to another .html file is ok and does > > >> not produce this download file thingy.. > > >> > > >> Rgds > > > > > > > > >. > > > > > |
|
|
|
#7 |
|
Guest
Posts: n/a
|
You have to access the page via http://localhost/pagename.php and in order do that you can't use the
Preview tab which loads the file from the FP Temp folder, you have use File Menu | Preview In Browser. -- ============================================== Thomas A. Rowe (Microsoft MVP - FrontPage) WEBMASTER Resources(tm) http://www.ycoln-resources.com FrontPage Resources, WebCircle, MS KB Quick Links, etc. ============================================== To assist you in getting the best answers for FrontPage support see: http://www.net-sites.com/sitebuilder/newsgroups.asp "garwil" <anonymous@discussions.microsoft.com> wrote in message news:a91901c48859$2cb65430$a501280a@phx.gbl... > Hi, > I have the server running (localhost)with all my php > stuff on it. I then developed a splash page -index.htm as > a WELCOME page. I linked it to the php page within the > localhost. Made some changes to the splash page and from > the PREVIEW pane in FP tried the hyperlink...system > wanted to download...I then moved the splash page > (index.htm) to localhost into the same folder as the php > pages and tried opening the website expecting the > Index.html splash page to open...not so..the index.php > opened instead... > > Rgds > >-----Original Message----- > >How have you opened the web in FrontPage? As a server- > based web (example > >http://localhost/webname/ ) or as a disc-based web , > (example > >c:\mywebs\webname ) > >If FP is opened as a disc-based web, then you are not > using the server, and > >therefore .php files will download, not run. > > > >The order files will open depends on the configuration > of the server > >(assuming you are referring to which page [index.php or > index.html ] opens > >in response to a link such as http://example.com/ ). > > > >In the configuration there is a list of acceptable > default file names, the > >name at the top of the list gets precedence over the > rest. > > > >Ron > >-- > >Reply only to group - emails will be deleted unread. > > > > > >"garwil" <anonymous@discussions.microsoft.com> wrote in > message > >news:a89601c48849$c1a7db50$a501280a@phx.gbl... > >> Hi Ronx. > >> Many thanks for the reply > >> > >> My situation is a follows. > >> > >> I have a server installed on my pc (EasyPhp)wherein > lies > >> both the HTML and PHP pages. I try and call the php > page > >> from withing FP and I get this error. Secondly I > thought > >> that a browser would display an html page before a php > >> one..do you know anything about this? > >> Thanks once again > >> > >> >-----Original Message----- > >> >Running a .php page requires that the page is loaded > on > >> a server with PHP > >> >installed, otherwise the page will be "unknown" and > the > >> download dialogue > >> >presented. > >> > > >> >Ron > >> >-- > >> >Reply only to group - emails will be deleted unread. > >> > > >> > > >> >"garwil" <anonymous@discussions.microsoft.com> wrote > in > >> message > >> >news:aabe01c48843$fb9f3d40$a401280a@phx.gbl... > >> >> Hi, > >> >> > >> >> Am trying to hyperlink to a .php file however when I > >> >> click the hyperlink the FILE DOWNLOAD dialog box > opens. > >> >> Why does this happen..can anyone fill me > >> >> in...Hyperlinking to another .html file is ok and > does > >> >> not produce this download file thingy.. > >> >> > >> >> Rgds > >> > > >> > > >> >. > >> > > > > > > >. > > |
|
![]() |
|
| Thread Tools | |
| Rate This Thread | |
|
|

Main Page 

