Re: [PHP] creating new class from wrapper class (OOP question)

2006-01-19 Thread Jochem Maas
Henrik Gemal wrote: In a image gallery I have to class'es: class GPicFilePicture extends GPicFileType class GPicFileMovie extends GPicFileType both of them are based on: abstract class GPicFileType In my code I need to create a new GPicFilePicture. To avoid duplicated code I've create a

[PHP] inserting text into a mime message

2006-01-19 Thread Geoff
Hi All, I've been searching the archives for help on this, but have come up empty-handed. Here's the thing: I'm using a PHP script to parse every message coming through a mailserver. The server invokes my script for each message, giving it a filename containing the full raw text of the email.

[PHP] Re: Access Client IP address

2006-01-19 Thread Michelle Konzack
Am 2006-01-04 13:05:05, schrieb Nilanjan Dasgupta: Hi, Is there any way to client's IP address inside a php document. I am trying to generate a code that depends on the IP address of the client. From PHP YesNo. :-) $_SERVER['REMOTE_ADDR'] can be false, if the $CLIENT connect via a

[PHP] Re: PHP License And Web Server Integration

2006-01-19 Thread Michelle Konzack
You should read the PHP Licence. It will tell you, that you can do what you want... ...IF you include the original Licence or one of the higher numbered versions of future versions. Please read the PHP Licence On-Line on the Website or those one, which comes with the package.

[PHP] Re: Re: Greetings

2006-01-19 Thread Michelle Konzack
Hi Wolf, Am 2006-01-13 11:49:09, schrieb Wolf: Use a robust email program to read and filter your email. At work I get over 1000 emails a day, about 15 of which are not spam. I see MAYBE 30 in a day total, but my junk box fills up nicely. I use Thunderbird and have it reading and

[PHP] Re: Re: Greetings

2006-01-19 Thread Michelle Konzack
Hello Richard, Am 2006-01-13 16:44:46, schrieb Richard Lynch: I think the anon-XXX solution presented is far too complex / overhead. The problem, however, is real. At last count, over a year ago, pre-spam-filter, I'm getting 10,000 emails PER DAY. ~9,900 of them are spam. Arround the

RE: [PHP] PHP Cache (was PHP load to high on server)

