Jump to content

calling url as a file?


Lefu

Recommended Posts

hi,

 

A)I used to call my files this way:

I don't use this anymore because (allow_url_include = off)  disabled by the hosting company.

 

B)So I have to use: 

$html =  implode("","http://localhost/opened/ace.php?codec=23");

echo $html;

Gives the php code like echo " hello world";

 

How can I get : hello world.

 

Thanks for your positive input.

Link to comment
Share on other sites

thank you,

 

I code in side the browser, put my code into firebird db, and now I want to retrieve that code and display the results on the browser.

 

I am hoping that you understand where i am,

 

the code i.e

function checkbox($val)

{//purpose of this function is to return the value of a checkbox

if ($val){

  return 1;

}else{

  return 0;

}

}

echo checkbox("yes");

would give 1, since this is in the db, I want to see 1 on my browser not  the actual code which produced 1.

 

at the moment

 

B) is giving the code not the results of it.

 

I can use curl functions and write things in the a php file then include that file but it would be violating many laws, like response time.

 

I believe there is a way of calling url as a file, I don't know the way.

 

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.