Title: PhP web service
Last modified: August 21, 2016

---

# PhP web service

 *  Resolved [SV_ChrisM](https://wordpress.org/support/users/sv_chrism/)
 * (@sv_chrism)
 * [12 years, 11 months ago](https://wordpress.org/support/topic/php-web-service/)
 * I’m working with a Woocommerce install and I want to have a remote .NET server
   create coupons on our web store on command.
 * To this end, I’m trying to set up a PhP web service that will create a coupon
   programmatically. I’ve got the basic framework set up, but I’m not sure how to
   call Woocommerce from a listener script. Can I just make woocommerce calls? Or
   do I have to import wordpress somehow?
 * Sorry if this is a noob question, I haven’t really done any php programming directly.

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

 *  [Lawsonry](https://wordpress.org/support/users/lawsonry/)
 * (@lawsonry)
 * [12 years, 11 months ago](https://wordpress.org/support/topic/php-web-service/#post-3865014)
 * The WordPress framework is independent of WooCommerce. The tutorials you’re looking
   for are called something like “call woocommerce functions outside the loop” or
   outside of WordPress.
 * Side note: all three letters in PHP are capitalized because it is a (recursive)
   acronym. It stands for “PHP: Hypertext Preprocessor” (hence the recursiveness).
   PhP sounds like a fake doctorate someone got from studying pickle theory.
 *  Thread Starter [SV_ChrisM](https://wordpress.org/support/users/sv_chrism/)
 * (@sv_chrism)
 * [12 years, 11 months ago](https://wordpress.org/support/topic/php-web-service/#post-3865101)
 * Thanks for the tip, I’ve been able to get the script to run.

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

The topic ‘PhP web service’ is closed to new replies.

## Tags

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

 * In: [Hacks](https://wordpress.org/support/forum/plugins-and-hacks/hacks/)
 * 2 replies
 * 2 participants
 * Last reply from: [SV_ChrisM](https://wordpress.org/support/users/sv_chrism/)
 * Last activity: [12 years, 11 months ago](https://wordpress.org/support/topic/php-web-service/#post-3865101)
 * Status: resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
