Title: Executing webp-express wp cli command via php
Last modified: May 7, 2024

---

# Executing webp-express wp cli command via php

 *  [wpksasa](https://wordpress.org/support/users/wpksasa/)
 * (@wpksasa)
 * [2 years, 1 month ago](https://wordpress.org/support/topic/executing-webp-express-wp-cli-command-via-php/)
 * My hosting (OVH) only allows commands without spaces, and with less than 100 
   characters. So I can’t just write php wp-cli.phar webp-express convert etc… since
   it has spaces, and it’s longer than 100 charaters (see attached screenshot).
 * Can I work around the problem by using the webp-express command in a php file?
   So I will just put the path with the php file with the command in it (eg: mypath/
   cron/cron.php)
 * ![](https://i0.wp.com/i.ibb.co/0n2BF9k/ovh.png?ssl=1)

The topic ‘Executing webp-express wp cli command via php’ is closed to new replies.

 * ![](https://ps.w.org/webp-express/assets/icon.svg?rev=1918288)
 * [WebP Express](https://wordpress.org/plugins/webp-express/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/webp-express/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/webp-express/)
 * [Active Topics](https://wordpress.org/support/plugin/webp-express/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/webp-express/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/webp-express/reviews/)

## Tags

 * [cli](https://wordpress.org/support/topic-tag/cli/)
 * [command line](https://wordpress.org/support/topic-tag/command-line/)
 * [cron](https://wordpress.org/support/topic-tag/cron/)
 * [php](https://wordpress.org/support/topic-tag/php/)

 * 0 replies
 * 1 participant
 * Last reply from: [wpksasa](https://wordpress.org/support/users/wpksasa/)
 * Last activity: [2 years, 1 month ago](https://wordpress.org/support/topic/executing-webp-express-wp-cli-command-via-php/)
 * Status: not resolved