Re: [PHP] Help with OOPHP

2007-10-31 Thread Simon Welsh
On 1/11/2007, at 5:48, Andrew Peterson wrote: I'm hoping you guys can help me out. I'm not sure if you can do this, but i'm trying to create a class that is build of another class. I also want to be able to do functions on the class1 from within class2. example: class fruitBasket{

[PHP] Help with OOPHP

2007-10-31 Thread Andrew Peterson
I'm hoping you guys can help me out. I'm not sure if you can do this, but i'm trying to create a class that is build of another class. I also want to be able to do functions on the class1 from within class2. example: class fruitBasket{ private $fuit = array(); //this is a class

[PHP] PHP 5.2 and MySQL

2007-10-31 Thread Bruce Cowin
I have just installed PHP 5.2.4 on Windows 2003 machine running IIS. Everything is fine except when I try to enable the MySQL extension (either php_mysqli.dll or php_mysql.dll), when I do a php_info(), at the bottom I get the message "Error in my_thread_global_end(): 1 threads didn't exit". All

[PHP] Re: Email question

2007-10-31 Thread Jake
Jake wrote: while($begin < $end) { if ($start == 'false') { if (empty($temp[$begin])) { $start = 'true'; } } else { $data .= chop($temp[$begin]) . "\n"; } $begin++; } return "$from|$subject|$data"; } You have got to be joking

Re: [PHP] RE: Reaching the PHP mailing list owners

2007-10-31 Thread Alan Milnes
> I am VERY computer literate, and VERY message-oriented ILLITERATE. I have > coded HTML for years, and although not a fancy programmer I think my pages > are OK. Could be better, but OK. (http://www.miscelpage.com, > http://www.boundarycountyfire.com, http://www.curleycreek.com, > http://www.theon

[PHP] Re: Email question

2007-10-31 Thread M. Sokolewicz
Jake wrote: while($begin < $end) { if ($start == 'false') { if (empty($temp[$begin])) { $start = 'true'; } } else { $data .= chop($temp[$begin]) . "\n"; } $begin++; } return "$from|$subject|$data"; } You have got to be joking

[PHP] Re: MIME email = Content-ID in CSS not supported

2007-10-31 Thread Colin Guthrie
Colin Guthrie wrote: > I found this which is some good, general info for using CSS in mime > emails: > http://www.campaignmonitor.com/blog/archives/2006/03/a_guide_to_css_support_in_emai.html http://www.campaignmonitor.com/blog/archives/2007/04/a_guide_to_css_support_in_emai_2.html Sorry I origin

[PHP] Re: MIME email = Content-ID in CSS not supported

2007-10-31 Thread Colin Guthrie
Martin Zvarík wrote: > Hello, > I am trying to send MIME type email with in message image attachments. > It works OK when doing > > > > ...but it does not work in this style="background:url(cid:specialcode)"> > > I am trying to have fading background, is there any way I can achieve > this wi

[PHP] MIME email = Content-ID in CSS not supported

2007-10-31 Thread Martin Zvarík
Hello, I am trying to send MIME type email with in message image attachments. It works OK when doing ...but it does not work in this style="background:url(cid:specialcode)"> I am trying to have fading background, is there any way I can achieve this without using IMG tag? Thank you, Mar

Re: [PHP] Email question

2007-10-31 Thread Dan Shirah
Couldn't you just use the wordwrap function? Something like this: $my_text = "This is a story all about how my life got flipped turned upside down. I'd like to take a minute just sit right there, I'll tell you how I became the Prince of a town called Belaire." $my_wrapped_text = wordwrap($my_text

Re: [PHP] Email question

2007-10-31 Thread Andrew Ballard
On 10/31/07, Jake <[EMAIL PROTECTED]> wrote: > What is a =20 at the end of a line in an email? It is a space character when the message is encoded using quoted-printable encoding. Andrew -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Email question

2007-10-31 Thread Jake
What is a =20 at the end of a line in an email? Is it some kind of whitespace line return or something? it only seems to appear when there is whitespace that is linewrapping. I have googled and googled for it, but havn't found anything yet. here's my function... buffer is a complete correctly f

