Re: [PHP] squirrelmail php memory

2006-01-19 Thread Curt Zirzow
On Thu, Jan 19, 2006 at 10:47:50PM -0500, maillists wrote: > ... > Here is a sample error that appears sometimes in the pages: > > > Fatal error: Allowed memory size of 33554432 bytes exhausted (tried to > allocate 35 bytes) > in /var/www/mail.gmnet.net/html/functions/imap_mailbox.php on line 66

[PHP] PHP mail form spam checking

2006-01-19 Thread Gerry Danen
A couple of days ago somebody posted a message with a routine to check input fields for potential spam/hacking. I believe it was on this list, but not sure. Of course I can't find that message any more... Could the original poster, please repost? Thanks. Gerry -- PHP General Mailing List (http

Re: [PHP] Determining number of days in a selected month

2006-01-19 Thread clive
google- I searched for "php number of days in a month" and got this link http://www.php.net/cal_days_in_month clive Ben Miller wrote: Is there a way to easily tell PHP how many days there are in a selected month without writing the following out for each month: if($Month == "January") {

[PHP] reading variables?

2006-01-19 Thread William Stokes
Hello, The code below is from a document library I'm building. With this user can upload a file to server and the uploaded files are printed as links to same page. For each printed document there's a check box "Delete" for marking that document for deletion. The document info from DB is printed

[PHP] Determining number of days in a selected month

2006-01-19 Thread Ben Miller
Is there a way to easily tell PHP how many days there are in a selected month without writing the following out for each month: if($Month == "January") { $NumberOfDays = 31; } elseif($Month == "February") { if($Year == "A Leap Year") { $NumberOfDays = 29; }

[PHP] squirrelmail php memory

2006-01-19 Thread maillists
Hi, I am using php to drive my webmail service (squirrelmail) and it seems really buggy. many times just clicking on links it logs me out, hangs, returns 404's etc. I think it has somthing to do with the amount of memory limited by php. Here is a sample error that appears sometimes in the pages:

Re: [PHP] Validating Radio Buttons in two directions

2006-01-19 Thread HiFi Tubes
On 1/19/06, Richard Lynch <[EMAIL PROTECTED]> wrote: > > On Mon, January 16, 2006 9:16 pm, HiFi Tubes wrote: > > I'm kind of a newbie so speak sowly. > > > > I've got a problem with validating radio buttons that seems to be > > harder > > than I think to solve. I've got ten items set up l

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

2006-01-19 Thread Daevid Vincent
You are correct, however that also seems to have to do with the actual class or php code and not a server configuration. If I copy my PHP files to the 'other' server, everything works as expected -- no change in code required. This is why I suspect it is a PHP/Apache/php.ini type of problem. But as

Re: [PHP] New to PHP

2006-01-19 Thread Mike Rondeau
I hope you like it. Inside your xampp folder, wherever you installed it to, you will find a folder named "htdocs", which is where apache holds your site as far as I can tell. So if you were to to create a new php page named newpage.php inside your htdocs folder, you can view it in a browser by t

Re: [PHP] URL -> stream context

2006-01-19 Thread Geoff
Richard, have you seen this: http://bugs.php.net/bug.php?id=5153&edit=1 This bug goes back to June 2000. And it's closed even though it is clearly not fixed. Doesn't seem like they'll get to it anytime soon. You might have to do it the long way, building your own protocol handlers. Or, you might

RE: [PHP] Sessions

2006-01-19 Thread php-mail
usic? http://l-i-e.com/artists.htm -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php __ NOD32 1.1372 (20060119) Information __ This message was checked by NOD32 antivirus system. http://www.eset.com -- PHP General Mai

RE: [PHP] Sessions

2006-01-19 Thread Richard Lynch
On Thu, January 19, 2006 5:52 pm, php-mail wrote: > Just tried an ini_set to make sure then rebooted the server (which is > Apache > on a VS running Redhat) Does claim that you are using file-based sessions, or 'user'?... After you do the ini_set, of course. Toss in a phpinfo(); right after the

Re: [PHP] Validating Radio Buttons in two directions

2006-01-19 Thread Richard Lynch
On Tue, January 17, 2006 9:45 am, John Nichel wrote: > Huh? Maybe I'm just not awake this morning and not understanding what > you're trying to explain, but if you're using *radio* buttons, only > *one* of the same name can be checked at any give time. ie: > > Blue > Red > Black > Green > Ma

Re: [PHP] Using GPG in Safe Mode

2006-01-19 Thread Richard Lynch
On Mon, January 16, 2006 8:28 pm, [EMAIL PROTECTED] wrote: > My ISP have php set for safe mode. And now I'm trying to run gpg from > php. > > Basically I'm trying to run this from exec(): > echo "testar testar" | /usr/local/bin/gpg --homedir /home/myuser/ > .gnupg -a --always-trust --batch --no-sec

Re: [PHP] Validating Radio Buttons in two directions

2006-01-19 Thread Richard Lynch
On Mon, January 16, 2006 9:16 pm, HiFi Tubes wrote: > I'm kind of a newbie so speak sowly. > > I've got a problem with validating radio buttons that seems to be > harder > than I think to solve. I've got ten items set up like this: > > Green: type="Radio" > name="color1" value="2" /> /

RE: [PHP] Sessions

2006-01-19 Thread php-mail
gt; > > > > -- Like Music? http://l-i-e.com/artists.htm -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php __ NOD32 1.1372 (20060119) Information __ This message was checked by NOD32 antivirus system. http://www.eset.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

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,

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. Forgetting the enctype is the most common problem. Did I mention you needed an ENCTYPE attribute in the FORM

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 "com

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] 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 li

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 fi

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] 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 creatio

