IdealData Posted August 20, 2007 Posted August 20, 2007 I've installed FMS9 and accepted all the defaults that the installation procedure requires - including using the FM supplied PHP. When I run the test page I only see the code that is produced in my browser (Safari). I was expecting to see the similar results that you get in IWP and XML test pages. Any help appreciated.
dreamingmind Posted August 20, 2007 Posted August 20, 2007 Though I use php for a variety of things, this is getting to iffy territory for me... but I'll take a stab. PHP is typically a server side language so the sequence of events would be this: Your browser requests a page, The server retrieves the page and discovers php code in it, The server executes the php code, And finally sends the result to your browser. If the test page is on your local machine, the assumption is, everything is set up for all these step to take place right there on your machine. Mine is not set up that way so, when working with php, my browser and a db, I have most everything set up on the server at my ISP (just like all the other parts of my web site). Then their server and installed php do all the work and I view the result in my browser. More knowledgeable people should be able to correct any errors I've made and suggest a solution in your situation. Don
IdealData Posted August 20, 2007 Author Posted August 20, 2007 Thanks Don I'm not PHP savvy, but this is purely the test page "out of the box" as FMI deliver it. No external PHP interference - just installed as directed through the FMS installation. A single machine install using the FMI supplied PHP. Not sure if I missed something during install or if it's a genuine fault in the test page (unlikely). Thanks again
Genx Posted August 20, 2007 Posted August 20, 2007 Heya Mark, Okay, create a new page in your root web server directory - I suck with macs but google for mac apache root directory if you don't know where that is. Now, create a new text file called phpinfo.php. in there type: <?php phpinfo(); ?> . Save that, then go to your browser and type: http://localhost/phpinfo.php You should get a whole page worth of prettily formatted info pop up. Now, if none of that was relevant (which it may not have been) I'm unsure of what it is you're describing - any chance of a screenshot?
Steven H. Blackwell Posted August 21, 2007 Posted August 21, 2007 But did actually install the PHP? You have to extract the archive and put it at the root level of the web publishing software. Some added information from FMI: To make the FileMaker API for PHP accessible to your PHP scripts: When you installed FileMaker Server, the FileMaker API for PHP package was included as a .zip file in the following location: For IIS (Windows): :Program FilesFileMakerFileMaker ServerWeb PublishingFM_API_for_PHP_Standalone.zip where is the drive on which the web server component of your FileMaker server deployment resides. For Apache (Mac OS): /Library/FileMaker Server/Web Publishing/FM_API_for_PHP_Standalone.zip The FM_API_for_PHP_Standalone.zip file contains a file called FileMaker.php and a folder called FileMaker. Unzip the file and copy the FileMaker.php file and the FileMaker folder to either of these locations: the web server root folder where your PHP scripts reside. For IIS (Windows): :Inetpubwwwroot where is the drive on which the Web Publishing Engine component of your FileMaker server deployment resides. For Apache (Mac OS): /Library/WebServer/Documents 1one of the include_path directories in your PHP installation. The default location for Mac OS X is /usr/lib/php. HTH Steven
IdealData Posted August 22, 2007 Author Posted August 22, 2007 Thanks Steven I did miss that in the installation guide. As usual with FMI it's particularly terse and although I have extracted the ZIP file and copied it to BOTH locations (just to be sure) I still don't get any sense from the PHP test page. There is no problem with the other test pages. I assume that when I installed FMS9 that the installation has also made necessary changes to invoke PHP in the OS - or do I have to do it manually. Is there something else I missed? Please see the attachment for the code that is produced in Safari. Incidentally I'm running Mac OS X 10.4.10. Many thanks. phptest.zip
IdealData Posted August 22, 2007 Author Posted August 22, 2007 (edited) Update: I ran the server deployment again. Afterwards I checked the httpd.conf and this time the necessary "include" had been appended (as described in FMI knowledge base # 6538) I must have failed to run this on first install, yet the server admin console still lets you enable PHP - even though PHP is not installed or running. I managed to get the site assistant working and generated a simple test site - all ok. When I tried the "test" page again it still fails, so I looked at the URL it was trying to get: "http://192.168.99.100/fmi-test/phptest.php?lang=en&server=StageBase9" I then substituted the IP address for "localhost" - it works! The IP address method also works but only for a non-local client. Edited August 22, 2007 by Guest
Recommended Posts
This topic is 6306 days old. Please don't post here. Open a new topic instead.
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now