RE: [PHP] Odd behavior with unset, array indexes, and types

2004-06-17 Thread Michael Sims
Curt Zirzow wrote: > To simplify things: > > $a[2] = '1'; > $k = (double)2; > echo isset($a[$k]); > unset($a[$k]); > echo isset($a[$k]); > echo " -> expect 1\n"; > > > Result: > 11 -> expect 1 Yeah, my version was just a wee bit verbose. :) >> It's the behavior that is specific to u

Re: [PHP] Odd behavior with unset, array indexes, and types

2004-06-17 Thread Curt Zirzow
* Thus wrote Michael Sims: > Thomas Goyne wrote: > > On Thu, 17 Jun 2004 16:52:32 -0500, Michael Sims > > <[EMAIL PROTECTED]> wrote: > >> ceil() returns a variable of type double. In the above script I > >> expected $foo to become an empty array after calling unset(). But > > > However, > > arra

[PHP] PHP based image database

2004-06-17 Thread Chris Lott
I'm looking for an open source, PHP-based image repository/database application. There are numerous examples on the web of this kind of application, but I am hoping to find something designed for (or more suitable for) scientific images. In particular, something that uses standard meta-data tagging

Re: [PHP] Config sh problem and Imagick

2004-06-17 Thread Curt Zirzow
* Thus wrote [EMAIL PROTECTED]: > Sorry but I am having problems with the PHP-Install list. Anyone have any > insights on compling with Imagick. Is that what is causing this problem of > the error at the bottom of the message? > > Here is my configure statement: > ./configure --with-apxs=/usr/lo

[PHP] Intermittent PHP operation

2004-06-17 Thread Jeff
Hello all... I am new to php and the news group so sorry if I don't provide all of the info you need. Just ask and I will post more. My question is this... it appears like my php is operating intermittently when connecting to mysql. I have the die statements in my connection code... but the string

[PHP] Config sh problem and Imagick

2004-06-17 Thread [EMAIL PROTECTED]
Sorry but I am having problems with the PHP-Install list. Anyone have any insights on compling with Imagick. Is that what is causing this problem of the error at the bottom of the message? Here is my configure statement: ./configure --with-apxs=/usr/local/www/bin/apxs --enable-ftp --with-dom --e

Re: [PHP] http to https

2004-06-17 Thread hitek
try placing an exit(); after your header line. At 04:27 PM 6/17/2004, Ryan Schefke wrote: I'm getting some strange behavior when trying to go from http to an https script. After clicking a form submit button the script will execute the two lines below. It does this and sends it to the correct pag

Re: [PHP] http to https

2004-06-17 Thread Andre Dubuc
Well, I'm no php-guru, that's for sure, but if you are trying to call: https://www.tgwedding.com/payment6.php from http://www.tgwedding.com/payment6.php might be where the problem lies. You might need to do a 'refresh' since "What is strange is when I go back on my browser and resubmit, it corre

[PHP] DBG Debugger

2004-06-17 Thread gary
I've downloaded DBG but can't get it to work with any of the IDEs it supposedly works with. Can anyone supply links to an IDE and a DBG version that integrate and work together correctly? Thanks! -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.p

Re: [PHP] This weird behavior is killing

2004-06-17 Thread Daniel Silva
Php.Net wrote: The way PHP handles includes is very weird, for example: - create a folder, name it f ex "includes" - create 2 sub-folders, call them level1 and level2 - now lets create a file, "includes.php" includes.php -- --

[PHP] This weird behavior is killing

2004-06-17 Thread php.net
The way PHP handles includes is very weird, for example: - create a folder, name it f ex "includes" - create 2 sub-folders, call them level1 and level2 - now lets create a file, "includes.php" includes.php -- -

RE: [PHP] http to https

2004-06-17 Thread Ryan Schefke
Hi Andre, Thanks for responding. I'm not using sessions, just cookies. I used your recommendation in the code below (which gets executed if the submit button is pushed. It still sends it to "http://www.tgwedding.com/payment6.php"; instead of "https://www.tgwedding.com/payment6.php"; Any advice

RE: [PHP] http to https

2004-06-17 Thread Ryan Schefke
Quick follow up... Has anyone had any issues with redirecting from an http script to https? Every time I try to to a redirect to https it hangs. For example, I write a simple script like this, nothing... https://www.tgwedding.com/payment6.php'); ?> ...but if I type that link in a browser http is

