Call php file witin a wordpress post?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • ManOfBusiness
    Registered User
    • Apr 2007
    • 58

    #1

    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
    So Fucking Banned
    • Apr 2001
    • 122992

    #2
    See if this is what you need

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

    Comment

    • fris
      Too lazy to set a custom title
      • Aug 2002
      • 55679

      #3
      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.
      Since 1999: 69 Adult Industry awards for Best Hosting Company and professional excellence.

      Comment

      • fris
        Too lazy to set a custom title
        • Aug 2002
        • 55679

        #4
        http://www.amberpanther.com/knowledg...-post-content/
        Since 1999: 69 Adult Industry awards for Best Hosting Company and professional excellence.

        Comment

        • Jakez
          Confirmed User
          • Jan 2004
          • 5656

          #5
          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.
          [email protected] - jakezdumb - 573689400

          Killuminati

          Comment

          • fris
            Too lazy to set a custom title
            • Aug 2002
            • 55679

            #6
            Originally posted by Jakez
            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.
            Since 1999: 69 Adult Industry awards for Best Hosting Company and professional excellence.

            Comment

            Working...