Jump to content

[SOLVED] php include dummy help


Crew-Portal

Recommended Posts

okay. I made this thing that connects to a database on my server and I am allowing someone else to use my script. the script just displays all users signed up. anyways I am trying to do something like

 

<?php include ('http://www.cmxva.com/index.php?page=members'); ?>

 

but it wont let me. apparantly I need some type of ini_set code on my site and thiers to allow it to go through, but sadly im a n00bie and I dont know what the ini_set setting is. can someone help me. Just again it allowing another website through via ini_set using the include setting (Just posted it twice cause im bad at yping and most people dont get what im saying)!!

Link to comment
Share on other sites

@darkfreaks Are you sure you did that right? That does nothing.

 

@N350CA You need to set the ini directive allow_url_fopen to on or "1", to allow PHP to include remote urls. Note that if safe_mode is on, it will be impossible either way.

 

<?php

       ini_set('allow_url_fopen', '1');
       include ('http://www.cmxva.com/index.php?page=members');

?>

Link to comment
Share on other sites

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.