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, FX, and LinkNext

Featured Replies

Hello.

I am trying to switch from CDML to PHP. It's going SLOOOOOW!

Using this link: server ip/bookmarks/bookmarks.php?Category=Teacher+Resources

I get 81 links in my database. That's what is supposed to happen. But I do not want all 81 showing at the same time, so I am limiting the number that are displayed. I can't get the equivalent of [FMP-LinkNext] to work.

I copied the code from the FX documentation and adapted it to my database:

if (strlen($BookmarksData['linkNext']) < 1) {

echo "<span class="medgraytext">Next</span>n";

} else {

echo '<a href="'.$BookmarksData['linkNext']."" class="bbody">Next</a>n";

}

My problem: The link that is returned looks like this:

server ip/php/php.exe?skip=30&Category=Teacher+Resources

I'm guessing it should look like this:

server ip/bookmarks/bookmarks.php?skip30&Category=Teacher+Resources

although I'm not even sure about that because I'm not sure that the skip is working the way it's supposed to.

Any suggestions?

Andrew

It sounds like the installation of PHP is a bit off, or perhaps you're calling your PHP script in an odd manner. The FX class generates 'linkNext' by taking the name of the current script and appending the query string to the current PHP script name, and adjusting the "skip" parameter in the query string. Since your 'linkNext' contains the path to the PHP.EXE, I think your web server might be forwarding requests to the PHP engine incorrectly.

What web server and version of it are you using? What version of PHP are you using? Which platform are you using it on? Did you install PHP as a plug-in or as a module on the web server?

How are you accessing the web page? Are you opening a local browser window and typing in a url like "http://localhost/bookmarks/bookmarks.php?category=teacher+resources"? Or are you calling the PHP.EXE program in some other manner (perhaps from the command line)?

  • Author

Intersting. Thanks for the link. Looks like exactly what I need.

Andrew

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.