Title: Use WP Data in PHP script
Last modified: August 18, 2016

---

# Use WP Data in PHP script

 *  Resolved [wpseek](https://wordpress.org/support/users/alphawolf/)
 * (@alphawolf)
 * [19 years, 2 months ago](https://wordpress.org/support/topic/use-wp-data-in-php-script/)
 * Hey guys,
 * how is it possible to use WP data (such as logged in username) in seperate PHP
   scripts? I set a link to a popup in an existing WP page, but I cant use a WP 
   page within that popup (or can I?), cos I’m delivering some variables to the 
   popup page.
    I need some informations from the currently logged in user, any 
   hints? What do I have to include to use getcurrentuserinfo() and such?
 * greetings

Viewing 3 replies - 1 through 3 (of 3 total)

 *  [drmike](https://wordpress.org/support/users/drmike/)
 * (@drmike)
 * [19 years, 2 months ago](https://wordpress.org/support/topic/use-wp-data-in-php-script/#post-541012)
 * If it’s just the username, why not pass it as part of the URL and capture it 
   on the other program with a GET?
 *  Thread Starter [wpseek](https://wordpress.org/support/users/alphawolf/)
 * (@alphawolf)
 * [19 years, 2 months ago](https://wordpress.org/support/topic/use-wp-data-in-php-script/#post-541044)
 * Hey drmike,
 * that would be a possibility, but I need(ed) kinda all the information. I used
   an own templated file within WP and opened it via popup, and it worked.. was 
   a bit more complicated and took longer, but it works.
 * greetings
 *  [MooseHead](https://wordpress.org/support/users/moosehead/)
 * (@moosehead)
 * [19 years, 2 months ago](https://wordpress.org/support/topic/use-wp-data-in-php-script/#post-541055)
 * Hiey Alphawolf,
    could you pleas show me how u did it? I have a similar problem
   since I’m trying to send a variable to a .swf file (instead of a popup page).
   More specifically I’m trying to assign the string called by `the_title();` within
   the loop to a variable (&myTitle) and make it displayable inside a swf file which
   contains a dynamic textfield. Here is my [post](http://wordpress.org/support/topic/111234?replies=1)

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Use WP Data in PHP script’ is closed to new replies.

## Tags

 * [php](https://wordpress.org/support/topic-tag/php/)
 * [script](https://wordpress.org/support/topic-tag/script/)

 * 3 replies
 * 3 participants
 * Last reply from: [MooseHead](https://wordpress.org/support/users/moosehead/)
 * Last activity: [19 years, 2 months ago](https://wordpress.org/support/topic/use-wp-data-in-php-script/#post-541055)
 * Status: resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