RE: [PHP] RE: Reaching the PHP mailing list owners

2007-10-31 Thread John Moss
Thanks Jay, I'll try it. I know how to include, but haven't seen any php code yet except what you've illustrated. Now I have the concept and will do some testing. I appreciate this list being available to ask specific php questions - and I thank you for your time and help. Much appreciated -

Re: [PHP] PHP standard vs. Zend Core

2007-10-31 Thread Daniel Brown
On 10/31/07, Anders Norrbring <[EMAIL PROTECTED]> wrote: > I'm a bit curious about what the general differences are from the > applications point of view, and in consequence with that, the users, > between running the standard PHP 5.2.4 distribution and the Zend Core > 2.5 distribution? > > Any spe

[PHP] PHP standard vs. Zend Core

2007-10-31 Thread Anders Norrbring
I'm a bit curious about what the general differences are from the applications point of view, and in consequence with that, the users, between running the standard PHP 5.2.4 distribution and the Zend Core 2.5 distribution? Any special pros and cons on each distribution? Anders. -- PHP Genera

Re: [PHP] APACHE MOD_REWRITE

2007-10-31 Thread Daniel Brown
On 10/31/07, Alberto García Gómez <[EMAIL PROTECTED]> wrote: > I have this URL > > http://www.myserver.com/dir1/dir2/page.html > > and I wish to rewrite the url using mod_rewrite to add a ~ after the first > dir always, eg.: > > http://www.myserver.com/~dir1/dir2/page.html > > Please it's very impo

Re: [PHP] Pass Windows credentials

2007-10-31 Thread Dan Shirah
The server variable AUTH_USER contains the windows login name. If I rememebr correctly, within IIS you need to have your website setup for windows authentication. Otherwise you will only be pull the Anonymous access name for your server. I haven't worked much on Linux, so I don't know if there is

[PHP] APACHE MOD_REWRITE

2007-10-31 Thread Alberto García Gómez
I have this URL http://www.myserver.com/dir1/dir2/page.html and I wish to rewrite the url using mod_rewrite to add a ~ after the first dir always, eg.: http://www.myserver.com/~dir1/dir2/page.html Please it's very important to make this ASAP best regards Este correo ha sido enviado desd

RE: [PHP] Pass Windows credentials

2007-10-31 Thread Jay Blanchard
[snip] i'm trying to do an hard stuff. I want to create a PHP page where users can authenticate themselves passing their Windows (XP or 2000) logon credentials trasparently. So, if i've made logon on my workstation with "username" and "password" i want to catch them and reuse to give them acces

Re: [PHP] Pass Windows credentials

2007-10-31 Thread Daniel Brown
On 10/31/07, Simone Nanni <[EMAIL PROTECTED]> wrote: > Hi everybody, > i'm trying to do an hard stuff. > I want to create a PHP page where users can authenticate themselves passing > their Windows (XP or 2000) logon credentials trasparently. > So, if i've made logon on my workstation with "use

[PHP] Pass Windows credentials

2007-10-31 Thread Simone Nanni
Hi everybody, i'm trying to do an hard stuff. I want to create a PHP page where users can authenticate themselves passing their Windows (XP or 2000) logon credentials trasparently. So, if i've made logon on my workstation with "username" and "password" i want to catch them and reuse to give t

RE: [PHP] RE: Reaching the PHP mailing list owners

2007-10-31 Thread Jay Blanchard
[snip] Like - what is a 'header'? Everything prior to the statement? I don't think that's what is meant... [/snip] A header/footer is a separate HTML/PHP page that is included with the page call; All you have to do is create the header and/or footer and include them with each page. Since the c

RE: [PHP] RE: Reaching the PHP mailing list owners

2007-10-31 Thread Jay Blanchard
[snip] Hi ~ is there a 'best way' to address a list, like 'Hi everyone'? [/snip] 'Your royal highnesses' or 'Gurus and Gurettes' [snip] As said in a previous message I have many web sites, and lately have run aground trying to determine how php is able to load related site pages so quickly? Is it

RE: [PHP] RE: Reaching the PHP mailing list owners