[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. > 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 chang

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, lik

Re: [PHP] Email Form

2006-01-19 Thread AK
- Original Message - From: "Thomas Bonham" <[EMAIL PROTECTED]> To: 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 email address. All I ge

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_r

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 sen

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] $_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 =

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, ' => '; walkout($v, $indent + 1); } } el

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 file

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: Jesús

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 GPicFilePictu

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 =

[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] 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)

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: > > > $eml = '[EMAIL PROTECTED] > ceo'; > if (strpos($eml, ' ')) echo "yep, there are spaces\n"; //does strpos > see the > spaces? > echo preg_re

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 se

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. Every

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 (which

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

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 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 >> > threa

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 copi

[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.

[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 fi

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

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

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] 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

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

[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 figu

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 sermon

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] 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 practic

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: > > > distributor="EWI" > > discontinued="false" cardtype="PIN" transactionType="PURC"> > . > . > . > > > > [/xml] > > > > and I wanna read information out of it by

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 c

[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. http://uk.php.net/manual/en/function

[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 (http

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 > removi

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 di

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 > separa

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 (http://www.php.net/)

Re: [PHP] parse string

2006-01-19 Thread Richard Lynch
On Thu, January 19, 2006 12:08 pm, Ron Eggler (Paykiosks) wrote: > distributor="EWI" > discontinued="false" cardtype="PIN" transactionType="PURC"> . . . > > [/xml] > > and I wanna read information out of it by: > [php] > $xml = simplexml_load_string($data); > /* a few other things like parsing xm

[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 serve

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) {

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 show

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 boo

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: Th

[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 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] 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 wrapp

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] https://www.pinsprepaid.com/image.aspx?name=c38-reconex_logo.gif"; upc="870368000420"> Refer to the Reconex brochure for complete terms and condition

Re: [PHP] odd behavior

2006-01-19 Thread John Nichel
Jay Blanchard wrote: and how do I fix http://distrowatch.com/ I have no idea, I don't do Windows. 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 List (http://www.php.net/) To u

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

[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 from

Re: [PHP] Regular Expression help

2006-01-19 Thread John Nichel
Chris wrote: preg_replace('/(? 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, visit: http://www.php.net/unsub.php

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 character

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 characte

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

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 character

[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] 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 bec

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 opt

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

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. ac

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 Li

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 o

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 a

[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 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...

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 kno

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 a

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] 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 anyo

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 Bla

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] 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 yo

  1   2   >