note 118968 added to function.curl-setopt

From: Date: Wed, 09 Mar 2016 20:04:18 +0000
Subject: note 118968 added to function.curl-setopt
Groups: php.notes 
Request: Send a blank email to php-notes+get-205123@lists.php.net to get a copy of this message
Sorry, I made a mistake. For validating cookie entries it is best to use at least: /^([^\t]+\t){6}[^\t]+$/ There was not enough space for me to put in the rationale for not using persistent storage with cookies but it should be obvious. It's YAGNI for most scenarios. In this case at best it complicate things, at the worst you perform an operation using the wrong cookie session. It can also increase the chance of failure, waste resources, reduce performance and create mess in the file system. The plus of persistent is that In some cases it may be used to accelerate across processes but not many people actually need that and when they do there tend to be better options such as using memcached. If someone can edit and merge the comments it would be appreciated. ---- Server IP: 72.52.91.14 Probable Submitter: 149.6.187.130 ---- Manual Page -- http://php.net/manual/en/function.curl-setopt.php Edit -- https://master.php.net/note/edit/118968 Del: integrated -- https://master.php.net/note/delete/118968/integrated Del: useless -- https://master.php.net/note/delete/118968/useless Del: bad code -- https://master.php.net/note/delete/118968/bad+code Del: spam -- https://master.php.net/note/delete/118968/spam Del: non-english -- https://master.php.net/note/delete/118968/non-english Del: in docs -- https://master.php.net/note/delete/118968/in+docs Del: other reasons-- https://master.php.net/note/delete/118968 Reject -- https://master.php.net/note/reject/118968 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#205123) next »