Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6711477
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T08:08:41+00:00 2026-05-26T08:08:41+00:00

I am getting an warning messsage like this Warning: file_get_contents() [function.file-get-contents]: stream does not

  • 0

I am getting an warning messsage like this

Warning: file_get_contents() [function.file-get-contents]: stream does not support seeking

this is the code

$f=file_get_contents('https://api.facebook.com/method/stream.publish?message='.$facebook_message1[0].'%20'.$facebook_message1[1].'%20'.$facebook_message1[2].'%20'.$facebook_message1[3].'%20'.$facebook_message1[4].'%20'.$facebook_message1[5].'%20'.$facebook_message1[6].'%20'.$facebook_message1[7].'%20'.$facebook_message1[8].'%20'.$facebook_message1[9].'%20'.$facebook_message1[10].'%20'.$facebook_message1[11].'%20'.$facebook_message1[12].'%20'.$facebook_message1[13].'%20'.$facebook_message1[14].'%20'.$facebook_message1[15].'%20'.$facebook_message1[16].'%20'.$facebook_message1[17].'%20'.$facebook_message1[18].'%20'.$facebook_message1[19].'%20'.$facebook_message1[20].'&attachment={"name":"'.$url.'","href":"'.$url.'","caption":"","description":"","media":[{"type":"image","src":"'.$facebook_image.'","href":"'.$cat.'"}]}&uid='.$user_id.'&access_token='.$access_token.'', NULL, NULL, 246);

$fID = substr_replace($f,"",-27);
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-26T08:08:41+00:00Added an answer on May 26, 2026 at 8:08 am

    Your immediate problem is that you are using the fourth parameter of file_get_contents. You should simply omit that and cut off the relevant part of $f with substr later, like this:

    $f = substr($f, 246);
    

    However, there are many other issues:

    1. The handling of $facebook_message is atrocious. Save your sanity and use implode('%20', $facebook_message) instead of the manual string concatenation.
    2. It’s a really bad idea to use the magic numbers 246 and -27 in your code. How did you produce these values? Obviously they refer to a part of the result string delimited by something, so document that by writing code that finds the delimiters. Your current code will break the moment facebook does any small change to their return value format, even if that change is purely technical and makes no difference from a semantic point of view.
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Warning: mkdir() [function.mkdir]: No such file or directory in I keep getting this annoying
I keep getting 'warning: control reaches end of non-void function' with this code: -
I am getting Warning: mysql_fetch_assoc(): supplied argument is not a valid MySQL result resource
I am getting this warning: Use of uninitialized value in eval \string\ at myscript.pl
I am getting this warning from FxCop: 'RestartForm' contains field 'RestartForm.done' that is of
I'm getting a warning: Return makes pointer from integer without a cast for this
I keep getting this as a warning I want to avoid getting this warning
From time-to-time I get this when a breakpoint is triggered. It looks like stack
I integrated facebook api in project. I am getting this warning message in its
Getting error message Warning: mail() [function.mail]: Failed to connect to mailserver at localhost port

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.