Forum Replies Created

Viewing 7 replies - 1 through 7 (of 7 total)
  • UPDATE: I just found that (for both runPHP and PHPexec) if you enclose your php in <pre> </pre> tags, WordPress won’t insert <br /> at the end of each line of the resulting html.

    However, some php includes still don’t work as expected. I’m not sure yet what is happening.

    UDATE: I just found that (for both runPHP and PHPexec) if you enclose your php in <pre> <pre> tags, WordPress won’t insert <br /> at the end of each line of the resulting html.

    However, some php includes still don’t work as expected. I’m not sure yet what is happening.

    To claify: I was using javascript (embedded in a PHP file) as an include. PHP can include any type of file in a webpage. These plugins SHOULD be able to support this or wordpress should allow you to turn off the automatic adding of <br /> after each line.

    I haven’t done this before but I plan to do this. Crete the WP blog in it’s own directory. make sure it all works the way it should.

    Then, rename the directory the original blogger blog is in (in you case neme “/blog” to “/old_blog”. The rename the WP blog folder “blog”.

    That should do it?

    Both of these plugins (runPHP and PHPexec) will add <br /> after each line of the includes. I only know this because when I use php include to add a javascript file, all these <br />s get added and ruin the code.

    When I include a PHP file, it just doesn’t work but doesn’t show up in the html code-view.

    As I asked elsewhere, is there a setting for WP I can turn off?

    I found that using phpexec with wordpress 2.0 and php 4.4.1 will add <br /> tags to the end of each line of the include making it useless.

    I am using the non-rich post editor and I cannot find any way to turn this “feature” off. I suspect WordPress is adding the <br /> tags. I don’t see anything adding this in the phpexec code.

    Thread Starter gmdavis62

    (@gmdavis62)

    That IS what I’m trying to do. Thanks! I’ll look into the plugins.

Viewing 7 replies - 1 through 7 (of 7 total)