SitePoint Sponsor |
|
User Tag List
Results 1 to 16 of 16
Thread: apache_note
-
Jun 7, 2007, 12:23 #1
apache_note
I have php 5.x and apache_note is not an available function!!!
How do I enable or install this?
THanks
-Todd
-
Jun 7, 2007, 12:42 #2
- Join Date
- Aug 2005
- Posts
- 453
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
Computers and Fire ...
In the hands of the inexperienced or uneducated,
the results can be disastrous.
While the professional can tame, master even conquer.
-
Jun 7, 2007, 13:38 #3
-
Jun 7, 2007, 13:49 #4
- Join Date
- Aug 2005
- Posts
- 453
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
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.
-
Jun 7, 2007, 22:57 #5
-
Jun 8, 2007, 00:47 #6
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
-
Jun 9, 2007, 00:47 #7
-
Jun 9, 2007, 01:12 #8
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.
-
Jun 10, 2007, 22:58 #9
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()
-
Jun 10, 2007, 23:47 #10
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
-
Jun 12, 2007, 01:32 #11
WTF, it says CGI in there!
Yetin my apache configuration it says module.
How do I change that? (it's cpanel/whm box)
-Todd
-
Jun 12, 2007, 05:04 #12Location: 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
-
Jun 12, 2007, 09:57 #13
-
Jun 12, 2007, 10:07 #14
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
-
Jun 13, 2007, 12:20 #15
-
Jun 13, 2007, 12:56 #16
- Join Date
- Aug 2000
- Location
- Philadephia, PA
- Posts
- 20,578
- Mentioned
- 1 Post(s)
- Tagged
- 0 Thread(s)
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.
Try Improvely, your online marketing dashboard.
→ Conversion tracking, click fraud detection, A/B testing and more
Bookmarks