include function [Q]

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
cyberia
Forum Newbie
Posts: 2
Joined: Fri Aug 24, 2007 1:10 am

include function [Q]

Post by cyberia »

Hi all
1. I use an include functions I want when address was wrong include another page.How can I check function found or not found page?

2.[in wordpress]
how can I redirect 404 page template?

Thanks
User avatar
Oren
DevNet Resident
Posts: 1640
Joined: Fri Apr 07, 2006 5:13 am
Location: Israel

Post by Oren »

Hmm... I can barely read your post so it's really hard for me to tell what you are looking for, but maybe this... function_exists()?
User avatar
VladSun
DevNet Master
Posts: 4313
Joined: Wed Jun 27, 2007 9:44 am
Location: Sofia, Bulgaria

Post by VladSun »

As far as I can understand you post:

For Apache:

edit httpd.conf, Add/change:

Code: Select all

ErrorDocument 404 /path/to/you/page.php
There are 10 types of people in this world, those who understand binary and those who don't
Post Reply