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

  • Home
  • SEARCH
  • 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 8849075
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T12:33:23+00:00 2026-06-14T12:33:23+00:00

okay i solved this by uploading the lib file inside a folder and addressing

  • 0

okay i solved this by uploading the lib file inside a folder and addressing it as ‘//’

damn, i am so happy!!!!!!!!!!!!!!!!!! ๐Ÿ˜€ ๐Ÿ˜€ ๐Ÿ˜€ ๐Ÿ˜€ ๐Ÿ˜€

i uploaded this code file named post.php and the file it needs tmhOAuth to the host(eu5.org) under root directory and set permissions to 755 on both:
i run the script from my site .eu5.org/post.php but get the below error

<?php

$tweet_text = 'Hello Twitter';
print "Posting...\n";
$result = post_tweet($tweet_text);
print "Response code: " . $result . "\n";

function post_tweet($tweet_text) {

require_once('ftp://<username>.eu5.org@eu5.org/tmhOAuth.php');
  $connection = new tmhOAuth(array(
    'consumer_key' => '******',
    'consumer_secret' => '******',
    'user_token' => '******',
    'user_secret' => '******',
  )); 

  $connection->request('POST', 
    $connection->url('1/statuses/update'), 
    array('status' => $tweet_text));

  return $connection->response['code'];
}
?>

Warning: require_once() [function.require-once]: ftp:// wrapper is
disabled in the server configuration by allow_url_include=0 in
.php on line 8

Warning: require_once(.php) [function.require-once]: failed
to open stream: no suitable wrapper could be found in .php on
line 8

Fatal error: require_once() [function.require]: Failed opening
required ‘.php’
(include_path=’.:/usr/lib/php:/usr/local/lib/php’) in on
line 8

note: allow_url_open is off.
how do i import the class? using curl etc.?
thanks

  • 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-06-14T12:33:25+00:00Added an answer on June 14, 2026 at 12:33 pm

    When you want to include (or require, it’s only a matter of error reporting) a file, it is strictly useless (and nonesense) to use urls.
    your library must be on YOUR server, let’s say in the directory `library/’.

    Your code would be that one :

    include('library/yourfile.php');
    //or require('library/yourfile.php'); if you prefere fatal errors over warnings
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I hope it is okay if I post solved problems and ask for a
Okay so I thought I had solved this problem. But the solution still evades
Okay this question is very simple: I have a facebook page, and a website.
Okay, I feel a bit foolish for having to ask this but I guess
Okay, so I have my post.php page. If you are not logged in, you'll
Okay, this is probably a very basic question; but, I'm just getting back in
Any reason why the following code won't work? $dbconnection = db::getInstance(); //this is a
Okay, I am using the following code to navigate to a page in my
Okay, so I'm fairly new to CakePHP. This is the setup: I've got a
Okay, I know this is going to sound like homework; but here goes any

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.