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 3311652
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 17, 20262026-05-17T21:54:07+00:00 2026-05-17T21:54:07+00:00

I have the following test line in my PHP which works fine as a

  • 0

I have the following test line in my PHP which works fine as a way of posting to Twitter from within my PHP code.

$oauth->post('statuses/update', array('status' => "hello world"));

However I want to post the contents of a variable as opposed to Hello World

If I change the code as follows, then all that gets posted is $message

$oauth->post('statuses/update', array('status' => '$message'));

I also tried without the ‘ but then nothing got posted, ie

$oauth->post('statuses/update', array('status' => $message));

How can I correctly parse the contents of $message?

$message is created as follows

$message = "http://www.smartphonesoft.com/index.php?option=com_mtree&task=viewlink&link_id=" .$link_id . " " ."Windows Phone Software" . " " .$link_name . " " . $metadesc;

I added an echo $message which showed me what I expected, namely:

http://www.smartphonesoft.com/index.php?option=com_mtree&task=viewlink&link_id=33183073
Windows Phone Software Pocket Player
Pocket Player is a rockin’ way to
enjoy music and video on your Windows
Mobile device. Through multiple media
and playlist formats, Internet
connectivity, plugin extensions, and
an intuitive interface, Pocket Player
means less taps, more music!

Thanks,

Greg

  • 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-17T21:54:08+00:00Added an answer on May 17, 2026 at 9:54 pm

    From the Twitter API doc for status/update:

    • status The text of your status update, up to 140 characters. URL encode as necessary.

    So I’d say you have to shorten the $message, because yours has 369 characters.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have the following example code <?php `echo test > /tmp/test.txt`; $f=fopen(/tmp/test.txt,w+); `rm /tmp/test.txt`;
I have the following quite simple test PHP code that extracts the data and
I have the following line in my IsapiRewrite.ini file: RewriteRule ^/test-url.asp$ http://www.google.co.uk/ [R=301,L] But
I'm working on a login class in PHP. I have the following line inside
I have the following code. I am trying to prevent my page from resubmitting
I'm working with PHP 5 here. I have the following code: $data = json_decode($_POST['data']);
Imagine I have the following situation: File1.php <?php include(Function.php); log(test); ?> Function.php <?php function
I have the following code in a PHP file called via Ajax (note -
I have the following test script: <?php $myFile = testFile.txt; $fh = fopen($myFile, 'w')
I have the following Code. <?php $user['username'] = 'Bastian'; $template = 'Hello {user:username}'; $template

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.