RE: [PHP] http to https

2004-06-17 Thread Chris W. Parker
Ryan Schefke on Thursday, June 17, 2004 4:28 PM said: [snip] > > > [snip] > > > [snip] > > > > > > What am I doing wrong? you're pressing the return key too much. 0_0 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: htt

Re: [PHP] http to https

2004-06-17 Thread Andre Dubuc
Hi Ryan, I encountered all sorts of problems attempting to do the same (especially with AOL, Yahoo, etc click-throughs). I finally resolved the problem by calling https on the page itself (which is listed then as http) like so at the top (after my session_start(); of course: https://www.your_s

[PHP] http to https

2004-06-17 Thread Ryan Schefke
I'm getting some strange behavior when trying to go from http to an https script. After clicking a form submit button the script will execute the two lines below. It does this and sends it to the correct page without the https, only http. What is strange is when I go back on my browswer and

Re: [PHP] Problem with mail()

2004-06-17 Thread Curt Zirzow
* Thus wrote Keith Aldridge ([EMAIL PROTECTED]): > New to php, can't see the problem with mail(). > > > > Server running 4.0.0 > > Path to sendmail: /var/sbin/sendmail Please don't double/quad space, it makes things hard to read > ... > > if (mail($to, $subj, $body)) { > > echo

RE: [PHP] Odd behavior with unset, array indexes, and types

2004-06-17 Thread Michael Sims
Thomas Goyne wrote: > On Thu, 17 Jun 2004 16:52:32 -0500, Michael Sims > <[EMAIL PROTECTED]> wrote: >> ceil() returns a variable of type double. In the above script I >> expected $foo to become an empty array after calling unset(). But >> it seems that unset() will not remove an array element whe

Re: [PHP] Odd behavior with unset, array indexes, and types

2004-06-17 Thread Thomas Goyne
On Thu, 17 Jun 2004 16:52:32 -0500, Michael Sims <[EMAIL PROTECTED]> wrote: ceil() returns a variable of type double. In the above script I expected $foo to become an empty array after calling unset(). But it seems that unset() will not remove an array element when you refer to its key usi

[PHP] Odd behavior with unset, array indexes, and types

2004-06-17 Thread Michael Sims
Just noticed this today. The following script: $a = 2; $b = ceil(3 / 2); if ($a == $b) { print "\$a and \$b are the same.\n"; } $foo[$a] = '2'; if (isset($foo[$b])) { print "\$foo[\$b] is set.\n"; } unset($foo[$b]); print_r($foo); Results in this output: $a and $b are the same. $foo[

[PHP] wierd sendmail/mail problems

2004-06-17 Thread pmd
Hi all, am baffled...I've got a function to email a message that works perfectly as a simple function. I've written it 2 ways, (1) using mail and (2) writing the message to a tempfile and then sending the tempfile to sendmail both ways work. Now here's the problem...when I incorporate this functi

Re: [PHP] Problem with mail()

2004-06-17 Thread qwerty
This should work: if (mail($to, $subj, $bodytext)) { echo "Mail send"; } else { echo "... something go wrong: } One tip: when configuring/installing php, if there is not /usr/bin/sendmail it asumes that there is no way of send mails so mail function always return false, check that just in case.

Re: [PHP] Problem with mail()

2004-06-17 Thread Ashwin Purohit
So what do you get as the error message? Does it just return failed? Also, I think using parentheses with echo statements like yours is unnecessary. > Keith Aldridge wrote: > New to php, can't see the problem with mail(). > if (mail($to, $subj, $body)) { echo "Successful send"; } > else { echo "F

Re: [PHP] PDF generator?

2004-06-17 Thread Matt Matijevich
[snip] I have a PDF that I need to insert values into from a web form. I would like to input directly into the PDF from the web. [/snip] http://www.php.net/pdf if you want to get the license. http://www.php.net/fdf fdf There is also the option on just editing the text in the pdf but I have not h

[PHP] PDF generator?

2004-06-17 Thread Dustin Wish with INDCO Networks
I have a PDF that I need to insert values into from a web form. I would like to input directly into the PDF from the web. Any pointers to the right direction? Dustin Wish System Engineer & Programmer INDCO Networks Pres. OSSRI Pres. WTA Arkansas

Re: [PHP] Read Last Lines of a Text File

2004-06-17 Thread Scott Miller
> [snip] > > $file ="/var/log/radius.log"; > > > $fp = popen("/usr/bin/tail -$limit $file", 'r'); > if (! $fp ) { > echo 'unable to pipe command'; > } > while (!feof($fp) ) { >$line = fgets($fp, 4096); > print $line.""; > > > } > ?> > > I've tried bumping up the 4096 to a higher numb

Re: [PHP] Read Last Lines of a Text File

2004-06-17 Thread Matt Matijevich
[snip] "; } ?> I've tried bumping up the 4096 to a higher number because it currently only shows me 10 lines - I'd like to see about 30. No matter what I change the number to, it still only shows 10 lines. What do I need to do to get more that the 10 lines? [/snip] I am jumping in late so I m

Re: [PHP] Problem with mail()

2004-06-17 Thread John Nichel
Keith Aldridge wrote: New to php, can't see the problem with mail(). if (mail($to, $subj, $body)) { echo ("Successful send"); } else { echo ("Failed"); } ?> Please don't send email to a mailing list asking for read reciepts. Can the box that you're testing this script on s

RE: [PHP] Unexpected behaviuor with __CLASS__

2004-06-17 Thread Rick Fletcher
> on RedHat with PHP 4.3.6 the following code produces 'test' - > I'm expecting > 'test2': > > class test { > function printClass() { > echo __CLASS__; > } > } > > class test2 extends test { > } > > test2::printClass(); > > > I would like to get/echo the name of the class call

RE: [PHP] Value in URL issue

2004-06-17 Thread Mike R
Thanks to all for your help - I nuked php, re-installed it, and everything is cool now. Still odd why it started happening to begin with. :\ :) -Mike > -Original Message- > From: Gabino Travassos [mailto:[EMAIL PROTECTED] > Sent: Wednesday, June 16, 2004 5:02 PM > To: [EMAIL PROT

Re: [PHP] Read Last Lines of a Text File

2004-06-17 Thread Scott Miller
- Original Message - From: "Oliver Hankeln" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Thursday, June 17, 2004 10:01 AM Subject: Re: [PHP] Read Last Lines of a Text File > Scott Miller wrote: > > > - Original Message - > > From: "Oliver Hankeln" <[EMAIL PROTECTED]> > > T

Re: [PHP] Re: What's this

2004-06-17 Thread Keith Greene
This stuff is common in PHPbb. Usually you will find the constants like that located in the template files. The definitions for those constants are usually found in the php file associated with that template file. For example, if you found "" in /templates/subsilver/memberlist_body.tpl, the defi

Re: [PHP] index.php not loading up

2004-06-17 Thread Marek Kilimajer
Nguyen, Long P (Mission Systems) wrote --- napĂ­sal:: Doesn't look like it.. DocumentRoot "/var/www/html" short_open_tag is OFF. This means that This: will result in this link: http://158.114.148.90/ so the file is http://158.114.148.90/< (that's what t

Re: [PHP] Read Last Lines of a Text File

2004-06-17 Thread Oliver Hankeln
Scott Miller wrote: - Original Message - From: "Oliver Hankeln" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Thursday, June 17, 2004 9:29 AM Subject: Re: [PHP] Read Last Lines of a Text File Scott Miller wrote: I've changed my script to the following: $file ="/var/log/radius.log";

Re: [PHP] Read Last Lines of a Text File

2004-06-17 Thread Daniel Clark
Try adding number of bytes to read. $line = fgets($fp, 4096); > >> * Thus wrote Scott Miller ([EMAIL PROTECTED]): >> > I have a text file (log file) that I want to be able to read the last >> 30 > or >> > 40 lines of. I've created the code below, but since this file is so > large >> > (curren

Re: [PHP] Read Last Lines of a Text File

2004-06-17 Thread Scott Miller
- Original Message - From: "Oliver Hankeln" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Thursday, June 17, 2004 9:29 AM Subject: Re: [PHP] Read Last Lines of a Text File > Scott Miller wrote: > > >>>I've changed my script to the following: > >>> > >>> >>> > >>>$file ="/var/log/rad

[PHP] Problem with mail()

2004-06-17 Thread Keith Aldridge
New to php, can't see the problem with mail(). Server running 4.0.0 Path to sendmail: /var/sbin/sendmail Using a simple form for test purposes, collect three pieces of info: name, address, csz then POST to the page containing the code below. All of the echo statements produce the expec

Re: [PHP] Read Last Lines of a Text File

2004-06-17 Thread Oliver Hankeln
Scott Miller wrote: I've changed my script to the following: $file ="/var/log/radius.log"; $fp = popen("/usr/bin/tail -$limit $file", 'r'); if (! $fp ) { echo 'unable to pipe command'; } while (!feof($fp) ) { $line = fgets($fp); print $line; } ?> And now get the following errors: Warning: Wrong

Re: [PHP] Read Last Lines of a Text File

2004-06-17 Thread Scott Miller
- Original Message - From: "Oliver Hankeln" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Thursday, June 17, 2004 9:13 AM Subject: Re: [PHP] Read Last Lines of a Text File > Scott Miller wrote: > > >>* Thus wrote Scott Miller ([EMAIL PROTECTED]): > >> > >>>I have a text file (log fi

Re: [PHP] ImageMagick

2004-06-17 Thread Decapode Azur
> Does anyone knows if PHP library for ImageMagick has multilanguage support? > I am planning to use it but I have not found anything related to this on > their site Do you mean for the error messages ? IMHO the error messages are for the programer, so there is not a real need to be multi-languag

Re: [PHP] Read Last Lines of a Text File

2004-06-17 Thread Oliver Hankeln
Scott Miller wrote: * Thus wrote Scott Miller ([EMAIL PROTECTED]): I have a text file (log file) that I want to be able to read the last 30 or 40 lines of. I've created the code below, but since this file is so large (currently 8 MB) it won't work. The code works on smaller files, but not this on

Re: [PHP] Very strange bug. Opendir/Readdir

2004-06-17 Thread Curt Zirzow
* Thus wrote Matt Richards ([EMAIL PROTECTED]): > Imagine the following: > > 362>class someClass { > 363> function someFunction() { > 364>if($rDirectory = opendir("/templates")) { > 365> while(false != ($strFile = readdir($srDirectory))) { Looks like a typo, you're assigning rDirectory

RE: [PHP] Very strange bug. Opendir/Readdir[Scanned]

2004-06-17 Thread Michael Egan
Matt, I've only just started to have a look at this. Having first tried to see if the code worked outside the class I was receiving the same error message but this might be attributable to line 365 including a reference to $srDirectory rather than $rDirectory. I'll carry on working with it. Re

Re: [PHP] Read Last Lines of a Text File

2004-06-17 Thread Scott Miller
> * Thus wrote Scott Miller ([EMAIL PROTECTED]): > > I have a text file (log file) that I want to be able to read the last 30 or > > 40 lines of. I've created the code below, but since this file is so large > > (currently 8 MB) it won't work. The code works on smaller files, but not > > this one

Re: [PHP] html problem

2004-06-17 Thread Angelo binc2
Hi Brent, Looks like the urldecode() method can help you. Check it out in the manual Angelo >>> "Brent Clark" <[EMAIL PROTECTED]> 6/17/2004 2:51:23 PM >>> Hi all When ever I do echo on my variable I get the following out: Business%20Class is there a way to strip the %20, or what ever be dis

RE: [PHP] Problems with arrays

2004-06-17 Thread Ford, Mike [LSS]
On 17 June 2004 14:27, Phpu wrote: > Here is the code: > > onchange="model_jump('parent', this)"> > > foreach ($nav_model_names as $index => $element) { > $InputString = "$element"; > echo "$InputString"; >} > > > Each option needs to be in, er,

[PHP] Re: Email with attachment function

2004-06-17 Thread Manuel Lemos
Hello, On 06/17/2004 04:38 AM, Mark Cubitt wrote: Hello, I'm trying to write a function that sends an email with an attachment using sendmail, But I can't seem to get it working, the code I currently have is below, Any ideas would be much appreciated. I'm probably doing something stupid as the outp

Re: [PHP] Problems with arrays

2004-06-17 Thread Daniel Clark
echo "$InputString" . ''; // for HTML echo "$InputString\n"; // for output to screen >>Hi, >> >>I have this array: >> >>$array = array(element1, element2, element3, element4) >> >>I want to list all elements of this array, so i used: >> >> foreach ($array as $index => $eleme

Re: [PHP] Problems with arrays

2004-06-17 Thread Steve Douville
I'm going to take a leap and make an assumption that what you want to end up with is a select list of model names. I'm not sure what the value should be, whether you want the value returned to you to be the $index the model or the $element value. You can adjust either way. (By the way, you don't ne

[PHP] Re: PDF Templates with PHP

2004-06-17 Thread Matt Matijevich
[snip] I am wondering if it is possible to generate a pdf page with pdflib based on a existing pdf document [/snip] Look into the pdflib examples that you get when you download pdflib. I am pretty sure there is an example invoice template in it. Also look into the pdf blocks in pdflib. -- PHP

Re: [PHP] Problems with arrays

2004-06-17 Thread Phpu
Here is the code: $element) { $InputString = "$element"; echo "$InputString"; } ?> - Original Message - From: "Steve Douville" <[EMAIL PROTECTED]> To: "Phpu" <[EMAIL PROTECTED]> Cc: <[EMAIL PROTECTED]> Sent: Thursday, June 17, 2004

Re: [PHP] Problems with arrays

2004-06-17 Thread Steve Douville
Can you give us the code from to ? - Original Message - From: "Phpu" <[EMAIL PROTECTED]> To: "Steve Douville" <[EMAIL PROTECTED]> Cc: <[EMAIL PROTECTED]> Sent: Thursday, June 17, 2004 9:14 AM Subject: Re: [PHP] Problems with arrays > I want the element of the array to be displayed in a

Re: [PHP] Problems with arrays

2004-06-17 Thread Phpu
I want the element of the array to be displayed in a field - Original Message - From: "Steve Douville" <[EMAIL PROTECTED]> To: "Phpu" <[EMAIL PROTECTED]> Cc: <[EMAIL PROTECTED]> Sent: Thursday, June 17, 2004 4:12 PM Subject: Re: [PHP] Problems with arrays > What are you outputting? ht

Re: [PHP] Problems with arrays

2004-06-17 Thread Steve Douville
What are you outputting? html, text, email body...?? - Original Message - From: "Phpu" <[EMAIL PROTECTED]> To: "Oliver Hankeln" <[EMAIL PROTECTED]> Cc: <[EMAIL PROTECTED]> Sent: Thursday, June 17, 2004 9:06 AM Subject: Re: [PHP] Problems with arrays > I've tried this but it is not workin

Re: [PHP] Problems with arrays

2004-06-17 Thread Phpu
I've tried this but it is not working ... Thanks anyway - Original Message - From: "Oliver Hankeln" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Thursday, June 17, 2004 4:04 PM Subject: Re: [PHP] Problems with arrays > Phpu wrote: > > > Hi, > > > > I have this array: > > > > $array

Re: [PHP] Problems with arrays

2004-06-17 Thread Oliver Hankeln
Phpu wrote: Hi, I have this array: $array = array(element1, element2, element3, element4) I want to list all elements of this array, so i used: foreach ($array as $index => $element) { $InputString = "$element"; echo "$InputString"; } but this code lists the elements l

Re: [PHP] html problem

2004-06-17 Thread Oliver Hankeln
Brent Clark wrote: Hi all When ever I do echo on my variable I get the following out: Business%20Class is there a way to strip the %20, or what ever be displaying if the future. It looks like this is urlencoded. (%20 = hex 20 = Space) use echo urldecode($var); to output it. Oliver -- PHP General Ma

[PHP] Problems with arrays

2004-06-17 Thread Phpu
Hi, I have this array: $array = array(element1, element2, element3, element4) I want to list all elements of this array, so i used: foreach ($array as $index => $element) { $InputString = "$element"; echo "$InputString"; } but this code lists the elements like thi

[PHP] Very strange bug. Opendir/Readdir

2004-06-17 Thread Matt Richards
Imagine the following: 362>class someClass { 363> function someFunction() { 364>if($rDirectory = opendir("/templates")) { 365> while(false != ($strFile = readdir($srDirectory))) { 366>print $strFile.""; 367> } 368> } 369> } 370>} The class is constructed successfully,

[PHP] html problem

2004-06-17 Thread Brent Clark
Hi all When ever I do echo on my variable I get the following out: Business%20Class is there a way to strip the %20, or what ever be displaying if the future. If someone could assist, it would be most appreciated. Kind Regards Brent Clark -- PHP General Mailing List (http://www.php.net/) To

[PHP] Re: Thanks :)

2004-06-17 Thread Hitcho
<>-- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] crazy readdir bug

2004-06-17 Thread Matt Richards
Imagine the following: 362>class someClass { 363> function someFunction() { 364>if($rDirectory = opendir("/templates")) { 365> while(false != ($strFile = readdir($srDirectory))) { 366>print $strFile.""; 367> } 368> } 369> } 370>} The class is constructed successfully, the f

[PHP] Re: What's this

2004-06-17 Thread Pieter from SA
This type of action is used in a lot of files in "PHPbb". I need to change someting in the "Jump to" at the bottom of Search and memberlist pages. "Pieter From Sa" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Hi > > This has me confused, is this Java or a php class, a constant or

[PHP] PHP5: serialize private properties

2004-06-17 Thread Christof Rath
Is it possible (I think it has to) to serialize object with private properties (and of course storing these properties as well)? I couldn't using the magic __sleep() function... Best regards, c. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: What's this

2004-06-17 Thread Christof Rath
Pieter From Sa wrote: It seems to be part of a template. There should be a kind of template class or at least a substitution routine, which will be called before the page will be displayed, that replaces {S_MODE} with a useful value. c. -- PHP General Mailing List (http://www.php.net/) To unsub

RE: [PHP] What's this

2004-06-17 Thread Jay Blanchard
[snip] This has me confused, is this Java or a php class, a constant or what?, i have never seen this kind of action. In what type of file will i find the "S_MODE". [/snip] A quick Google indicates .NET -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net

RE: [PHP] PHP 4 and PHP 5 on same windows server

2004-06-17 Thread Thijs Lensselink
Well you can compile php4 as apache module (.so) and load it the normal way. Then you can compile php5 as a cgi binary and load it in a virtual host like this: ScriptAlias /cgi-bin/ /var/www/cgi-bin/ Action php5-script /cgi-bin/php5/php AddHandler php5-script .php .phtml Options +

[PHP] What's this

2004-06-17 Thread Pieter from SA
Hi This has me confused, is this Java or a php class, a constant or what?, i have never seen this kind of action. In what type of file will i find the "S_MODE". Thanks -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] PHP 4 and PHP 5 on same windows server

2004-06-17 Thread Chris Lott
Are there instructions available (or can anyone fill me in) on the best way to set up PHP 5 to run on my Windows/Apache server concurrently with my PHP4 install? I am currently running PHP4 as an Apache module... c -- Chris Lott -- PHP General Mailing List (http://www.php.net/) To unsubscribe, v

[PHP] how to build php from sources on windows using nmake

2004-06-17 Thread Eadala Dhananjaya Reddy
Hi, Can someone tell me how to build the php from sources on windows using nmake. I know how to export .mak make file from visual studio. But If I go that way, I couldn't see the support for oci8 support related stuff. Thanks Dhananjaya __ Do you

[PHP] Re: PDF Templates with PHP

2004-06-17 Thread Torsten Roehr
"Merlin" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > HI there, > > I am wondering if it is possible to generate a pdf page with pdflib based on a > existing pdf document. For example using an invoice template and filling in the > values with php. The last time I checked it (1 yea

[PHP] Re: Email with attachment function

2004-06-17 Thread Merlin
Hi Mark, don't try to invent the wheel twice. There are great functions for that already available. Try to search for phpmailer. Thats a great one. Merlin Mark Cubitt wrote: Hello, I'm trying to write a function that sends an email with an attachment using sendmail, But I can't seem to get it wor

[PHP] Email with attachment function

2004-06-17 Thread Mark Cubitt
Hello, I'm trying to write a function that sends an email with an attachment using sendmail, But I can't seem to get it working, the code I currently have is below, Any ideas would be much appreciated. I'm probably doing something stupid as the output is what its meant to be except it isn't divid