Jump to content
Claris Engage 2025 - March 25-26 Austin Texas ×

This topic is 5383 days old. Please don't post here. Open a new topic instead.

Recommended Posts

Posted

I'm using the FMStudio API for PHP and have posted this in that forum (not on this site), too.

I have downloaded my hosted database, cloned it, sorted records in the original, imported them all into the clone, renamed the clone to match the original, then uploaded the file and opened it. My PHP search page cannot access records in the cloned file. I get 401 errors.

Is this normal? What is being changed when the file is cloned? I did find numerous differences in the file header of the clone and edited those to match the original, but that did no good, as far as I can tell. Same errors.

I know that my host does something with the file's permissions before it is first opened. They claim this has nothing to do with what's going on now... I'm stumped.

Any input appreciated. Thanks.

JAY

Posted

I'd check that the database account that the API is using exists in the cloned file, and that the security privilege that is assigned to it has the FMPHP (Access via PHP) extended privilege

Posted

Hmm... well the 401 message implies a permission denied type of error, which suggests a problem with the database username/password.

Sorry I can't be much more help than that though

Posted

Thanks for your interest, Tony. I have been able to add a sort command using the FMStudio API that will accomplish what I need. This could still come back to bite me later on, but for now everything is working as needed.

Thanks again - JAY

Posted

No problem. All I can suggest is that you double-check the username password that you're sending with the API. I believe it may be case sensitive

This topic is 5383 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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.