corsasport.co.uk
 

Corsa Sport » Message Board » Off Day » Geek Day » PHP Day - Class Functions


New Topic

New Poll
  Subscribe | Add to Favourites

You are not logged in and may not post or reply to messages. Please log in or create a new account or mail us about fixing an existing one - register@corsasport.co.uk

There are also many more features available when you are logged in such as private messages, buddy list, location services, post search and more.


Author PHP Day - Class Functions
Laney
Member

Registered: 6th May 03
Location: Leeds
User status: Offline
29th Jan 08 at 16:11   View User's Profile U2U Member Reply With Quote

I've got a function (clean()) defined within a class (SQL) which every other class extends (products, customers) etc.

When I try to call in the clean function (using $this->clean()) from within a sub-class I get a CGI error

The function itself is fine so it can't be that, it has to be to do with the way its called. I've tried using it as a standalone function and I get the same CGI error.

Its running on IIS if thats any help? Any ideas?

(Code supplied by request )
Laney
Member

Registered: 6th May 03
Location: Leeds
User status: Offline
29th Jan 08 at 16:44   View User's Profile U2U Member Reply With Quote

The exact error is:

CGI Header

The specified CGI application misbehaved by not returning a complete set of HTTP headers.
Ian
Site Administrator

Avatar

Registered: 28th Aug 99
Location: Liverpool
User status: Offline
29th Jan 08 at 17:50   View Garage View User's Profile U2U Member Reply With Quote

Do you get HTTP headers without the call?
Laney
Member

Registered: 6th May 03
Location: Leeds
User status: Offline
29th Jan 08 at 21:23   View User's Profile U2U Member Reply With Quote

Yeah, everything works fine when I don't call the specific function, yet when I take it out of this context its fine with no errors etc.

I've read up on IIS/PHP/MySQL creating CGI errors and theres a slim chance it could be that, something to do with small querys on a fast server?

I'm not using any call to the header() function btw, just a file of classes and functions.

 
New Topic

New Poll

  Related Threads Author Forum Replies Views Last Post
CS Run what you brung day.. nik General Chat 188 5856
2nd Jul 03 at 22:00
by corsaCsxi
 
CS Run what you brung day..Part 2 Cosmo General Chat 146 2324
16th Oct 03 at 08:22
by The Guru
 
any web designers here??? KITcorsa Geek Day 7 1615
12th Jul 06 at 19:16
by Dom
 
Anyone know PHP? Bit of help needed... liamC Geek Day 38 1454
24th Nov 06 at 23:02
by MarkPW
 
All the forza cars! Doug Geek Day 12 952
9th May 07 at 19:48
by Steve
 

Corsa Sport » Message Board » Off Day » Geek Day » PHP Day - Class Functions 29 database queries in 0.0126159 seconds