PHP

PHP
1 year ago

Add user registration and subscription to a PHP MySQL web app

PHP
I've been working on a web app for a few months now. It's a PHP and MySQL driven database app which relates objects between each other. I'd like to a...
1 year ago

Magento 1.9.1 model rewrite not executed

PHP
I've been trying for days now to get a rewritten model to function. The code seems to be correct and the rewrite seems to work, but I can't see the lo...
1 year ago

Curl isn't woking with Nagios

PHP
I'm currently developing a nagios plugin with PHP and cURL. My problem is that my script is working well when i use it with PHP like this : #php /u...
1 year ago

Make template page wordpress

PHP
I want to create a new template for my pages in wordpress. How should i process. I already create a new php file in my theme. It will allow me to red...
1 year ago

Turn array values from a single dimension array into the depth of another array

PHP
So lets say I have the following array: $value = 'x'; $foo = Array( 0 => 'arraydepth1', 1 => 'arraydepth2', 2 => 'arraydepth3', 3 =...
1 year ago

php arrange checkbox values in two columns

PHP
I have a form with checkboxes and I want to arrange the checkboxes in two columns instead of one single long column. How can i split it to two column...
1 year ago

Grouping and sorting on numerous MySQL tables with PHP

PHP
I am trying to output a series of connected records over multiple tables in DESC order based on the number of occurrences a record makes in the downlo...
1 year ago

Getting a JavaScript value into a variabe

PHP
My 14 yr old son is working on a Science Project looking at reaction time and age. He is setting up a little web app to test people - When a page is ...
1 year ago

Model id is overridden by related model

PHP
I have an Eloquent model that has a scope method to filter some rows: class TODocs extends \Eloquent { public function scopeUnexported($query) ...
1 year ago

Pass a PHP string to a JavaScript variable (and escape newlines)

PHP
What is the easiest way to encode a PHP string for output to a JavaScript variable? I have a PHP string which includes quotes and newlines. I need t...
1 year ago

Finding and replacing all words that ends with 'ing'

PHP
I'm trying to find and replace all words that ends with 'ing'. How would I do that? $text = "dreaming"; if (strlen($text) >= 6) { if (0 === strpo...
1 year ago

PHP Fatal Error Failed opening required File

PHP
I am getting the following error from Apache [Sat Mar 19 23:10:50 2011] [warn] mod_fcgid: stderr: PHP Fatal error: require_once() [function.require]...
1 year ago

What's the best practice of getting a user's list of article likes from a database?

PHP
I'm sort of working on a CMS type structure. I've got to the point where mostly everything is in place except for small things that I keep pondering o...
1 year ago

How can I see if a string matches a PHP array of regex values?

PHP
I am using my URI's to determine if the page footer should be included or not. I have an array of regex patterns and I want to see if the current uri...
1 year ago

Uppercase for variable on PHP, good or not?

PHP
Is it recommended to write code in uppercase ? Like: $VARIABLE = "JohnDoe"; REQUIRE_ONCE 'class.username.php'; $_USERNAME = NEW USERNAME(); $_USER...
1 year ago

Codeception run test from web interface

PHP
I need to run codeception's test from web interface. Have no idea how to do it and cant search it in google. Or it work for console only?
1 year ago

how to explode string into double quote and separate by comma php?

PHP
I want to run multi url at the same time, but I don't want to copy and paste it again and again into an array. I want to put it all as a string and ex...
1 year ago

PHP Undefined Index in Page Receiving ID

PHP
I am trying to determined why I am getting and Undefined Index error. I have checked the other posts here o Stack Overflow to no avail. I am passing a...
1 year ago

Scan current folder using PHP

PHP
I have a folder structure like this: /articles .index.php .second.php .third.php .fourth.php If I'm writing my code in second.p...
1 year ago