I have php 5.x and apache_note is not an available function!!!
How do I enable or install this?
THanks
-Todd
| SitePoint Sponsor |
I have php 5.x and apache_note is not an available function!!!
How do I enable or install this?
THanks
-Todd



Computers and Fire ...
In the hands of the inexperienced or uneducated,
the results can be disastrous.
While the professional can tame, master even conquer.



The function is packaged in php 4 and 5. I am using php 4.3.11 and the function shows with auto-complete in my Komodo IDE.
When I execute the function in code I get a call to undefined function, could be because I am using IIS on a windows operating system. The manual says is an Apache-specific function.
Computers and Fire ...
In the hands of the inexperienced or uneducated,
the results can be disastrous.
While the professional can tame, master even conquer.
Are you running Apache?
Are you running PHP as an Apache module (not cgi)?
If your answer to either of the above is no it will not be available.
Location: Alicante (Spain)... Hot and Sunny...
Texas Holdem Poker Probability Calculator | DNS test
Avatars | English Spanish Translation | CAPTCHA with audio
Email | PHP scripts | Cruft free domain names | MD5 Cracker
http://localhost/test.php
Code php:header('Content-type: text/plain'); apache_note('test', 'newdata!'); print apache_note('test');
This should print 'newdata!'
If not turn error_reporting to E_ALL do not hide notices.
If it worked I wouldn't need help... of course the error is the SAME as I posted first.
Call to undefined function apache_note()
Then you have a problem with your configuration you sure PHP being run as an Apache Module?
check phpinfo() the first box should have something like this: Server | API Apache 2.0 Handler
WTF, it says CGI in there!
Yetin my apache configuration it says module.
How do I change that? (it's cpanel/whm box)
-Todd
Location: Alicante (Spain)... Hot and Sunny...
Texas Holdem Poker Probability Calculator | DNS test
Avatars | English Spanish Translation | CAPTCHA with audio
Email | PHP scripts | Cruft free domain names | MD5 Cracker
SuExec is in the server build, not PHP. Also I wouldn't consider disabling it just to gain some irrelevant PHP function. The extra security you get from SuExec is worth every minor inconvenience.
Location: Alicante (Spain)... Hot and Sunny...
Texas Holdem Poker Probability Calculator | DNS test
Avatars | English Spanish Translation | CAPTCHA with audio
Email | PHP scripts | Cruft free domain names | MD5 Cracker


There are always multiple users on a Linux system. We're talking OS "users", not physical people. The security you gain by having each website's files owned by that website's user, and non-web files inaccessible to those users, is negated when every script process runs as the apache server's user which has greater permissions. Suexec allows you to run those script processes as the individual user instead, restoring the isolation through permissions. It helps to isolate a security hole in one website from allowing access to all websites and beyond.
17-29% of paid ad clicks are fraudulent. Get protected with Improvely, your online marketing dashboard.
→ Conversion tracking, click fraud detection, A/B testing and more.
Bookmarks