If you've got another service (e.g., tomcat) fighting for port 8080, you can change the port Oracle uses with the following calls:
-- change HTTP port from 8080 to 8083 call dbms_xdb.cfg_update(updateXML(dbms_xdb.cfg_get(), '/xdbconfig/sysconfig/protocolconfig/httpconfig/http-port/text()', 8083)); -- change FTP port from 2100 to 2111 call dbms_xdb.cfg_update(updateXML( dbms_xdb.cfg_get(), '/xdbconfig/sysconfig/protocolconfig/ftpconfig/ftp-port/text()' , 2111)); -- refresh settings exec dbms_xdb.cfg_refresh;
Tip borrowed from an article by red-database-security.com.
configurationconflictftphttporacleportssqltomcat
Sometimes it's necessary to access raw post data. The easiest way to do this is by opening the php://input stream:
$fp = fopen('php://input', 'r');
httpiolanguagesphppostprogrammingsyntax
When using sessions in PHP, the default PHP configuration causes PHP to send a no-cache header to your browser so that session-managed pages are not cached. Sometimes this is not the desired behavior, such as when writing a script whose output is binary data such as images which are stored in a database. If this is the case, you can turn off the caching by using functions to modify the PHP configuration on a per-request basis. Call these functions before calling the session_start() function:
// Let the browser and proxies cache output
session_cache_limiter('public');
// One-day (60 * 24, in minutes) cache expiration time for output
session_cache_expire(60 * 24);
(Note: this behavior is documented at http://www.php.net/manual/en/ref.session.php.)
functionsheadershttplanguagesphpprogrammingsession