2006-01-19 Thread Albert
Jochem Maas wrote: take note that APC does 2 things: 1. op code caching 2. manage some shared memory (a central place where you can stick stuff that needs to be read again and again and again; but doesn't need updating very often) pear install apc failed without reason. I ended up

Re: [PHP] URL - stream context

2006-01-19 Thread Jochem Maas
Richard Lynch wrote: So I've been poring over the docs for the new stream stuff, and it looks pretty nifty, except... I'd really like to be able to just hand a URL to PHP like: http://php.net/manual/en/ref.stream.php er you can if allow_url_fopen ini setting is set to 1 (can't you?) $fh =

[PHP] Performance Comments Question

2006-01-19 Thread Rodolfo Andrade
Hi all! I would like to know if comments in the code affects the performance. I know that comments are ignored by the interpreter, but it does increase the file size, so I was thinking about a possible performance hit for highly commented files. Can anyone confirm this? Thanks! Rodolfo Andrade

[PHP] Re: Embedded player

2006-01-19 Thread Barry
Jedidiah wrote: Hi. I have been wanting to do something on my site for some time and was recently told that it could be accomplished. I started a daily devotion on our church website a few weeks ago, so I changed all of my files to .php and began using a MySQL database. I have a

[PHP] php5.0.5 include() terminates script BUGBUGBUGBUG

2006-01-19 Thread alex
has anyone had an issue using php5.0.5 i seem to have a problem when my scirpt hits the include() statement it terminates the rest of the script... the script im using is a complicated login system...the script works fine onlinemy server is using php 4.3.1 (i was too before upgrade) and

Re: [PHP] Embedded player

2006-01-19 Thread clive
Hi Have a look at osplayer. Its a flash player that plays mp3's(it may do wma)Ive seen it used with oscommerce on a site that sells cds. it can also load a whole bunch of mp3 that the user can select through the player. http://www.counteractdesign.com/temp.html clive Jedidiah wrote: Hi.

[PHP] Re: Performance Comments Question

2006-01-19 Thread Barry
Rodolfo Andrade wrote: Hi all! I would like to know if comments in the code affects the performance. I know that comments are ignored by the interpreter, but it does increase the file size, so I was thinking about a possible performance hit for highly commented files. Can anyone confirm this?

Re: [PHP] Embedded player

2006-01-19 Thread Barry
clive wrote: Hi Have a look at osplayer. Its a flash player that plays mp3's(it may do wma)Ive seen it used with oscommerce on a site that sells cds. it can also load a whole bunch of mp3 that the user can select through the player. http://www.counteractdesign.com/temp.html I wouldnt

Re: [PHP] Embedded player

2006-01-19 Thread Rodolfo Andrade
Hi, You can use readdir() function for list the files. Here's a sample code from PHP Doc www.php.net/docs. if ($handle = opendir('/path/to/files')) { echo Handler: $handle\n; echo Files:\n; while (false !== ($file = readdir($handle))) { echo $file\n; } I don't know how

Re: [PHP] Embedded player

2006-01-19 Thread clive
true, but not everyone uses windows as there operating system, so if they don't have windows media player they wont even be able to view the files. clive. Barry wrote: clive wrote: Hi Have a look at osplayer. Its a flash player that plays mp3's(it may do wma)Ive seen it used with

RE: [PHP] PHP load to high on server

2006-01-19 Thread Albert
Richard Lynch wrote: On Tue, January 17, 2006 11:18 pm, Albert wrote: The page having the heaviest load uses 5 simultaneous sessions - they refresh every 5 seconds. Even with just one connection there are 16 Apache threads running all occupying between 5 and 20% of CPU. Are you saying

Re: [PHP] php5.0.5 include() terminates script BUGBUGBUGBUG

2006-01-19 Thread Jochem Maas
alex wrote: has anyone had an issue using php5.0.5 i seem to have a problem when my scirpt hits the include() statement it terminates the rest of the script... the script im using is a complicated login system...the script works fine onlinemy server is using php 4.3.1 (i was too before

Re: [PHP] Embedded player

2006-01-19 Thread Chris
On Thu, 2006-01-19 at 14:44, clive wrote: true, but not everyone uses windows as there operating system, so if they don't have windows media player they wont even be able to view the files. A problem I`ve come across with many sites whilst using my Linux box..very irritating. -- Chris Blake

Re: [PHP] Re: Performance Comments Question

2006-01-19 Thread Jochem Maas
Barry wrote: Rodolfo Andrade wrote: Hi all! I would like to know if comments in the code affects the performance. I know that comments are ignored by the interpreter, but it does increase the file size, so I was thinking about a possible performance hit for highly commented files. Can

Re: [PHP] Embedded player

2006-01-19 Thread Rodolfo Andrade
If you are looking for compatibility then I would recommend the flash player solution. There are a *LOT* of sites that use flash so I don't think that making it a must will impact your users. I don't know which type of users will access your church site, but I'm sure that if they even use Linux,

Re: [PHP] Performance Comments Question

2006-01-19 Thread Jochem Maas
Rodolfo Andrade wrote: Hi all! I would like to know if comments in the code affects the performance. I know that comments are ignored by the interpreter, but it does increase the file size, so I was thinking about a possible performance hit for highly commented files. given the fact that you

Re: [PHP] Embedded player

2006-01-19 Thread Austin Denyer
On Thu, 19 Jan 2006 11:24:44 -0200 Rodolfo Andrade [EMAIL PROTECTED] wrote: If you are looking for compatibility then I would recommend the flash player solution. There are a *LOT* of sites that use flash so I don't think that making it a must will impact your users. I don't know which

Re: [PHP] Re: Performance Comments Question

2006-01-19 Thread Austin Denyer
On Thu, 19 Jan 2006 14:09:00 +0100 Jochem Maas [EMAIL PROTECTED] wrote: in real life you won't notice the overhead at all. and people will love you if you'r files are 90% comments :-) I've never been quite that liberal with my comments, but I do have a few files that are 50% comments...

[PHP] Re: Re: Greetings

2006-01-19 Thread tedd
OK, I am on more then 100 Mailinglists (mainly Debian) and my E-Mail is known to the Internet since more then 6 years... I like my E-Mail, my old and new customers know it and I will never change it... ...and I prefer excessiv Mail-Filtering!!! Greetings Michelle Konzack

Re: [PHP] Re: Performance Comments Question

2006-01-19 Thread Jochem Maas
Austin Denyer wrote: On Thu, 19 Jan 2006 14:09:00 +0100 Jochem Maas [EMAIL PROTECTED] wrote: in real life you won't notice the overhead at all. and people will love you if you'r files are 90% comments :-) I've never been quite that liberal with my comments, but I do have a few files that

