Tagged Questions
5
votes
0answers
55 views
Filtering queries based on the current user state
I have a Symfony2 project. I have an Entity Asset which can have relations with Category. I store a ...
2
votes
0answers
189 views
Am I'm using PHP Mcrypt the right way?
I have written a small wrapper class for using PHP Mcrypt for encrypting and decrypting some text data. This class generates a salt for hashing the key and encrypts the given data with the generated ...
2
votes
0answers
176 views
Simple event mediator
I was trying to explain the mediator pattern to a new developer, and ended up writing a simple event mediator. Thoughts?
EventMediator
...
1
vote
0answers
45 views
Split large import task into smaller subtasks
I have a large import task that runs as a cronjob and I want
to split that task in smaller subtasks. Each subtask should be handled by
an own class.
At the cronjob entry point I prepare the ...
1
vote
0answers
151 views
Combine and minimize all .js files in parent folder
I'd appreciate some feedback on my latest PHP script. It is supposed to work like this:
When obtained, it checks whether the cache is still up-to-date
IF YES, return the cache; IF NOT, reset the ...
1
vote
0answers
415 views
Script taking too long for curl request
The below script takes the list of provided url's and scrapes the present links in each url and for each scraped link fb share, ...
0
votes
0answers
267 views
Script is extremely slow to display results
I have this PHP script below that requests data from the Twitter API and then displays it on the page according to the information that I have in my local database because I stored twitter usernames ...