The Big Spring Sale! Up to 50% off!

Adding PHP to header

fsbisinsserv
12 Posts
fsbisinsserv posted this 4 weeks ago
Ask a Question

HI I need to add <?php include 'verify_membership.php';?> to my header, how do I do this?

HI I need to add &lt;?php include &#39;verify_membership.php&#39;;?&gt; to my header, how do I do this?
Vote to pay developers attention to this features or issue.
10 Replies
Order By: Standard | Newest
Support Team
Support Team posted this 4 weeks ago

Hello Duncan,

Thanks for reaching out to us

Add the PHP element to your header and paste the code

109yrt20gw.png

...................................................
Sincerely,
Ahmad.
Nicepage Support Team

Please subscribe to our YouTube channel: http://youtube.com/nicepage?sub_confirmation=1
Follow us on Facebook: http://facebook.com/nicepageapp

Hello Duncan, Thanks for reaching out to us Add the PHP element to your header and paste the code !109yrt20gw.png! ................................................... Sincerely, Ahmad. Nicepage Support Team Please subscribe to our YouTube channel: http://youtube.com/nicepage?sub_confirmation=1 Follow us on Facebook: http://facebook.com/nicepageapp
fsbisinsserv
12 Posts
fsbisinsserv posted this 4 weeks ago

Nope I just get an error doing that (see attached) I need to add this to the head <?php include 'verify_membership.php';?>

Nope I just get an error doing that (see attached) I need to add this to the head &lt;?php include &#39;verify_membership.php&#39;;?&gt;
Support Team
Support Team posted this 4 weeks ago

Thanks for the reply Duncan,

What exactly you are trying to achieve? what is in the file verify_membership.php?

Please be informed that the code can be executed only in WP and Joomla CMS.
...................................................
Sincerely,
Ahmad.
Nicepage Support Team

Please subscribe to our YouTube channel: http://youtube.com/nicepage?sub_confirmation=1
Follow us on Facebook: http://facebook.com/nicepageapp

Thanks for the reply Duncan, What exactly you are trying to achieve? what is in the file verify_membership.php? Please be informed that the code can be executed only in WP and Joomla CMS. ................................................... Sincerely, Ahmad. Nicepage Support Team Please subscribe to our YouTube channel: http://youtube.com/nicepage?sub_confirmation=1 Follow us on Facebook: http://facebook.com/nicepageapp
fsbisinsserv
12 Posts
fsbisinsserv posted this 4 weeks ago

It's a php script which check for membership validation with an external server via API.

Do I just add it to functions or can I add php to the with nice page?

It's a php script which check for membership validation with an external server via API. Do I just add it to functions or can I add php to the with nice page?
fsbisinsserv
12 Posts
fsbisinsserv posted this 4 weeks ago

Im in a self hosted Wordpress

Im in a self hosted Wordpress
fsbisinsserv
12 Posts
fsbisinsserv posted this 4 weeks ago

I just want to put this: "<?php include 'verify_membership.php';?>" into < h e a d>

I just want to put this: "&lt;?php include &#39;verify_membership.php&#39;;?&gt;" into &lt; h e a d&gt;

Last edited 4 weeks ago by fsbisinsserv

fsbisinsserv
12 Posts
fsbisinsserv posted this 4 weeks ago

/hello?

/hello?
Support Team
Support Team posted this 4 weeks ago

Hello Duncan,

This is the only way to insert the PHP code through the Nicepage editor.
try the following code below to check if the code is working and attach the screenshot here

<?php
    echo "Sample PHP";
?>

...................................................
Sincerely,
Ahmad.
Nicepage Support Team

Please subscribe to our YouTube channel: http://youtube.com/nicepage?sub_confirmation=1
Follow us on Facebook: http://facebook.com/nicepageapp

Hello Duncan, This is the only way to insert the PHP code through the Nicepage editor. try the following code below to check if the code is working and attach the screenshot here <?php echo "Sample PHP"; ?> ................................................... Sincerely, Ahmad. Nicepage Support Team Please subscribe to our YouTube channel: http://youtube.com/nicepage?sub_confirmation=1 Follow us on Facebook: http://facebook.com/nicepageapp
fsbisinsserv
12 Posts
fsbisinsserv posted this 4 weeks ago

So that returns the echo, so why can;t it pick up the script? Is there no way I can manually add this to < h e a d> I find it hard to beleive that Im the first person to want to run a php script hosted on my own server? I have used it with several other CMS and had no issue?

So that returns the echo, so why can;t it pick up the script? Is there no way I can manually add this to &lt; h e a d&gt; I find it hard to beleive that Im the first person to want to run a php script hosted on my own server? I have used it with several other CMS and had no issue?
fsbisinsserv
12 Posts
fsbisinsserv posted this 4 weeks ago

Dont worry I used a third party plug in to inject it into the head, thanks for looking.

Dont worry I used a third party plug in to inject it into the head, thanks for looking.
You must log in or register to leave comments