Title: AMFPHP and wordpress global variables
Last modified: August 19, 2016

---

# AMFPHP and wordpress global variables

 *  [greenboy](https://wordpress.org/support/users/greenboy/)
 * (@greenboy)
 * [16 years, 2 months ago](https://wordpress.org/support/topic/amfphp-and-wordpress-global-variables/)
 * Hi,
 * Im using AMFPHP with as3 to get some user variables from wordpress like $user_login,
   but I always get a null value.
 * this is the php code im using:
 *     ```
       <?php
       class Users{
       public function userData() {
       return $user_login;
       }
       }
       ?>
       ```
   
 * I put a include “../wp-blog-header.php”; under AMFPHP globals.php but nothing
   happens
 * what can i do?
 * i hope you can help me.
 * thanks!º

Viewing 1 replies (of 1 total)

 *  Thread Starter [greenboy](https://wordpress.org/support/users/greenboy/)
 * (@greenboy)
 * [16 years, 2 months ago](https://wordpress.org/support/topic/amfphp-and-wordpress-global-variables/#post-1366148)
 * Im doing some tests and it´s working with
 * get_post(); and get_bloginfo();
 * but not with get_currentuserinfo();

Viewing 1 replies (of 1 total)

The topic ‘AMFPHP and wordpress global variables’ is closed to new replies.

## Tags

 * [amfphp](https://wordpress.org/support/topic-tag/amfphp/)
 * [as3](https://wordpress.org/support/topic-tag/as3/)
 * [flash](https://wordpress.org/support/topic-tag/flash/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 1 reply
 * 1 participant
 * Last reply from: [greenboy](https://wordpress.org/support/users/greenboy/)
 * Last activity: [16 years, 2 months ago](https://wordpress.org/support/topic/amfphp-and-wordpress-global-variables/#post-1366148)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
