Jump to content
View in the app

A better way to browse. Learn more.

FMForums.com

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

PHP 5 connection problem

Featured Replies

  • Newbies

Hi All,

I previously used php 5.2.4 for all the php and filemaker interaction.

But when i run the same code in php 5.3.5 server i got lots of errors.

My code is -->

require_once('FileMaker.php');

$hostname = "localhost";

$username = "user";

$password = "pass";

//DATABASE

$database = "test";

$obj = new FileMaker($database, $hostname, $username, $password);

if(FileMaker::isError($obj)){

echo 'Error1:'.$obj->getErrorString();

}

//For adding a new record and setfield

$newRecord = $obj->createRecord('web_tag');//here downloadData is the Layout Name

if(FileMaker::isError($newRecord)){

echo 'Error2:'.$newRecord->getErrorString();

exit;

}

else{

$newRecord->setField('fieldname','xxxx');

$newResult = $newRecord->commit();

}

i got some errors like below -

Deprecated: Assigning the return value of new by reference is deprecated in D:ProjectsPhpProjectsFilemakerTestFileMakerImplementationFileMakerImpl.php . ------------>(20 -25 depprecated error like this)

Strict Standards: Non-static method FileMaker::isError() should not be called statically in D:ProjectsPhpProjectsFilemakerTestservice.php on line 22

Strict Standards: Non-static method PEAR::getStaticProperty() should not be called statically, assuming $this from incompatible context in C:xamppphpPEARPEAR.php on line 871

Strict Standards: Non-static method FileMaker::isError() should not be called statically, assuming $this from incompatible context in D:ProjectsPhpProjectsFilemakerTestFileMakerImplementationFileMakerImpl.php on line 204

Strict Standards: Non-static method FileMaker::isError() should not be called statically, assuming $this from incompatible context in D:ProjectsPhpProjectsFilemakerTestFileMakerImplementationFileMakerImpl.php on line 163

Strict Standards: Non-static method FileMaker::isError() should not be called statically in D:ProjectsPhpProjectsFilemakerTestservice.php on line 30

Error2:Unknown error

When i hide all the strict and deprecated notice errors i got unknown error like below

Error2:Unknown error

Can anybody help me out of this.

Thanks in advance.

Looks like PHP API isn't optimised for 5.3.5 - which isn;t too surprising, given that it's basically unchanged from when it was released well before 5.3.5 was.

It's calling functions that are not properly supported anymore, having been replaced by other functions and variations.

Personally, I'd roll back to 5.2.4 - fixing the issues in the API code would be far more effort than a roll-back

check the the php configuration, every extension id enabled. such as curl, soap like that.

These problem occur because of php 5.3.2 no more support many calling functions.

  • Author
  • Newbies

Thanks webko n fmworm.

fmworm u r correct now i fixed the problem by enabling curl in php.ini file

Create an account or sign in to comment

Important Information

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

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.