[FX.php List] PHP error help
Bob Patin
bob at patin.com
Mon Jun 30 09:43:24 MDT 2008
John,
Here's one way to test your server setup:
Create a query that doesn't have any parameters other than the
database info, like this:
$serverIP = '0.0.0.0';
$webCompanionPort = '80';
$dbname = 'mydb.fp7';
$pw = 'my_password';
$un = 'my_username';
$create =new FX($serverIP,$webCompanionPort);
$create->SetDBData($dbname,'mylayout');
$create->SetDBPassword($pw,$un);
$createResult=$create=>FMFindAll();
echo $createResult['foundCount'];
If you don't get any results at all (nothing is echoed) then your
database isn't being queried--which means that
your IP address, port, username, or password are wrong
your FM setup is not working
your layout name is wrong
your database name is wrong
I don't have a connection test page but if someone does have something
like that, I'd like to have a copy of it as well for future use with
offsite clients.
Thanks,
Bob Patin
Longterm Solutions
bob at longtermsolutions.com
615-333-6858
http://www.longtermsolutions.com
FileMaker 9 Certified Developer
Member of FileMaker Business Alliance and FileMaker TechNet
INSTANT MESSAGING:
AIM or iChat: longterm1954
--------------------------
Contact us for FileMaker hosting and programming for all versions of
FileMaker
PHP • Full email services • Free DNS hosting • Colocation • Consulting
On Jun 30, 2008, at 9:33 AM, CSInfo wrote:
> Bob, I saw that after I sent the first posting, thanks. I fixed and
> it and I still get the same message.
> By the way, I used FXForge for a template for the code.
>
> Anybody care to debug my code? If so send an email off the list. I
> could send the db, html form and php script.
>
> Does somebody have a simple php file (no includes) to test a
> connection ? I am guessing that is my problem since this deployment
> was full of problems.
>
> Thanks
> John Funk
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.iviking.org/pipermail/fx.php_list/attachments/20080630/172d36b8/attachment.html
More information about the FX.php_List
mailing list