Re: [PHP] Drop down directory structure list box

2006-01-19 Thread Jochem Maas
are you sure it was not internet explorer just showing you the last directory you had opened with a 'browse...' button with in that browsing session? Jay Blanchard wrote: [snip] Along these same lines, does anyone know how to make the file dialog start in a specific directory? I saw this the

RE: [PHP] Drop down directory structure list box

2006-01-19 Thread Jay Blanchard
[snip] are you sure it was not internet explorer just showing you the last directory you had opened with a 'browse...' button with in that browsing session? [/snip] I am familiar with this behavior, and I am pretty sure that it wasn't this, because it stood out somehow. -- PHP General Mailing

Re: [PHP] Drop down directory structure list box

2006-01-19 Thread Jochem Maas
Jay Blanchard wrote: [snip] are you sure it was not internet explorer just showing you the last directory you had opened with a 'browse...' button with in that browsing session? [/snip] I am familiar with this behavior, and I am pretty sure that it wasn't this, because it stood out somehow.

RE: [PHP] Drop down directory structure list box

2006-01-19 Thread Jay Blanchard
[snip] Along these same lines, does anyone know how to make the file dialog start in a specific directory? I saw this the other day but forgot where. I clicked browse and the dialog popped up pointed to My Pictures (which at least works for most Windblows users). I meant to look at the code,

Re: [PHP] Image handling advice needed

2006-01-19 Thread tedd
Hello, I need to build an image 'library'. The library will consist mostly of images taken with digital cameras. Since unedited digicam pics will most likely be too big for web usage they need to be edited automatically so that they can be put to a web page. I'am trying to deside between two

Re: [PHP] Drop down directory structure list box

2006-01-19 Thread Rodolfo Andrade
This depends on User-Agent. Internet Explorer queries the registry (MRU values) looking for the last open directory. There's no way to do this in PHP or plain HTML (w3 compilant) and probably you will need to write an ActiveX plugin (which will sucks if you have a Linux or Firefox user); This

[PHP] Regular Expression help

2006-01-19 Thread Chris Boget
I've been beating my head against the wall for a while trying to come up with the RE I need to use. I have a camel case word - let's use JimJoeBobBriggs. I need to come up with a RE that will fine all the upper case characters and insert an underscore prior to those characters with the exception

Re: [PHP] Regular Expression help

2006-01-19 Thread Richard Heyes
Chris Boget wrote: I've been beating my head against the wall for a while trying to come up with the RE I need to use. I have a camel case word - let's use JimJoeBobBriggs. I need to come up with a RE that will fine all the upper case characters and insert an underscore prior to those

Re: [PHP] Regular Expression help

2006-01-19 Thread Robin Vickery
On 1/19/06, Chris Boget [EMAIL PROTECTED] wrote: I've been beating my head against the wall for a while trying to come up with the RE I need to use. I have a camel case word - let's use JimJoeBobBriggs. I need to come up with a RE that will fine all the upper case characters and insert an

Re: [PHP] Regular Expression help

2006-01-19 Thread Chris
Chris Boget wrote: I've been beating my head against the wall for a while trying to come up with the RE I need to use. I have a camel case word - let's use JimJoeBobBriggs. I need to come up with a RE that will fine all the upper case characters and insert an underscore prior to those

Re: [PHP] Regular Expression help

2006-01-19 Thread John Nichel
Chris Boget wrote: I've been beating my head against the wall for a while trying to come up with the RE I need to use. I have a camel case word - let's use JimJoeBobBriggs. I need to come up with a RE that will fine all the upper case characters and insert an underscore prior to those

Re: [PHP] Regular Expression help

