Questions about PHP, a widely-used general-purpose scripting language that is especially suited for Web development.
4
votes
4answers
79 views
Is the term 'Front-End' synonymous with 'Client-Side'? If so, is this always the case?
As a relatively new (self-taught) web developer, I've heard the terms front-end, client-side, back-end, and server-side quite often. To me, front-end and back-end were always synonymous with ...
-1
votes
2answers
61 views
Store and trigger cron-'like' actions with PHP and (My)SQL [closed]
I'm crashing my head over a design decision, and I'm trying to get some more inspiration/hints/tips/.. from other programmers.
What is the goal:
I want to run one cron task (php script) every ...
-2
votes
0answers
84 views
What possible questions are asked when on a programming interview? [closed]
I'm quite not sure if this is the right stackexchange site to ask this question but here it goes. I got invited for an interview for a PHP Programmer, and I never really had any real job (only ...
-2
votes
1answer
56 views
Quality assurance with java script especially node.js [closed]
We are building a kind of document management system as a web application. The system consists of two main parts, the backend, where users can add content and the frontend where the content can be ...
-5
votes
1answer
60 views
Want to learn C quicker way after PHP [closed]
I am working with PHP and JavaScript for 3 years and now want to learn C.
When I see C programming books all of them explains from the concept of programming, what is variable, what is data type... ...
0
votes
0answers
8 views
Best location for a websites CMS [migrated]
As part of my job I recently started making numerous content management systems for websites. So many that obviously my next step was to set up a 'template' for the websites so I could quickly remove ...
-2
votes
0answers
31 views
Need help for Bus Station DatePicker/Algorithm to find fastest route between bus stations [closed]
I need a way of implementing a date picker for a website. I have a simple HTML website for bus stations within a city. I'm using PHP and connecting to a MySql Database which contains all the stations. ...
-2
votes
1answer
74 views
How to run php code when user selects a value in a select box? [closed]
I want to run php code when the user selects a value in the select box.
Does anyone have an answer for me?
ps: The php code or a php function would be enough.
-1
votes
1answer
58 views
Alternative to simplexml_load_string() function [closed]
I am using simplexml_load_string for xml string interpreting to object from results of a REST API. It's working fine in my local server, which is using PHP5. But my hosting is in Yahoo and the service ...
3
votes
2answers
184 views
I need advice developing a sensitive data transfer/storage/encryption system
I got closed on SO and told to post this here as it's about general application design as opposed to specific code.
Intro
I'm currently working on a project which involves the daily extraction of ...
-4
votes
0answers
50 views
What are the most important webdev libraries, APIs, features or tools? (other than jQuery) [closed]
I'm new to Web Development and am trying to get a feel for what's out there. What do you find to be the most useful resources when working in web development?
2
votes
1answer
135 views
PHP OOP: Should every object contain all the data?
I'm trying to learn PHP OOP "properly", and I was wondering, should the constructor grab all the information in the database and store it in the object?
To use an example I'm trying to create using ...
-4
votes
0answers
26 views
Sending mail via Zend_Mail_Transport_Smtp gives 5.7.1 error [closed]
I am using zend framework and i write the following code for sending a mail from another sever.Bu t dont know why it throws the following exception.
5.7.1 This email has been blocked. The email ...
0
votes
2answers
229 views
Simple real-world PHP OOP example?
I'm trying to learn PHP OOP, but when I've followed tutorials, all the examples seem to involve things like:
class Human {
$_sex;
public function setSex($sex) {
$this->_sex = ...
1
vote
1answer
98 views
Algorithm for tracking progress of controller method running in background
I am using Codeigniter framework for PHP on Windows platform. My problem is I am trying to track progress of a controller method running in background. The controller extracts data from the ...
0
votes
3answers
103 views
Changing behaviour of abstract class without modifying subclasses
I am facing a problem with changing behaviour of a library (thus cannot or don't want to change its internals because of future updates, etc.).
In this library there is an abstract class which shares ...
-3
votes
0answers
66 views
Curious about reverse engineering / shellcode [closed]
I'm somewhat interested in the concept of reverse engineering. I occasionally browse sites like exploit-db.com and under the local exploits section there are lists of exploits that involve things like ...
-2
votes
2answers
140 views
Interview - Create a portfolio to show my skills [closed]
I have around five years of experience in PHP development
and around one year of experience with ExpressionEngine.
I use PHP 5, HTML, CSS, JavaScript and other web technologies.
I decided to create ...
-2
votes
0answers
72 views
Money Investment Web Platform - Best Programming Language/platform [closed]
I will develop an investment web platform, and I'm concerned with security, database etc.
I've a short period of time to develop this application.
What's your opinion on the proper language, ...
1
vote
1answer
178 views
What is a practical level of abstraction in a web application? [closed]
(Originally asked on StackOverflow - http://stackoverflow.com/questions/14896121/what-is-a-practical-level-of-abstraction-in-a-web-application)
I still consider myself a newcomer to OO programming, ...
1
vote
0answers
42 views
Codeigniter modular separation with Phing
I am thinking of managing a product source I am doing using Codeigniter + HMVC.
Right now my folder structure is something like this:
application
|-modules
|-module1
| |--controllers
...
1
vote
0answers
74 views
codeigniter pagination - how to have multiple sets of pagination links on one view
Problem
I don't know how to create two sets of pagination links one view.
Background Information
I have a situation where I have parent / child tables that I have to display on the same view - ...
-5
votes
1answer
39 views
What is your favourite Twitter php class? [closed]
I'm just getting started making a Twitter application, and the first class I saw, looks like it requires a seperate class for oAuth authentication.
-4
votes
0answers
67 views
How can I track the unauthorised users for theme? [closed]
I am a theme designer (WordPress). My theme is listed on some marketplace. When users buy it there its okay. But, I know like many other themes my theme is also used unlawfully like but distributing ...
-4
votes
0answers
23 views
Getting Page URL in PHP Form [closed]
I would like to ask is there any way for me to get the page URL automatically with PHP? I am modifying a contact form to some sort of page report form. Where i need the page URL/location (where the ...
2
votes
3answers
156 views
Is it possible to get a job in corporate software houses without a degree [closed]
I have been developing web applications in PHP from two years and have worked with three organizations. I started with no programming knowledge at all, I had interest in web development so I read some ...
-3
votes
0answers
47 views
API for iOS & Android [closed]
I am creating an API written in PHP to serve requests from an iOS app & Android. Now there is method wherein the app will submit a username and password for login. I am concern of the security, ...
6
votes
4answers
245 views
Applying DRY to an inheritance hierarchy
I'm working on refactoring a legacy application where I implemented the State pattern successfully as shown in the following diagram:
As you see there is a common behavior between the 3 states, so ...
-1
votes
1answer
116 views
Migrating from PHP to ASP .NET MVC [closed]
I plan on migrating a website from PHP to ASP .NET MVC. However, since the website is large and this migration can't be done in a short time I plan to use both MVC and PHP pages together. So the idea ...
-2
votes
0answers
136 views
What basic PHP/MYSQL interview questions should I focus on? [duplicate]
I am a 19 year old web developer and mostly I've taught myself and haven't really worked with others in a development environment. On the 25th of February I have a technical interview in San ...
1
vote
1answer
113 views
Is declaring fields on classes actually harmful in PHP?
Consider the following code, in which the setter is deliberately broken due to a mundane programming error that I have made for real a few times in the past:
<?php
class TestClass {
...
1
vote
1answer
59 views
Single-Tenant Databases - creating and updating new tenants via PHP
We've built a single-tenant webapp in PHP and as it stands each hosted 'site' has its own database.
However we need to be able to run a script to create their database, assign a mysql user, and ...
0
votes
1answer
79 views
Why does flask use Jinja2 and not xpath?
I'm just starting out with python and since I'm coming from a PHP background (thus have to adjust my mind to wrap around new concepts) one major question still stands without answer - why does Flask ...
1
vote
1answer
166 views
Possible with PHP MVC Framework? A better solution to client 'override' of core functionality?
Background / The Problem
I need to make a (large) application with a certain set of core functionality, and certain functionality for multiple clients within it. Each client has different ...
-1
votes
0answers
115 views
How to check a date before 1900 and after 2038 is weekend? [closed]
I am using date() function in php and my php version is 5.3.8.
I am using the following code
date("w", strtotime($newdate));
//Further checking for weekends goes here
This works fine for some ...
-3
votes
1answer
119 views
Does anyone knows a good minimal php mvc framework? [closed]
I've been developing using frameworks since the last year, and is true that those pieces of software really help me and improve my development, that's until you need to fulfill your client's dreams, ...
0
votes
0answers
42 views
annoying “yo-yo”effect on sidebar [closed]
my sidebar at
http://ntm.at/r0sa is doing annoying yoyo-effects, you can see it especially when you click on "projects"...
has anyone an idea or firebug and can help me how to make the sidebar slower ...
8
votes
4answers
329 views
In MVC, can/should basic data retrieval from the Model be done in the View?
Given the concept of 'skinny controllers, fat models' and the general acceptance that Views can directly call on Models when requiring data for output, should one consider handling the 'get and ...
-2
votes
0answers
80 views
how to work with multiple controller in hmvc codeigniter [closed]
In CI I am using MX and my directory structure is like this
application
Modules
Login
MVC
Profile
MVC
Services
MVC
Dashboard
MVC
Contacts
MVC
If I click on contact then ...
-1
votes
2answers
120 views
dechex(4000) - Why is it not signed?
Why does PHP's dechex(4000) not return a signed hexadecimal value?
It returns:
fa0
As opposed to:
0xfa0
And is signed the correct term to use in describing this problem? Or is there a better ...
2
votes
2answers
80 views
Explain this function (mt_rand, base_convert)
Recently I found a function to generate a random string of numbers and letters, and It was really compact and concise and I liked it alot. The problem Is I have no idea what it is doing, or how to ...
5
votes
4answers
131 views
QR Codes as Booking Confirmations for Conference?
A client of mine is holding a conference and we have the task of creating a booking system for them. However they have requested that we use QR codes so that on the door, a person can simply present ...
4
votes
2answers
258 views
About clean code
Example: I have a method that formats the output based on a parameter from an object. The question is, should I pass the object that holds the parameter to the method, or just the required param?
...
7
votes
3answers
315 views
Is it a basic principle, or highly desirable, to have class methods that return “$this” rather than a value?
I've really just begun to learn OOP. I started about a year ago and have written probably 15,000 lines of it. But I wrote it all with hardly any experience looking at other people's OOP.
Most of my ...
-5
votes
0answers
38 views
Why developers should not do beta testing project? [duplicate]
Possible Duplicate:
Why to let / not let developers test their own work
Should a developer also act as a tester?
Functional testing must be done by external party to avoid bias?
I am ...
2
votes
2answers
236 views
How to fix bad fundamentals? [closed]
I am a native PHP developer, and have been for about a year or so. I love PHP and it was very easy for me to learn, but I have developed some bad habits along the way due to never having a formal ...
-3
votes
0answers
53 views
php documentation book [closed]
Which book can you recommend me for php documntation?
Its not necessary that the entire book is about php documentation. Book can only include chapter/s about documentation of php code.
I need ...
-2
votes
1answer
110 views
Can I call a script created in php a “web application” [closed]
Can I call a script created in php a "web application"?
See the Wikipedia definition, but I'm still not sure.
2
votes
2answers
199 views
Service layer design
I am developing an MVC website in PHP, and for the first time, I would like to implement a service layer. I have some design considerations I would like to get some advice on. The backend will by no ...
2
votes
3answers
134 views
Pushing a new version of a live web application in a Git based workflow
I have a question regarding workflow in web development. I'm building my project in Symfony, and it's in Git.
Right now, I have three environments, dev (local), staging and prod. The project itself ...