New answers tagged php
2
votes
CSV handling class
It's not a class
I would say the main problem here is CSV not really being a class. But rather a collection of functions just "namespaced" under the same class.
One can even take write_csv(),...
6
votes
5
votes
CSV handling class
Bug
The ValidateFilepath function is inadequate. If the file name does not contain a dot (has no extension), your code would fail with an "Undefined array key&...
4
votes
CSV handling class
While it isn't required, it would be good to follow a style guide. One popular set of style guides is the PHP Standards Recommendations - specifically PSR-1 and PSR-12. They have numerous ...
4
votes
Laravel Wallet Service Backend
Firstly it would be a great idea to put all of your RESTful (store, update, show, index, destroy/delete) methods within a Service class, and name them, by convention, store, update, show, index, or ...
3
votes
Drop-down list with 14 options of RSS feed dates
Review
Bearing in mind that this code was posted nearly 11 years ago, perhaps much has been learned about PHP, RSS feeds and similar topics. Is the code still used today?
As Greg alluded to, the ...
Top 50 recent answers are included
Related Tags
php × 4266object-oriented × 651
mysql × 579
security × 391
pdo × 327
performance × 297
laravel × 255
mysqli × 245
html × 240
beginner × 238
array × 220
mvc × 203
sql × 194
php5 × 186
javascript × 181
authentication × 157
validation × 125
design-patterns × 118
form × 111
wordpress × 111
ajax × 109
jquery × 105
session × 95
classes × 94
database × 92