Netgate Discussion Forum
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Search
    • Register
    • Login

    Customize Captive Portal Page using php

    Scheduled Pinned Locked Moved Captive Portal
    2 Posts 2 Posters 1.0k Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • B
      buntha
      last edited by

      Dear all;
      I have problem with portal page using php
      how to Customize Captive Portal Page using php
      Fatal error: Call to undefined function mysql_connect() in /var/etc/captiveportal_nbc.html on line 6

      1 Reply Last reply Reply Quote 0
      • GertjanG
        Gertjan
        last edited by

        @buntha:

        ….
        how to Customize Captive Portal Page using php
        Fatal error: Call to undefined function mysql_connect() in /var/etc/captiveportal_nbc.html on line 6

        Customize the PHP server first :)

        pfSense does NOT contain a PHP setup with mysql functions activated - because his PHP doesn't need mysql (neither mssql) functions.

        So, the function mysql_connect() is flagged as absent.

        Use the search function on this forum, use intelligent keywords like "mysql_connect" and you will find messages on this forum that explain you how to activate the mysql functions.

        No "help me" PM's please. Use the forum, the community will thank you.
        Edit : and where are the logs ??

        1 Reply Last reply Reply Quote 0
        • First post
          Last post
        Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.