Jump to content

Recommended Posts

Hello guys.

 

Thank you for your time. I am not a pro in PHP and am not looking to be yet. The whole thing fascinates me, but I only need help with a little bit of code :)

 

I have recently been using this code:

 

<?php
  if($page) include("$page.php");
  else include("advert.php");
?>

 

I am looking to be able to have one design (in my index.php), and put the above code in, so that people visiting my site can go to index.php?page=PAGENAME.

 

I am doing this so I can quickly and easily change the design.

 

This has been working fine until recently my webhost told me:

 

"We have disabled the remote inclusion functionality on the webcluster your Account is served by. This increases the account security much as this function is very often used to exploit insecure scripts and abuse them to send spam mails or put phishing sites into your account."

 

Do you know a way I could reshape this code to work with my account?

 

It is very much appreciated, and would be lost without you all.

 

 

Tom

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.