2007-10-31 Thread John Moss
Thanks, Daniel, Robert and David ~ I'm struggling to maintain protocol here and I appreciate some of you mailing me privately. I would prefer to respond and use the list - but I'm still signed up for once-a-day delivery and have no idea how to change this option - yet. :-) I am VERY computer lite

RE: [PHP] FW: Reaching the PHP mailing list owners

2007-10-31 Thread Jay Blanchard
[snip] On 10/31/07, Robert Cummings <[EMAIL PROTECTED]> wrote: > On Wed, 2007-10-31 at 11:19 -0400, Daniel Brown wrote: > > On 10/31/07, Jason Pruim <[EMAIL PROTECTED]> wrote: > > > On Oct 31, 2007, at 10:07 AM, Daniel Brown wrote: > > > > On 10/31/07, Robert Cummings <[EMAIL PROTECTED]> wrote: > >

Re: [PHP] PHP installation

2007-10-31 Thread Richard Heyes
... Thanks for the help. I've got it installed now. In the end I found that the server came with 5.1.6 installed (:/), which despite not being 5.2.x, is still a jump from the 5.0.x I had before. -- Richard Heyes +44 (0)800 0213 172 http://www.websupportsolutions.co.uk Knowledge Base and HelpD

Re: [PHP] RE: Reaching the PHP mailing list owners

2007-10-31 Thread Daniel Brown
Let's fix this issue first so that you can start a regular list thread on here and we can keep things in order on the list and in the archives for future web searchers as well. On 10/31/07, John Moss <[EMAIL PROTECTED]> wrote: > Daniel ~ I got your message, and wonder how to 'modify my prefere

Re: [PHP] Not Null?

2007-10-31 Thread Zoltán Németh
2007. 10. 31, szerda keltezéssel 10.48-kor Steve Marquez ezt írta: > Greetings, > > I have a script that looks for the variable to be NULL and then execute. Is > there a way for the script to look for anything or something in the variable > and then execute? > > Ex: > > If (Œ$a¹ == Œ ANYTHING¹)

[PHP] Re: Multiple results in regex [SOLVED]

2007-10-31 Thread Philip Thompson
On 10/31/07, Philip Thompson <[EMAIL PROTECTED]> wrote: > > Hi. > > I have a string that has multiple references to images in it. I want to > pull each reference out using regex. I've gotten to where I can pull the > first instance out, but not ALL of them. I know each image source starts > with 'i

Re: [PHP] Not Null?

2007-10-31 Thread Daniel Brown
On 10/31/07, Robin Vickery <[EMAIL PROTECTED]> wrote: > On 31/10/2007, Steve Marquez <[EMAIL PROTECTED]> wrote: > > Greetings, > > > > I have a script that looks for the variable to be NULL and then execute. Is > > there a way for the script to look for anything or something in the variable > > and

[PHP] Multiple results in regex

2007-10-31 Thread Philip Thompson
Hi. I have a string that has multiple references to images in it. I want to pull each reference out using regex. I've gotten to where I can pull the first instance out, but not ALL of them. I know each image source starts with 'images/'. I have this so far // For example, returns... Array (

Re: [PHP] RE: Reaching the PHP mailing list owners

2007-10-31 Thread Daniel Brown
On 10/31/07, John Moss <[EMAIL PROTECTED]> wrote: > Hi ~ is there a 'best way' to address a list, like 'Hi everyone'? It's all personal preference, really. Although you may wish to refrain from "Yo, [EMAIL PROTECTED]@#%" > I am certainly not advertising anything. The site in question belong

Re: [PHP] Not Null?

