Skip to content
View in the app

A better way to browse. Learn more.

Web Designer Forum

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 page, cgi include

Featured Replies

Hi,

I'm trying to pull a cgi script into my php page and its not working.

The code I'm using is

<? virtual("http:www.paulwatt.info/mail/index.cgi") ?>

and the error message i'm getting on the page is Fatal error: Call to undefined function: virtual() ,

any ideas? the page is at here

 

Many thanks in advance

The undefined function probably indicates that the Apache-specific functions aren't available. Just to check, you deploying on Apache? In which case see if php_info() gives you any more indication of missing modules. You might also find some useful information in the Apache Functions section of the docs.

  • Author
The undefined function probably indicates that the Apache-specific functions aren't available. Just to check, you deploying on Apache? In which case see if php_info() gives you any more indication of missing modules. You might also find some useful information in the Apache Functions section of the docs.

 

Ah right, just checked, the module isnt available. Are there any alternatives to using (virtual)?

There might be some suggestions on the docs page I linked to. Or do a Google and see what comes up. Otherwise the cURL family might do it for you, if you're happy to just make a request to the resource as though it were another site visitor doing it. If these also aren't available, a request by raw sockets will do it, but that's messy and quite complicated.

Create an account or sign in to comment

Account

Navigation

Search

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.