Jump to content

Recommended Posts

I am using include "http://www.com" and I know that there is another way to do so by fget or other functions... do you know what is the best way also to save memory?

 

Thanks

 

 

You shouldn't beable to use include or require on a file that has an invalid local pointer path as the one you described did.

Also fget, fopen will get you  the http response text from that file being called (if it outside your server as you are suggesting)

HI! IN PHP 4 I USED

 

INCLUDE("HTTP://WWW.EXAMPLE.COM?POSITION=0&&WEBSITE=WWW.OK.COM");

 

CAN U TELL ME A DIFFERENT WAY IN PHP 5....(NOT JAVASCRIPT)

 

ALL I WANT IS TO PREVENT,WHEN SOMEBODY SEE "VIEW SOURCE" NOT TO BE ABLE TO SEE MY PATH!!!

 

CAN  HELP SOMEBODY IN PHP FREAKS??

It would be best to use [url=http://php.net/file_get_contents]file_get_contents

.

 

From the manual:

file_get_contents() is the preferred way to read the contents of a file into a string. It will use memory mapping techniques if supported by your OS to enhance performance.

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.