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.

Logging PHP errors on windows

Featured Replies

Does anybody know how to get error logging with the Filemaker installed PHP to work?

I am having zero luck

Todd

Hi T -

Are you talking about PHP errors or FM errors?

Best,

j

  • Author

PHP Errors.

I got it working. You have to modify the php.ini file, to get it to output errors to a text file.

Glad to hear it.

For the record, you can add the following line to the top of you php file to output errors to the browser during development:

ini_set('display_errors', TRUE);

Best,

j

  • Author

No I wasn't making myself clear.

What I wanted was a way to see log the errors, not just display them. I assumed (incorrectly it turns out) that php errors would appear in the event viewer.

I discovered that the relevant php.ini directive is set by default to NOT log any errors either in the event viewer or a text file.

According to the research I did, it is actually a bit of apin to log php errors to the event viewer as it involves loosening the permissions of the default internet user.

So I opted for a text file. Once I set the php.ini directive "log_errors" to log errors to the text file, I was able to see the errors accumulate in the log.

Todd

Just curious: are you running IIS or Apache?

Well, I don't know squat about IIS but on Apache, PHP errors are logged to the Apache error log by default (but you prolly already knew that). On my machine:

/private/var/log/apache2/error_log

You prolly also already saw this in the docs, but just in case:

Using the web server access and error logs

1 IIS (Windows);) The Microsoft IIS web server generates an access log file and displays errors in the

Windows Event Viewer instead of writing them to a log file. The access log file, which is in the W3C

Extended Log File Format by default, is a record of all incoming HTTP requests to the web server. You

can also use the W3C Common Logfile Format for the access log. For more information, see the

documentation for the Microsoft IIS web server.

Using the Web Publishing Engine application log

By default, the Web Publishing Engine generates an application log file that contains a record of Web

Publishing Engine error, script, and user log information. The log file is named pe_application_log.txt, and

is located on the Web Publishing Engine component of the FileMaker Server deployment:

1 IIS (Windows): :Program FilesFileMakerFileMaker ServerLogspe_application_log.txt

Create an account or sign in to comment

Important Information

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

Account

Navigation

Search

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.