Quantcast

Forums | MacLife

You are not logged in.

#1 2003-01-14 10:12 am

Gipetto
Yankee Doodle's noodle
Royal Wombat
From: People! Ahg!!
Registered: 2000-09-24
Posts: 9941
Website

Another PHP Question...

OK, in my search for free webservice with PHP I've resorted to finding cheap-ass webhosting with PHP.

I'm noticing that some hosts don't necessarily turn off certain extensions, but that they don't give them a value.
Like here:
http://www.dayanahost.com/set1/pages/phpinfo.php

(error handling is what I need right away, but I want to find a relatively open list).
Does no value mean it's usable, or will it be treated like it's turned off?

Thanks

Shawn

Offline

 

#2 2003-01-14 1:32 pm

lostghost
Member
From: Chicago
Registered: 2001-07-08
Posts: 496

Re: Another PHP Question...

Are you referring to the values listed in the "Configuration, PHP Core" section of the PHP info page?

Those values are not necessarily on or off settings. Each one is handled differently so a "no value" in one spot may mean something else intirely in another spot. If you are curious about a specific setting, for example "error_log" which on your example shows "no value", try searching the php documentation at www.php.net for the specific directive.

Also note, that some of these initial settings can be changed by your application. For example, if the server's "error_reporting" directive were set to "1" or "E_ERROR", you might include "error_reporting (E_ALL)" to display all errors, warnings, notices, etc. during development and then may set a lower error reporting level on the live site to suppress error messages.

Hope this helps.

Offline

 

#3 2003-01-14 2:28 pm

Gipetto
Yankee Doodle's noodle
Royal Wombat
From: People! Ahg!!
Registered: 2000-09-24
Posts: 9941
Website

Re: Another PHP Question...

OK, so that makes sense.

I imagine that for security reasons, not all of the 'core' services can be set by a php page, but I'll look that up and see if the ones I need (more importantly - the ones that are currently returning errors) can be set by my php header.

The error I'm getting is this

Code:

Fatal error: Call to undefined function: set_error_handler() in config/include/utils.runtime6.php on line 967

Fortunately GoLive is nice enough to include comment tags in the 'utils.runtime6.php' file so that I know what it's trying to do.

Thanks

Shawn

[edit]
now that I look at the code and look at the PHP manual, it looks like I am trying to set a core function.
My current service has a no for all the core error functions. I wonder if my script would work on a system with 'no value' like the sample.

Again.
Thanks for your help.

Offline

 

#4 2003-01-14 2:52 pm

lostghost
Member
From: Chicago
Registered: 2001-07-08
Posts: 496

Re: Another PHP Question...

I'm not sure that that is a configuration problem. "set_error_handler()" is a function built into PHP 4.0.1 and later.

[edit]
Can you post your phpinfo page?

Offline

 

#5 2003-01-14 3:50 pm

Gipetto
Yankee Doodle's noodle
Royal Wombat
From: People! Ahg!!
Registered: 2000-09-24
Posts: 9941
Website

Re: Another PHP Question...

www.topfroggraphics.com/dynamic/test.php

Site works when run locally on 10.1.3

Offline

 

#6 2003-01-14 4:00 pm

lostghost
Member
From: Chicago
Registered: 2001-07-08
Posts: 496

Re: Another PHP Question...

As I feared, your server is only running PHP 4.0.0 - the function that your page is requesting ("set_error_handler()") is only available in PHP 4.0.1 and later.

Offline

 

#7 2003-01-14 8:02 pm

Gipetto
Yankee Doodle's noodle
Royal Wombat
From: People! Ahg!!
Registered: 2000-09-24
Posts: 9941
Website

Re: Another PHP Question...

Damn!

That bites, in the search for PHP enabled FREE hosting, this one was the best I could find (and only by mention of blobbo elswhere on this forum).

Thpt!

Thanks for checking though, I would have lost hair before I figured that out.

Shawn

[edit]
And wouldn't ya know it.
I read a bit farther in my PHP/SQL book and lo and behold, the next section talks about deciphering errors like this one.

Thank you still.

Shawn

Offline

 

#8 2003-01-14 8:20 pm

lostghost
Member
From: Chicago
Registered: 2001-07-08
Posts: 496

Re: Another PHP Question...

Maybe this is a crazy idea... but set_error_handler() basically just defines how PHP should handle errors. PHP has defaults for handling errors. Maybe try commenting out that line and see what happens.

Who knows...

Offline

 

#9 2003-01-14 11:02 pm

Gipetto
Yankee Doodle's noodle
Royal Wombat
From: People! Ahg!!
Registered: 2000-09-24
Posts: 9941
Website

Re: Another PHP Question...

That's an interesting idea.

I'll give it a shot.

[edit]

It works.
Thanks for the tip.

Now if I could just keep from screwing other things up, this might just work tongue

If it interests you, here is what you helped me with.
http://www.topfroggraphics.com/dynamic/
It ain't much. Looks like crap because I've been too preoccupied getting the darn thing to work.

Offline

 

#10 2003-01-15 8:33 pm

lostghost
Member
From: Chicago
Registered: 2001-07-08
Posts: 496

Re: Another PHP Question...

cool... I'm glad I could help

(I like the "Bow-head" photo.  tongue)

Offline

 

Board footer

Powered by PunBB 1.2.6
© Copyright 2002–2005 Rickard Andersson