Hello guys
I am using IMAP to fetch mails from an inbox, Now I want to fetch complete header of a particular mail, Which IMAP function should I use to fetch all the header informations ?
I checked php.net and found many to grab header info, Could you please specify one to get complete header info
Thank you
...
i notice that when i run a zend framework app from a server, there are alot of side effects. main issue is where i use urls like
/auth/login
i need to use
$this->baseUrl('/auth/login');
thats simple to fix. but when i use
$request->getRequestUri()
for use in redirects. eg after login, i want to redirect the user back to the pr...
Hi,
I'm fetching a datetime from MYSQL which looks like:
2010-08-11 11:18:28
I need to convert it into the "floor" or the earliest 15 minute interval and output in milliseconds for another function.
So, this case would be:
2010-08-11 11:15:00 in milliseconds
Whoops! Sorry - need to clarify - I need code that will transform it int...
I'd like to compare the performance of different languages and/or different frameworks within the same language. This is aimed at server-side languages used for web development. I know an apples to apples comparison is not possible, but I'd like it to be as unbiased as possible. Here are some ideas :
Simple "Hello World" page
Object in...
I am trying to use a php contact form on widows asp.net hosting package, php is enabled but still my form is not sending email it is directing to error.html page......
here is the code
<?php
$EmailFrom = "anksaltlamps.com";
$EmailTo = "[email protected]";
$Subject = "Website Query";
$Name = "Not Specified";
$Tel= "Not Specified...
I am new to Zend Framework, trying to config project on my local for further changes. I succesfully installed and configured Zend Framework. But CSS is not working. Could anybody help me please?
...
For some reason my checkbox array values don't show up in $_POST.
For example:
<form method="post" action="">
<input type="checkbox" name="cb[]" value="1">
<input type="checkbox" name="cb[]" checked="checked" value="2">
<input type="checkbox" name="cb[]" value="3">
<input type="checkbox" name="cb[]" checked="checked" va...
I am using Zend Search Lucene and if the user types in Vibrant Bouquet into the search box, results with the word "Vibrant" or the word "bouquet" (or both obviously) are returned. What I want is only to return those results with both words.
Obviously I can do this by typing AND between the words, but as far as I can tell Lucene implicit...
Hey guys,
I built a page that automatically generates new divs when you click "add product." Each div contains a form with unique names and ids. I used this PHP and AJAX multi-level form tutorial to make my forms - http://www.codingcereal.com/2009/09/autopopulate-select-dropdown-box-using-jquery/
Issue is, I can't seem to call the valu...
So I am trying to use the facebook API to send a photo. I've got it all working, but the issue is that due to our server environment (everything is stored at s3) there is no concept of local file paths, so when I'm supposed to do this:
'source' => '@'.realpath($FILE_PATH)
I can't because all I technically have is the URL. I know that it...
I have a picture (jpg file, for example).
I need to know "overall average" the color of the picture. I mean the prevailing color in this picture. I can not strictly furmulate my task.
I will cite an example:
(Image above: at the top - the original image, at the bottom - the "overall average" color which is associated with picture)
...
Afternoone guys and girls.
having a bit of trouble with replacing things that are NOT 0-9A-Za-z[:space] because I cannot find a NOT metachar for preg_replace. Does anytone know if one exists and if not what is the best way to strip anything that is NOT alpha numeric or a space?
Thanks in advance
Alex
...
I am trying to place flash swf into my html through php but when the page loads the flash file is hidden. I can hear the sounds and music but it is not visible.
Here is the code I am using:
'<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/swfobject/2.2/swfobject.js"></script>
<script ty...
Hello, i want using php generate a pdf in my site with some format and some values i have into some vars, any suggestion of a good script and good practices to know about? Thanks!
...
Hi,
the code is below, I am trying to call the "RATE" function.
RATE(120, -271.09, 20000) is how it is used in excel, with this code I think it should work the same.
What am I doing wrong? how can I get it to work
My code is here: http://pastebin.com/AbKqc8g1
...
When a user tries to search for people on our system, we've noticed that they often type a full name for their search.
How can we enable full name searching on our database when first name and last name are stored in different columns?
...
Hi There I am running this code currently,
<?php foreach($search_results as $rslt) : ?>
<?
$code = $rslt['code'];
if(array_key_exists($code, $short_list)) {
$set = "set";
}
?>
<div class="row <? echo $set;?>"></div>
What I am trying to achieve is that if the array equals the $rslt['code'] then give the...
Hi,
I want to allow users to import their Facebook education and experience entries into a job board site. Something like this site does
http://www.jobster.com/at/person/edit_profile
(see the FB icon on the right, under the sign in form)
Do they simply use the good old FB Connect to achieve that or is it something else?
...
Which method of transliteration is true to convert cyrillic letters to latin letters?
Like writing russian names using english alphabet.
There are many methods of conversion, searching for one that is used on television or other mass media.
Thanks.
...
right now, i have to create a framework. and need to understand more about the concept behind it. so, is there any documentation about how to build core of a framework ?
or at least, what is your approach when you have to create one ?
btw, what i mean with core, is, the skeleton. the part of framework that works as controller who contr...