php Programming Glossary: i'd
PHP Sessions across sub domains http://stackoverflow.com/questions/1064243/php-sessions-across-sub-domains important and can't figue out what. If you have an idea I'd love to hear it. Thanks in advance ~John share improve this..
Asynchronous PHP calls? http://stackoverflow.com/questions/124462/asynchronous-php-calls asynchronous share improve this question The answer I'd previously accepted didn't work. It still waited for responses...
Using a regular expression to validate an email address http://stackoverflow.com/questions/201323/using-a-regular-expression-to-validate-an-email-address use functions that use several shorter expressions but I'd rather have one long complex expression in a simple function..
Simplest way to profile a PHP script http://stackoverflow.com/questions/21133/simplest-way-to-profile-a-php-script PHP script What's the easiest way to profile a PHP script I'd love tacking something on that shows me a dump of all function..
PHP tutorial that is security-, accuracy- and maintainability-conscious? [closed] http://stackoverflow.com/questions/2119083/php-tutorial-that-is-security-accuracy-and-maintainability-conscious to you really. But I'm looking to learn PHP now and I'd like to be able to write good code. Where's a tutorial that..
Truncate a multibyte String to n chars http://stackoverflow.com/questions/2154220/truncate-a-multibyte-string-to-n-chars public function truncate string chars 50 terminator ' I'd expect this in abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWYXZ1234567890..
Convert one date format into another in PHP http://stackoverflow.com/questions/2167916/convert-one-date-format-into-another-in-php date 'Y m d H i s' middle returns 1970 01 01 00 00 00 But I'd of course like it to return a current date rather than the crack..
How do you implement a good profanity filter? [closed] http://stackoverflow.com/questions/273516/how-do-you-implement-a-good-profanity-filter single token is dirty or not and then simply disallow it. I'd not bother preventing a sentiment like the totally hilarious..
How can I convert a series of parent-child relationships into a hierarchical tree? http://stackoverflow.com/questions/2915748/how-can-i-convert-a-series-of-parent-child-relationships-into-a-hierarchical-tre tree I have a bunch of name parentname pairs that I'd like to turn into as few heirarchical tree structures as possible...
Robust and Mature HTML Parser for PHP [duplicate] http://stackoverflow.com/questions/292926/robust-and-mature-html-parser-for-php libxml based If you prefer to use a 3rd party lib I'd suggest using a lib that actually uses DOM libxml underneath..
How can I create friendly URLs with .htaccess? http://stackoverflow.com/questions/3033407/how-can-i-create-friendly-urls-with-htaccess this question In the document root for http website.com I'd put an htaccess file like this IfModule mod_rewrite.c RewriteEngine..
How do you parse and process HTML/XML in PHP? http://stackoverflow.com/questions/3577641/how-do-you-parse-and-process-html-xml-in-php libxml based If you prefer to use a 3rd party lib I'd suggest using a lib that actually uses DOM libxml underneath..
How to parse HTML with PHP? [duplicate] http://stackoverflow.com/questions/3650125/how-to-parse-html-with-php libxml based If you prefer to use a 3rd party lib I'd suggest using a lib that actually uses DOM libxml underneath..
Secure hash and salt for PHP passwords http://stackoverflow.com/questions/401656/secure-hash-and-salt-for-php-passwords MD5 is partially unsafe. Taking this into consideration I'd like to know which mechanism to use for password protection... to achieve a good balance between speed and safety Also I'd prefer the result to have a constant number of characters. The.. user perception can tolerate. The lowest number I'd recommend is 2500 rounds. Also make sure to use hash_hmac if..
MySQL Great Circle Distance (Haversine formula) http://stackoverflow.com/questions/574691/mysql-great-circle-distance-haversine-formula Latitude values and then inputs them into a MySQL query. I'd like to make it solely MySQL. Here's my current PHP Code if..
How can I convert ereg expressions to preg in PHP? http://stackoverflow.com/questions/6270004/how-can-i-convert-ereg-expressions-to-preg-in-php regular expressions ereg are deprecated since PHP 5.3.0 I'd like to know an easy way to convert the old expressions to PCRE..
How do I enable error reporting in PHP? [duplicate] http://stackoverflow.com/questions/6575482/how-do-i-enable-error-reporting-in-php error I get a 500 Internal Server Error. At my old host I'd get something like Fatal error Expecting . How do I enable that..
How can one check to see if a remote file exists using PHP? http://stackoverflow.com/questions/981954/how-can-one-check-to-see-if-a-remote-file-exists-using-php favicons next to them. However if a site doesn't have one I'd like to replace it with another image rather than display a..
Which Coding convention to follow for PHP? [closed] http://stackoverflow.com/questions/139427/which-coding-convention-to-follow-for-php php coding style share improve this question For PHP i'd suggest to follow Zends suggestions As you might know Zend is..
Best pdf generator in PHP , mpdf or fpdf? [closed] http://stackoverflow.com/questions/1648715/best-pdf-generator-in-php-mpdf-or-fpdf pdf generation share improve this question personally i'd rather go with tcpdf which is an ehnanced and mantained version..
Inserting data in XML file with PHP DOM http://stackoverflow.com/questions/194574/inserting-data-in-xml-file-with-php-dom the XML is the same as before. What did i do wrong Also i'd like to know if there's a better way of doing it. php xml dom..
PHP: Best way to extract text within parenthesis? http://stackoverflow.com/questions/196520/php-best-way-to-extract-text-within-parenthesis php parsing string share improve this question i'd just do a regex and get it over with. unless you are doing enough..
PHP Loginsystem: Remember Me http://stackoverflow.com/questions/3128985/php-loginsystem-remember-me so I have my loginsystem for now. Now im coming to where i'd like to have a remember me that you can check before you log..
Which is faster: in_array() or a bunch of expressions in PHP? http://stackoverflow.com/questions/324665/which-is-faster-in-array-or-a-bunch-of-expressions-in-php php arrays if statement share improve this question i'd strongly suggest just using in_array any speed difference would..
MySQL diacritic insensitive search (spanish accents) http://stackoverflow.com/questions/3304464/mysql-diacritic-insensitive-search-spanish-accents search. For instance if I search for lapiz without accent i'd like to get results containing the word lápiz from my db. The..
saving checkbox state on reload http://stackoverflow.com/questions/3313595/saving-checkbox-state-on-reload the checkboxes are back to their default state. i know i'd have to use sessions but how do i make the checkbox state persist..
PHP Coding style - Best practices [duplicate] http://stackoverflow.com/questions/3350560/php-coding-style-best-practices php coding style share improve this question For PHP i'd suggest to follow Zends suggestions As you might know Zend is..
Simplify PHP DOM XML parsing - how? http://stackoverflow.com/questions/3405117/simplify-php-dom-xml-parsing-how at the reading phase too Problem 2 Because i have pages i'd like to load as less information as i can. That was why i created..
recommend a PHP script to create XML sitemap? (crawl/scrape method) http://stackoverflow.com/questions/3806188/recommend-a-php-script-to-create-xml-sitemap-crawl-scrape-method that i can just run on a cron and exclude directories then i'd love to hear about it I'd prefer to use a scraper crawler type..
Zend_Cache: After loading cached data, character encoding seems messed up http://stackoverflow.com/questions/4041968/zend-cache-after-loading-cached-data-character-encoding-seems-messed-up 8 ISO 8859 1 i didn't test it use it at your own risk and i'd rather stick with the first solution result false f @fopen file..
Php to replace @username with link to twitter account http://stackoverflow.com/questions/4766158/php-to-replace-username-with-link-to-twitter-account we store all the text in a varilable let's say story. What i'd like is to do a str_replace I think that's what I need that..
Parse SELECT clause of SQL queries into a PHP array http://stackoverflow.com/questions/4968690/parse-select-clause-of-sql-queries-into-a-php-array sent to the server. Very complicated why im doing this so i'd rather not go into the reason for this. In PHP i need to store..
Doing calculations in MySQL vs PHP http://stackoverflow.com/questions/6449072/doing-calculations-in-mysql-vs-php what you expect. As for which layer you should do this on i'd favour the DB for as in the example it lets you use column defaults... the example it lets you use column defaults. For most apps i'd do this in PHP. Combining first name and surname sounds simple..
How to do text DIFF using PHP? http://stackoverflow.com/questions/736771/how-to-do-text-diff-using-php you just have to test and evaluate. for storing i'd store the plain text not the diffs. space is cheap many databases..
How to make a chat room script with PHP? http://stackoverflow.com/questions/772471/how-to-make-a-chat-room-script-with-php programming language for the backend. for the backend i'd recommend java or python because they are multithreading and.. by writing your own http server possible with php but i'd not recommend it for serious work . that's not really complicated..
Multiple Inheritance in PHP http://stackoverflow.com/questions/90982/multiple-inheritance-in-php The two types of Invitation classes have a lot in common i'd love to have a common parent class Invitation that they both..
|