Search found 7 matches

by joeshmoe666
Sun Sep 27, 2009 11:30 pm
Forum: PHP - Code
Topic: Quoted string with angle bracket won't print without space
Replies: 4
Views: 396

Re: Quoted string with angle bracket won't print without space

Sorry .. you're right .. the original problem was I was sending XML to a server and getting an error so I was trying to print out the xml to my screen so I could see if it was formed correctly .. and of course you're right that you can't view the xml that way since it has the < in it .. I can print ...
by joeshmoe666
Sun Sep 27, 2009 10:42 pm
Forum: PHP - Code
Topic: Quoted string with angle bracket won't print without space
Replies: 4
Views: 396

Re: Quoted string with angle bracket won't print without space

Afraid that's not it .. put any character instead of the a and it still does the same thing .. and even if it were reading it as html it should still output it since it's a quoted string..
by joeshmoe666
Sun Sep 27, 2009 9:54 pm
Forum: PHP - Code
Topic: Quoted string with angle bracket won't print without space
Replies: 4
Views: 396

Quoted string with angle bracket won't print without space

This is driving me nuts.. I know it's something really obvious but when I run this code it prints nothing : <?php $Test="hello"; $request="<a"; print_r($request); exit; ?> The only way it prints is if I put a space after the angle bracket like this: <?php $Test="hello";...
by joeshmoe666
Wed Sep 16, 2009 5:48 pm
Forum: PHP - Theory and Design
Topic: Handling PHP errors not sent to custom handler
Replies: 9
Views: 1927

Re: Handling PHP errors not sent to custom handler

Thanks guys .. very helpful, although not what I was hoping.. I don't think apache's error document works because the PHP errors do not appear to bubble up to apache. I tried looking in Apache's error log and it appeared that PHP was generating an error 200, but when I created a doc for it, Apache d...
by joeshmoe666
Wed Sep 16, 2009 4:13 pm
Forum: PHP - Theory and Design
Topic: Handling PHP errors not sent to custom handler
Replies: 9
Views: 1927

Handling PHP errors not sent to custom handler

So I understand that certain PHP errors don't get sent to a custom handler, for instance calling a non-existent function generates an E_COMPILE_ERROR causing execution to halt. So is there any other way to handle this other than the system coming to a halt? Is there some way to use Apache to trap th...
by joeshmoe666
Mon Sep 14, 2009 5:38 pm
Forum: PHP - Theory and Design
Topic: Include all function files at top or require_once as needed
Replies: 3
Views: 834

Re: Include all function files at top or require_once as needed

Thanks for the tips guys .. I was referring to procedural code rather than oop .. but what you said makes sense either way..
by joeshmoe666
Sat Sep 12, 2009 2:29 pm
Forum: PHP - Theory and Design
Topic: Include all function files at top or require_once as needed
Replies: 3
Views: 834

Include all function files at top or require_once as needed

I have been segregating similar functions into individual files and including all the files at the top. Another programmer I know puts them into individual files also but only uses require_once in a file that calls the functions. I prefer my way because then I don't have to remember the require_once...