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/plugins
directory - 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: Thursday 25th 2021f February 2021 08:19:42 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… :-D ..
Bener-bener lagi demam Plug-in nih.. :-p
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?php
hehee..sebenernya gak usah dibuka lagi juga gak apa2.. cukup tutup dulu di depannya aja.
aduh.. lupa titik koma.. maksudnya
>?php
WordPress 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 ermöglichen 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 :D
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 imágenes subidas y poder meterlas directamente en un post con un par de clicks. – PHP Exec: Permite insertar código 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
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 \:d/
[...] æ–‡ç« çš„ä»£ç ä¸€ç›´æ˜¯é™æ€çš„,现在装了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 [...]
:d
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ã€ï¼Œæ‰å¯ä»¥ä½¿ç”¨é€™å€‹åŠŸèƒ½ã€‚ [...]
:)>- Thank you so much!
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 código 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? :d
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 páginas con código php. No funciona, pero según 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 mußte ich durch Exec-PHP ersetzen. Da die Funktionalität 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 \:d/
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…. :D
[...] 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…:x
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
\:d/ Just tested this in WP 2.0.4 and it works great. I always disable that visual editor anyway, this isn’t the only plugin that messes with. I didn’t have to alter the latest download of this plugin at all, works out of the zipfile, no issues! Thank you!
:)>-
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! :d 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\:d/
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!:d
“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. :d/
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 :-w ), 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!
:-?:-? Thanks for this plugin :d/:d poleznay shtuka
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…
:-\” Guys would like to know how you can set a cookie with this plugin. I’m tracking keywords for my blog. So i capture 3 url parameters from my blog using GET then append them together to form my tracking id, which i need to store as a cookie
wah,blognya rame banget pengunjungnya,,, :d/
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?
Pa dokter sudah jadi juragan ya.. Met kenal dari anak Bogor… :d
The plugin still works perfectly, even on WordPress 3.0.
Thanks.
pengen nyoba… thank’s
i used the newest WP. can it work for the new one?
I so far love this php plugin but the one issue I have with this is that it does not parse the php code if the page is down the first directory.
For example
A simple code like works with the domain http://mysite.com/ and http://mysite.com/about/
But it won’t work on a site that has http://mysite.com/about/dr-john
Why is that?
Thanks
Any updates from my comment on Comment #380?
I really need help on this.
Thanks.
I figured it out, it was because the username need to be admin for the changes to be in affect.
thanks a lott!!!
I am using multisite and it is not working in sub domains… It is working in my main site but not for my sub domains. Can any one help me out here… I am stuck
Thanks a lot for your great plug-in.
It’s about two months I’m searching for a way to run PHP in the WP (post/page) and finally today I find it, Thanks to you.
With regards,
Sohrab
a version that works with text widgets
warning doesn’t check if user is permitted to use php in text widget!! this check stills works for pages and posts like it used to
<?php
/*
original:
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/
Inspired by runphp plugin by Mark Somerville
http://mark.scottishclimbs.com/archives/2004/07/02/running-php-in-wordpress-posts/
tiny addon for textwidgets by Di-Jo (I realy don't need credits for it, so I realy don't mind if you delete me when you made a version that has it I Just put it this note in to clarifie if it doesn't work it's not the orriginal creators fault
*/
### mask code before going to the nasty balanceTags ###
function php_exec_pre($text) {
$textarr = preg_split("/(.*)/Us”, $text, -1, PREG_SPLIT_DELIM_CAPTURE); // capture the tags as well as in between
$stop = count($textarr);// loop stuff
for ($phpexec_i = 0; $phpexec_i < $stop; $phpexec_i++) {
$content = $textarr[$phpexec_i];
if (preg_match("/^(.*)/Us”, $content, $code)) { // If it’s a phpcode
$content = ‘[phpcode]‘ . base64_encode($code[1]) . ‘[/phpcode]‘;
}
$output .= $content;
}
return $output;
}
### unmask code after balanceTags ###
function php_exec_post($text) {
$textarr = preg_split(“/(\\[phpcode\\].*\\[\\/phpcode\\])/Us”, $text, -1, PREG_SPLIT_DELIM_CAPTURE); // capture the tags as well as in between
$stop = count($textarr);// loop stuff
for ($phpexec_i = 0; $phpexec_i < $stop; $phpexec_i++) {
$content = $textarr[$phpexec_i];
if (preg_match("/^\\[phpcode\\](.*)\\[\\/phpcode\\]/Us", $content, $code)) { // If it's a phpcode
$content = '’ . base64_decode($code[1]) . ”;
}
$output .= $content;
}
return $output;
}
### main routine ###
function php_exec_process($phpexec_text) {
$phpexec_userdata = get_userdatabylogin(the_author(‘login’,false));
if($phpexec_userdata->user_level >= php_exec_getuserlevel()){
$phpexec_doeval = true;
}
$phpexec_textarr = preg_split(“/(.*)/Us”, $phpexec_text, -1, PREG_SPLIT_DELIM_CAPTURE); // capture the tags as well as in between
$phpexec_stop = count($phpexec_textarr);// loop stuff
for ($phpexec_i = 0; $phpexec_i < $phpexec_stop; $phpexec_i++) {
$phpexec_content = $phpexec_textarr[$phpexec_i];
if (preg_match("/^(.*)/Us”, $phpexec_content, $phpexec_code)) { // If it’s a phpcode
$phpexec_php = $phpexec_code[1];
if ($phpexec_doeval) {
ob_start();
eval(“?>”. $phpexec_php . “<?php ");
$phpexec_output .= ob_get_clean();
} else {
$phpexec_output .= htmlspecialchars($phpexec_php);
}
} else {
$phpexec_output .= $phpexec_content;
}
}
return $phpexec_output;
}
function php_exec_options() {
if($_POST['php_exec_save']){
update_option('php_exec_userlevel',$_POST['php_exec_userlevel']);
echo 'User level saved successfully.';
}
?>
PHPExec Options
Minimum User Level
User Level:
<input name="php_exec_userlevel" type="text" id="php_exec_userlevel" value="” size=”2″ maxlength=”1″ />
Sets the minimum level to allow users to run PHP code in posts. If option is not set, then defaults to 9.
<?php
}
function php_exec_adminmenu(){
add_options_page('PHPExec Options', 'PHPExec', 9, 'phpexec.php', 'php_exec_options');
}
function php_exec_getuserlevel(){
if($level = get_option('php_exec_userlevel')){
return $level;
} else {
return 9;
}
}
function php_exec_widget($text)
{
$phpexec_doeval = true;
$phpexec_textarr = preg_split("/(.*)/Us”, $text, -1, PREG_SPLIT_DELIM_CAPTURE);
$phpexec_stop = count($phpexec_textarr);// loop stuff
for ($phpexec_i = 0; $phpexec_i < $phpexec_stop; $phpexec_i++)
{
$phpexec_content = $phpexec_textarr[$phpexec_i];
if (preg_match("/^(.*)/Us”, $phpexec_content, $phpexec_code))
{ // If it’s a phpcode
$phpexec_php = $phpexec_code[1];
if ($phpexec_doeval)
{
ob_start();
eval(“?>”. $phpexec_php . “
//the above was missing this piece
$phpexec_php . “<?php ");
$phpexec_output .= ob_get_clean();
}
else
{
$phpexec_output .= htmlspecialchars($phpexec_php);
}
}
else
{
$phpexec_output .= $phpexec_content;
}
}
return $phpexec_output;
}
add_action('admin_menu','php_exec_adminmenu',1);
add_filter('content_save_pre', 'php_exec_pre', 29);
add_filter('content_save_pre', 'php_exec_post', 71);
add_filter('the_content', 'php_exec_process', 2);
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);
add_filter('widget_text', 'php_exec_widget', 1);
[...] Search Meter [...]
[...] the PHP Exec Plugin http://priyadi.net/archives/2005/03/02/wordpress-php-exec-plugin/References : [...]
i am just trying to post some php..this plug in is really helpful, thnx
[...] jeden tip: Pokud chcete spouÅ¡tÄ›t php kódy pÅ™Ãmo v pÅ™ÃspÄ›vcÃch Äi stránkách, použijte tento plugin. Å tÃtky:wordpress SdÃlej tento [...]
[...] PHP exec: Permite ejecutar codigo PHP dentro de las entradas. [...]
[...] yang dilindungi juga karya turunan (derivasi) tetap dilindungi. Misal Priyadi yang membuat kode plugin PHP exec di WordPress harus mengikuti aturan redistribusi yang berlaku pada WordPress, dan WordPress mengikuti aturan PHP [...]
I am looking for something that displays html text directly in the article, instead of a link to it – is something like that available
[...] Exec 1.7 – When I wrote Part One, I had planed on trying PHP Exec 1.7. However, then I read This Note on the Exec-PHP plugin [...]
Kita coba pake plugin ini dan lumayan bisa nambah buat blog jadi lebih dinamis, cuman kita masih cari cara supaya bisa lebih terjamin security-nya karena pengaturan user level di tempat kita juga agak susah.
Thank you so much – this is exactly what I searched for. I haven´t even try it – but gladly I found a solution to look at!
Like #386 I can only get the plugin to work, it admin is called admin and not his or her full name. Is there a way around this? coz I prefer not to have it called admin.
[...] PHP Exec – Gør det muligt at køre PHP scripts en eller flere steder på din blog, hvor PHP normalt ikker er tilladt. [...]
[...] the phpexec plugin for WordPress to make PHP run inside a WordPress page [...]
[...] PhpExec very similar to what runPHP is providing. [...]
[...] inserción de código PHP en la misma. Uno de estos plugÃns, muy simple y fácil de utilizar, es PHP Exec Plugin. Para integrar código en una página o artÃculo, después de instalarlo, sólo tienes que poner, [...]
[...] to call how do I call these php functions from within my page? Well you need another plugin. I used Php Exec but there are several to choose from. Php is just simple and it works.To call the functions in your [...]
[...] -for executing php in pages/posts: phpexec plug-in [...]
[...] PHP exec: Permite ejecutar codigo PHP dentro de las entradas. [...]
[...] PHP exec: Permite ejecutar codigo PHP dentro de las entradas. [...]
[...] phpEXEC 1.7 [...]
Why it’s not working? I am using WordPress 3.2.1. Please how..
[...] To include ads powered by PHP will require a plugin to allow the code to be executed. RunPHP and PHPExec let you embed dynamic PHP code and PHP based advertising in individual posts. To use [...]
[...] PHP exec: Permite ejecutar codigo PHP dentro de las entradas. [...]
[...] PHP exec: Permite ejecutar codigo PHP dentro de las entradas. [...]
[...] åƒè€ƒ:http://priyadi.net/archives/2005/03/02/wordpress-php-exec-plugin/ [...]
@386 & @402: To be able to use the full name for the administrator, make this change in the code. The old way of checking if a user has administrator rights doesn’t work anymore and I updated it to use a more modern method.
Replace:
With:
Cant get the plug in working for me either!
Hi, I’m trying to use this plugin on a wordpress multisite installation (path based). It works great on my main site gallery page here but does not work on my secondary site gallery page here
Any ideas??
This is shit code. Buggy as hell and just crap.