php

How to use HTML with Function (mail) for send info Coordinated ?

How to use HTML with Function "mail" for send info Coordinated ? ...

set start and end date for last 30 days ending today with php

Hi I need to generate two dates in the format YYYY-MM-DD example : 2010-06-09 for the last 30 days so end date is today and start date is today - 30 days can you help me generate those two dates in the previous format YYYY-MM-DD thanks folks ...

Which email service shall I use for testing sending emails?

Hi, I'm coding in PHP w/ CodeIgniter and I'd like to test some of the features in my app that send emails. For some reason, I couldn't send emails through my email account in my local server (XAMPP), and I also don't want some SPAM filter to think I'm spamming while I'm testing. So is there any email service that I can use for testin...

Sorting by a specific key of a multi dimensional array PHP

I have an array of arrays. The inner array looks like this. Array ( [comparisonFeatureId] => 1188 [comparisonFeatureType] => Category [comparisonValues] => Array ( [0] => Not Available [1] => Not Available [2] => Not Available [3] =...

PHP: Measure size in kilobytes of a object/array?

Hi everybody, What's an appropriate way of measure a PHP objects actual size in bytes/kilobytes? Reason for asking: I am utilizing memcached for cache storage in my web application that will be used by non-technical customers. However, since memcached has a maximum size of 1mb , it would be great to have a function set up from the b...

Whats the point of using ob_start without any parameters in PHP

OK, I can see the use of ob_start with the output_callback parameter set but I can't see the use of ob_start when calling it without any parameters set at all. Whats the point of disabling output to later throw all the output at once? Don't this use more memory (server side) and slow downloads (client side) since the download starts onl...

Separate Title Page in Wordpress

With a wordpress blog (preferably the new 3.0), Is there a way to have a different page be the home page of the blog, and put the usual blog posts and such on a separate page, such as www.domain.com/blog ? ...

Prevent removal of code when distributed?

Hi there, I am creating a website for someone for free (as a favor) however I in return will have my link at the bottom, How can I make it so the website will not work correctly if the link is removed? Also can I double up on this and allow it so I can remotely change the link? Obviously I would be using either javascript for php (pref...

jQuery event when hash tag (or any character) is typed!

I have a textarea field on my website and I'd like to use jQuery to trigger an event when a user types the hash tag. Similar to the trend of websites like Facebook and Twitter who allow you to query a database for friends as you type after you type a hash tag or use the '@' symbol. Would anyone be able to provide a plugin or example of...

PHP/Zend, MVC Web Application and Apache Rewrite problem [RESOLVED]

I'm in the process of building an MVC web application using the Zend framework and I've encountered an odd problem. If I have the httpd.conf VirtualHost section and the web site's root .htaccess file configured one way, Apache does not read the index.php file (i.e. www[dot]mywebsite[dot]com/ fails), writes nothing to the rewrite log and...

Which PHP framework is the most used and best supported

Possible Duplicate: Which PHP framework would you recommend? I'm looking to learn a PHP framework. Which one is the most popular? Which one would have the most users? Which one has the most support? I want to build applications that can be built with the help of others. Is there a lingua franca of PHP frameworks? Thanks ...

PHP library for managing mailing list

We have a web app that we are selling to clients. We have it running on a web host. This web host has TOS for doing mailings, and has requirements like unsubscribing after five bouncebacks. We are going to comply fully with CAN SPAM and the web host's TOS. Part of the app's functionality is that our client's customers can sign up for a ...

php: file_get_contents is stripping out php code

Hello, I'm attempting to file_get_contents and output php code as a string without being rendered. The idea is to grab the raw un-rendered file contents so they can be edited in a textarea... // file "foo.php" I'm needing the contents of <h1>foo</h1> <? include 'path/to/another/file' ?> // php file that's calling the file_get_contents...

Handling splitting and joining of objects in key-value storage?

Hi everybody, After getting some help on how to measure fysical/actual size of memcached objects to prevent them from growing too large, I have thought about the next step - implementing a sharding/splitting function that transparently splits large objects into smaller pieces upon storage and glues them together as one big object when ...

What functions can I use to contact another webpage (to send GET data) and set a timeout with?

Title says it all. I need a function that I can use in my script to contact another script to send it some GET data. But I need to be able to set a timeout so that it only loads for a few seconds, then continues with the rest of the script. I know I could easily use cURL to do this, but I'd like to know if there are any alternatives? ...

Integrity constraint violation: 1052 Column 'position' in order clause is ambiguous

Please help I have done all I can do to figure this out to no avail.... here is the error -------- a:5:{i:0;s:100:"SQLSTATE[23000]: Integrity constraint violation: 1052 Column 'position' in order clause is ambiguous";i:1;s:3411:"#0 /home/saes/public_html/lib/Zend/Db/Statement.php(300): here is the file --------- abstract class Zend_Db...

Data transfer from JavaScript to PHP.

How can i get the browser's height and width to php? Like a data transfer from javascript to php? With using innerHeight and InnerWidth, i think. (I just need to show user small picture if he has small screensize and big if big and without a data about screensize i cant do it) I have like this: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML...

convert datetime to timeticks in php and mysql

i want to convert datetime.now() to ticks, like is the time is 4:00 PM on june 18th 2010, i want it to be 20100618160000, or some complex number like this. I want to use this number and another field in my database as the primary keys combination to retrieve data. I am using php and mysql so it would be very helpful if someone could send...

Codeigniter PHP url segments for users profile

I need it so that when i type in domain.com/user/1 the one gets pulled in as a variable and then can be used to get the correct database values. Right now the variable is set manually with domain.com/user . How do I setup the segments and then make get() that number. I'm working only with username url's as numbers so no, names just domai...

Looping over an array to build a multidimensional array in Perl, converting from PHP, and syntactically wrong

Working on converting an array to another array. In PHP, this is easy, but Perl has some syntax that I am having a hard time getting my head around and understanding. Here is my loop in Perl: foreach my $r (@toindex){ #print Dumper $r; %indexed{@$r[0]}{'image_id'} = @$r[0]; #Broken %indexed{"@$r[0]"}{'image_id'} = @$r[0...