Search found 20 matches

by hyper_st8
Tue Mar 29, 2005 4:28 am
Forum: PHP - Code
Topic: IMAP attachments
Replies: 7
Views: 436

Think I know what you mean, but I think I have gone wrong somewhere else, so when I get the time I'll have a look at it. When it's completed I'll post it here (if you're interested).

Cheers for the help d11wtq!
by hyper_st8
Wed Mar 23, 2005 6:50 am
Forum: PHP - Code
Topic: IMAP attachments
Replies: 7
Views: 436

Nothing you did, it is actually on the php.net website: http://uk2.php.net/pt_BR/imap-bodystruct
by hyper_st8
Wed Mar 23, 2005 1:51 am
Forum: PHP - Code
Topic: IMAP attachments
Replies: 7
Views: 436

Cheers d11wtq, but I have found that the function you have supplied previously and it didn't work. (Sorry I should of mentioned it before). Also the function seems to repeat the last bit, causing an error in the function...

Code: Select all

}
  return $attachments;
}
Cheers d11wtq
by hyper_st8
Mon Mar 21, 2005 4:06 am
Forum: PHP - Code
Topic: IMAP attachments
Replies: 7
Views: 436

Guess no one knows....
by hyper_st8
Fri Mar 18, 2005 8:51 am
Forum: PHP - Code
Topic: Problem with refreshing
Replies: 10
Views: 515

A good way of getting around the page caching is to use:

header("Cache-Control: no-store, no-cache, must-revalidate");
header("Cache-Control: post-check=0, pre-check=0", false);

At the top your page.

I found the information at http://uk2.php.net/manual/en/function.header.php
by hyper_st8
Fri Mar 18, 2005 8:39 am
Forum: PHP - Code
Topic: IMAP attachments
Replies: 7
Views: 436

IMAP attachments

Hello! I was wondering if anyone knew how you can get a attachment from an e-mail through imap, in php? I found a function that gets all parts of an e-mail (except for the attachment's data), including the file name of the attachment and puts it into an array: <? function retrieve_message($mbox, $me...
by hyper_st8
Tue Mar 02, 2004 7:55 am
Forum: PHP - Code
Topic: PDF generation ( Using PDF templates on the fly )
Replies: 2
Views: 858

I am having the same problem, can't seem to do anything with adobe 5 created documents. Did you manage to sort this problem?
by hyper_st8
Tue Mar 02, 2004 7:32 am
Forum: PHP - Code
Topic: PDFlib question
Replies: 0
Views: 213

PDFlib question

Is it possible to find the position of a text word and then when you output the new pdf file, using pdf_show_xy to replace the text. Tried a tutorial that does a replacement on the text, using: function pdf_replace($pattern, $replacement, $string) { $len = strlen($pattern); $regexp = ''; for ($i = 0...
by hyper_st8
Tue Mar 02, 2004 7:23 am
Forum: PHP - Code
Topic: Transfering PDF's without PDFLib
Replies: 2
Views: 623

header("Content-type: application/pdf");
header("Content-Disposition: inline; filename=foo.pdf");
readfile("tutorial.pdf", 'r');

Would work. I think...
by hyper_st8
Wed Jan 14, 2004 4:09 am
Forum: PHP - Code
Topic: while query problem
Replies: 5
Views: 616

Yeah good point Bill H! I needed to make it into an array.
Thanks infolock! That works great! as for that the last echo, it was used to close the check input, which is nice!
by hyper_st8
Tue Jan 13, 2004 3:05 am
Forum: PHP - Code
Topic: while query problem
Replies: 5
Views: 616

The idea is to have a list of all names and the ones that are already associated with that ID is checked... Can't understand why it doesn't work because it went from working to just selecting the last value in the field...
by hyper_st8
Mon Jan 12, 2004 5:48 pm
Forum: PHP - Code
Topic: while query problem
Replies: 5
Views: 616

while query problem

Hello! When I try the following script, only the value in the last field gets ticked: <? $nameID = "2"; $db = mysql_connect("localhost", "", "") or die("unable to connect to the database"); mysql_select_db("test", $db) or die("unable t...
by hyper_st8
Wed Jan 07, 2004 10:30 am
Forum: PHP - Code
Topic: removing quotes from a database query
Replies: 2
Views: 526

Cheers for that! It works brilliantly! :D
by hyper_st8
Wed Jan 07, 2004 6:38 am
Forum: PHP - Code
Topic: removing quotes from a database query
Replies: 2
Views: 526

removing quotes from a database query

Hi, Just a short question: If you are selecting a field from a database, where you are using LEFT() to display only the variables that match that first letter, i.e. $query = "SELECT names FROM table WHERE LEFT(names, 1) = 'a' ORDER BY names ASC"; But within the database one of the names ha...
by hyper_st8
Wed Aug 20, 2003 4:29 am
Forum: PHP - Code
Topic: creating an array that'll $_POST into a database
Replies: 4
Views: 502

thanks for your help greenhorn666!