Apparently you have issues pasting image urls as well :)
I would try to see what the errors are, there are a few ways you can do this, depending on how centOS is set up.


http://php.net/manual/en/function.error-reporting.php
You can add the error handling enabler to your script, this works most of the time. With certain errors, the script will not have run, therefore, the enabling of the error can not be run to report an error.

In those cases, you need to set the error enabling in .htaccess or php.ini, neither of which you want to leave on, once going to production state. I usually wrap them up in a way that only loads an .htaccess file for my IP, and a strict one for everyone else.

In .htaccess it may be something like this:
php_flag display_errors On
 - or -
php_flag display_errors 1

* I get different results depending on different php's if it is string or boolean.

Now, when you load your page, you will get the exact error as the page generated it. If you have full control over the server, it may also be just as simple to set the logging to a file, usually the error_log for Apache. Then you can `tail -f error_log` in your shell. This is generally default behavior, check phpInfo() for the path.

I have a feeling you are missing curl. It may be a simpler test to just make one call to check for it:
if (function_exists('curl')) {
     echo 'good';
} else {
     echo 'bad';
}

Maybe php was installed with curl, but the OS itself is missing curl? Can you `curl --head http://google.com` in a shell on this machine?
--
Scott * If you contact me off list replace talklists@ with scott@ *

On Nov 27, 2009, at 7:50 PM, aztroboy wrote:

It seems that I can't send imgs, anyways, here are the screenshots:

http:// img16. imageshack . us /img16/7901/curl.png
http:// img38. imageshack. us/img38/4926/curl2.png


On 25 nov, 20:55, Michael Steuer <mste...@gmail.com> wrote:
Create a page that prints out phpinfo(). See if the curl module is
active in your php

On Nov 25, 2009, at 5:19 PM, aztroboy <jbasur...@gmail.com> wrote:

Thank you for your reply,

[r...@twirelezz ~]# php -version
PHP 5.1.6 (cli) (built: Apr  7 2009 08:00:04)
Copyright (c) 1997-2006 The PHP Group
Zend Engine v2.1.0, Copyright (c) 1998-2006 Zend Technologies

Not bad, now I updated PHP to its lastest version:

[r...@twirelezz ~]# php -v
PHP 5.3.1 (cli) (built: Nov 20 2009 17:51:14)
Copyright (c) 1997-2009 The PHP Group
Zend Engine v2.3.0, Copyright (c) 1998-2009 Zend Technologies

However, I'm getting the same response: twitter won't give me the
auth_token :( (or at least, it's giving me a null response)

On 25 nov, 18:36, jmathai <jmat...@gmail.com> wrote:
Check the versions of software you're using. CentOS likes to make you
jump through hoops in order to get newer software.

Namely, check your PHP version.

On Nov 25, 9:08 am, aztroboy <jbasur...@gmail.com> wrote:

Hello there! I'm using a PHP Twitter OAuth library
(twitter.abrah.am),
and it works perfect on Windows: the php script looks asks twitter
for
an auth token. However, as soon as I put the same script on CentOS
(with its default httpd service), it won't give any auth tokens at
all.

The script uses cURL to get the token from twitter. I've used cURL
(curlwww.google.com) and it works fine in console.

What could be going wrong here? Is there something I should add of
change first in order to receive the tokens? By the way, I got the
CentOS default FW set allowing traffic on port 80 and SSH only.

I would like to ask for a hint about what should I do, I'm kinda
newbie on CentOS.

thank you in advance

Reply via email to