I have associative array like array { [company 1]=>array ( [1981] => 1 [1945] => 3 ) […
s3 direct upload restricting file size and type
A newbie question but I have googled abit and can’t seem to find any solution. I want to allow users to directly upload files to S3, not via my server first. By doing so, is there any way the files can be checked for size limit and permitted types before actually uploading to S3? Preferably not to use f…
What are the .ini files in /etc/php5/conf.d folder for?
I get that the .ini files in /etc/php5/cli have to do with CLI usage of PHP, the files in /etc/php5/fpm are about FastCGI/FPM aspect of PHP, but what about the .ini files located in /etc/php5/conf.d? Answer From /usr/share/doc/php5-common/README.Debian.gz (on an Ubuntu system with PHP installed): Additionally…
Get custom product attributes in Woocommerce
In Woocommerce, I am trying to get product custom attribute values but I fail miserably and I don’t get anything. So I tried: And I’m getting this raw data: I know that there is a value because it is shown in the attribute section, but I just can’t find a way to get it displayed with my cust…
Auto fill text box depending on Drop Down value
This might be a stupid question but I would like to have a clarification on how to go about this. I have come across quite a few articles that let to set the values of a text box depending on the choices made in a drop down menu using jQuery and Ajax. My issue is when I’m trying to do
PHP code for moving the cursor using the twitter API
So I already have a script that collects the first 4999 followers ids of a twitter user using the API in xml format. I semi understand how the cursor process works but I am confused how to implement it to loop until it gathers all the followers. The user I am attempting to gather will take about 8 calls. Any
Multi-tenant PHP SaaS – Separate DB’s for each client, or group them?
You’ll have to bear with me here for possibly getting some of the terminology slightly wrong as I wasn’t even aware that this fell into the whole ‘multi-tenant’ ‘software as a service’ category, but here it does. I’ve developed a membership system (in PHP) for a clien…
Windows CMD.exe “The system cannot find the path specified.”
Solved by restoring Windows to previous state The message (The system cannot find the path specified.) shows… 1) When i open new CMD (Win+R => cmd). It starts with introduction. (on line 3) …
How to implement bootstraping class in a PHP framework?
I am making my own MVC framework (please do not downvote me because everyone wants to make a framework.) and so.. I want to make a bootstrapping class like I have seen in many frameworks. I am making …
AND/OR Operator Precedence in Google Search
I need to do an advanced Google search, using their SiteSearch API. I’m currently using a string of the following format that is sent via curl to my search engine: $search_url = “http://www.google….