Web programming - Questions with no answers


php - Extending CI with own library


Solution:Your controller needs a constructor. It should look like this: {-code-1} Only PHP5 uses the {-code-2} function. In PHP4 it should
Continue reading

php - One HTTPS ajax call in codeigniter


Solution:You can't request information between HTTP and HTTPS using AJAX due to cross-domain issues. To get this to work, consider implementing
Continue reading

php - extract values from multidemensional array


Solution:It because that the {-code-1} is only use for 1 dimension array. For your 2 array, let use some code from
Continue reading

php - Using JQuery UI's sortable('serialize') after loading data in via .load();


Solution:If everything you posted above is being brought into another page via {-code-1}, then I see (at least) two problems: You're loading
Continue reading

php - Multi-tenancy - Create tables up-front or as needed?


Solution:Using an insert to test whether a table exists may not be your best bet, particularly considering the size of the
Continue reading

soap - Is it possible to specify the outgoing network interface to use for a PHP SoapClient?


Solution:You can pass a stream context to your soapclient constructor that has a bindto options set: {-code-1} :::$opts =
Continue reading

PHP classes are keeping me from accessing the needed variable


Solution:Just below this line: {-code-1} Add: {-code-2} And instead of: {-code-3} Use: {-code-4} Now you can get it like: {-code-5} :::class Leads extends Common{|||public $current_id = null;
Continue reading

php - preg_match post-id


Solution:You could try using the following regular expression: {-code-1} Example code: $wholepage = 'foo postid-785645 bar postid-785646 baz'; $matches = array(); $string = {-code-3}({-code-1}, $wholepage, $matches); print_r($matches); Result: Array (
Continue reading

PHP count question


Solution:Rude comment aside, I believe this is what you are trying to do: {-code-1} Next time, learn to: Be more respectful Word your question properly,
Continue reading

php - Filter content from mysql db with checkboxes using jQuery?


Solution:Here's some sample code to get you started: {-code-1} You should really read up on href="http://jquery.com/" rel="nofollow noreferrer">jQuery to get an understanding
Continue reading