[PHP] Turning magic quotes on/off.
Hi, I just struggled with quoting in php3 and php4. Traditional old-style raw data would be nice to have but using set_magic_quotes_runtime (false) doesn't help. Should that turn it off anyway? Another thing not documented to me is get_magic_quotes_gpc (). What does the gpc part mean? Best regards, Sven Klose -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP] building a search engine ??
I am thinking of building a search engine with the grep command for our site. i have my information in a mysql db, but i am putting it back into text files. reoson being is that maybe the mysql db goes down under hevy load, and then our site would look like a tree with out branches. So i put all the info in the text files. now for the search engine i have a form that posts of the pattern. on the page receiving this pattern as say $searchpattern i do the command grep --binary-files=without-match -lri "$searchpattern" $path is this too resource intensive ? How does this idea sound ? please let me know. thanx in advance for any replies. Cape Town South Africa -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP] stop a file called foo.bar
stop a file called foo.bar from being downloaded with a web server ? Say you'r web site's name is foobar.net. ..and... Script-kiddy Johny knows that, but also knows that you'r secret file is called foo.bar and it is saved in the root dir. of you'r web site. in a http browser little Johny can simply type in http://www.foobar.net/foo.bar"; to download it, since the web server (i am on) will trigger the clients download box to open, because its not a wrapped extension, or php, or htm, or so . I have looked into the .htaccess file and added the directive IndexIgnore *.* there'r millions of directives and i am looking at them now, But please tell me if there IS NOT a directive I can add to the htacces file to keep "little Johny" from downloading the file. Because then i might just look the whole day long for nothing ! Thanx a lot for your time Ben enjoy the day :-) -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]