note 106360 added to function.apc-fetch

From: Date: Mon, 31 Oct 2011 07:15:34 +0000
Subject: note 106360 added to function.apc-fetch
Groups: php.notes 
Request: Send a blank email to php-notes+get-184238@lists.php.net to get a copy of this message
Note that the APC cache accessible from PHP running through Apache is not accessible from CLI-PHP (the commandline PHP version). They are 2 different APC caches. If you are trying for example to run a script from cron that needs to access the same APC cache as your scripts (executed through Apache) with PHP CLI, use file_get_contents to execute the real script or to send over the data. Doing so executes the script on Apache. You can also specify a return value in order to move data around. <?PHP file_get_contents('http://localhost/actual_processing_script.php'); ?> ---- Server IP: 69.147.83.197 Probable Submitter: 180.53.26.126 ---- Manual Page -- http://www.php.net/manual/en/function.apc-fetch.php Edit -- https://master.php.net/note/edit/106360 Del: integrated -- https://master.php.net/note/delete/106360/integrated Del: useless -- https://master.php.net/note/delete/106360/useless Del: bad code -- https://master.php.net/note/delete/106360/bad+code Del: spam -- https://master.php.net/note/delete/106360/spam Del: non-english -- https://master.php.net/note/delete/106360/non-english Del: in docs -- https://master.php.net/note/delete/106360/in+docs Del: other reasons-- https://master.php.net/note/delete/106360 Reject -- https://master.php.net/note/reject/106360 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#184238) next »