Welcome Guest, Not a member yet? Register   Sign In
Did we ever figure out custom 404 pages?
#10

[eluser]skunkbad[/eluser]
Yes, by setting the context param to NULL, you won't be posting the show error vars over to the controller. For most sites this isn't a big deal, since the 404 is all most people are likely to get, but if you use custom show errors, then they won't be seen the right way.

The real issue with creating the stream context comes from if php is compiled --with-curlwrappers. You can see this if you use phpinfo. A section near the very top shows what extensions php was loaded with, and if --with-curlwrappers is not there, you can use the block of code I was only running on localhost. This to me is a bug, or at minimum a real pain, and documentation is crap for this --with-curlwrappers thing.

The real difference is the way that the context param is set. Take a look and you will see only a slight difference.

Also, Tominator is a super genius, so he might create a better solution, but if this one works for you, then have fun, and don't forget me when you are rich.


Messages In This Thread
Did we ever figure out custom 404 pages? - by El Forum - 04-23-2010, 11:40 PM
Did we ever figure out custom 404 pages? - by El Forum - 04-24-2010, 01:26 AM
Did we ever figure out custom 404 pages? - by El Forum - 04-24-2010, 08:43 AM
Did we ever figure out custom 404 pages? - by El Forum - 04-24-2010, 10:34 AM
Did we ever figure out custom 404 pages? - by El Forum - 04-24-2010, 10:44 AM
Did we ever figure out custom 404 pages? - by El Forum - 04-24-2010, 03:39 PM
Did we ever figure out custom 404 pages? - by El Forum - 04-24-2010, 03:48 PM
Did we ever figure out custom 404 pages? - by El Forum - 04-24-2010, 06:27 PM
Did we ever figure out custom 404 pages? - by El Forum - 04-24-2010, 07:18 PM
Did we ever figure out custom 404 pages? - by El Forum - 04-24-2010, 09:15 PM
Did we ever figure out custom 404 pages? - by El Forum - 04-24-2010, 11:31 PM
Did we ever figure out custom 404 pages? - by El Forum - 04-25-2010, 12:00 AM
Did we ever figure out custom 404 pages? - by El Forum - 05-18-2010, 04:59 AM
Did we ever figure out custom 404 pages? - by El Forum - 05-18-2010, 08:23 AM



Theme © iAndrew 2016 - Forum software by © MyBB