2006-01-19 Thread John Nichel
Chris wrote: snip preg_replace('/(?!^)([A-Z])/','_$1','JimJoeBobBriggs'); Ohhhregex-fu black belt. ;) -- John C. Nichel IV Programmer/System Admin (ÜberGeek) Dot Com Holdings of Buffalo 716.856.9675 [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe,

[PHP] odd behavior

2006-01-19 Thread Jay Blanchard
When I expire you will find my hands wrapped tightly around the throat of a Windows network administrator. I had PHP installed on a web server, and all was working OK, save for one small thing. phpinfo() indicated that the path to the php.ini was c:\WINNT, which it was not. So I copy the file

Re: [PHP] odd behavior

2006-01-19 Thread Austin Denyer
On Thu, 19 Jan 2006 11:53:04 -0600 Jay Blanchard [EMAIL PROTECTED] wrote: Has anyone experienced this behavior before, and how do I fix that damned path to the ini? TIA! Personally, I'd fix it with a Debian install CD, but that's just me. #;-D Can't help with the Windoze issue - I don't do

Re: [PHP] odd behavior

2006-01-19 Thread John Nichel
Jay Blanchard wrote: snip and how do I fix http://distrowatch.com/ serious mode I have no idea, I don't do Windows. /serious mode Sucks to be you. ;) -- John C. Nichel IV Programmer/System Admin (ÜberGeek) Dot Com Holdings of Buffalo 716.856.9675 [EMAIL PROTECTED] -- PHP General Mailing

Re: [PHP] parse string

2006-01-19 Thread Ron Eggler (Paykiosks)
yup, I finally got it parsed by simple XML, thank you! but I got a problem, my xml-string returns many parts like this one: [xml] cardSKU category=Local Dial Tone/Telephone Service distributor=EWI discontinued=false cardtype=PIN transactionType=PURC card cardID=180 carrier=Reconex (test)

[PHP] Re: creating new class from wrapper class (OOP question)

2006-01-19 Thread David Hall
Henrik Gemal wrote: In a image gallery I have to class'es: class GPicFilePicture extends GPicFileType class GPicFileMovie extends GPicFileType both of them are based on: abstract class GPicFileType In my code I need to create a new GPicFilePicture. To avoid duplicated code I've create a

Re: [PHP] odd behavior

2006-01-19 Thread tg-php
Ok.. now maybe a constructive answer :) If I recall, PHP on Windows will look for PHP.INI in your Windows system folder (in this case C:\WINNT) first, then in the folder where PHP is installed. Deleting the PHP.INI under WINNT should be fine (sounds like removing that makes things work ok for

[PHP] Grouping

2006-01-19 Thread Jeffrey Pearson
OK. I know I did this a LONG time ago but I don't remember how I did it. Thus, my post. I have a list of last names from a MySQL database. I need to display them grouped by the first letter of their last names and insert a separator on display. Similar to a phone book. So it looks like;

Re: [PHP] odd behavior

2006-01-19 Thread Rodolfo Andrade
I use PWS with Windows 98 for learning purposes. I just cut PHP.ini from C:\PHP and paste in %windir% then restart the server. Works fine for me and I can run ASP and PHP for learning. ^^ Regards, Rodolfo Andrade - Original Message - From: Jay Blanchard To: PHP General (E-mail) Sent:

Re: [PHP] Grouping

2006-01-19 Thread John Nichel
Jeffrey Pearson wrote: OK. I know I did this a LONG time ago but I don't remember how I did it. Thus, my post. I have a list of last names from a MySQL database. I need to display them grouped by the first letter of their last names and insert a separator on display. Similar to a phone

RE: [PHP] odd behavior

2006-01-19 Thread Jay Blanchard
[snip] If I recall, PHP on Windows will look for PHP.INI in your Windows system folder (in this case C:\WINNT) first, then in the folder where PHP is installed. Deleting the PHP.INI under WINNT should be fine (sounds like removing that makes things work ok for you). I'd think phpinfo() would

Re: [PHP] Grouping

2006-01-19 Thread Geoff
Sound like a straightforward control-break (at least, that's what they used to call it in the COBOL days :-) assuming you're getting data into an assoc array called $records, you could stick this into your loop: { $letter = $records['LastName']{0}; if ($prev != $letter) {

[PHP] Re: odd behavior

2006-01-19 Thread James Benson
Could these help? http://www.php.net/manual/en/faq.installation.php#faq.installation.phprc http://php.net/configuration James Jay Blanchard wrote: When I expire you will find my hands wrapped tightly around the throat of a Windows network administrator. I had PHP installed on a web

Re: [PHP] parse string

2006-01-19 Thread Richard Lynch
On Thu, January 19, 2006 12:08 pm, Ron Eggler (Paykiosks) wrote: cardSKU category=Local Dial Tone/Telephone Service distributor=EWI discontinued=false cardtype=PIN transactionType=PURC . . . /cardSKU [/xml] and I wanna read information out of it by: [php] $xml =

RE: [PHP] Re: odd behavior

2006-01-19 Thread Jay Blanchard
[snip] Could these help? http://www.php.net/manual/en/faq.installation.php#faq.installation.phprc http://php.net/configuration [/snip] I'll give those a try as I did do the manual installationwhich does not refer to this as far as I can tell. -- PHP General Mailing List

Re: [PHP] Grouping

2006-01-19 Thread Richard Lynch
On Thu, January 19, 2006 12:19 pm, Jeffrey Pearson wrote: OK. I know I did this a LONG time ago but I don't remember how I did it. Thus, my post. I have a list of last names from a MySQL database. I need to display them grouped by the first letter of their last names and insert a separator

Re: [PHP] odd behavior

2006-01-19 Thread Richard Lynch
On Thu, January 19, 2006 11:53 am, Jay Blanchard wrote: I had PHP installed on a web server, and all was working OK, save for one small thing. phpinfo() indicated that the path to the php.ini was c:\WINNT, which it was not. So I copy the file from the c:\php directory to the c:\winnt

RE: [PHP] odd behavior

2006-01-19 Thread Richard Lynch
On Thu, January 19, 2006 12:31 pm, Jay Blanchard wrote: [snip] If I recall, PHP on Windows will look for PHP.INI in your Windows system folder (in this case C:\WINNT) first, then in the folder where PHP is installed. Deleting the PHP.INI under WINNT should be fine (sounds like removing

[PHP] Email Form

2006-01-19 Thread Thomas Bonham
Hello All, I don't remember how to do email with php. I have all of it done, except for I can't get it to show the senders email address. All I get it from [EMAIL PROTECTED] If some one has a example that they can post that would be great. Thank You Thomas -- PHP General Mailing List

[PHP] Re: Email Form

2006-01-19 Thread David Dorward
Thomas Bonham wrote: I don't remember how to do email with php. I have all of it done, except for I can't get it to show the senders email address. All I get it from [EMAIL PROTECTED] If some one has a example that they can post that would be great.

Re: [PHP] URL - stream context

2006-01-19 Thread Richard Lynch
On Thu, January 19, 2006 5:17 am, Jochem Maas wrote: Richard Lynch wrote: So I've been poring over the docs for the new stream stuff, and it looks pretty nifty, except... I'd really like to be able to just hand a URL to PHP like: http://php.net/manual/en/ref.stream.php er you can if

Re: [PHP] parse string

2006-01-19 Thread Ron Eggler (Paykiosks)
Am Donnerstag, den 19.01.2006, 13:51 -0600 schrieb Richard Lynch: On Thu, January 19, 2006 12:08 pm, Ron Eggler (Paykiosks) wrote: cardSKU category=Local Dial Tone/Telephone Service distributor=EWI discontinued=false cardtype=PIN transactionType=PURC . . . /cardSKU [/xml] and I

Re: [PHP] Re: Performance Comments Question

2006-01-19 Thread Richard Lynch
On Thu, January 19, 2006 7:09 am, Jochem Maas wrote: Barry wrote: Rodolfo Andrade wrote: and people will love you if you'r files are 90% comments :-) Actually, the times I've seen THAT much commenting, it was generally a lot of useless noise and I hated it... Consider this common practice:

RE: [PHP] Email Form

2006-01-19 Thread Weber Sites LTD
Check out : http://www.weberdev.com/get_example-336.html http://www.weberdev.com/get_example-1557.html In general you need to add the From header : Mail($To,$subject,$body,From:[EMAIL PROTECTED]); Sincerely berber Visit the Weber Sites Today, To see where PHP might take you tomorrow.

Re: [PHP] Embedded player

2006-01-19 Thread Richard Lynch
On Thu, January 19, 2006 5:36 am, Jedidiah wrote: I have a sermons page (www.mzbc.com/sermons.php) with a table with links to .wma sermons. When clicked in Firefox, it prompts to download. What You should also consider switching to MP3, since there is NO WAY I'll ever hear your .wma sermons

[PHP] Sessions

2006-01-19 Thread PHP Mail
Hi My site is running a custom session handler (into MySQL 3.28). all was well until I needed to test session in files. it was only a 5 minute test Now I can't get the DB sessions active. Absolutely nothing is registering in the DB PHP version is 4.3.10. Help please because I can't

Re: [PHP] Embedded player

2006-01-19 Thread Richard Lynch
On Thu, January 19, 2006 7:24 am, Rodolfo Andrade wrote: If you are looking for compatibility then I would recommend the flash player solution. There are a *LOT* of sites that use flash so I don't think that making it a must will impact your users. You're wrong... I don't know which type

RE: [PHP] Email Form

2006-01-19 Thread Richard Lynch
On Thu, January 19, 2006 3:25 pm, Weber Sites LTD wrote: Check out : http://www.weberdev.com/get_example-336.html http://www.weberdev.com/get_example-1557.html In general you need to add the From header : Mail($To,$subject,$body,From:[EMAIL PROTECTED]); In the ideal world, you also will

Re: [PHP] parse string

2006-01-19 Thread Richard Lynch
Then var_dump($xml) and see what's in there. The data you want is in there somewhere -- you just need to figure out where it is. On Thu, January 19, 2006 3:10 pm, Ron Eggler (Paykiosks) wrote: Am Donnerstag, den 19.01.2006, 13:51 -0600 schrieb Richard Lynch: On Thu, January 19, 2006 12:08

RE: [PHP] Drop down directory structure list box

2006-01-19 Thread Richard Lynch
On Thu, January 19, 2006 8:04 am, Jay Blanchard wrote: [snip] are you sure it was not internet explorer just showing you the last directory you had opened with a 'browse...' button with in that browsing session? [/snip] I am familiar with this behavior, and I am pretty sure that it wasn't

Re: [PHP] Re: Re: Greetings

2006-01-19 Thread Richard Lynch
On Thu, January 19, 2006 4:32 am, Michelle Konzack wrote: Hello Richard, Am 2006-01-13 16:44:46, schrieb Richard Lynch: I am thinking, that spamers know the trich with the @ and maybe . Last actual experiement I saw, by Netscape? Netcraft? ??? showed pretty conclusively that any kind of

[PHP] Embedded Player

2006-01-19 Thread Jedidiah
Thanks for the input. I think you have slightly misunderstood my post. Currently, if you visit www.mzbc.com/sermons.php (not trying to promote, but perhaps it will clarify), you will see a table without about 10 links to 10 different sermons. I even have instructions below on downloading these

[PHP] New to PHP

2006-01-19 Thread Jedidiah
I mentioned earlier that I recently switched my site over to PHP. I had a couple of reasons for this: 1: I was using Server Side Includes, and had been told that PHP includes were better and definitely more popular. 2: I began sending out a newsletter which was written by someone else in PHP.

RE: [PHP] odd behavior SOLVED

2006-01-19 Thread Jay Blanchard
[snip] ...lots of valuable information [/snip] From the offices of You Ain't Gonna' Beleeeve Dis, Inc. We barked up several trees, but there were no real squirrels. PHP 4.4.1, the version on the server in question, comes with 2 flavors of ini file, the dist and the recommended. I had copied

RE: [PHP] PHP load to high on server

2006-01-19 Thread Richard Lynch
On Thu, January 19, 2006 3:20 am, Albert wrote: Richard Lynch wrote: On Tue, January 17, 2006 11:18 pm, Albert wrote: The page having the heaviest load uses 5 simultaneous sessions - they refresh every 5 seconds. Even with just one connection there are 16 Apache threads running all

Re: [PHP] New to PHP

2006-01-19 Thread Jesús Fernández
You can always install Apache+PHP on your box to try it whenever you want... -- Esú - http://esu.proyectoanonimo.com http://www.proyectoanonimo.com

RE: [PHP] PHP Cache (was PHP load to high on server)

2006-01-19 Thread Richard Lynch
On Thu, January 19, 2006 12:56 am, Albert wrote: Jochem Maas wrote: take note that APC does 2 things: 1. op code caching 2. manage some shared memory (a central place where you can stick stuff that needs to be read again and again and again; but doesn't need updating very often) pear

Re: [PHP] URL - stream context

2006-01-19 Thread Geoff
3 suggestions: I honestly have no idea if this would work, but maybe fopen supports non-blocking connections? Or creation of context-based connections (for which you can use stream_set_blocking). If so, you could take a stamp of the current time plus a timeout value, make the fopen call

RE: [PHP] $_SESSION saves all values but Class -- works on one server but not another?!

2006-01-19 Thread Daevid Vincent
Thank you for the reply. I don't think that's the issue. I have: ; Initialize session on request startup. session.auto_start = 0 But this is the same setting as the box that DOES work. What's really confusing me is that part of the SESSION does work. I would expect an all or nothing case.

Re: [PHP] New to PHP

2006-01-19 Thread Geoff
I have a local web server running on my development PC, with an exact copy of all my sites stored locally, so I can develop and test as I go, only uploading when I know everything is 100%. For Windows machines, you can choose IIS or Apache, although I'd recommend you go with whatever your web

Re: [PHP] Help with regular expressions

2006-01-19 Thread Richard Lynch
On Tue, January 17, 2006 1:54 pm, Carl Furst wrote: Ok I am so stumped.. I'm doing something stupid and I can't figure it out.. Here's the code: ?php $eml = '[EMAIL PROTECTED] ceo'; if (strpos($eml, ' ')) echo yep, there are spaces\n; //does strpos see the spaces? echo

Re: [PHP] parse string

2006-01-19 Thread Ron Eggler (Paykiosks)
[snipped everything] Okay, If I'm gonna dump $xml i get a huge output put can't fin category in there: [Output] object(SimpleXMLElement)#1 (1) { [SKUlisting]= object(SimpleXMLElement)#3 (3) { [globalInfo]= object(SimpleXMLElement)#4 (0) { } [carrierInfo]= array(15) {

[PHP] (Fwd) inserting text into a mime message

2006-01-19 Thread Geoff
Nobody got any ideas on this? I would be interested to hear from anyone who has successfully adjusted parts of an email message while it is in transit, by ANY method. I'm getting desparate and will try anything, even if it is not 100% PHP. All ideas, suggestions greatly appreciated. Geoff.

Re: [PHP] RE: header data being inserted into message

2006-01-19 Thread Richard Lynch
On Tue, January 17, 2006 9:12 am, ET Support wrote: I am having a problem using PHP's mail function to send mail via BCC to multiple recipients. Here's my code; -- $get_emails = pg_exec($dbh,SELECT email FROM mailing_list WHERE conf = 1); $count =

Re: [PHP] creating new class from wrapper class (OOP question)

2006-01-19 Thread Richard Lynch
On Tue, January 17, 2006 8:56 am, Henrik Gemal wrote: In a image gallery I have to class'es: class GPicFilePicture extends GPicFileType class GPicFileMovie extends GPicFileType both of them are based on: abstract class GPicFileType In my code I need to create a new GPicFilePicture. To

Re: [PHP] New to PHP

2006-01-19 Thread Mike Rondeau
I use Xampp because I'm new to all of this also, and it makes setup a breeze. http://www.apachefriends.org/en/ This installs Apache, mysql, php, pearl, ftpzilla, all kinds of stuff, already configured and ready to rock. It doesn't get any easier. Mike - Original Message - From:

Re: [PHP] (Fwd) inserting text into a mime message

2006-01-19 Thread Richard Lynch
All them lawyerly crapola signatures outside the control of the actual user implies that there is SOME kind of software available to do it... It seems to me that if you looked at the raw email and found the boundary, and focused on the only mime-types you care about, you'd be able to hack the

Re: [PHP] parse string

2006-01-19 Thread Richard Lynch
G. I forgot PHP Object printing was so primitive, even under var_dump. :-( function walkout($object, $indent = 0){ if (is_object($object) or is_array($object)){ foreach($object as $k = $v){ echo str_repeat(' ', $indent), $k, ' =gt; '; walkout($v, $indent + 1); } }

RE: [PHP] $_SESSION saves all values but Class -- works on one server but not another?!

2006-01-19 Thread Richard Lynch
Object 'autoload' has absolutely NOTHING to do with session.auto_start. http://www.php.net/autoload On Thu, January 19, 2006 4:10 pm, Daevid Vincent wrote: Thank you for the reply. I don't think that's the issue. I have: ; Initialize session on request startup. session.auto_start = 0

RE: [PHP] Embedded Player

2006-01-19 Thread Brady Mitchell
-Original Message- My reason for using an embedded player was basically just for design purposes, but perhaps that is not a good idea. I did not consider the fact of not being able to leave the site while listening, and since these are as long as 40 minutes, this might get

Re: [PHP] New to PHP

2006-01-19 Thread Richard Lynch
On Thu, January 19, 2006 4:02 pm, Jedidiah wrote: I mentioned earlier that I recently switched my site over to PHP. I had a couple of reasons for this: 1: I was using Server Side Includes, and had been told that PHP includes were better and definitely more popular. 2: I began sending out

Re: [PHP] parse string

2006-01-19 Thread Ron Eggler (Paykiosks)
Am Donnerstag, den 19.01.2006, 16:42 -0600 schrieb Richard Lynch: G. I forgot PHP Object printing was so primitive, even under var_dump. :-( function walkout($object, $indent = 0){ if (is_object($object) or is_array($object)){ foreach($object as $k = $v){ echo str_repeat('

Re: [PHP] Email Form

2006-01-19 Thread AK
- Original Message - From: Thomas Bonham [EMAIL PROTECTED] To: php-general@lists.php.net Sent: Thursday, January 19, 2006 12:40 PM Subject: [PHP] Email Form Hello All, I don't remember how to do email with php. I have all of it done, except for I can't get it to show the senders

Re: [PHP] (Fwd) inserting text into a mime message

2006-01-19 Thread Geoff
It seems to me that if you looked at the raw email and found the boundary, and focused on the only mime-types you care about, you'd be able to hack the file pretty easily... I just may have to do that. One problem though is that many mails are encoded in some way (I mean byte-encoding, like

[PHP] Re: New to PHP

2006-01-19 Thread Dan Baker
Jedidiah [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] I mentioned earlier that I recently switched my site over to PHP. snip I can no longer preview my pages without uploading the files to the server. This can really become a problem when I am making slight formatting changes

Re: [PHP] URL - stream context

2006-01-19 Thread Richard Lynch
On Thu, January 19, 2006 4:08 pm, Geoff wrote: I honestly have no idea if this would work, but maybe fopen supports non-blocking connections? Not as far as I can tell... You can call stream_set_blocking after it's open, but that doesn't help a slow connection in the first place. Or creation

Re: [PHP] Sessions

2006-01-19 Thread Richard Lynch
You changed php.ini back to 'user' instead of 'file' for the session handling? You re-started the web-server? (Apache, IIS, whatever) If it's a Windows box, reboot for good measure. On Thu, January 19, 2006 3:29 pm, PHP Mail wrote: Hi My site is running a custom session handler (into

Re: [PHP] (Fwd) inserting text into a mime message

2006-01-19 Thread Richard Lynch
Sounds like they all hit the same wall you have hit... Could be an opportunity... :-) On Thu, January 19, 2006 4:55 pm, Geoff wrote: It seems to me that if you looked at the raw email and found the boundary, and focused on the only mime-types you care about, you'd be able to hack the file

Re: [PHP] generate database driven web pages

2006-01-19 Thread Richard Lynch
On Tue, January 17, 2006 4:27 pm, Bing Du wrote: Hello everyone, Here is what I want to accomplish. Query the backend database and generate a page listing all the staff members in table format that has name, title, phone and office address. Staff name should be a link. Clicking the link

Re: [PHP] PHP and LDAP...

2006-01-19 Thread Richard Lynch
On Tue, January 17, 2006 3:08 am, David BERCOT wrote: I'm new on this list and with PHP. But I am a old web developer (with ASP). I'm looking for verifying a username/password in Active Directory with a LDAP request... I have this error : Warning: ldap_search() [function.ldap-search]:

Re: [PHP] Re: Using GPG in Safe Mode

2006-01-19 Thread Edwin Barrios
Hi, emil Using safe_mode_exec_dir, it's a solution if you has access to your php.ini or http.conf, because it's a PHP_INI_SYSTEM var. For these reason you can't set this var with ini_set() function on a php script. If your ISP has a very restricted setting, i think that the solutions that comex

Re: [PHP] how 2 open File Browser window in PHP

2006-01-19 Thread Richard Lynch
On Tue, January 17, 2006 1:38 am, suresh kumar wrote: i dont know exact PHP code for how 2 open file browser window to uplad file or an image plz help me.its very urgent. form enctype=multipart/form-data input type=file name=upload / input type=submit / /form Forgetting the enctype is

Re: [PHP] Site down?

2006-01-19 Thread Richard Lynch
On Tue, January 17, 2006 12:34 am, Dotan Cohen wrote: I just noticed that http://www.io.org/~rasmus is down. Anybody else remember this site? WILD GUESS: http://www.lerdorf.ca/ ??? -- Like Music? http://l-i-e.com/artists.htm -- PHP General Mailing List (http://www.php.net/) To unsubscribe,

  1   2   >