Also throws a warning.PHP Code:echo $arr["key"]; //echos nothing, because it doesnt exist.
Also throws a warning.PHP Code:echo $arr["key"]; //echos nothing, because it doesnt exist.
Twey | I understand English | 日本語が分かります | mi jimpe fi le jbobau | mi esperanton komprenas | je comprends français | entiendo español | tôi ít hiểu tiếng Việt | ich verstehe ein bisschen Deutsch | beware XHTML | common coding mistakes | tutorials | various stuff | argh PHP!
Thanks, i understand the non-existing part but don't understand that thing about warning part...
And one more thing, how do you record a persons ip address (PHP)
There are three levels of message in PHP: error, warning, and informational. By default, PHP only displays error messages, which indicate when something's gone wrong and the script is unable to continue. However, it can also display warning messages, which highlight bad coding practices (such as accessing non-existent variables or array elements) and other potential problems, and informational messages, which just give a information about what something is doing. To show them all (and I recommend doing this when debugging a script), call:i understand the non-existing part but don't understand that thing about warning part...Code:error_reporting(E_ALL);The IP address of the client (note that this may also be a proxy) is stored in $_SERVER['HTTP_REMOTE_ADDR'].how do you record a persons ip address
Twey | I understand English | 日本語が分かります | mi jimpe fi le jbobau | mi esperanton komprenas | je comprends français | entiendo español | tôi ít hiểu tiếng Việt | ich verstehe ein bisschen Deutsch | beware XHTML | common coding mistakes | tutorials | various stuff | argh PHP!
Thanks for your posts guys, just one question to twey - HOW DO YOU KNOW EVRYTHING ?!!
![]()
I don't... you evidently weren't here to see mwinter in action![]()
Twey | I understand English | 日本語が分かります | mi jimpe fi le jbobau | mi esperanton komprenas | je comprends français | entiendo español | tôi ít hiểu tiếng Việt | ich verstehe ein bisschen Deutsch | beware XHTML | common coding mistakes | tutorials | various stuff | argh PHP!
Speaking of mwinter... were has he gone?
he hasnt posted scince the holidays...
So are you lot saying that mwinter was the best ?
One more question - is there a "dictionary" for php that lists all those functions ? eg HTTP_REMOTE_ADDR,....
We're not sure... djr33 emailed him, but there was no response.Speaking of mwinter... were has he gone?They're not functions, but yes: http://www.php.net/manual/en/reserve...riables.server.is there a "dictionary" for php that lists all those functions ? eg HTTP_REMOTE_ADDR,....
Twey | I understand English | 日本語が分かります | mi jimpe fi le jbobau | mi esperanton komprenas | je comprends français | entiendo español | tôi ít hiểu tiếng Việt | ich verstehe ein bisschen Deutsch | beware XHTML | common coding mistakes | tutorials | various stuff | argh PHP!
Bookmarks