Skip to content

Tag: php

call methods and objects using php

i have this code : in my code i don’t always want to use $test = new test …. I want to use the name directly instead of $test. For example: Answer You should use a factory method pattern or something like that. With a factory method you can create a class based on a string. In PHP it’s not

Is session.cookie_secure in php.ini automatic?

Simple answer requested: If I put in the php.ini file for my website, will that automatically turn all the php cookies to secure and httponly, or will I still need to put in true, true into parameter slots 6 and 7 in the cookie itself? Answer The answer is yes. Setting this in php.ini is enough (however, I on…

Error executing simple select query on salesforce

I’m trying to execute a query: But I get this error: Fatal error: Uncaught SoapFault exception: [soapenv:Client] Element {}item invalid at this location in /Library/WebServer/Documents/force/soapclient/SforceBaseClient.php:797 Stack trace: #0 /Library/WebServer/Documents/force/soapclient/SforceBaseClien…

phpMyAdmin: secret passphrase?

I am using MAMP and every time I login to phpMyAdmin, I am getting the following error/warning message: the configuration file now needs a secret passphrase (blowfish_secret). I have not messed around with any of this settings before. Can someone please clarify this error. Here is the info on my db server: Se…