I am building an application for a client which is a step by step tool that allows the user to enter data for different "sections" that is later output into a html document they can download
Im aiming for this application to be very flexible so that any changes from the client dont require a lot of rebuilding.
I am using the Codeignite...
I have a script that takes input that looks like this...
http://tracking.mysite.com/9/1091/2115/u/http%3A%2F%2Fwww.foobar.com%2Ftestdir%2F
But when I do this...
die(print_r($this->uri->uri_to_assoc(4),TRUE));
I get this... (probably because CodeIgniter or Apache is decoding the URI embedded within the URI)
Array ( [1091] => 2115 [u...
The following PHP code uses cURL, XPath and displays all the links on a certain page ($target_url).
** What I'm trying to do is figure out how to display only the the anchor text (the linked words in an href) on a given page when I supply the website value.
For example...I want to search "randomwebsite.com" to see if there is a lin...
Hello,
I am trying to display different divs depending on a selection from a drop down menu.
<html>
<head>
<title>DDlist Div Display</title>
<script type="text/javascript">
function ShowDivArea(info) {
var sel = document.getElementById('divArea').getElementsByTagName('div');
for (var i=0; i<sel.length; i++) { sel[i].style.displa...
Hello.
I have a little function that shows latest activity, it grab timestamp in unix format from the db, and then it echo out with this line:
date("G:i:s j M -Y", $last_access)
Now i would like to replace the date (j M -Y) to Yesterday, and Today if the latest activity was within today, and same goes with Yesterday.
How can i do th...
I'm setting up a new store using 1.4.1
I'm trying sort the products in the list by the subcategories they belong to. At the top of list.phtml is
$_productCollection=$this->getLoadedProductCollection();
I tried adding sort filters to that by adding the line
$_productCollection->setOrder('category_ids', 'asc')->setOrder('name', 'asc')...
I have records in mysql table and I want to know how many records were in last 3, 7 and 12 hours. What would be the sql for that? My date field in in the format as
2010-08-09 09:52:27
2010-08-09 09:52:27
2010-08-09 09:52:27
2010-08-09 10:44:46
2010-08-09 10:44:46
2010-08-09 11:58:27
2010-08-09 14:48:22
2010-08-09 14:48:22
...
In Wordpress Media Settings the Thumbnail size we can crop thumbnail to exact dimensions.
But for the Medium size no option to get exact dimensions. There have a way to force exact dimensions for medium size?
If yes, how to implement to the functions.php
...
I have very limited access to enable extensions etc on my hosting but am looking to generate a PDF from an HTML page (with css/images) through PHP.
Any ideas how I can achieve this with next to zero CL access etc?
Preferable not a "hack" / relient on a service (as I'll be looking to use this long term).
...
Please help me with file upload with text fields details going to database in codeigniter. ( for example i want image name and some another form field going to database and file uploads to server)
Also how do i stop the form submission in database upon page resfresh ?
...
Hello Everyone,
I am using this fantastic example of a jQuery editable invoice as a template for creating dynamic invoices for my users.
It's working quite well and I am successfully generating the items but I now need to save the values entered into the various text fields and enter them into the MySQL database.
I am confident in doi...
I have just set up PHP APC module on a Mac running OSX 10.6 using XAMPP. After a lot of fiddling around I thought I have it working but now when I load a URL the first site that is loaded is the site that displays for every site hosted on the server.
These are the steps I followed to get it installed:
cd /tmp
wget http://pecl.php.ne...
I want to write a PHP script that performs a routine task in a web app I use. I am trying to figure out the easiest way to submit a form, click a link, and get some information. What's the easiest way to do this (keeping the session open, etc.).
...
Hi All,
I have a string that contains several "placeholders" in it, and each placeholder is marked with this syntax: {value}.
I want to be able to pull out each placeholder within the string and load them into an array.
For example, if I had this string here... "this is a {test} string, to demonstrate my {objective}."
I would want t...
I am trying to write and implement a simple node/tree interface in PHP. Something along these lines:
interface node
{
public function setParent(node $node); // can be null
public function removeChild(node $node); // should not be null
public function addChild(node $node); // should not be null
}
The implementation details...
I am trying to get the routing information from a random URL (part of my application).
I tried to instantiate a Zend_Controller_Request_Http with an URL but it didn't fill in the controller, module, action fields automatically.
I suppose it should somehow be linked to the Route info but cannot figure how to connect this.
Any leads?
...
OK, after much research, and help with stackoverflow users, I've narrowed down how to fix my problem. Most special characters work, except the ampersand.
So, how can I implement the following code twice? I want to do this
[[tvQ.text stringByReplacingOccurrencesOfString:@"&" withString:@"and"] stringByAddingPercentEscapesUsingEncoding:N...
I really just wanted to know a bit more about the PHP Cli with a few more specific questions that I had.. I know that it is much better to use the CLI for more intense background processes than using php on apache, as it helps (save memory?).. however I'm wondering can you run multiple instances of the cli concurrently? IE: having multip...
I have this query that should display all posts related to a
specific tag but for some reason it will only display one result instead of all the results can some one help me fix this problem?
Here is MySQL code.
"SELECT users.*, users_posts.*, tags.*, posts_tags.*,
FROM users
INNER JOIN users_posts ON users_posts.user_id = users.user...
Possible Duplicates:
What is better: to have many similar databases or one database with similar tables or one database with one table?
Database per application VS One big database for all applications
SaaS Application with many users. One database for each user's information tables and one central database, one database con...