Wordpress PHP Exec Plugin
This plugin lets you execute dynamic PHP code in posts. It masks PHP code before balanceTags, and unmask them afterwards, so it should be safe to use PHP code that has literal HTML tags in it, for example: code which print out HTML.
Requirement
WordPress 1.5. Version 1.2 is not supported. You will also need PHP version 4.3.0 or later.
Do NOT use this plugin if you can’t trust people who make posts in your WordPress installation, it is a HUGE security hole. User level is now supported! By default the plugin only operates on level 9 user.
Installation
- Download the plugin: phpexec.txt
- Rename the plugin to phpexec.php and put it into your
wp-content/pluginsdirectory - Activate the plugin from WordPress administration menu
Usage
In posts, enclose any PHP code you want to execute with <phpcode> … </phpcode>. Only real PHP code allowed, no <?php … ?> blocks allowed. The block will then be replaced by the output of PHP code. In <phpcode> blocks, you will need to start any PHP command with <?php and end it with ?> as usual.
From the Wordpress admin menu, you can change minimum user level that is allowed to use the plugin. It is available from Options - PHPExec menu.
Example
<phpcode>
<?php
echo "Current date and time: ";
echo date("l dS of F Y h:i:s A");
?>
</phpcode>
Demonstration
Output of the above code:
Current date and time: Monday 29th of June 2009 07:49:15 AM
Credits
This plugin is inspired by RunPHP, another plugin which accomplishes the same thing but did not work for me. Thanks to iang for tricks to make embedded PHP code feels more like a real PHP code. Some code are borrowed from WordPress source code. Thanks to Beau Collins for the user level code.
Changelog
1.0:
- First public release
1.1:
- Non backward compatible change: now you need to enclose PHP code with <?php … ?> as you would do in real PHP script.
1.2:
- Added filters to handle excerpts.
1.3:
- Fixed a small error in evaled code, thanks to AJ for spotting this.
1.4:
- Added user level security feature.
1.6:
- Try to avoid using common variable names (thanks to David H. Brown)
1.7:
- Removing debugging comments should fix the problem with automatic tag insertion done by Wordpress.
kalo diapply komen bisa jadi gila
#1: gak lah, nanti komentator bisa obrak abrik data kita
Mendingan gak dipasang ah…
..
Bener-bener lagi demam Plug-in nih..
Kalo mau bisa ada <?php … ?> di dalam <phpcode> itu, data yang bakal di
exec()musti ditambahin “<?” dulu di depannya..tinggal ngubah
eval($php);
menjadi
eval(”<?”.$php);
aja..
#4: betul juga, cuma harusnya
eval("?>" . $php . ">?php ');. nanti gua update supaya kodenya bisa lebih rapih.eh iya, kebalik ya?
tapi kok itu
&gt?phphehee..sebenernya gak usah dibuka lagi juga gak apa2.. cukup tutup dulu di depannya aja.
aduh.. lupa titik koma.. maksudnya
>?phpWordPress Plugin: PHP Exec
This plugin lets you execute dynamic PHP code in posts. It masks PHP code before balanceTags, and unmask them afterwards, so it should be safe to use PHP code that has literal HTML tags in it, for example: code which print out HTML….
#7: emang repot banget ngequoting manual
[...] PHP code inside the WP! Yes! It works, and you can find the plugin here. This time and datestring has the following code: Current date [...]
[...] t the above plugin on some pages, you probably need to execute some PHP-code. This plugin, PHPexec, solves this. Just download the file, upload it, and embedd PHP-code as [...]
There is a bug in the code. I write this for the english users of the plugin, so they may correct this.
Line 55:
eval("?>". $php . "<php ");Should be:
eval("?>". $php . "<?php ");Otherwise the server may not properly parse the content.
#12: thanks for spotting the bug, it’s fixed in the latest release.
[...] eile etwas Neues berichten. Olf hat mich auf ein aktuelleres Plugin hingewiesen, dass sich PHP Exec nennt. Beide Plugins ermglichen es, PHP Skriptcode in Posts und Pages [...]
[...] Exec plugin. Plugin to the wall Well, recently, I installed the PHP Exec plugin, so I could actually run php code inside my posts… Proof [...]
Will this work in WordPress Pages as well?
#16: Yes, it should work in pages as well.
[...] e. There may of been an easier way to do it but this is what I did. I first installed the PHP Exec Plugin so I could run PHP code in my Pages. Then I installed Smart Arc [...]
[...] dilindungi juga karya turunan (derivasi) tetap dilindungi. Misal Priyadi yang membuat kode plugin php exec di WordPress harus mengikuti aturan redistribusi yang berlaku p [...]
[...] ke to use PHP within a WordPress post too, check out Navid Azimi’s WP-exec plugin or Priyadi’s exec plugin. This entry was posted [...]
Hi, thanks very much for developing this plugin. I’m trying to get it to work in my archives here. As you can see there is an error: “Call to undefined function: ob_get_clean()”. Is there anything I could have done wrong? The code I used in the post was (with all of the brackets “”):
I followed the instructions and did not change the plugin. Thanks in advance for your help!#21: Hi, from PHP homepage it looks like the function is only supported by PHP 4.3.0 or later version and you are currently using PHHP 4.1.2. You might want to upgrade your PHP to the latest version.
Ok okay. Thanks ver much for finding that out for me. I’ll keep harassing my host about it (they want to charge a lot of money and I’m afraid to do it on my own).
Thanks
I added yet another of your plugins to my site
I suggest arranging a button added to the toolbar.
d30e330597c25852e8bcfffe0
5489e6b48efeb4d881583f5c330c981a 2c6b4dd0d06531452a14.
[...] Text mit dem RunPHP-Plugin. Ergänzung 24. März: oder dem [...]
Is it possible to add a quicktag button for this function? If so, how and can I do that easly myself? Thanks.
This plugin is a great idea.
Suggestion for version 2: Make it so that only users above a certain user level can post php code. Perhaps it could check the user level of the author of the post or page, and if above a certain level (defined by the admin) it parses the php code. If the author is below the defined user level, then it does not parse the code and instead displays it as regular text. This would address the security concerns and allow people to use your plugin even if they don’t want to allow all users to post php code.
[...] s is an all new stuff. I’m probably starting clean! Links: Wordpress IImage Browser PhpExec This entry was posted on Wednesd [...]
To solve the security issue could you build in a hook that make it so when a user without the correct user_level (admin, or configurible through an options page) posts, if they attempt to add:
it will just be stripped from the post.
That way you can control who can run php code through posts.
[...] s back to their own sites. I have been deluged with thousands of spams referrals myself. PHP Exec : Execute PHP Code inside a post. Now I can incorporate my own pre-ma [...]
[...] ar 2, this one is for my use only. Smart Archives, this one powers the archives section. PHP Exec, this is a great plugin, it allows the use of PHP code in posts and pa [...]
[...] r PHP Exec” hreflang=”ca”>
Connector PHP Exec
10/04/05 WordPress PHP Exec Plugin. Aquest connector de Wor [...]
[...] rackback URI for this post. my ‘plugins to check’ list http://priyadi.net/archives/2005/03/02/wordpress-php-exec-plugin/ No responses to ‘my ‘plugins t [...]
[...] 217;t use it for comments, though. Can’t live without this, plain HTML sucks (10/10) PHPExec. Probably my most practical plugin. Not as useful as plugins made by ot [...]
[...] ouple of things. First, I had to download another Wordpress plug-in. This time I used PHP Exec which would allow me, with special tags, create dynamic PHP within pos [...]
Embedding PHP in WordPress Pages
I needed to embed some PHP code into [my Pathfinding page](/pathfinding/) earlier today and was having some difficulty until I came across the (PHP Exec for WordPress)[http://priyadi.net/archives/2005/03/02/wordpress-php-exec-plugin/]. This plugin all…
[...]
TestSquozen posted in Geekery on April 22nd, 2005
I just installed the PHP Exec plugin which allows me to inject PHP code into a blog post. This allo [...]
[...] your site. If you blog on your own (Your blog doesn’t have multiple authors), this PHP Exec Plugin will allow you to attach images to posts using the function in [...]
[...] I was going after. Ideas? Update: There’s a plugin called WordPress PHP Exec found here that works wonders!!!! Thanks to Kafkaesqui for pointing me in the right d [...]
[...] pdate .htaccess file to properly handle permalinks for the new page. Install and activate Wordpress PHP Exec plugin Export BlogLines profile via PHP Exec plugin, like s [...]
[...] your site. If you blog on your own (Your blog doesn’t have multiple authors), this PHP Exec Plugin will allow you to attach images to posts using the function in [...]
Fantastic plugin. Works perfectly. Now we can write almost anything in WordPress without resort to static web pages. Thanks.
[...] Lists. And finally, our special thanks to Priyadi Iman Nurcahyo for his WordPress plugin, PHP Exec, which made integration of database results into this blog a piece of [...]
[...] てそこに表示させたい時は、PHPコードをページで有効にするRunPHPやPHP EXECのようなスクリプトが必要です。面倒な [...]
[...] 出我所使用的外掛。 是為誌。 本篇文章將不定期更新。 發文 PHP Exec 在文章裡內嵌可動態執行的 PHP 程式碼。 Easy Pos [...]
[...] 果有这方面的插件就再简单不过了)”。感谢桑葚告知我这个插件:Wordpress PHP Exec Plugin。本文主要谈谈这个插件以及flickr_show_pho [...]
[...] of May 2005 01:03:14 PM If the date and time show above, then it is working. It being the phpcode plugin. Posted by Paula O in Real Life
[...]
[...] ing the list manager plugin a week or so ago, I realized yesterday that I had to install a php execute plugin in order to run php code on a page. The embed list code that [...]
This plug in works great, save for one problem I’m having (admittedly not a problem with the plugin itself).
I’m trying to embed a download link within a post, whereby the link is based on the post’s title. The code works fine in the template loop, but doesn’t retrieve the post_name from within the post itself. Here’s the code:
post_name;?>.zip”>Download “”
Any help would be appreciated.
Oops sorry, forgot to code it:
<a>post_name;? >.zip">Download ""</a>Grrr.. one more time
(a href="http://www.website.com/downloads/(?php echo $post->post_name;?).zip")Download "(?php the_title(); ?)"(/a)#52: try globalling $post:
global $post.I did
?php echo global $post->post_name;?and got this error:
“Parse error: parse error, unexpected T_GLOBAL in /wp-content/plugins/phpexec.php(61) : eval()’d code on line 1″
#54: do it like this:
<?php global $post; ?>that returned nothing either
#56: yes, that alone should return nothing. the point is, if you want to use variable inside phpexec, you need to ‘global’ it before using it. in your case, you want to use the variable $post->post_name from outside phpexec. but by default it is not available within phpexec block, you will need to ‘global’ it first before you can use it.
Never worked for me, just produced
“PHP –>”
That all sounds more complicated, I’m not very well versed in php, I didn’t think pulling the post_name should be so hard! Thanks anyway.
[...] ltimas imgenes subidas y poder meterlas directamente en un post con un par de clicks. - PHP Exec: Permite insertar cdigo PHP en los posts. - TechnoTag [...]
[...] und between the two lines: $output .= “n”; echo $output; PHP Exec This plugin lets you execute dynamic PHP code in posts. It masks [...]
[...] und between the two lines: $output .= “n”; echo $output; PHP Exec This plugin lets you execute dynamic PHP code in posts. It masks [...]
[...] und between the two lines: $output .= “n”; echo $output; PHP Exec This plugin lets you execute dynamic PHP code in posts. It masks [...]
Worked Great! Thanks so much.
how do I do an include? So far it isn’t working…..
#65: how is it not working? could you provide more information? sample codes or error messages would be appreciated.
It works, it works! Thanks for saving me the trouble of trying to do this myself.
[...] ad a la hora de crear enlaces de navegación entre las distintas páginas de WordPress. [...]
sweet plugin. i found it was more natural to use <exec> so i changed to that rather than <phpcode>. it would be nice if it work indifferently with <phpcode>, <phpexec>, and <exec>.
[...] ’s Technorati Tags to provide tag support on posts. I need to expand on it though. Wordpress PHP Exec Plugin great for creating dynamic WP pages. [...]
thanks for the plugin! it works great.
[...] php on wordpress Just got php working properly in Wordpress. I intially used phpexec but with all those preg functions it ate about 10 times more memory tha [...]
[...] s really easy to do. only 2 steps to install, and your reading news/blogs/etc. 1. go grab PHPExec. this is a plug-in that allows you to execute PHP within posts and page [...]
Great plugin! This is what i was looking for today!
thanks!
Curacao
Thanks for your plugin! It works beautifully on my site. Nice work!
[...] and posts. http://www.puffy.nu/%7Edavos/pages/code/wp-related PHP Exec by Priyadi Iman Nurcahyo [...]
[...] tent used in the communication. Just an example, php-exec the plugin used to run php code in posts http://priyadi.net/archives/2005/03/02/wordpress-php-exec-plugin/ is actually inspired by runphp http://mark.scottishclimbs.com/archives/2004/07/02/ru [...]
[...] a diary aka storytelling blog is the content used in the communication. Just an example, php exec the plugin used to run php code in posts is actually inspired by run [...]
PHPExec stopped working for me a while back and I can’t even get it to do the sample code above. It stopped working prior to the WP upgrade.
I use the Gila theme and many other plugins.
Any idea as to why it is not working anymore? I just reinstalled it from the download link above and still no go.
I think is a gr8 plugin, where can I get more support for this?
#79: could you try disabling all other plugins and see if phpexec is functioning correctly?
#80: just post your question here.
Yes, actually, that worked!
Preformatted by Jerome Lavigne.
http://vapourtrails.ca/wp-preformatted
With it turned off and all the others turned back on, PHPExec works.
Any idea why?
#82: well of course it conflicts with phpexec. phpexec relies on wordpress behavior that every post is parsed on each run. wp-preformatted changes this behavior so that posts are only parsed once (when posting or editing) and displayed from cache when visited.
unfortunately this is very complicated. fixing this will require major overhaul of wordpress plugin API or at least integration of phpexec code into wp-preformatted or vice versa.
Well, you just exceeded my brain capacity. Since I rely more on PHP Exec, I’ll leave the other off. Thanks for your help.
[...] is seems to be one of the best tag plugins for WP, it certainly has a lot of documention. Wordpress PHP Exec Plugin: The pages feature in WP is nice, but I needed to be [...]
Excellent. Works great. Thank you very much.
Nice job, nice plugin!
Will the plugin be update for WordPress 1.5. 1.2 soon?
Thank you very much!
Great job
Why don’t you spread this plugin via wp-plugins.net?
How long will it be before this plugin works with 1.5.1.2? I really want to use it!! Are you planning on releasing a version that supports 1.5.1.2?
[...] to execute PHP code within a post, something that I was having great difficulty doing. The PHP Exec Plugin is another neat little plugi [...]
[...] links para añadir un pequeño icono a la derecha de los links indicándolo como externo. PHP Exec para poder incluir código PHP en las páginas. Post [...]
Jonathan and Sproke, it looks as though he was writing that WP 1.5 is supported, but 1.2 is not. There’s a space in between both numbers.
Hi,
Thanks for the great plugin.
But you said 1.5.1.2 is not supported, how come it works on my 1.5.1.2 blog?
Check http://ying.homedns.org/wp/links/
It calls function get_links_list() in the post. Ignore those characters you don’t know, they are just another language(traditional Chinese).
[...] .icio.us Integrator, Gravatar, Identify External Links, Miniblog (reemplaza a ClipToBlog), PHP Exec, Recent Comments, Smart Archives y Weighted Categories [...]
What exactly is keeping this plugin from working in 1.5.1.2? It was working earlier today in 1.5.1.2, but then suddenly and randomly broke on me.
I thought 1.5.1.1 -> 1.5.1.2 was a one line update?
An example of broken functionality in WP 1.5.1.2
<phpcode>
1: <?php echo “text text text”; ?>
2: <p>text text text</p>
3: text text text
</phpcode>
lines 1 & 3 will work fine, but 2 comes out as some sort of hash. Oddly enough, removing all line breaks causes it to display the expected lines. That makes it look like there’s a WP filter somewhere that isn’t getting overridden.
to clarify all. the plugin works in 1.5 series of wordpress, including 1.5.1, 1.5.1.1 and 1.5.1.2. in fact this blog is using 1.5.1.2.
#96: no, the plugins don’t override other plugins. the only trickery it has is masking phpcode block so that other plugins won’t do anything funny with php code.
[...] aenderungen, a_sonstiges — hipslu @ mid-afternoon so, mithilfe des php exec plugins ist nun auch wieder meine blogs i enjoy page o [...]
[...] ack. There were a few issues people were having with this in pages created using RunPHP or PHP Exec. It was causing unwanted line breaks and ruining the look of the list [...]
[...] ux Elegir?
PHP Exec: ejecuta PHP en tu WordPress
PHP Exec es un plugin para WordPress que te permite ejecutar código php en las [...]
I noticed that this code produces an error
&mG6FRfwCТfC ТF&Vv&B#ТV6"F"УfwCТf^t/phpcode>Looks like the reason is that my $i is conflicting with the variable of the same name in phpexec. I was able to fix this by renaming all the variable names in phpexec.php. For example, replace $i with $phpexec_i. Just do a search for $ and replace with $phpexec_ for all variables except $_POST.
-David
[...] isits here could help. The good news is that I installed my php plugin via Exec php and it works great! I have no complaints so far. Very nice. I found t [...]
I’m in the process of migrating a Movable Type weblog to WordPress. I’ve been using Advanced Poll for years, which embeds PHP in entries. Found PHP Exec for WP and got it working, but the polls are only half-working. Example:
Old | New
(the new URL will change when migration is complete). You can see that the PHP is executed, but many form elements and strings are missing.
<phpcode>
<?php
/* paths and includes */
$poll_path = “/path/to/poll”;
include_once $poll_path.”/include/config.inc.php”;
include_once $poll_path.”/include/class_poll.php”;
/* initialize */
$php_poll = new poll();
/* set the template name and the poll ID */
$php_poll->set_template_set(”plain”);
echo $php_poll->poll_process(18);
?>
</phpcode>
Any idea how I can get this working? Using WP 1.5.1.2
Thanks,
Scot
Why not allow to set to min user level 10? I only want me, (the admin, user level 10) to be able to use.
Plus I cant get it to work at all. I check soure of post with the php and its just complely gone.
#104: From the Wordpress admin menu, you can change minimum user level that is allowed to use the plugin. It is available from Options - PHPExec menu.
#105: could you post more information please?
Hey,
Yeah I know it is but you can not set to 10. It only allows a single digit so 9 is the higest you can set it to.
Well I installed the plugin and enabled it and posted the example in this post but its just a blank posting. When I view the source of the page its just a blank post as if I just posted an empty comment.
Also I noticed that is not listed via allowed_tags();
Thanks,
Will
#107: of course it won’t work. the plugin doesn’t work in comments, only in posts or pages. if I allowed it to work in comments, it will open up all sorts of security problem.
[...] ite. Relative links - ensures that all in-site links are relative, rather than absolute. PHP-Exec - allows me to execute PHP code from within a post. I needed this to r [...]
thanks! saved me a lot of problem!
@ 108
Well sorry I did not know that. Maybe it should say that at the top of this page and read me.
Seeing atm it says:
Do NOT use this plugin if you can’t trust people who make posts in your WordPress installation, it is a HUGE security hole.
Which is not crossed out so that lead me to blieve it should work in posts, that is comments. Guess not.
Thanks for your help though.
Working great.
I’m struggling to pull the variables out of my URL. I have the following URL: http://www.scottallenlewis.com/quotes/?action=edit&id=401 and have the following code:
“; ?>
But for some reason I’m not picking up the variable Action. Any help with pulling this out would be appreciated.
Thanks,
Scott
#112: Try globalling the variables you want to use, example:
global $action;
global $id;
Good evening-
Using the GLobal did nothing for me. Any other ideas?
Thank you.
#114: you must have register_globals turned off, try using superglobals: $_GET[action] and $_GET[id]
[...] For you wordpress whores, I am using the miniblog plugin on a static page with the phpexec plugin. I picked the miniblog format instead of a Travel category because I’ll be posting in it only during the next couple of weeks and the posts will be very short and sweet. I also want one central place to document the trip. [...]
[...] Savnede muligheden for at lave min værktøjer-sektion på mit site, så jeg googlede lidt og fandt frem til PHP Exec-pluginnet, som giver mulighed for at eksekvere PHP-kode i indlæg og på sider. Rar ting!
[...]
[...] PHP Exec [...]
[...] it required another plugin (phpExec) to work how I wanted, but I’ve now got nested pages that will (eventually) contain the galleries. [...]
Hi Priyadi, is there a reason why a paragraph tag appears right before the “end php” comment on this page? I surely didn’t place that tag in the page, so now it’s causing that page to not validate.
Thank you!
#120: i really have no idea, maybe it is added by another plugin? try disabling your other plugins one by one to see which one is doing that.
Hmm, sorry but I couldn’t find any other plugins that caused that.
I noticed that my Archives page also has a break tag right after the begin comment. 
This is so weird!
[...] Oft ist es so, dass man nur mal schnell schauen will, ob neue Mails eingegangen sind. Für alle die, die nicht nonstop an ihrem konfigurierten Rechner sitzen, beschriebe ich mal, wie ich das mit Hilfe von WordPress erledige. In dem Fall ist es notwendig ein Plugin zu installieren, mit dem man php auf den Seiten ausführen kann. Dafür eignet sich zum Beispiel: PHP-EXEC von Priyadi Iman Nurcahyo. Dadurch ist es möglich php-Code auf den Seiten von WordPress auszuführen. Das folgende Script muss dann zwischen die beiden Tags . [...]
PHPExec
Being able to post PHP in your posts is a surprisingly helpful ability. While the default install doesn’t allow for such things, there’s a great plugin PHP Exec which can let you do it.
The plugin, available at Priyadi’s Place, has…
[...] Wer sucht der findet! Wir haben ein kleines nützliches Plugin aufgespürt, das es bedingt ermöglicht PHP-Code in einen Beitrag zu schreiben. Das ganze nennt sich Wordpress PHP Exec Plugin und ist auf dem Blog von Priyadi’s Place zu finden. Danke auch an den Artikel von Bueltge der sich mit dem Thema “E-Mail-Postfächer per Wordpress abfragen” auseinandergesetzt hat. [...]
[...] Tipp: Mit Hilfe des php-Plugin kann die Ausgabe ebeno auf den Seiten erfolgen und nicht nur im Sidebar. [...]
[...] Um im WordPress ein Gästebuch zu integrieren kann man einerseits ein Plugin nutzen oder man nutzt die vielen Möglichkeiten von WordPress. WP bringt eigentlich schon genügend Möglichkeiten dafür mit. Allerdings kommt man nicht ganz ohne ein Plugin aus, denn man muss php-Code in die Seite einbinden. En geeignetes Plugin für den php-import findet ihr bei Priyadi’s Place. [...]
Cool plugin! I first tried RunPHP, but somehow it didn’t work for me

Yours whereas works perfectly fine.
I didn’t understand why your plugin didn’t work everytime for all post.
Please, look at my site.
Do I need to post only as an administrator for the plugin to work?
Thanks
#129: go to Options, then PHP Exec to adjust minimum user level required to use this plugin. you will need to lower the default to allow your regular user (non administrator) to use phpexec.
Cool plugin - it is exactly what I want, now I can feed up my wordpress with additional data from MySQL
The effects will be here: voip.pomocnik.com currently in Polish only, but in a few months should be in English too 
[...] 文章的代码一直是静态的,现在装了PHP Exec Plugin,就可以运行PHP了,又可以弄一些动态的东西。这里的测试一下,每次来看这篇文章都可以看到当前时间哦! [...]
If anyone has any idea how to make this work inside an href i’d love to hear it.
For example i’m trying to do:
[a href="http://www.google.com/[phpcode][?php echo "123456 "; ?][/phpcode]“]Link Here” respectively)
But it just doesn’t want to work with this plugin or any other for that matter.
Thanks.
#133: make your php code print the entire href
Thanks Priyadi.
For those of you looking to do the same thing as I am, and was having the same problem please checkout my post on the WP support board: http://wordpress.org/support/topic/41603#post-234099
[...] Das ganze wird dann mit folgendem Code in die Seite eingebunden. Dies kann natürlich auf jeder beliebigen Seite gemacht werden, insofern der Server php unterstützt. Um die Seitenerstellung von WordPress um php zu erweitern, ist ein Plugin notwenig. Ich nutze dafür das ExcecPHP-Plugin. <?php include(”http://www.domain.de/xml.php”
; ?> [...]
When outputting, Wordpress seems to add an extra tag which makes the post/page invalid XHTML. I got rid of this by removing the comment tags.
[...] This is an updated version of a WordPress plugin I made a while back. It will take an RSS feeds and display it as a list on a template or post (with a plugin like PHP Exec). I added an admin page and made everything a little more usable. [...]
[...] Jerome’s Keywords - para implementar tags en WordPressPHP Exec Plugin - este plugin me permite ejecutar código php en WordPress Sitemap Generator - plugin para generar sitemaps de google, no solo pudes incluir posts de wordpress, sino otras páginas también. WP-Suscribe To Comments - con este plugin el usuario puede recibir un correo electrónico cada vez que alguién responda.WP-Cron y WP-Database Plugin - WP-Cron es una serie de plugins cronométricos, je, puedes gestionar tu blog por tiempo (revisión de comentarios, revisión del dashboard, backups por tiempo, etc). WP-database plugin hace copias de seguridad de las tablas de WordPress y tablas adicionales. [...]
[...] daily bookmarks that I’ve added to del.icio.us into WordPress" // posted by t.a.l. @ 11:53 PM Comments: Post a Comment <<Home [...]
Thank you. PHPExec works great for us!
Thx for this nice Plugin.
[...] PHPExec Lets you execute dynamic PHP code in posts. [...]
[...] 4. Upload PHP Exec Pluging into wp-content/plugin [...]
[...] [...]
[...] Wenn ihr den Inhalt auf einer Seite von WordPress darstellen wollt. so benötigt ihr ein php-Plugin. Ich nutze hierfür das phpExec-Plugin von Priyadi Iman Nurcahyo. [...]
[...] Das PHP Exec Plugin ermöglicht über <phpcode></phpcode> das einfache Einfügen von PHP-Code in die Posts - sehr praktisch. [...]
[...] Die Galerie ist nun wirklich voll dynamisch. Bis vor der aktuellen Aenderung war es tatsaechlich noch so, dass die Verlinkung der neu hinzugefuegten Dinge manuell erfolgen musste. Nun jedoch schnappte ich mir das Gallery Script in Kombination mit dem tollen, amateurhaften listdir-Script von der alten Version meiner Seite und implementierte mittels des tollen PHP-Exec Plugins eine wirklich dynamische Version, die es mir ermoeglicht, wirklich nur noch die Bilder hochladen und die Rechte auf den Ordner setzen zu muessen. Das wars dann, super! [...]
[...] PHP Exec: page나 post쓸때 php를 사용하게 해줍니다. run_php인가? 하는 플러그인보다 쓰기 편함. [...]
[...] 그러나 블로그라면 사정이 달라진다. 블로그는 운영자 1인만 글을 쓸 수 있는 경우가 대부분이므로 글(포스트)에서 PHP 코드를 실행하게 해도 문제될 것은 없다. 수인의 이용자가 글을 쓸 수 있는 블로그인 경우에는 PHP 코드를 실행할 수 있는 이용자 등급을 제한하면 된다.워드프레스용 PHP Exec Plugin은 바로 이러한 의도들을 충족시켜 주는 플로그인이다. [...]
[...] If PHP EXEC new plug in a installed to day is working, you can trackback by inserting this: http://www.thedietdiary.com/blog/lucia/433/trackback/ into the “trackback” box on your blogging software template — that is, assuming you have such a box. I know it can be done with both Moveable Type and WordPress, but I don’t think you can do it with blogger! (Although, if it can be done, let me know!) [...]
[...] PHP Exec - 아주 유용하다. 이거 없었으면 기껏 설치한 플러그인들을 제대로 쓰지도 못했을듯… 포스트 내용에서 PHP코드를 쓸 수 있게 한다. [...]
[...] PHP Exec - 아주 유용하다. 이거 없었으면 기껏 설치한 플러그인들을 제대로 쓰지도 못했을듯… 포스트 내용에서 PHP코드를 쓸 수 있게 한다. [...]
Hey… i’m trying tu use you’re plugin because i had the same problem with RUNPHP, but… still now i can’t insert php code in my posts, what happen? i install and activate the plugin and i tray with the exemple code bt it doesn’t works…
#155: you need to be more specific than that. what have you done? any example of code that won’t work on your blog? any live examples? etc
[...] 1. go grab PHPExec. this is a plug-in that allows you to execute PHP within posts and pages. follow the instructions to install. [...]
[...] 내가 사용하는 워드프레스 플러그인 목록 Footnotes 말 그대로 각주(주석)를 붙일 수 있다. 아직 쓸 일이 없었다. Get Recent Comments 최근 코멘트 리스트 플러그인이다. 관리자에서 옵션을 지정할 수 있는 특징이 있는데, 코멘트와 트랙백을 구별해서 리스트하는 (나에게는) 단점이 있다. Gravatar 코멘트를 남길 때 자신만의 아바타를 보여줄 수 있다. Globally Recognized avatar. No Duplicate Comments 중복 코멘트 방지 플러그인이다. 잘 작동되는지 확인한 적은 없다. PHP Exec 글 내용 안에서 PHP 코드가 인식되도록 하는 플러그인이다. Smart Archives 스마트한 아카이브. 이렇게 나타난다. Extended Live Archives 같은 것도 있지만 복잡해서 별로다. Witty Text 관리자가 지정한 문장들을 랜덤하게 보여줄 수 있다. 한글은 깨진다. Force Word Wrapping 코멘트나 본문 중에 공백 없이 늘어나는 글자들에 공백을 생기게 해서 글이 짤리지 않으면서 레이아웃이 어긋나지 않게 줄을 바꿔 준다고 함. 뭔지 잘 모르겠지만 그냥 보험삼아 적용한 플러그인. WP-ContactForm 이메일 폼. 이렇게 생겼다. WordPress Database Backup DB 백업 플러그인. [...]
[...] Related Articles: WordPress PHP Execution Plugin Smart Archives [...]
[...] こんな感じです。 Archiveを呼び出すコードは、新たなphpファイルを作ってアップロードし、そこへのリンクを貼るのでもいいし(この場合WPと関連付けされないので、サイドバーとか使えなくなります。使うためにはコードが必要です。)、新しいPageテンプレートをテキストエディタでつくりそこにコードをはって新規Page作成画面でそのテンプレートを呼び出し空白で作成するのでも良いし、Page機能を使って新たなページにこのコードを直接入力しても簡単にページが出来上がります。最後のやり方の場合、PHPをPageで使えるようにするRun phpかPHP Execが必要です。私はPHP Execを使っています。これは何かと便利なので入れておくのをオススメします。 PHP Execを使ってPageを作る場合は、Page新規作成ページで <phpcode><?php smartArchives() ?></phpcode> と入力すればOKです。タイトルはお好きに。私はPost Archivesにしました。 [...]
[...] Mit “PHP-Exec” ist es also möglich PHP-Code direkt in Postings oder Pages einzubauen und ausführen zu lassen - und damit eigentlich auch alles andere, denn Javascript oder ähnliches lässt sich ja auch per -e(’hier mal alles reinhauen was nicht php ist‘
in PHP verpacken. Funktioniert prima, ich habe jetzt z.B. meine Furl-Links auf diese Weise in die Webfundstücke (in der Seitenleiste, ganz oben bei “Seiten”
gesetzt. [...]
[...] uppdaterad 15:46.00 hittade en lösning.
Allmänt · · Trackback · [...]
[...] Das PHPExec Plugin ermöglicht es in Artikeln PHP code auszuführen. [...]
[...] PHP Exec (link): To execute PHP code inside posts/pages. It is safe since I am the only person that can write content here. [...]
[...] PHP Exec [...]
Works absolutely perfect for me! I have tried other programs to get PHP to execute, but I have not been able to get them to work. Your plugin I can get to work easily with no fiddeling.
Works perfect for me on both of my sites:
http://www.aleeya.net and
http://www.girlgeektee.net
Thanks so much!
Cool site. Plug in works great. How many hours do you spend blogging and programming?
I am trying to use a php echo and then use the url to pull info into a variable.
myblog.url/?something=yeahyeah
then in the code
[phpcode]
[?php
echo $something
?]
[/phpcode]
It should display yeahyeah on the page. Now when I assign the variable in the post like $something= “yeahyeah” it will work, but I really have to pull it from the url.
#167: you don’t have register_globals set to on. try $_GET['something'] instead of just $something.
[...] RSS-Import (WordPress Plugin) - Import RSS-newsfeeds in your site. I think it is a simple and good plugin. However, it cannot do with multiple RSS feeds at a time. You use it by putting a PHP code like RSSImport(5, “http://www.stevenchoy.com/feed/”, false, false) somewhere in your wordpress template file. If you want to embed a feed content into a page or a post, you need to install another Wordpress plugin such as PHP Exec (need PHP version 4.3.0 or later) that allows running of PHP code in posts or pages. [...]
[...] I found a simple plugin for WordPress called Exec Plugin from Priyadi’s Place. It will allow you to add dynamic php to your posts. Download the .txt file. Change the extension to .php and upload it to your wp-content/plugins dir. Use the Word plugin manager to activate it and off you go. [...]
Dustinto: you need to use not [phpcode]
Last entry got munged.
You need to use <phpcode> not [phpcode]
[...] I was very please when I discovered this little plugin that allow me to rum PHP within WordPress post. [...]
[...] Vamos a probar el plugin PHP exec [...]
在Wordpress發表文章中使用PHP
å©ç¨éåPluginï¼å¯å¨Wordpressç¼è¡¨çæç« ä¸ä½¿ç¨PHPç¨å¼ç¢¼ã
å°phpexec.phpç¨å¼ç½®æ¼ wp-content/plugins ç®éä¸ï¼ç¶å¾ä»¥ç®¡ç…
not sure why it doesn’t work. I am currently using PHP version 4.3.10, MySQL version 4.0.25-standard and wordpress 1.5.2
I put in this code in the post:
The outcome is:
Without the and . Anyone know why? Thanks.
[...] Hoy, a Thursday 27th 27e October 2005 08:01:01 PM, he encontrado un plugin que permite ejecutar código php en un artículo. Muy interesante pero si no es muy utilizado será difícil dar con los buggs. [...]
Tahnks, great plugin for better functionality!
[...] PHP Exec 個人挺推薦的一個外掛,可以在文章編輯中插入可執行的 PHP 代碼。 如此一來就不用像以前那麼麻煩還要為個別頁面製作多個網頁模板。 [...]
[...] For the geeky types out there, I used Dreamhost’s one click install to install Advanced Poll. Then, to be able to execute the php code within a post, I installed the PHP Exec Plugin. I haven’t even slightly started playing with any of the poll templates. [...]
Is it possible to update the plugin so that it adds a button in Admin write panel?
[...] PHP Exec [...]
[...] Priyadi’s Place » Blog Archive » Wordpress PHP Exec Plugin Tags [...]
[...] Seems as though some of the posting routines in the 1.6 Alpha have changed. I’ve tried two of the php execution plugins (RunPHP and PHP Exec). Neither of them seems to work with the current svn revision. [...]
[...] Ya hemos resuelto el problema de la inclusión de código PHP en la página creada para el plugin MenuSup. Con ello, la página que utilicen para mostrar mensajes en la cabecera (u otra parte del blog), puede llevar ahora tanto código HTML como PHP sin más que enmarcar éste último entre las etiquetas <phpcode> y </phpcode>, tal como se hace también para el plugin PHPEXEC, en el cual nos hemos basado. [...]
[...] Acronym Replacer:如果文章中使用了某些英文縮寫的專有名詞 (acronym),會動自動幫這些字以HTML語法加上相關解釋 AttachFile:文章加入附擋 BadBehavior:y阻擋spam Blacklist:作用同上,細節不在贅述 BlogTimes:這個外掛程式會產生一張您通常在什麼時間寫文章的圖表 Brian’s Threaded comments:This gives you threaded comments and a “wandering” comment form. Code filter:啟用這個外掛程式後,正確顯示HTML標籤做過編碼,而可以以文字型態出現在頁面上,而不會當作排版標籤使用,方便正確顯示程式碼。 Comment Count:這個外掛程式的功能在於計算迴響留言的總數,可以用來計算整個網站的留言數量,或是在迴圈範圍中使用時,可以用來計算某篇文章的迴響數量。 countdown:對我來說還蠻好用的,可以計算重要日期還有多久 page comment editing:可以檢視編輯把spam裡面的留言 FancyTooltip:美化圖片、網址、連結的plugin flashfilter:簡單語法就可以插入flash的小工具 GetRecentComment:顧名思義,取得更新留言的工具 SearchHilite:當有人從 Google、Yahoo 等搜尋引擎連到您的網站的時候,透過這個外掛程式,可以將他們所使用的關鍵字,以高亮度方式強調顯示。 Gravter:讓你的comment,可支援眾多blogger愛用的gravtar大頭貼功能 Hello Dolly:這個外掛程式不僅只是一個外掛程式而已,而是將一整個世代的希望與熱情,集合在「Hello, Dolly」這兩個字當中,出自路易斯.阿姆斯壯(Louis Armstrong)的著名歌曲。另外,這是第一個官方的 WordPress 外掛程式。當您啟用了這個外掛程式後,會在管理頁面的右上角,隨機出現Hellow, Dolly這首歌的歌詞的一部份(外掛程式頁面除外)。(對了,除了後台會出現歌詞外,他沒有什麼影響 ) Jerome’s keywords:可以在你的文章加上自訂tag分類 MostCommented:顧名思義,即為本站的最受歡迎文章 PageNavigation:加強板的頁面瀏覽功能 PhpEXEC可插入php的工具 poll:可使用投票功能,並在你的後台管理他 Popularity Contest:在站內文章間比較歡迎度 post Count:傳回所有文章總數 RandomPostForChinese:可隨機顯示文章,這樣就可以自己在首頁看到很多自己都忘掉的文章囉 RecentPost:可傳回近期的文章列表 RelatedPost:使用類似本站相關文章的功能,可自設keyword,系統會抓取所有keyword的文章在彼此間放入關聯。 RustAside:我的用途是在旁邊隨便記 SideBlog:可以在sidebar放入自己比較不重要的文章或紀錄,如本站用法。 GoogleSitemap:產生sitemap Texttile2:編輯文章好幫手,小心不要與texttile1與markdown這兩個plugin共用喔 Jalenack’s Wordspew:如同本站右側留言板,方便好用,留言時還有個莫名的文字漸進功能,蠻淘氣的 Tiger Style Administration:美化你的後台 WP-ContactForm:可以製作一份【與你聯絡】電子表單’在你的文章或站內提供給讀者。 Databasebackup:備分你的WP資料庫 wpGrin:發表文章及回應時,支援表情功能 LivePreview:可以讓您在發表、編輯文章或迴響時,使用即時預覽功能。用法:直接啟用即可 首字放大:參考hsuyo的介紹,直接使用CSS修改,文章插入標籤即可,後來發現用這個外掛還蠻省事的,乾脆都用此外掛處理。 WP Refsearch如果有人使用了Google、Yahoo等搜尋引擎,連到您的網站的話,這個功能可以顯示一個訊息,列出您的站上最近與該關鍵字相關的文章,您必須要同時啟用內建的外掛程式「Search Hilite」,才可以使用這個功能。 [...]
I pass all the day searching something like that.
I’ve already installed & it works ok
My frond from forum recommended me this plug-in which I will use to avoid archiving post by entering small php code into new geberated page and I am very happy becouse I can finally use Wordpree as CMS. Greetings!
[...] PHP Exec - Con este plugin puedes ejecutar código PHP en tus posts en caso de que necesites añadir algo de funcionalidad directamente en estos o en alguna página. Otra opción para esto es Run PHP que tiene las mismas funciones pero por alguna extraña razón nunca lo pude hacer funcionar con este blog. [...]
[...] blogpocket 5.0 está realizado con WordPress 1.5.2 Posts (RSS) and Comentarios (RSS) Alojado en Miweblog.net Plantilla basada en Yadda Plugins: Clip To Blog, MenuSup, Akismet, Cat 2 Tag, FancyTooltips, Henna’s cool cats/tags, Identify External Links, PHP Exec, Post Count, Random Talk, Recent Comments, Related Posts, Show Plugins, Weighted Categories, wp-cache, WordPress Database Backup, WordPress Mobile Edition [Spanish Version], PopStats [...]
[...] - PHP Exec: Per introduir codi PHP i executar-ho a dintre dels post’s. [...]
[...] I don’t like the list of links on the side of the home page, so I moved them to a separate page. This required installing PHPExec to run the code that generates the list of links on the Links Page. [...]
[...] http://priyadi.net/archives/2005/03/02/wordpress-php-exec-plugin/ [...]
Awesome plugin! Thanks and will definetly promote!
[...] Just testing if Wordpress PHP Exec Plugin works on 2.0 beta. [...]
Hi,
I noticed that this plugin doesn’t work on WordPress 2.0 beta.
If you see my post, it just displays the code
#196: yes, i still have to find the time to update all my plugins for 2.0. if phpexec doesn’t work, then probably all my plugins won’t work
I’m sure you will pull up something….
When I find time, will give all your plugins I normally use a test.
Will keep you posted.
Is it just me, or did the most recent version really mess up the ability to use whitespace in the code? I had pages working fine until I upgraded, and now I have to collapse all the whitespace out (even in raw HTML blocks) for it to work correctly. I don’t know what version I was running before, but I’d estimate it was about a year old…
#199: it’s probably another plugin, try enabling/disabling markdown/textile
[...] Actualización: Ahí va el segundo, PHP EXEC, permite ejecutar código PHP dentro de los post (como solo voy a usarlo yo…
[...]
[...] Google Sitemaps 9 Spam Karma 2 - Reloaded 5 Related Posts 3 WP-ContactForm 6 Email Notification Plugin StatTraq 2 Adsense Deluxe 5 Akismet 4 Ultimate Tag Warrier 3 Feedburner Feed Replacement 3 WP-Amazon 3 Auto hyperlink URLs 2 Page Navigation 2 Angsuman’s Feed Copyrighter 2 WordPress Database Backup 2 IImage Browser 2 Paged Comments 2 Viper’s Plugins Used 2 Popularity Contest 2 WP-Googlestats 2 Subscribe to Comments AJAX Spell Checker Recent Comments Audio Play Rate My Stuff ViewLevel2 evermore PHP Exec Most Wanted Autometa WP-Cron Quicktags WP Adsense No Duplicate Comments Polite-ifier CSS Compress Del.icio.us Bookmark This Flickr Gallery Heavyweight Categories Live Comment Preview Relative Dates RunPHP Extract Terms Terms2tags Force Word Wrapping WP-cache WordPress From/Where WP Hardened Trackback WordPress Hashcash Adsense Logger Bad Behavior Cat 2 Tag CA Chitika Chitika eMiniMalls Code AutoEscape Paged Comment Editing Optimal Title Better Feed Click Counter IP 2 Nation Random Words Transpose e-mail Batch Categories Enhanced View PXS Mail Form SH-Autolink Search Meter Search Pages Search Reloaded Smart Update Pinger Taggerati x-Dashboard CG Powerpack PhotoPress Subscribe Me Secure Image Ak-Bookmark/ak-subscribe Blogs of the Day (couldn’t find URL) Get RSS (couldn’t find URL) [...]
[...] PHP Exec by Priyadi Iman Nurcahyo [...]
Thanks a lot!
[...] PHPExec — embed PHP code in a page [...]
Nice! Thank you!
Hi,
to enable phpexec in rss-feeds, the only thing one has to add is the following line:
add_filter(’the_excerpt_rss’, ‘php_exec_process’, 2);
cya.
Omar Abo-Namous
[...] Code Viewer, amivel egy külső fájl forráskódját mutathatjuk meg sorszámozással és behúzással és PHP Exec, ami a postokban engedi futtatható php-kód beillesztését. Technorati Tags: plugin, wordpress // Used for showing and hiding user information in the comment form function ShowUtils() { document.getElementById(”authorinfo”).style.display = “”; document.getElementById(”showinfo”).style.display = “none”; document.getElementById(”hideinfo”).style.display = “”; } function HideUtils() { document.getElementById(”authorinfo”).style.display = “none”; document.getElementById(”showinfo”).style.display = “”; document.getElementById(”hideinfo”).style.display = “none”; } [...]
This has become one of my “Standared” plug-ins for any WordPress installs. Thanks!
[...] Neither php execution plugin seems to work. RunPHP (http://svn.wp-plugins.org/runphp/) & PHP Exec (http://priyadi.net/archives/2005/03/02/wordpress-php-exec-plugin/) The processing when posts/pages are added seems to sanitize the current methods used by these plugins. [...]
[...] PHP Exec [...]
Hi,
I was wondering will your plugins be compatible with Wordpress 2.0 ? Thanks…
[...] PHP Exec - Permite el procesamiento de cdigo PHP dentro de un post. [...]
[...] PHP Exec by Priyadi Iman Nurcahyo [...]
Anyone tried this on WordPress version 2.0. I don’t see it on plugin compatibility page in either the working or not working sections.
[...] PHP Exec 글쓸때 PHP사용가능 [...]
It does not work with 2.0. It is at the very bottom of the compatiblity page.
[...] php-Exec Da das nicht mit der 2.0 funktioniert, habe ich nun auf Exec-php umgestellt. [...]
[...] However, the downside is that my aggregators are temporarily out of service. The PHP Exec plugin that I use is not working yet in the new version of WordPress so I will have to wait until it is updated. [...]
[...] Nachtrag 2: IImage Browser-Plugin ist leider noch nicht kompatibel mit WP 2.0, genau wie PHP-Exec nicht. [...]
[...] Wordpress 2.0 juga sudah menggunakan teknologi caching system sehingga jauh lebih cepat dalam menampilkan halaman. Hanya sayang, beberapa plugins tidak bisa dipergunakan lagi karena masalah kompabilitas—hiks, PHPExec buatan mas Priyadi juga nggak bisa dipakai, padahal saya butuh banget. Yang saya senang, ternyata theme Daun Terakhir yang saya buat masih bisa dipakai dan tidak ada cacat sedikit pun,—emang kalau theme nggak masalah kali ya [...]
[...] 所幸我在〈WordPress 外掛備忘錄〉所列的外掛都沒問題,頂多是將舊的 PHP Exec 換成另一個人寫的 Exec-PHP。 [...]
pri..
gue gabungin phpexec sama RSS Feeds di dalem page
koq linknya ilang yah ? kalo RSS Feedsnya diluar post/pages jalan tuh normal..
hasilnya jadinya gini doang..
bah.. ilang contohnya..
pri..
gue gabungin phpexec sama RSS Feeds di dalem page
koq linknya ilang yah ? kalo RSS Feedsnya diluar post/pages jalan tuh normal.. hasilnya
<a href="blablabla">jadinya<a >gini doang..walah berantakan…
ya pokoknya gitulah…
disini contohnya
http://www.7sphere.com/news-feed
bukan spam loh,..
[...] Im Augsut diesen Jahres beschrieb ich das Erstellen eines Gästebuchs mit Hilfe von WordPress in einem Blog. Der Artikel wurde bisher unzählige male gelesen und ebenso viele Anfragen habe ich per Mail und Kommentar bekommen. Nun ist seit einigen Tagen WordPress 2.0 da und ich habe einen meiner Blogs auf WP 2.0 aktualisiert um alle meine Artikel und Plugins für WordPress 2.0 zu testen. Mit dem Gästebuch hatte ich da einige Probleme, da ich hier das Ausführen von PHP in den Seiten benötige. Leider war dies mit dem bisher verwendeten Plugin PHP-Exec nicht möglich. Aber die WP-Kommunity ist groß und ich habe durch Sören Weber schnell Hilfe erhalten, der mit seinem Plugin Exec-PHP für Abhilfe gesorgt hat. Nun denn, das Gästebuch läuft nun auch unter WordPress 2.0. Viel Spaß damit. [...]
Any word on a working verion for Wordpress 2.0? If not, any suggested alternatives?
This plugin doesn’t seem to work with 2.0, but this plugin does:
http://wordpress.org/support/topic/52928
[...] Das Update meiner Seite ging leider nicht spurlos an mir vorüber. So haben sich einige Plugins wegen Inkompatibiltät verabschiedet. Auf viele davon kann ich ohne weiteres verzichten (WP-Shortstat, Enhanced Post List. Auch PHP-Exec mag mich nicht mehr. Dies ist ein wenig schlimmer, da somit das direkte Ausführen von PHP-Code in statischen Seiten nicht mehr funktioniert. [...]
This plugin now works for Wordpress 2.0; this version can be downloaded at/from
Exec PHP v2.0
[...] PHP Exec [...]
[...] PHP-Exec: Para crear pginas con cdigo php. No funciona, pero segn la lista de plugins compatibles he encontrado un par de alternativas, una de ellas EXEC-PHP [...]
Exec PHP v2.0 is a different program. I like PHP-Exec much better and hope the author is able to make it 2.0 compliant.
[...] Alles in allem lief das Update nach Plan. Lediglich das PHP-Exec-Plugin mute ich durch Exec-PHP ersetzen. Da die Funktionalitt aber genau so hnlich ist wie der Name ist das kein wirkliches Problem. [...]
it’s very usefull
thank You for creating this plugin !!
I would really like to see this plugin for WP 2. Any ideas on when it will be ready?
[...] Ultimate Tag Warrior Tag Archive 1.0 - By Christine Davis Ultimate Tag Warrior 2.8.9 - By Christine Davis o42-clean-umlauts 0.2.0 - By Scott Hanson & Michael Renzmann Acronymer 1.0 - By Leo Kent Adhesive 3.0 - By Owen Winkler Countdown Timer 1.1 - By Andrew Ferguson CJD-Spam Nuke (deutsch) 1.5.3 - Deutsche Bearbeitung: Mathias Hundt By Chris J. Davis, Scott (skippy) Merill Democracy 1.2 - By Jessika Schmitt & Andrew Sutherland Event Calendar 3.0.2 - By Alex Tingle Follow URL 1.0 - By Angsuman Chakraborty Kramer 0.7.6 - By Nik Cubrilovic & Mark Jaquith PHP Exec 1.7 - By Priyadi Iman Nurcahyo PHP Highlighter 1.0 - By Daryl L. L. Houston WP-Print 2.01 - By GaMerZ Google Sitemaps 2.7.1 - By Arne Brachhold Subscribe To Comments 2.0.2 - By Mark Jaquith & Jennifer (ScriptyGoddess) January 5, 2006 | In technik, blog | | Drucken [...]
Ich bin wirklich begeistert
Wo gibt es das originalprogram ?
Also der Ursprung der nicht auf worldpress umgeschrieben wurde ?
Reporting in that it appears PHP Exec works with 2.0 fine.
[...] PHP Exec [...]
[...] PHP Exec - Execute PHP Code inside a post. [...]
[...] PHP Exec [...]
I think the reason this doesn’t work is because of the user levels in WP2
That was my first thought as well when it didn’t work. I went into the database to try and figure out what the new user levels are but it says admin is 10 and the default 9 minimum should cover that. So, I’m assuming that the location of the user_level entry must have been changed as well…but that should result in a mysql error I think…hmm…I’ll have to look into the code I’ll tell you all what I find.
pasang jangan pasang jangan pasang JANGAN…. berarti gak daku pasang ah….
[...] return $output; /* this one changes <wp-cut> tags into tags, because the validation thingy messes it up. (idea from ”PHP Exec” plugin. (http://priyadi.net/archives/2005/03/02/wordpress-php-exec-plugin/)) [...]
[...] Here are some pictures from the halloween “party”… It took a while because I was testing the Flickr Falbum and phpcode plugins for WP to get this working. [...]
[...] 17. PHP Exec ist für all diejenigen, die PHP Code im mitten im Artikeltext ausführen möchten. Ideal dazu geeignet, Wordpress Pages zu individualisieren, statt eigens Templates schreiben zu müssen (zB “Text” - Kontaktformular per PHP - “Text”
. [...]
[...] Found this nice plugin which allows the use of PHP inside Wordpress posts (link) [...]
[...] http://priyadi.net/archives/2005/03/02/wordpress-php-exec-plugin/ [...]
[...] PHP Exec by Priyadi Iman Nurcahyo [...]
This code is no longer compliant with the release of WP 2.0!
[...] PHP Exec plugin (allows PHP-code in wordpress content) [...]
[...] http://priyadi.net/archives/2005/03/02/wordpress-php-exec-plugin/ [...]
[...] Y posiblemente necesitarás PHPExec, aunque no es indispensable. [...]
[...] Um PHP-Code direkt in Beiträgen ausführen zu können, ist das folgende PlugIn sehr hilfreich: http://priyadi.net/archives/2005/03/02/wordpress-php-exec-plugin/ [...]
[...] Priyadi’s Place » Blog Archive » Wordpress PHP Exec Plugin Wordpress PHP Exec Plugin (tags: lazysheep) [...]
[...] PHP Exec, con este plugin podremos ejecutar el codigo php que escribamos dentro del post, dentro de los tags < phpcode> < / phpcode . [...]
[...] In meinem Fall sieht der Code der Startseite, also direkt in der Seite (mit PHP-Plugin „PHP Exec„
folgender maßen aus. [...]
How change TITLE from phpcode by phpexec?
Any update or a quick fix for WP 2.0?
thank you.
[...] PHP Exec by Priyadi Iman Nurcahyo [...]
Any change of making this plugin work in the default tinyMCE WYSIWYG mode of Wordpress 2.0.1 ?
Would be cool to be able to use in conjunction with WYSIWYG.
[...] PHP Exec個人挺推薦的一個外掛,可以在文章編輯中插入可執行的 PHP 代碼。如此一來就不用像以前那麼麻煩還要為個別頁面製作多個網頁模板。 [...]
[...] Jeg har opgraderet Wordpress til version 2.0 med det beklagelige resultat at PHPExec er holdt op med at fungere. Det betyder at de sider (min boglste, dvd-liste og ønskeseddel) der skal eksekvere php-kode ud over Wordpress’ egen ikke længere er funktionelle. Jeg vil håbe at der kommer en opdateret version af PHPExec snart. [...]
[...] Leider funzt bei mir das php-exec nicht mehr (es ging am Anfang auch auf WP2.0 mal). hab’ ich wohl was falsch gemacht? Die Seite zeigte mir jedenfalls nur den Code [...]
I have tricked PHPExec to run in WP 2.0. It doesn’t work here becaue its minimal user level doesn’t exceed to run the php_exec_process. I just modified this function to run in WP 2.0.
You can download the modified plgins right here on http://zam.web.ugm.ac.id/projects/wp/plugins/
Thanks for the great script! I hope it’s usefull..
matriphe, thx
patch worked on wp 2.0.1
[...] http://priyadi.net/archives/2005/03/02/wordpress-php-exec-plugin/ [...]
[...] - Bad Behavior Well known plugin to prevent spam and keep your blog clean. - Adsense-Deluxe Easily add adsense to your post or anywhere inside your blog. - Comment Live Preview See live preview of your comments before you post your comment. Erm..not live enough though.. - Quote Comment Enable anyone to reply to anyone else’s comment to the posts. Useful.. Erm., But untill now I haven’t use it yet… - Cricket Moods Insert moods in your posts. Fun.. - Custom smileys Customize smileys at your blog. Insert them to your post or comment. Upload and specify your own shortcuts for them., Very easy to manage. God D*mn good. Suspek r u…er..Lazy N Useless… - Gravatar & Gravatar Signup Thay are for Gravatar user to display their gravatar at their comments. Very cool., See my gravatar, OMGWTF?!! If you dnot have gravatar, instant signup at the comment area. - Headline Images Turn your post title into graphic-text magically., You can use your own font too.. - PHP Exec For advanced user to run PHP script into their posts. - SimpleTags Put technorati’s tag with ease. Just put tag in between [tags][/ tags] tag.. e.g. [tags]tags, tag, tags, [/ tags]……. - IP 2 Nation Detects where your visitor from and view or display their origin or IP. You can even use this what so called awesome tiny flags pack. You can see tiny flag under the gravatar at post comments at my blog. kewl huh.. [...]
Great plugin works AWESOME! Thanks…
Matriphe,
Thanks man, the patched version to made works great in WP 2.0.1 for me as well. Good work.
[...] 7. phpexec 在日志中运行PHP程序插件 官方说明: http://priyadi.net/archives/2005/03/02/wordpress-PHP-exec-plugin/ [...]
[...] Priyadi’s Place » Blog Archive » Wordpress PHP Exec Plugin Wordpress PHP Exec Plugin (tags: lazysheep) [...]
[...] PHP-code To get the above plugin on some pages, you probably need to execute some PHP-code. This plugin, PHPexec, solves this. Just download the file, upload it, and embedd PHP-code as described in the file. [...]
Can someone give me a hand? I’ve tried to get this to work on 2.01 with the Yahoo Search plugin with no success.
The yahoo plugin page is here: (http://www.robinsonhouse.com/yahoo-search-plugin)
Are there any other search option that can be used as as seperate pages? For example I don’t want the search to appear on every page. I want a seperate search page (ex: http://url.com/search).
If someone could help me out asap it would be greatly appreciated as I need I have for this is immediate as the site is launching 3/2/06.
THANKS! If you you email me with any solutions at lalindsey@triplelproductions that would rock.
Lindsey
[...] Thanks to Stan for the idea/implementation help, also thanks to the WP Plugins for Ultimate Tag Warrior and PHP Exec Plugin. [...]
[...] /* Plugin Name: PHP Exec Plugin URI: http://priyadi.net/archives/2005/03/02/wordpress-php-exec-plugin/ Description: Execute PHP Code inside a post. Do NOT use this plugin if you don’t trust your WP users. Version: 1.7 Author: Priyadi Iman Nurcahyo Author URI: http://priyadi.net/ [...]
[...] To do this I use PHPExec from Priyadi.net. This plugin lets you execute dynamic PHP code in posts. Note that if you are using Wordpress 2.0, you’ll need to use the patched version to make this works. [...]
[...] exec-php test By Remco OK, wat blijkt na een uur googlen. De plugin PHPExec werkt dus alleen maar met Wordpress 1.5. Ik draai 2.0x dus ik moet een andere plugin hebben en die heet, u raadt het al, exec-php . Download de zip-file, extracten in ../wp-content/plugins en renamen van exec-php.phps naar exec-php.php en in de Plugins admin console activeren. [...]
[...] http://priyadi.net/archives/2005/03/02/wordpress-php-exec-plugin/ [...]
Please ignore my last comment, as I now see that the plugin does work in Pages as well as Posts.
Will this allow PHP to encapsulate JavaScrip?
(basically echo some JavaScript into the page which is generally not acceptable in Wordpress as it converts the code to HTML entities)
Nice plugin!
Found a way to get it working in WP2
*after these lines in function php_exec_process
…add this line:
$phpexec_doeval = true;what it does is bypass the validation of user levels (and so it means any admin user level can add PHP!). This seems because of a caching problem in WP2 - the call:
the_author('login',false)fails in v2, but works in v1.52
Hope it helps to get you up and running…
P.S. great plugin!
V2 Fixed!
…worked a bit more, and found out how to add level security back in - replace these lines at the beginning of the function php_exec_process:
with these lines:
That will let it work in 1.5.2 and 2, and still include security
Hi,
Good plugin but it does not work in WP 2.0 +
Will there be an upgrade to get it working in 2.0 + ? Thanks…
I’ve added my changes (see prev.) and tested under WordPress 2.02 AND 1.5.2 - you can get the file here:
http://activeblogging.com/info/phpexec-2/
Hey.
I’ve just installed the plugin and activated it, and when I try to use PHP code, the code is just displayed and not executed.
Can anyone help me?
Thanks,
Luke
I am having the same problem as Luke above. Cannot get code to execute it just keeps displaying the code itself.
I am trying to insert a feed to display in the middle of my post. Here is the code I am using.
It’s just displaying the code minus the phpcode tags.
Thanks for your help,
Mike.
Luke - I’m having the same problem here. The code is displayed instead of executed. I’m using a PHP include to include RSS news feeds on my website. Until yesterday, the website displayed the feeds. Now, I’m only displaying PHP code. Help!
PEOPLE WHO CANNOT GET IT WORKING IN WORDPRESS 2.0+ …. READ COMMENT 287!!
Any idea why the PHP code won’t execute but instead is just shown?
http://sridhareena.com/news-feeds/firefox-news-test/
Thanks for this great plugin!
kalo a href jadi a xhref, spasi jadi x kayaknya
If you are using Word Press 2.0, you will comment out line 49 and line 51 (leave line 50 active).
They removed the old 0-9 user level in the newest version of Word Press.
If you are using Word Press 2.0, you will comment out line 49 and line 51 (leave line 50 active).
They removed the old 0-9 user level in the newest version of Word Press. I’m sure this can be fixed in the future.
I must not be seeing the same lines as you… I try to comment out line 49 and line 51 (leave line 50 active) and I get an error.
Thanks you…
Are you still working on this plugin?
I get this error when I activate it
I am running Wordpress 1.5.1.2
What am I doing wrong?
Help me please!
Thanks David! I read comment #287 and have downloaded your update. Really appreciate it!
http://activeblogging.com/info/phpexec-2/
you seem to have a small bug. any time I have a “>” character within the script it stops reading the php and just displays the rest of the code on the site as text. i think it thinks i am ending the script.
list of all plugins here Word press
Wordpress themes download
This is the best plugin ever!
This plugin is very usefull.
Thanks and nice greetings from germany!
Heiko
I’m having the same issue. the plugin is not working when I use a php include. It works Ok for the sample php code provided here, but not with php include. It just displayed the include as text. Anyone find a solution
WordPress database error: [Can't create/write to file '/var/tmp/#sql_5ac5_0.MYD' (Errcode: 17)]
SELECT * FROM wp_noconcerpt_posts WHERE 1=1 AND (post_status = “publish” OR post_author = 1 AND post_status != ‘draft’ AND post_status != ’static’) GROUP BY wp_noconcerpt_posts.ID ORDER BY post_date DESC LIMIT 0, 15
Will this work under WordPressMU? The multiple blog version of WordPress?
Running php in the WordPress loop
So one of WordPress’s major flaws in my point of view is that you cannot run php code in the loop. I asked hw this could be done on the WP Forums, and got this answer. What a dickhead. So anyway, I found a plugin that will allow it.
Wordpress PH…
Thanks!
I was looking this plugin many time.
Has anyone successfully used this plugin with require or include?
Hi I am trying to use the following code to display rss on a Page but its not working. Page shows me the php code itself without executing it.
The code is
‘;
foreach ( $rss->items as $item ) {
echo ‘‘ . $item['title'] . ‘‘;
}
echo ”;
?>
Keren plugin nya, coba ah. Thanks bro, keep up the great job
Hello,
My provided moved to php cgi. Everything is just fine except for the PHP Exec plugin 1.7 on my WP 1.5.2.
After each new post I receive a server 500 Error. If I click back my browser to the previous page, the Write Post page including the new content is still there. Nevertheless the new entry is already posted and shows up okay.
I can post normally after deactivating PHP Exec which is an annoyance because of my php code at the front page.
Any help or idea?
#315: i don’t see any reason why it wouldn’t work with php in cgi mode as i’m using cgi mode too. better consult your provider why it doesn’t work, they should know the answer.
Great plugin, thanks for making it. Udah dicoba dan ternyata bekerja dengan baik.
Hi, I’ve been using this great plugin for some months now and it has worked fine.
But, today I noticed it just stopped working. Do you know of any incompatibility?
Just to let you know, I’ve disabled all my plugins and it still does not work…
What I might have done wrong?
Priyadi, if this can help, I installed another PHP plugin (Exec-PHP) and it works fine.
What can it be?
#316. Thanks for responding. However, still have problems. I asked them to check PHP CGI and said it´s working okay. Will let you know if I could ever find a solution. It was perfect while working though!
I was wondering if someone has used variable variables successfully with this plugin. I’ve been playing around with it for a bit and I’m getting an error when I use the following code:
foreach($$class_name as $name){
$weighted_stats[$name] = $stat_array[$ct];
$ct++;
}
The error is “Warning: Invalid argument supplied for foreach() in /path/to/wp-content/plugins/phpexec.php(61) : eval()’d code on line 39″
This works fine if I C&P the code into it’s own .php file and execute it on the same server.
Hi-great plug-in.
Today tried to do wp_list_pages for a site map.
Works fine with no arguments, but fails completely (just shows the php clause, when I add arguments.
Thoughts?
Ted
Me again.
Previous post resolved!
Tried my list_pages code again, but with fewer arguments this time.
Hey presto - works like a charm.
Why? Don’t know, don’t care.
… but I’m happy.
Reagrds
Ted
Thsi plugin works great, and it’s the best of the various PHP plugins that I’ve tried. Thanks!
Just to let you know, I’ve disabled all my plugins and it still does not work
eval($php);
menjadi
eval(”
the plugin doesn’t work after upgrading wp to 2.05
Pls help me
It works in 2.06. and thank you ^_^ Was totally needing a script like this one.
Hm.. but is the ?> missing from the text file? Or is it unnecessary?
cool stuff
will use on mu wordpress mu
Well,
Your php of the plugin is wrong, in the end it’s:
add_filter(’excerpt_save_pre’, ‘php_exec_pre’, 29);
add_filter(’excerpt_save_pre’, ‘php_exec_post’, 71);
add_filter(’the_excerpt’, ‘php_exec_process’, 2);
but, where is the code:
?>
I’m sorry for my terrible english, i know it
There appears to be a problem with the visual editor in Wordpress 2.1 if you edit a post that has the code in it. The new formatting removes the phpcode entered. Anyone else have this problem?
it does not seems to work for wordpress 2.1
… or it’s only me?
Hello,
does that plugin also work with Joomla, when I use Wordpress with Joomla?
does anybody have experiences with that?
yeah…it didnt work for me either…
Is there a fix for the plugin to work with Wordpress 2.1?
If not, does anyone else have one? Thanks in advance.
Why don’t run with WP 2.1 ?
I have just installed it on WP 2.1 and it DOES seem to work
, at least the example:
it appears that Wordpress 2.1 strips the <?php tags when adding or editing as a security precaution — I don’t think there’s any good way for the plugin to work around that, besides automatically adding the tags. I worked around it by editing the post in the database. This is it working:
http://www.joeterranova.net/friends/
hi there, my trackbacks does not work! thanks a lot for your little plugin
cheers,
michael
Thank you very much for a great plugin!
Thank you so much!
You’re a genius!
It works perfectly!
Well, it works fine with WP 2.1.3, but it doesn’t work in WP 2.2.
Or does it?
sono eccitato circa questo luogo, buon lavoro!
Those of you complaining about it not working - make sure you paste the php code into the “code” and not the “visual” section of writing a post or page.
Masih belum nangkep juga. Baca lagi ah.
Thanx for the plugin
Fantastic plugin. Works perfectly. Now we can write almost anything in WordPress without resort to static web pages. Thanks.
Thanks for the plugin!
This scrolling all the way down with a little scroll bar is annoyin, if ur so good at php make this split into pages! jesus!!!!
Dude u rock…. I am currently making a custom user site map with this plug in. Thanks!
“Those of you complaining about it not working - make sure you paste the php code into the “code” and not the “visual” section of writing a post or page.”
I don’t understand this… it is not working for me, it just displays the php as text in post or page.
I am still having an issue getting this to work with query strings.
ex:
?php echo "<a href=site.com?x={$_GET['x']}&y={$_GET['y']}>Link Text</a>" ?They work fine if posted outside an href, but not inside.
Solution from #135 does not seem to function.
Any advice?
I’m trying to get rss feed to be incorporated in the WP posting. it works ok. but all the php coding gone when ever I want to edit the posting. any idea what when wrong ? thanks. Azman
Priyadi wp phpexec…
This plugin lets you execute dynamic PHP code in posts. It masks PHP code before balanceTags, and unmask them afterwards, so it should be safe to use PHP code that has literal HTML tags in it, for example: code which print out HTML.
Requirement
WordPre…
Bos, gini neh ceritanya :
saya install di localhost -> berjalan ok dan normal
info : saya gunakan software vertrigo (php 5)
namun ketika saya upload ke tempat hosting -> tidak mau jalan sama sekali, hanya mengembalikan
Dear Priyadi,
Nice plug-in. Although the documentation is not clear the source is self explanatory. I found a small compatability problem with latest Wordpress release(2.2.2).
on Line 48: $phpexec_userdata = get_userdatabylogin(the_author(’login’,false));
arguments to the_author() function are deprecated. You need to use the_author_login() or the_author_ID() for this purpose. I suggest the use of the_author_ID() and get_userdata($user_id) for query efficiency.
for others, simply replace line 48 with the code below.
on line 48: $phpexec_userdata = get_userdata(the_author_ID());
Thank you. Keep up the good work.
In my last comment i forgot to mention, to use get_the_author_ID() instead of the_author_ID().
so summing up, the line 48 should be:
$phpexec_userdata = get_userdata(get_the_author_ID());
Thank you.
Its not working for me
The .txt file attached to this post is missing a ?> at the end. So, if you want to run this plugin, remember to put a ?> at the end once it’s changed to phpexec.php
Until it’s updated here that is.
/
Great plugin, Thanks.
This is not working in WP 2.3 at all.
I activated the plug in, added the missing ?> at the end of the file and made a page using JUST the example posted here.
I am ONLY using the “code” method to create the page.
All it shows me is the PHP code in the page.
Please Help.
I have the same problem in wordpress 2.1, the code just displays in the page.
Is there a problem with the file or is it a compatability issue?
I ask as the download seems to end abruptly, no closing tags (which may be correct) and code right down to the last line… some EOF comments may help avoid any confusion…
Is this plug still maintained in any way, I see no comments from Priyadi for over 12 months??
To those who cannot get this solution to work for them (myself included
), I managed to find a nicer solution which I got working in less than 5 minutes!
Hope this helps.
Can this link work with affiliate tracking script? Can it work with Zoundry Raven Blog Writer?
thanx
Great plugin! Thank you!
this plugin is not working at all for me…
Thanks for this plugin
I am using it with WPMU, and after making the two changes previously mentioned above [changing 1 line of code and closing the php bracket at the bottom of the file] I still found I could not edit pages with the code: any unrecognised html is stripped out of the pages. I had to go into the database and change the post content manually, but once I did - success! Might be a fix for some others who have the same problem of the code still not working.
kok dia ga jalan di wordpress 2.3.3 ya ? apakah tidak ada fix nya ?
Thank you
Thank you! Works fine!
PHP en WordPress…
Esta vez os mostramos una idea para mejorar las funcionalidades de vuestro Blog en WordPress, incluyendo código PHP en vuestras Páginas, Posts y Widgets. Si bien es cierto que hay multitud de Widgets que nos permiten hacer esto, no se si os habéis f…
wah,blognya rame banget pengunjungnya,,,
/
Hello,
The plugin is not working with the following code. I tested it on the html directly and it works, but not in the post editor. Other codes do work
The code is:
Hi, am trying to find a php page plugin for Wordpress MU (WPMU) 2.6…afraid of breaking my blog - do you know if this plugin (since it has not update recently that I can view) is compatible? I am trying to place a script with javascript in PAGE content (like the new firef.ly plugin for chat on a page). I dont know enough about coding or tweaking code in WPMU to mess with requirements. thnaks. CF
Halo Mas,
Maaf neh sebelumnya kalo postingan ini udah basi, saya juga mencoba plugin yang mas pri buat, tapi kok gak jalan ya di blog saya yang ini.
tapi saya pake di blog yang ini bisa, bisa bantu?