[wp-hackers] home.php and trying custom php

Dion Hulse (dd32) wordpress at dd32.id.au
Sun Feb 19 02:42:02 UTC 2012


No, sending a redirect is completely wrong.

Enable WP_DEBUG and you'll see whatever the PHP Error message is that
you're seeing.
http://codex.wordpress.org/Debugging_in_WordPress

On 19 February 2012 13:36, Doug Stewart <zamoose at gmail.com> wrote:
> Send a redirect. Including is the wrong answer.
>
> Also, this sort of question is best placed in the WordPress.org forums
> or perhaps even the WordPress StackExchange. Not appropriate for
> wp-hackers.
>
> On Sat, Feb 18, 2012 at 9:18 PM, Sinan <sinan at sinanisler.com> wrote:
>> Hello,
>>
>> I make home.php and put this code;
>>
>> <?php if(1==2){ echo "Custom Hello World"; } else {
>>
>> include('index.php');
>>
>>
>> } ?>
>>
>> I expect index.php comes, but its not opening-running only blank page
>> coming.
>>
>> Anyone know what code will be work in this case?
>>
>>
>> Thanks.
>>
>>
>> --
>> Sinan İŞLER
>> sinanisler.com <http://www.sinanisler.com>
>> fb.com/sinanisler
>> _______________________________________________
>> wp-hackers mailing list
>> wp-hackers at lists.automattic.com
>> http://lists.automattic.com/mailman/listinfo/wp-hackers
>
>
>
> --
> -Doug
> _______________________________________________
> wp-hackers mailing list
> wp-hackers at lists.automattic.com
> http://lists.automattic.com/mailman/listinfo/wp-hackers


More information about the wp-hackers mailing list