GoFuckYourself.com - Adult Webmaster Forum

GoFuckYourself.com - Adult Webmaster Forum (https://gfy.com/index.php)
-   Fucking Around & Business Discussion (https://gfy.com/forumdisplay.php?f=26)
-   -   Call php file witin a wordpress post? (https://gfy.com/showthread.php?t=946708)

ManOfBusiness 01-04-2010 08:44 PM

Call php file witin a wordpress post?
 
Im not sure if this is possible, to me it should be but I don't know how.
I know there is a plugin that allows you to run php code within wordpress posts...but this is not what I want. I don't want a plugin, and I don't need to type php code in my posts.

I have a php file like mycode.php on my server, and within certain wordpress posts, I just wanna call that file so it runs the php file...how do I do it? In the HTML view, can I just link in someway to that php file? Is what I am asking even possible?

Juicy D. Links 01-04-2010 08:51 PM

See if this is what you need

http://www.hongkiat.com/blog/execute...idget-sidebar/

fris 01-04-2010 09:04 PM

yes its possible, I would make a shortcode so you would do [mycode]

and it will do it only when you do that in the post.

fris 01-04-2010 09:04 PM

http://www.amberpanther.com/knowledg...-post-content/

Jakez 01-04-2010 09:18 PM

Either way, if you know there's a code to run php code within posts you could just do this in posts:

<?php include_once("/full/path/to/file.php");?>
^but this would only include it once on any page if there are multiple posts

OR

<?php include("/full/path/to/file.php");?>

Good luck.

fris 01-04-2010 09:20 PM

Quote:

Originally Posted by Jakez (Post 16709722)
Either way, if you know there's a code to run php code within posts you could just do this in posts:

<?php include_once("/full/path/to/file.php");?>
^but this would only include it once on any page if there are multiple posts

OR

<?php include("/full/path/to/file.php");?>

Good luck.

you need a plugin to run php in posts.


All times are GMT -7. The time now is 02:46 AM.

Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
©2000-, AI Media Network Inc123