473,498 Members | 37 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Using PHP to set error docs.

kestrel
1,071 Recognized Expert Top Contributor
i need a PHP code, from which i can set all my error documents
(404, 403, ect.)
can someone please help me with this, i dont really do php, so i ahve no idea how to accomplish this.

thanks much
Dec 12 '06 #1
2 1387
b1randon
171 Recognized Expert New Member
i need a PHP code, from which i can set all my error documents
(404, 403, ect.)
can someone please help me with this, i dont really do php, so i ahve no idea how to accomplish this.

thanks much
I'm fairly sure this is done on the server level, not in php. Here's a link which will walk you through the process: http://www.onlamp.com/pub/a/onlamp/2...avidsklar.html
Dec 14 '06 #2
macklin01
145 New Member
I'm fairly sure this is done on the server level, not in php. Here's a link which will walk you through the process: http://www.onlamp.com/pub/a/onlamp/2...avidsklar.html
I'd like to thank you for that link! I just used it myself.

Just a quick note, in the event that you're not using your own server: (e.g., you're a student with a http://department.university.edu/~username website) In that case, you'll want to modify the .htaccess file, as was noted in the beginning of the linked text. Interestingly enough, I had to use "/~username/error-404.php", rather than the full *nix path to get it working.

Here's a test of my 404 page.

Thanks again!! -- Paul
Dec 15 '06 #3

Sign in to post your reply or Sign up for a free account.

Similar topics

3
10367
by: Daniel Borden | last post by:
Big hello to my fellow programmers - I'm new to javascript and PHP and I am wondering if there is a method or function to capture a 404 error in the event a particular html file cannot be found. I...
2
2082
by: Simon | last post by:
I have recently set up a server certificate on a web site. Under certain conditions I need to change the color of a html span element. I do this using the following javascript function called from...
0
2612
by: Dirk Försterling | last post by:
Hi all, a few days ago, I upgraded from PostgreSQL 7.2.1 to 7.4, following the instructions in the INSTALL file, including dump and restore. All this worked fine without any error (message). ...
2
6549
by: Paul Reddin | last post by:
Hi, (V8.1 Fp2) Our application uses JDBC batch to execute mutiple insert statements and we saw a strange thing this morning. There were 4 SQL Insert statements in the batch, and we know the...
4
8363
by: Kevin Myers | last post by:
Hello, Please forgive my reposting of this note with hopefully a more relevant subject line. On an Access 2000 form under Windows 2000 I would like to use a Kodak Image Edit Control to...
1
5575
by: Knepper, Michelle | last post by:
Hi out there, I'm a first-time user of the "Copy ... From..." command, and I'm trying to load a table from a text flat file. http://www.postgresql.org/docs/7.4/static/sql-copy.html I don't...
3
3087
by: mikem76 | last post by:
How do I automatically redirect stdout and stderr when using os.popen2 to start a long running process. If the process prints a lot of stuff to stdout it will eventually stop because it runs out...
5
2104
by: CedricCicada | last post by:
Greetings! I want to write messages into the Windows event log. I found sevicemanager, but the source is always "Python Service", and I'd like to be a bit more descriptive. Poking around on...
3
6155
by: Rajendran | last post by:
Hi all, I've installed pyodbc module to access my database (MS Access). I've setup a User level DSN to the database.mdb file. When I run my python code in the command prompt it is retrieving the...
1
2668
by: amar77 | last post by:
hi, I am getting problem with imorting a xml file into database. I'm using DOM object to extract the data from xml file. But when i tried to execute it in linux hosting it shows an error Fatal...
0
7200
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
6884
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
7375
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
5460
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
1
4904
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
4586
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
3090
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
3078
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1416
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.