Sign in or Join FriendFeed
FriendFeed is the easiest way to share online. Learn more »
PHP Programming

PHP Programming

a feed for everything related to & everyone interested in PHP Programming.
Custom RSS/AtomCustom RSS/AtomCustom RSS/Atom
Kristina Roy
Requirement of excellence never lowers down in the world of web designing because there is no room for any kind of inferior approach. The world of online businesses and promotional deals is so wide that everyone wants to stand well in the competition. http://goarticles.com/article...
PHP Programming
SpiffyFramework, using annotations to configure your services (and actions) - http://www.reddit.com/r...
submitted by SpiffyJr [link] [3 comments]
PHP Programming
Why does the documentation of Behat suck so much? And is there any tool that you would recommend instead? - http://www.reddit.com/r...
I'm not trying to troll, but it's Friday night and I'm just so tired of fighting with Behat that I give up. The documentation is non-existent, the examples given are really trivial and the community seems to be restricted to a group of people in London. Is there a decent BDD/functional testing tool for PHP or am I better off just writing tests in Capybara/Cucumber at this point? I'm a developer but our QA people are also interested. We're currently using Behat for BDD but for some testing as well with Selenium. We're actually afraid of being hit, since transmitting this knowledge to newcomers seems next to impossible and there are only a handful of people who can navigate the labyrinth that is Behat and Mink. Sorry for the rant, I'm genuinely interested in your responses. submitted by kuncog [link] [12 comments]
PHP Programming
Avoiding container injection in Symfony2 - http://www.reddit.com/r...
submitted by maskalor [link] [16 comments]
PHP Programming
AUTO SAVE A DRAFT WITH PHP AND JQUERY - http://www.dzone.com/links...
Auto save form fields with the help of PHP and jQuery. Today, I want to go over a simple way of saving your work automatically – by saving a draft of it.
PHP Programming
Templating added to PHP: The Right Way. Got Feedback? - http://www.reddit.com/r...
submitted by philsturgeon [link] [72 comments]
PHP Programming
people are still replying support questions here, so it will never stop make like /r/ubuntu but instead of forcing them to post AskUbuntu/SO links, just remove the post and add a message redirecting to /r/phphelp right now everybody loses since you need to search on both subs and the other one was clearly intended to centralize PHP questions https://i.imgur.com/HFQiTFY... submitted by typethelettersnow [link] [14 comments]
PHP Programming
php and video hosting/editing? - http://www.reddit.com/r...
I'm looking at a project and doing some fact finding. My google searches have been a bit hit and miss, but I wanted to see if anyone in here may have any familiarity with this too. I'm looking at building something (for archive purposes primarily), where I can store videos. Are there any really good libraries for reading/writing metadata? Or extracting additional information such as duration, dimension size, etc? This one might be the big challenge, but transcoding the video from one format to another would also be a goal. I'd be working with people who may used a variety of tools to produce their video, but I'd need to optimize the formats to be something web ready. My last question is, what would be the best solution for uploads? I get annoyed when people try to upload 5mb images for online, but now I'm looking at potential 32GB raw video!! Is the best solution to set up an ftp space that is processed regularly by a cron job? submitted by john-dev [link] [33 comments]
PHP Programming
Performance Discussion - Handling all HTTP Requests through PHP - http://www.reddit.com/r...
I am trying to answer a simple question: Is this a bad idea? THE PROBLEM I have a large client that needs what is essentially 10 copies of the same website for use in 10 different European countries. Obviously, the text will be in different languages, but the images, style, and even some functional elements might be different for each country. While it would be nice if it was just one client controlled the direction of all the sites, this is not the case. Each country site will have a say in the marketing direction for each while sticking to a unified approach. That is an important point because it creates the unknown that one country might request that parts of their site be very different from the other ones. THE NORMAL APPROACH I am not really worried about the text, I know how to handle that through the database using a country code to call the correct data to populate h1's or various paragraphs. The question that I have is about mostly just image assets (js and css too, maybe,...
PHP Programming
what is a php language specification ? - http://www.reddit.com/r...
Either I am being a total n00b or just not with it today but I have been reading a few blogs lately and they talk about language specs what actually is a language spec ? isn't php.net a language spec ? The best article so far I have read is - http://grokbase.com/t... submitted by roobler [link] [18 comments]
PHP Programming
PHP Core Developers versus Facebook: Round 3 - The PHP Specification - http://www.dzone.com/links...
Recently Facebook developers played on another episode of a saga that seems to antagonize Facebook and PHP Core developers. This time they announced an initiative to create a formal specification document for the PHP language. Read this article to learn more about this and previous episodes of this saga, and what this may mean for the PHP future.
PHP Programming
What's your favorite commit message? - http://www.reddit.com/r...
So I just added a commit with the message: == !== === What's your favorite commit message you've ever put on a commit? submitted by JordanLeDoux [link] [25 comments]
PHP Programming
Deploy a PHP app with Docker, Nginx, FPM and CentOS SCL - http://www.reddit.com/r...
submitted by vaceletm [link] [comment]
PHP Programming
Weird PHP bug I can't explain - http://www.reddit.com/r...
I'm running PHP 5.5.9; Ubuntu 14 desktop. I'm having some errors output issue and I will boild down to example. I run the following echo 'a'; echo $asdf; It will give me a correct output error of a Notice: Undefined variable: asdf in /var/www/itty.dev/lib/main.php on line 5 I will then run echo 'a'; echo (asdf; And it will give me nothing. And by nothing I mean not only no error alert, but it won't even output the 'a'; Anybody know whats going on? submitted by php_issue [link] [13 comments]
PHP Programming
Choosing hosting for a Database - http://www.reddit.com/r...
I don't have knowledge about servers so bear with me please. I am making an app for a healthcare facility. This app will handle patient's records(locally) and Doctors Daily Agenda with no patient data, just time schedules.(local and remote). The app would be accessible from mobile device or computer. How should I go about it in terms of location of the database? can I have the Doctors agenda app be hosted remotely(cheap web hosting only for handling doctor's agenda/time schedule)? Is it possible to have the DB for appointments locally and also on a remote server, so in case there is a problem with the internet connection, you can still use the app in the office? submitted by jazzdoin [link] [8 comments]
PHP Programming
Using PHPUnit data provider for less code and greater coverage - http://www.reddit.com/r...
submitted by geshan [link] [5 comments]
PHP Programming
PHP Programming
Does anyone else think the PHP.net website still... well, sucks? - http://www.reddit.com/r...
I posted a feature request to php.net bugs because the website (even though it has been updated recently) is severely lacking. I prefer the look and feel of www.python.org over the PHP site and was wondering what everyone else thought? For what it's worth: the PHP.net documentation is awesome and has minor areas to improve on, but the rest of the site lacks severely. submitted by tsolosmi [link] [7 comments]
PHP Programming
How to automatically adapt website images to Retina and HiDPI devices - http://www.dzone.com/links...
This article details how you can easily and automatically scale your website images to the resolution most appropriate to your viewers mobile devices or screen pixel density. Code samples included for Javascript (jQuery), PHP, Ruby on Rails, Django, Node.js, Java and .Net.
PHP Programming
Is there any benefit to using Codeigniter over Laravel - http://www.reddit.com/r...
Everyone seems to be pushing for Laravel now a days, but is there any benefit still to Codeigniter? Does it excel anywhere where Laravel doesn't? thanks! submitted by poodlecakes [link] [15 comments]
PHP Programming
What would be the best way to take a string of email addresses, and loop through it to parse them to be individual valid email addresses in an array? - http://www.reddit.com/r...
I want to make it so no matter what the user uses as a deliminator, I will still pick up all the emails. lets say the string looked like this: $emailstring='email1@gmail.com, email2@gmail.com,email3@gmail.com email4@gmail.com'; I started with an array of possible deliminators like this: $array=array(' ',', ',',' ); Then I used a foreach statement, like this: foreach($array as $key=>$value) { $deliminated=explode($value,$emailstring); } And then after that, it started getting really complicated, with lots of loops inside of loops, and using this: if (filter_var($val, FILTER_VALIDATE_EMAIL)) { } To check if the resulting strings were valid, and then putting them in a 'valid email' array. But I still haven't gotten it working totally correctly, I keep getting hung up. I have a feeling this is an issue that has been seen many times before, and before I start pulling out my hair in frustration, I just thought it wouldn't hurt to ask. How would you do this? submitted by mrhodesit [link] [5...
PHP Programming
Building a Better PHP — Part 4: More Hack - http://www.reddit.com/r...
submitted by dshafik [link] [comment]
PHP Programming
Change detection and notification(CDN) of WWW content with PHP? - http://www.reddit.com/r...
Does anyone know good open source libraries to list here covering the topic? submitted by kikomiko [link] [3 comments]
PHP Programming
Connection Sharing with CURL in PHP: How to re-use HTTP connections to knock 70% off REST network time. - http://www.reddit.com/r...
submitted by xroni [link] [1 comment]
PHP Programming
PHP and the people who hate it - http://www.reddit.com/r...
Hi, I've been a hobbyist PHP developer and a huge advocate for the language for years but I keep running in to people who seem to hate the language with a passion. The number one thing they always bring up is how insecure the language is. My usual response is that yeah, it's very easy to create unsafe code and that's an issue but it doesn't condemn the entire language. When I ask them to elaborate I just get the same spiel about how the language is insecure and it's a mistake to use it. Are they just talking out of their ass? I've looked up the largest security risks with PHP and it's pretty much unanimous that the biggest security risks with PHP are from human errors. Am I missing something? Is the language inherently flawed and I've been making a mistake using it? Thanks for your time submitted by GlassHalfAwesome [link] [76 comments]
PHP Programming
using arrays to create lisp-like mini language for mysql (and maybe html); any suggestions? - http://www.reddit.com/r...
In case you guys don't know what lisp is, tl;dr is that is an old language without syntax that uses polish notation and parentheses to represent all language constructs. You can also create your own language constructs. For example, this mysql statement : UPDATE table_name SET column1=value1,column2=value2,... WHERE some_column=some_value It can be represented as (update "table_name" (set ('column1 "value1") ('column2 "value2")) (where (= some_column "some_value"))) One advantage of this whole thing is that you don't have to mix multiple languages to create a site. When you program in php, you actually use html, css, php and MySQL. When you program in lisp, you only use lisp. Another advantage is that the language with no syntax is easier to programaticaly generate than one with it. I can auto generate various sql statements as lisp trees. The disadvantage is that lisp is obscure as hell and no one uses it. So I was thinking of using php arrays to get some of that expressiveness of...
PHP Programming
How do you handle time zones? - http://www.reddit.com/r...
Well... it is really killing me. There are thousand ways to deal with it but everything sucks: Should I handle it in PHP alone? Should I let MySQL do it? Where should I change the settings? How should I convert the timezones? What I am doing is setting the timezone with every MySQL session like this: SET time_zone= 'Pacific/Wake'; <- Pacific/Wake is from user input Why? Well I am using index on the timestamp field. And it is very important because the table is huge. Also I am using GROUP BY on the timestamp. I can't use a function in the mysql query to convert the timestamp because then index won't be of any use. CONVERT_TZ() Or should I let PHP do it? But I am using the timestamp in the WHERE clause so I have to convert the timezone from the user input to the server timezone first and then forward it to the query. But I am using it in the GROUP BY too. Also I am using PDO and give the output array as index name the thing wich it is grouped by from GROUP BY. I don't know maybe I am...
PHP Programming
The Neverending Muppet Debate of PHP 6 v PHP 7 - http://www.reddit.com/r...
submitted by freebit [link] [32 comments]
PHP Programming
PHP 5.5.15 has been released - http://www.reddit.com/r...
submitted by Adduc [link] [4 comments]
PHP Programming
How to Spruce up your Evolved PHP Application - http://www.dzone.com/links...
My web based system for cave management (Spelix) has gained a lot of performance improvements. Here I'll show you the best practices that can be easily applied to other web applications as well.
Other ways to read this feed:Feed readerFacebook