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

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

Recommended Posts

  • Newbies
Posted

Hi,

Im a complete beginner with FileMaker server. I have been working with FileMaker pro for the last 2 months. Thats my experience level. I felt should say that first. 

Im trying to get my FileMaker database which I have created to go onto my own website (www.mywebsite.com). But I'm completely stuck. I have gone through the manuals writing some PHP onto my website but I'm pretty sure I'm missing a step or three!


So I have uploaded the database onto my FileMaker server from FileMaker pro. What are the next steps after that? 


Any help would be gladly appreciated. 

 

Posted

The PHP code that is loaded on your website should make a connection to the files hosted on your FMS machine.

You don't put the FM file itself on the web server.

  • Newbies
Posted

The PHP code that is loaded on your website should make a connection to the files hosted on your FMS machine.

You don't put the FM file itself on the web server.

What PHP code  am I meant to fill in?

I must have been filling in the wrong PHP code before.

Posted

I thought you had already written some PHP code...  so I"m a little lost know.

 

What have you developed so far for your website for people to connect to and use FM data?

  • Newbies
Posted

Sorry. Thanks for replying. 

I did some php work but I wasnt able to connect the database to the website with the PHP code I used. I figured I was doing the wrong commands. 

This is an example of what I was trying; 

$connection =& new FileMaker('My Database', 'myserver');
$connection->setProperty('username', 'php');
$connection->setProperty('password', 'mypassword');

$cmd =& $connection->newFindCommand('My Layout');
$records = $result->getRecords();
foreach ($records as $record) { echo 'First Name: ' . $record->getField('First Name') . '<br>';
echo 'Last Name: ' . $record->getField('Last Name') . '<br>';
echo 'Email Address: ' . $record->getField('Email Address') . '<br>';
echo '<hr>';
}

 

 

We haven't made the connection to get the data online yet. So far I have created the data which I want to put online on my FileMaker Pro, but I don't know the exact PHP code to use. I have done some trials with some other PHP codes but still haven't been able to get anything to show. 

This topic is 3962 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.