Forum   Search   Register   Log in SUPERJER FORUM
 

sprinkles


User

User Name sprinkles
Assigned Title  
Assigned Color #ddbb00      
Avatar
Medals Chrome Whore Chrome Whore
Registration Date 2009 September 6
Post Count 2431
Score 10 ₧
Location Colorado Springs, CO
Signature ...then I got some ap, and shot a big ass lazar at everyone.
Timezone US/Mountain
Groups havokk


Recent posts by sprinkles
View all posts by sprinkles

Truck: Iron Sky in General
Saturday at 23:42

Truck: Post From PHP Page to PHP Page in Programming Help
superjer said:
What are you actually trying to accomplish?

I want it so when I it.

No but for reals, I have error.php which handles all my errors and displays a user friendly 'error' page (and if its an admin tells them the error). It also does fancy things like log the error and notify me.

So naturally, when we encounter an error I want to send the error to error.php.

For example:
I spill some soap (the gel kind, because you can't really spill a bar [unless you melt it]) on my database. index.php phreaks out cause it can't connect to the database. So it sends the data/error to error.php. Then error.php nicely says "THE FUCKING DATABASE IS BROKEN D: ," logs the error, and notifies me.

That's pretty much what I want to happen.

I did accomplish this using sessions (and after displaying the error page we set the session['error'] back to null). But is there anyother way?
Friday at 19:53

Truck: The Darkness 2 in Computer and Video Games
Friday at 12:23

Truck: Birds and shit, yo. in General
This is closely related to the story of
Friday at 02:10

Truck: Birds and shit, yo. in General
swain said:
...SJ is the fat one.

Pics or it didn't happen.
Thursday at 21:50

Truck: Birds and shit, yo. in General
I wish we had snow...
Thursday at 14:51

Truck: Post From PHP Page to PHP Page in Programming Help
I wanted to know if I could post from within php to another php file.
Example
PHP code
try
{
// code
}
catch (Exception $e)
{
// post $e to error.class.php
}

Maybe not post per se, but at least send data ($e) to another php page (error.class.php)

And not through sessions. I know it can easily be done using sessions, but for some reason I don't like that idea.
Wednesday at 14:45

Truck: Video Player in Programming Help
Ziggs killed me. Nerf Irelia.
Tuesday at 18:59

Truck: Video Player in Programming Help
I told youtube to make my videos 3d.
2012 Jan 31 at 08:27

Truck: Video Player in Programming Help
All this shit over an image off google? lulz.
2012 Jan 30 at 15:38

Forum and design copyright © 2008-2010 SuperJer.com