JamieT Posted February 1, 2005 Posted February 1, 2005 I am trying to set up FX.php and just can't seem to get connected to FileMaker. I have tried using 2 different web servers and two different versions of FileMaker (FMP7 Server Advanced and FMP6 Unlimited) with all combinations thereof. I've tried both the IP address and the URL name in the server_data.php file. I've checked the FileMaker version set in FX.php. I've even tried hardcoding the file references into all the FX.php files to bypass the server root function. On one of my servers I can get it down to a "Call to undefined function: xml_parser_create()" error. On the other I get "failed to open stream: No such file or directory". I suspect that the root web directory the server returns may be innacurate but the solution I mentioned above didn't work. Both my web servers are Apache and managed by someone else so my next step is to install php on one of my servers and try that instead. Any suggestions or solutions to the xml parsing problem? Thanks.
Garry Claridge Posted February 2, 2005 Posted February 2, 2005 Can you get XML returned from direct URL requests of the database? Garry
mlindal Posted February 2, 2005 Posted February 2, 2005 excuse me but did you say you haven't installed php yet? can you get info.php to work? that is the first step. The book and video series FX.php in 8 hours is excellent fmwebschool.com
JamieT Posted February 2, 2005 Author Posted February 2, 2005 I can access the database through IWP but I get nothing back when I try to connect using FX.php. I meant I will install php on a server I am an admin for so that I could test it with full access to the .ini file. The two servers I've installed FX.php on both had php installed and configured but I'm not a server admin for those so I have no control over issues like xml_parser being disabled.
Garry Claridge Posted February 3, 2005 Posted February 3, 2005 Have you changed this line in the FX.php file: var $dataServerType = 'FMPro5/6'; Garry
mlindal Posted February 3, 2005 Posted February 3, 2005 Good point Gary, I banged my head for a day trying to get FX.php to work, only to realize that when I updated it, it rewrote over that line of code (silly me). Let's summarize: 1. Make sure php is up and running (version 4.09 or higher) 2. Apache? or IIS? 3. follow the instruction to test the PHP set-up (ie create a file info.php) 4. in FX.php make sure the var $dataServerType = 'FMpro5/6' or 'FMPro7' depending on your filemaker version. 5. update your server_data.php to reflect your ip address (for testing use localhost, and port 591) 6. Go to fmwebschool and buy the book FXPHP in 8 hours - it is money well spent.
Recommended Posts
This topic is 7303 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