2007-10-31 Thread Robin Vickery
On 31/10/2007, Steve Marquez <[EMAIL PROTECTED]> wrote: > Greetings, > > I have a script that looks for the variable to be NULL and then execute. Is > there a way for the script to look for anything or something in the variable > and then execute? > > Ex: > > If (Œ$a¹ == Œ ANYTHING¹) { oh dear, kr

[PHP] Not Null?

2007-10-31 Thread Steve Marquez
Greetings, I have a script that looks for the variable to be NULL and then execute. Is there a way for the script to look for anything or something in the variable and then execute? Ex: If (Œ$a¹ == Œ ANYTHING¹) { some action }else{ some other action } Thank you for any help. -- Steve M.

[PHP] RE: Reaching the PHP mailing list owners

2007-10-31 Thread John Moss
Hi ~ is there a 'best way' to address a list, like 'Hi everyone'? As said in a previous message I have many web sites, and lately have run aground trying to determine how php is able to load related site pages so quickly? Is it OK to provide a URL as an illustration of my point - I am certainly

Re: [PHP] FW: Reaching the PHP mailing list owners

2007-10-31 Thread Daniel Brown
On 10/31/07, Robert Cummings <[EMAIL PROTECTED]> wrote: > On Wed, 2007-10-31 at 11:19 -0400, Daniel Brown wrote: > > On 10/31/07, Jason Pruim <[EMAIL PROTECTED]> wrote: > > > On Oct 31, 2007, at 10:07 AM, Daniel Brown wrote: > > > > On 10/31/07, Robert Cummings <[EMAIL PROTECTED]> wrote: > > > >> T

Re: [PHP] FW: Reaching the PHP mailing list owners

2007-10-31 Thread Robert Cummings
On Wed, 2007-10-31 at 11:19 -0400, Daniel Brown wrote: > On 10/31/07, Jason Pruim <[EMAIL PROTECTED]> wrote: > > On Oct 31, 2007, at 10:07 AM, Daniel Brown wrote: > > > On 10/31/07, Robert Cummings <[EMAIL PROTECTED]> wrote: > > >> The traffic here isn't overwhelming, maybe 10 to 50 emails a day. >

Re: [PHP] Re: docs.google.com how do the export ?

2007-10-31 Thread Daniel Brown
On 10/31/07, Ürgo Perend <[EMAIL PROTECTED]> wrote: > Hi, > > I also look for a littlebit similar solution as this one - how to get > list of my public documents on docs.google so that I could put it on a > public webpage for visitors to see (I'd wrap them somehow - via using > iframe i think). I f

Re: [PHP] while-do +array

2007-10-31 Thread Robin Vickery
On 31/10/2007, Steven Macintyre <[EMAIL PROTECTED]> wrote: > Hiya, > > I have the following code ... which only seems to result in one item ... > which is incorrect ... can anyone spot my problem? > > if ($armbase != "") { > $options = explode(",", $armbase); >

Re: [PHP] FW: Reaching the PHP mailing list owners

2007-10-31 Thread Daniel Brown
On 10/31/07, Jason Pruim <[EMAIL PROTECTED]> wrote: > On Oct 31, 2007, at 10:07 AM, Daniel Brown wrote: > > On 10/31/07, Robert Cummings <[EMAIL PROTECTED]> wrote: > >> The traffic here isn't overwhelming, maybe 10 to 50 emails a day. > > > >With the exception of the occasional rant. ;-P > > W

Re: [PHP] RE: Reaching the PHP mailing list owners

2007-10-31 Thread Daniel Brown
On 10/31/07, Robert Cummings <[EMAIL PROTECTED]> wrote: > On Wed, 2007-10-31 at 07:29 -0700, John Moss wrote: > > Thank you, Daniel Brown, Richard Buskirk, Robert Cummings, David Giragosian > > ~ and anyone else who may have jumped in to my message within the last > > minute or two, trying to help

[PHP] Re: docs.google.com how do the export ?

2007-10-31 Thread Ürgo Perend
Hi, I also look for a littlebit similar solution as this one - how to get list of my public documents on docs.google so that I could put it on a public webpage for visitors to see (I'd wrap them somehow - via using iframe i think). I found out some related information on http://code.google.co

Re: [PHP] FW: Reaching the PHP mailing list owners

2007-10-31 Thread Jason Pruim
On Oct 31, 2007, at 10:07 AM, Daniel Brown wrote: On 10/31/07, Robert Cummings <[EMAIL PROTECTED]> wrote: The traffic here isn't overwhelming, maybe 10 to 50 emails a day. With the exception of the occasional rant. ;-P We have rants? We should get some RAID and take care of them, or a

Re: [PHP] RE: Reaching the PHP mailing list owners

2007-10-31 Thread Robert Cummings
On Wed, 2007-10-31 at 07:29 -0700, John Moss wrote: > Thank you, Daniel Brown, Richard Buskirk, Robert Cummings, David Giragosian > ~ and anyone else who may have jumped in to my message within the last > minute or two, trying to help me. > > Below is the message I was writing to ask someone (who

[PHP] RE: Reaching the PHP mailing list owners

2007-10-31 Thread John Moss
Thank you, Daniel Brown, Richard Buskirk, Robert Cummings, David Giragosian ~ and anyone else who may have jumped in to my message within the last minute or two, trying to help me. Below is the message I was writing to ask someone (who I didn't know) just how to participate in a mailing list. I've

RE: [PHP] while-do +array

2007-10-31 Thread Robert Cummings
On Wed, 2007-10-31 at 16:20 +0200, Steven Macintyre wrote: > > Your subject line says "while-do" + array, following code contains > > a > > "do-while" loop. > > Apologies :) > > > We can't debug the script very well without a > > sample > > input since we don't know how many times the loop "shou

RE: [PHP] while-do +array

2007-10-31 Thread Steven Macintyre
> Your subject line says "while-do" + array, following code contains > a > "do-while" loop. Apologies :) > We can't debug the script very well without a > sample > input since we don't know how many times the loop "should" run. To > debug > yourself, try using print_r() to see exactly what the f

Re: Re: [PHP] FW: Reaching the PHP mailing list owners

2007-10-31 Thread Daniel Brown
On 10/31/07, John Moss <[EMAIL PROTECTED]> wrote: > Thank you for your recent email. My inbox is protected by ChoiceMail One, > the leader in anti-spam technology. ChoiceMail is holding the message you > sent because your email address is not on my list of approved senders. > > Please click on the

Re: [PHP] while-do +array

2007-10-31 Thread Robert Cummings
On Wed, 2007-10-31 at 13:02 +0200, Steven Macintyre wrote: > Hiya, > > I have the following code ... which only seems to result in one item ... > which is incorrect ... can anyone spot my problem? Your subject line says "while-do" + array, following code contains a "do-while" loop. We can't debug

Re: [PHP] FW: Reaching the PHP mailing list owners

2007-10-31 Thread Daniel Brown
On 10/31/07, Robert Cummings <[EMAIL PROTECTED]> wrote: > The traffic here isn't overwhelming, maybe 10 to 50 emails a day. With the exception of the occasional rant. ;-P -- Daniel P. Brown [office] (570-) 587-7080 Ext. 272 [mobile] (570-) 766-8107 Give a man a fish, he'll eat for a day.

Re: [PHP] FW: Reaching the PHP mailing list owners

2007-10-31 Thread Daniel Brown
On 10/31/07, Robert Cummings <[EMAIL PROTECTED]> wrote: > On Wed, 2007-10-31 at 06:53 -0700, John Moss wrote: > > I have no idea what I am doing - and I hate to think this message is > > actually going to be read by everyone in a general mailing list. But - since > > the attempt to reach a human 'o

Re: [PHP] FW: Reaching the PHP mailing list owners

2007-10-31 Thread Robert Cummings
On Wed, 2007-10-31 at 06:53 -0700, John Moss wrote: > > I find a mailing list related to php - I think. Seems right - > "lists.php.net". I 'subscribe' (I think) to a 'General user list' which > suggests "This is a really high volume general list for PHP users". I think > this is what I want - but I

Re: [PHP] FW: Reaching the PHP mailing list owners

2007-10-31 Thread Robert Cummings
On Wed, 2007-10-31 at 06:53 -0700, John Moss wrote: > I have no idea what I am doing - and I hate to think this message is > actually going to be read by everyone in a general mailing list. But - since > the attempt to reach a human 'owner' didn't work and the general-help > doesn't yield results I

[PHP] FW: Reaching the PHP mailing list owners

2007-10-31 Thread John Moss
I have no idea what I am doing - and I hate to think this message is actually going to be read by everyone in a general mailing list. But - since the attempt to reach a human 'owner' didn't work and the general-help doesn't yield results I may just have to conclude that this won't work, either.

Re: [PHP] crop an image

2007-10-31 Thread Merlin
Merlin schrieb: Hi everybody, I am still strugling with the crop problem. It looks like it is not possible with PHP to do an imagecopyresampled and and imagecopy on the same image. Here is what I try to do: 1: Resize image to 80px width and correct ratio 2: Crop from that image a 80x60 part B

Re: [PHP] crop an image

2007-10-31 Thread Merlin
Hi everybody, I am still strugling with the crop problem. It looks like it is not possible with PHP to do an imagecopyresampled and and imagecopy on the same image. Here is what I try to do: 1: Resize image to 80px width and correct ratio 2: Crop from that image a 80x60 part Both work for them

RE: [PHP] Stopping objects from auto-serializing

2007-10-31 Thread Ford, Mike
> -Original Message- > From: David Christopher Zentgraf [mailto:[EMAIL PROTECTED] > Sent: 31 October 2007 08:04 > To: PHP > Subject: Re: [PHP] Stopping objects from auto-serializing > > > After some more playing around and a lot of print_r($SESSION)'s: > > This specific PHP configuratio

Re: [PHP] crop an image

2007-10-31 Thread Merlin
David Christopher Zentgraf schrieb: Copying half a pixel? I dare say that's where the problem is. Chrs, Dav On 31 Oct 2007, at 19:34, Merlin wrote: Hi there, I do have a small problem with the proportions of image copy The image is originally vertical in 100px width and 141px height. Now I

Re: [PHP] crop an image

2007-10-31 Thread David Christopher Zentgraf
Copying half a pixel? I dare say that's where the problem is. Chrs, Dav On 31 Oct 2007, at 19:34, Merlin wrote: Hi there, I do have a small problem with the proportions of image copy The image is originally vertical in 100px width and 141px height. Now I want to crop it to 80 px width and 60

[PHP] while-do +array

2007-10-31 Thread Steven Macintyre
Hiya, I have the following code ... which only seems to result in one item ... which is incorrect ... can anyone spot my problem? if ($armbase != "") { $options = explode(",", $armbase); $text .= ''; $get_endRow = 0; $get_co

[PHP] crop an image

2007-10-31 Thread Merlin
Hi there, I do have a small problem with the proportions of image copy The image is originally vertical in 100px width and 141px height. Now I want to crop it to 80 px width and 60px height. There should be no black area and the proportions should be OK. That means that I have to copy only par

Re: [PHP] Best way to automatically get mySQL database.

2007-10-31 Thread Angelo Zanetti
Hi Jay Thanks again, Now how would I do the SELECT remote_stuff INTO local_table; ? as these are on two different MySQL connections? Im not sure if this is possible to do in one statement or query? Seems possible in theory but I'm not sure. original message: Im wondering the best to do

Re: [PHP] Re: Stopping objects from auto-serializing

2007-10-31 Thread David Christopher Zentgraf
On 31 Oct 2007, at 17:23, hochprior wrote: I got the following in my main .htaccess (and it works just fine...): php_flag register_globals 0 Well apparently I'm not allowed to override register_globals. Looking at the problem a little closer, it also doesn't seem like register_globals is th

[PHP] Re: Stopping objects from auto-serializing

2007-10-31 Thread hochprior
David Christopher Zentgraf wrote: Hi, I'm trying to set up my PHP app at my host, but am stumbling over the PHP configuration there. register_globals is enabled, which seems to auto-serialize my objects into $_SESSION, which in some cases overwrites variables in there. I'm not sure if register_g

Re: [PHP] Stopping objects from auto-serializing

2007-10-31 Thread David Christopher Zentgraf
After some more playing around and a lot of print_r($SESSION)'s: This specific PHP configuration seems to replace every entry in $_SESSION if a variable with the same name is used in the main script with that variable. I.e. session_start() // $_SESSION["foo"] is now "bar" $foo = "12345"; $v