Jump to content

dangmoo

Members
  • Posts

    3
  • Joined

  • Last visited

dangmoo's Achievements

Newbie

Newbie (1/14)

0

Reputation

  1. PHP imap_open function is not working on my account dangmoo.heliohost.org/ which is on Johnny server. I'm getting 500 Internal Server Error. Imap function appears to be enabled on my account, I tried connecting to Gmail and Outlook with same error, using a bare minimal script: <?php $hostname = '{imap.gmail.com:993/imap/ssl/novalidate-cert}INBOX'; $username = 'user@gmail.com'; $password = 'password'; /* try to connect */ $inbox = imap_open($hostname,$username,$password) or die('Cannot connect to Gmail: ' . imap_last_error()); ?> Error log: [10-Dec-2013 10:43:20 America/Los_Angeles] PHP Warning: imap_open() [<a href='function.imap-open'>function.imap-open</a>]: Couldn't open stream {imap.gmail.com:993/imap/ssl/novalidate-cert}INBOX in /home/dangmoo/public_html/test22.php on line 8 Please advise
  2. I'm new to Ruby, and just installed the 'net-ssh' gem to simply interact with SSH servers, a function which I need. The gem is properly located in its folder. I was not sure how to 'include' the gem in my RUBY script as instructed using the line: $:.push("/home/dangmoo/ruby/gems"), so I simply pasted it to the beginning. However, when I try to run a script using this gem, things don't work. This is how the script looks like: Although the script should simply return the output of the command 'ls' from my Linux SSH - it only output the HTML line 'This is a test' while the SSH part is totally ignored (without an error message). Do you see anything wrong here? Can you help me fix this? Thanks!
×
×
  • Create New...