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
https://forums.phpfreaks.com/topic/71286-solved-php-include-dummy-help/
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');

?>

Archived

This topic is now archived and is closed to further replies.

×
×
  • 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.