[PHP] PNGs & PHP feedback

2003-09-29 Thread Joe Harman
Hello, I am looking for some guidance... I am using PHP to make dynamic buttons... Is the PNG image format a pretty safe thing to go with... Standard wise? Thanks for your input. Joe -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] Initial Value for Input Box

2003-09-29 Thread Martin Towell
Hiya, Replace " with " Martin -Original Message- From: Cristian Lavaque [mailto:[EMAIL PROTECTED] Sent: Tuesday, 30 September 2003 5:09 PM To: [PHP] Subject: Re: [PHP] Initial Value for Input Box Matt Palermo wrote: > I have a form that a user can fill out. In the text input field I >

Re: [PHP] Initial Value for Input Box

2003-09-29 Thread Cristian Lavaque
Matt Palermo wrote: > I have a form that a user can fill out. In the text input field I > allow them to insert HTML tags with their input data. They can then > submit the form for processing. The problem is that later on when > they go to edit their inputs (I initialize the text input with their

Re: [PHP] Cleaning up my messy code

2003-09-29 Thread Cristian Lavaque
olinux wrote: > Try out smarty (its quite simple). You will get some > ideas on how to structure. I learned that its *ok* to > have some *display logic* in your templates (i.e. > repeating rows). (yes, some will adamantly disagree) > > Another thing i learned when using smarty is I like > using arr

Re: [PHP] PHP coders spare time [OT}

2003-09-29 Thread Curt Zirzow
* Thus wrote Curt Zirzow ([EMAIL PROTECTED]): > * Thus wrote Chris Shiflett ([EMAIL PROTECTED]): > > --- Curt Zirzow <[EMAIL PROTECTED]> wrote: > > > http://zirzow.dyndns.org/html/mlists/php_general/ > > > > There's also this: > > > > http://www.zend.com/cgi-bin/m_stats.pl?list=php-general&date=2

Re: [PHP] How can I auto upload a file to the server?

2003-09-29 Thread Raditha Dissanayake
Hi John, Yops you are very right, this is only a few lines of visual basic or java code. John W. Holmes wrote: Mike Migurski wrote: The only part i am having trouble with is making the remote script automatically look into the local computer's hard drive and grab the .txt file. The problem

Re: [PHP] How can I auto upload a file to the server?

2003-09-29 Thread Raditha Dissanayake
CPT John W. Holmes wrote: From: "Raditha Dissanayake" <[EMAIL PROTECTED]> My Impression from Jane's mail was that she was thinking of using a PHP script on the client side and not the server side. Am i correct jane? If so there would not be security concerns. Obviously as john has so rightly po

Re: [PHP] Change cell colour with selection from a drop down menu

2003-09-29 Thread Cristian Lavaque
Cristian Lavaque wrote: > > You'd use CSS for that. Create a class for each color you want to > give as options. In each cell tag add a var that'll be the class > for that cell, like ">" and you'd assign > the color to that variable using the dropdown menu. To select the > cells, you could probably

Re: [PHP] Cleaning up my messy code

2003-09-29 Thread olinux
Try out smarty (its quite simple). You will get some ideas on how to structure. I learned that its *ok* to have some *display logic* in your templates (i.e. repeating rows). (yes, some will adamantly disagree) Another thing i learned when using smarty is I like using arrays to keep things organize

Re: [PHP] How many Mondays in a month?

2003-09-29 Thread Cristian Lavaque
Burhan Khalid wrote: > Greg Wiley wrote: >> Funny you should ask this because I've been meaning to share some >> code that I wrote a few months ago that does exactly this for any >> day of the week. >> >> Please feel free to use this and make changes. I'd appreciate any >> changes/bug fixes being s

Re: [PHP] Change cell colour with selection from a drop down menu

2003-09-29 Thread Cristian Lavaque
[EMAIL PROTECTED] wrote: > Hi all, >I would like to create a dynamic kinda "Timetable" whereby I > can add, del, and modify the data contained in each cell. Besides > that, each cell in the table should have its unique colour in which > this unique colour can be modified anytime to a differ

RE: [PHP] Does the AOL browser break any standards?

2003-09-29 Thread Joe Pemberton
Fyi, I can read the site fine in ie 6 -Original Message- From: Jason Wong [mailto:[EMAIL PROTECTED] Sent: Monday, September 29, 2003 10:56 AM To: [EMAIL PROTECTED] Subject: Re: [PHP] Does the AOL browser break any standards? On Tuesday 30 September 2003 01:33, Dan Anderson wrote: > > Asi

[PHP] Change cell colour with selection from a drop down menu

2003-09-29 Thread irinchiang
Hi all, I would like to create a dynamic kinda "Timetable" whereby I can add, del, and modify the data contained in each cell. Besides that, each cell in the table should have its unique colour in which this unique colour can be modified anytime to a different colour through an interface,

Re: [PHP] Cleaning up my messy code

2003-09-29 Thread andu
On 29 Sep 2003 21:08:40 -0400 Robert Cummings <[EMAIL PROTECTED]> wrote: > > I like that idea too-- I just don't like having to learn what amounts to a > > third language to do it. Does one have to have a templating engine in order > > to achieve this? > > > > I find reusability to be, largely

[PHP] newbie about passing value

2003-09-29 Thread Ben Johnson
Hi, Why is the product_details.php is not getting the id value properly. In the URL it is showing id=1 with along with the correction location and file name. But the page is not getting displayed. On-Special name?> description?> $price?> [+ Add to cart] But

[PHP] Templating system (was Re: [PHP] Cleaning up my messy code)

2003-09-29 Thread Brad Pauly
On Mon, 2003-09-29 at 17:07, Curt Zirzow wrote: > I wonder if now is a place to introduce my new templating system. Definitely! I'd be interested in seeing it. > I have the same difficulties in letting just joe blow executing php > code within templates, sometimes smarty is just to smart for >

[PHP] WebDAV help

2003-09-29 Thread Oscar F
Hello all, I'm having a problem with PHP/WebDAV. Here's my problem: I am working on a system that keeps track of documents. The documents are stores based on document ids, and the filename is saved on the database along with the document id and file type/size, and the file is renamed to just t

RE: [PHP] Cleaning up my messy code

2003-09-29 Thread Robert Cummings
On Mon, 2003-09-29 at 20:27, Chris L wrote: > [EMAIL PROTECTED] (Robert Cummings) wrote in > news:[EMAIL PROTECTED]: > > > > *heh* I like being able to look at project 2 and say to myself, hmm > > needs an authentication just like project 1, but with a different > > look. Or wants a news feed,

Re: [PHP] Central authentication for multiple sites

2003-09-29 Thread Mike Migurski
>Does anyone know of a way to authenticate a person on one site and have >that authentication carried through to multiple sites? > >Basically I'd like to have someone login on www.domain1.com and then have >their login be valid on www.domain2.com and www.domain3.com ... the >domain name is differen

Re: [PHP] date() is hours behind

2003-09-29 Thread Jon Kriek
Well I meant just putenv('TZ=US/Eastern'); But you get the idea. -- Jon Kriek http://phpfreaks.com "Jon Kriek" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > See the putenv() function. For example to get the correct Eastern Standard > Time > > http://www.php.net/putenv > >

Re: [PHP] date() is hours behind

2003-09-29 Thread Jon Kriek
See the putenv() function. For example to get the correct Eastern Standard Time http://www.php.net/putenv -- Jon Kriek http://phpfreaks.com "Php Webmaster" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Hi all, > > I currently use: > > date("l jS F Y, g:i A"); > > To format the

RE: [PHP] date() is hours behind

2003-09-29 Thread Vail, Warren
Sounds like your server is set to GMT, that is, if you are located in PDT timezone. Warren Vail -Original Message- From: PHP Webmaster [mailto:[EMAIL PROTECTED] Sent: Monday, September 29, 2003 4:23 PM To: [EMAIL PROTECTED] Subject: [PHP] date() is hours behind Hi all, I currently use:

[PHP] date() is hours behind

2003-09-29 Thread PHP Webmaster
Hi all, I currently use: date("l jS F Y, g:i A"); To format the current date/time to my personal preference. However, at 12:19 AM on my machine, date("l jS F Y, g:i A"); shows 4:19PM... 8 hours slow :( Any ideas on how to correct this? Am I right in saying that there is a timezone problem? An

Re: [PHP] captcha WAS Please visit my php program

2003-09-29 Thread Ryan A
Hey, /* Exactly what is the purpose of this? Let me clarify. I know that it's supposed to prevent computers from submitting forms automatically because they cannot read the graphic, but what I don't understand is in what cases this is useful? */ Its more of a hassle and requires the entity who is

RE: [PHP] Cleaning up my messy code

2003-09-29 Thread Chris L
[EMAIL PROTECTED] (Robert Cummings) wrote in news:[EMAIL PROTECTED]: > *heh* I like being able to look at project 2 and say to myself, hmm > needs an authentication just like project 1, but with a different > look. Or wants a news feed, like project 1, buyt the data source is > different, I'll

RE: [PHP] Cleaning up my messy code

2003-09-29 Thread Robert Cummings
On Mon, 2003-09-29 at 19:10, Chris L wrote: > [EMAIL PROTECTED] (Robert Cummings) wrote in > news:[EMAIL PROTECTED]: > > > Regardless of the framework or library or whatever you choose, you > > WILL have to adapt to it to some degree. Whether that be style-wise or > > just learning the the API. T

RE: [PHP] Cleaning up my messy code

2003-09-29 Thread Chris L
[EMAIL PROTECTED] (Robert Cummings) wrote in news:[EMAIL PROTECTED]: > Regardless of the framework or library or whatever you choose, you > WILL have to adapt to it to some degree. Whether that be style-wise or > just learning the the API. The more power, and flexibility you want, > the more you

Re: [PHP] Cleaning up my messy code

2003-09-29 Thread Curt Zirzow
* Thus wrote CPT John W. Holmes ([EMAIL PROTECTED]): > From: "Brent Baisley" <[EMAIL PROTECTED]> > > > I looked into the templating systems at first, but really wanted to try > > what they were doing myself. It ends up being very easy to implement > > using output buffering. Just look into the ob_

RE: [PHP] Cleaning up my messy code

2003-09-29 Thread Vail, Warren
Don't know if this helps, but one thing I continue to do is download and install and tinker with is other peoples code. Lot's of different styles, and solutions, some that stand out more to me than others, so I steal the good ones until they fail me, then replace them with others. One thing th

Re: [PHP] control M from export file

2003-09-29 Thread Curt Zirzow
* Thus wrote Ed Kwok ([EMAIL PROTECTED]): > All: > >I am running into problem parsing a file exported from MS excel. I > have exported the file as asci format, but there is a control "M" > append to my document. What is this control "M" and how can I delete > without manually replace it?

Re: [PHP] Initial Value for Input Box

2003-09-29 Thread Eugene Lee
On Mon, Sep 29, 2003 at 05:46:15PM -0400, Matt Palermo wrote: : : I have a form that a user can fill out. In the text input field I allow : them to insert HTML tags with their input data. They can then submit the : form for processing. The problem is that later on when they go to edit : their i

RE: [PHP] Cleaning up my messy code

2003-09-29 Thread Robert Cummings
On Mon, 2003-09-29 at 17:49, Chris wrote: > > Certainly. This is not a theoretical exercise but frustration with > dealing with my own code, trying to implement revisions, and basically > feeling like I need a map of some kind to know where I am. > > That's why I'm interested in what other peop

Re: [PHP] Evolution syncing

2003-09-29 Thread Jackson Miller
Check out Kontact from the KDE folks. There is a KonsoleKoncact package that lets you affect the calendar from the command line. From there the PHP script should be really easy. -Jackson On Monday 29 September 2003 10:00, David Norman wrote: > I telecommute, so I want my coworkers to see wha

RE: [PHP] Cleaning up my messy code

2003-09-29 Thread Chris
[EMAIL PROTECTED] (Warren Vail) wrote in news:[EMAIL PROTECTED]: > My own experience has shown that separation of a presentation layer > from an application layer, doesn't occur where we think it should. > HTML as a language has no capability to be dynamic, and if we are > going to ask that the

Re: [PHP] PHP & Rading excel files

2003-09-29 Thread Jackson Miller
On Monday 29 September 2003 7:10, BENARD Jean-philippe wrote: > Hi ! > > It's possible to export data to excel (csv, xml, PEAR excel file > writing, ...) but is it possible to import data from excel ? (i.e.: I > want to get the data which is in Cell "A1" of sheet "Toto" in the posted > .xls

[PHP] Initial Value for Input Box

2003-09-29 Thread Matt Palermo
I have a form that a user can fill out. In the text input field I allow them to insert HTML tags with their input data. They can then submit the form for processing. The problem is that later on when they go to edit their inputs (I initialize the text input with their previously submitted input)

[PHP] Problems with imagecreatefromjpeg ?

2003-09-29 Thread Darren Gamble
Good day, I'm having a problem working with an image that I've made with imagecreatefromjpeg. Here's the code: $in_file = "IMG_0050.jpg"; echo "Testing for image ".$in_file."\n"; $image = imagecreatefromjpeg($in_file) || die("Failed to create image from file. \n"); echo "Resource ID: ".$image."

RE: [PHP] Cleaning up my messy code

2003-09-29 Thread Vail, Warren
No argument from me. Warren -Original Message- From: Robert Cummings [mailto:[EMAIL PROTECTED] Sent: Monday, September 29, 2003 2:21 PM To: Vail, Warren Cc: andu; PHP-General Subject: RE: [PHP] Cleaning up my messy code On Mon, 2003-09-29 at 17:12, Vail, Warren wrote: > > IMHO, the fir

RE: [PHP] Cleaning up my messy code

2003-09-29 Thread Robert Cummings
On Mon, 2003-09-29 at 17:12, Vail, Warren wrote: > > IMHO, the first test of any code, is does it do what is should accurately, > and speedily (in that order), after that what you have left is a > programmer's best effort at producing something that others can read. > Adding cpu cycles so that it

Re: [PHP] control M from export file

2003-09-29 Thread Eugene Lee
On Sun, Sep 28, 2003 at 06:58:57PM -0700, Ed Kwok wrote: : :I am running into problem parsing a file exported from MS excel. I : have exported the file as asci format, but there is a control "M" : append to my document. What is this control "M" and how can I delete : without manually repl

Re: [PHP] control M from export file

2003-09-29 Thread Chris Shiflett
--- Ed Kwok <[EMAIL PROTECTED]> wrote: > I am running into problem parsing a file exported from MS excel. I > have exported the file as asci format, but there is a control "M" > append to my document. What is this control "M" and how can I delete > without manually replace it? Is there any aut

RE: [PHP] Cleaning up my messy code

2003-09-29 Thread Vail, Warren
My own experience has shown that separation of a presentation layer from an application layer, doesn't occur where we think it should. HTML as a language has no capability to be dynamic, and if we are going to ask that the page be dynamic, we are going to need to make sure we don't attempt to s

Re: [PHP] Cleaning up my messy code

2003-09-29 Thread Robert Cummings
On Mon, 2003-09-29 at 15:22, Chris wrote: > I am working on a fairly large scale (for myself anyway) project using PHP > and MySQL. I am victim of teaching myself to program, not separating > presentation from my code-- all the things that lead to masses of spaghetti > code so atrocious even I c

[PHP] control M from export file

2003-09-29 Thread Ed Kwok
All: I am running into problem parsing a file exported from MS excel. I have exported the file as asci format, but there is a control "M" append to my document. What is this control "M" and how can I delete without manually replace it? Is there any automated function I could use? Thanks.

Re: [PHP] Cleaning up my messy code

2003-09-29 Thread andu
On 29 Sep 2003 19:22:54 - Chris <[EMAIL PROTECTED]> wrote: > I am working on a fairly large scale (for myself anyway) project using PHP > and MySQL. I am victim of teaching myself to program, not separating > presentation from my code-- all the things that lead to masses of spaghetti > code

Re: [PHP] Re: Central authentication for multiple sites

2003-09-29 Thread CPT John W. Holmes
From: "Fraser Campbell" <[EMAIL PROTECTED]> > On Monday 29 September 2003 15:58, you wrote: > > > Like someone else mentioned, use sessions or something like them. The key > > is you're passing a unique id around for each person that logs in. When > > they go to another site, this ID must go with t

Re: [PHP] Re: Central authentication for multiple sites

2003-09-29 Thread Marek Kilimajer
Fraser Campbell wrote: Got it. How about this: - every login form sets a session ID - immediately after logging in the user is directed to a page showing that successful login has occurred. The result screen could could have some images (or whatever) such as this: http://www.otherdomain.

Re: [PHP] Cleaning up my messy code

2003-09-29 Thread CPT John W. Holmes
From: "Brent Baisley" <[EMAIL PROTECTED]> > I looked into the templating systems at first, but really wanted to try > what they were doing myself. It ends up being very easy to implement > using output buffering. Just look into the ob_start() command. Here is > an example of how I load a template

Re: [PHP] Re: Central authentication for multiple sites

2003-09-29 Thread Fraser Campbell
On Monday 29 September 2003 15:58, you wrote: > Like someone else mentioned, use sessions or something like them. The key > is you're passing a unique id around for each person that logs in. When > they go to another site, this ID must go with them, so that means they can > only get to the other s

RE: [PHP] Cleaning up my messy code

2003-09-29 Thread Jay Blanchard
[snip] I'm not looking for an IDE or code generator so much as some practical advice for organization and framework when developing a larger app. I know of PHP Fusebox, having programmed with Cold Fusion fusebox for a while, but it seems like that might be too much. Maybe I just need a sensical,

Re: [PHP] Re: Central authentication for multiple sites

2003-09-29 Thread CPT John W. Holmes
From: "Fraser Campbell" <[EMAIL PROTECTED]> > On Monday 29 September 2003 15:33, Kevin Stone wrote: > > > > If all domains have access to the same database then there is absolutely > > nothing preventing you from using a Cookie. Have a normal login on > > Domain1.com. Once authenticated produce a

Re: [PHP] Cleaning up my messy code

2003-09-29 Thread Brent Baisley
You should search the web for articles on MVC, Model View Controller. This is a standard technique for separating your presentation from your logic from your database. The concept can be applied to any programming or scripting language since it actually falls under the much bigger realm of desi

Re: [PHP] Re: Central authentication for multiple sites

2003-09-29 Thread Fraser Campbell
On Monday 29 September 2003 15:33, Kevin Stone wrote: > If all domains have access to the same database then there is absolutely > nothing preventing you from using a Cookie. Have a normal login on > Domain1.com. Once authenticated produce a random ID and store it in the > database. Store the I

RE: [PHP] Re: Central authentication for multiple sites

2003-09-29 Thread Vail, Warren
Fraser, Kevin is right on, but it wasn't clear to me that you wanted the users to log onto each site. Seems you may expect them to go to the site in another browser, or perhaps the same, without having to signon again. Perhaps this can be done if you do a form post to the new domain from the

[PHP] download queue

2003-09-29 Thread Alex
I'm considering start up a small download site with the large amount of excess bandwith I have on my site, however I thought it would be cool to put some sort of download queue up (you know, so all my bandwith doesn't get eaten up when 500 random people suddenly decide to download a 500meg fil

Re: [PHP] Cleaning up my messy code

2003-09-29 Thread Burhan Khalid
Chris wrote: I am working on a fairly large scale (for myself anyway) project using PHP and MySQL. I am victim of teaching myself to program, not separating presentation from my code-- all the things that lead to masses of spaghetti code so atrocious even I can't figure out what I was doing an

Re: [PHP] Central authentication for multiple sites

2003-09-29 Thread Marek Kilimajer
Because the sites are on the same server, it is simple. Use sessions and pass SID in urls to other domains. Fraser Campbell wrote: Hi, Does anyone know of a way to authenticate a person on one site and have that authentication carried through to multiple sites? Basically I'd like to have someo

[PHP] Re: Central authentication for multiple sites

2003-09-29 Thread Kevin Stone
If all domains have access to the same database then there is absolutely nothing preventing you from using a Cookie. Have a normal login on Domain1.com. Once authenticated produce a random ID and store it in the database. Store the ID in a cookie then Redirect the client to the desired domain

[PHP] Cleaning up my messy code

2003-09-29 Thread Chris
I am working on a fairly large scale (for myself anyway) project using PHP and MySQL. I am victim of teaching myself to program, not separating presentation from my code-- all the things that lead to masses of spaghetti code so atrocious even I can't figure out what I was doing an hour ago. I'm

Re: [PHP] Central authentication for multiple sites

2003-09-29 Thread Kevin Bruce
Maybe you could go off of a timestamp in a last_visited, last_visitedIP fields. If it was less than 10 minutes ago, then they can move on. This, of course, would mean you'd have to add some UPDATE last_visited, last_visitedIP code at the header of every page (or on a common included header). Hmm...

[PHP] Central authentication for multiple sites

2003-09-29 Thread Fraser Campbell
Hi, Does anyone know of a way to authenticate a person on one site and have that authentication carried through to multiple sites? Basically I'd like to have someone login on www.domain1.com and then have their login be valid on www.domain2.com and www.domain3.com ... the domain name is differ

[PHP] Strange comportment ...

2003-09-29 Thread alain
Hi, I got a function that do a very strange calculation ... Here is the code fragment function ChiffreEnLettre($chiffre) { $centaine = 0; $dizaine = 0; $unite = 0; $reste = 0; $y = 0; $dix = false; $lettre = ""; $reste = $chiffre; // print(" Valeur recue = $reste"); for( $i = 1000

RE: [PHP] captcha WAS Please visit my php program

2003-09-29 Thread Roger B.A. Klorese
> Exactly what is the purpose of this? Let me clarify. I know that it's > supposed to prevent computers from submitting forms automatically > because they cannot read the graphic, but what I don't > understand is in > what cases this is useful? Not being able to auto-subscribe to mailing lists in

RE: [PHP] How many Mondays in a month?

2003-09-29 Thread Greg Wiley
> -Original Message- > From: Burhan Khalid [mailto:[EMAIL PROTECTED] > > Greg Wiley wrote: > > Funny you should ask this because I've been meaning to > share some code > > that I wrote a few months ago that does exactly this for > any day of the week. > > > > Please feel free to use t

Re: [PHP] How many Mondays in a month?

2003-09-29 Thread Burhan Khalid
Greg Wiley wrote: Funny you should ask this because I've been meaning to share some code that I wrote a few months ago that does exactly this for any day of the week. Please feel free to use this and make changes. I'd appreciate any changes/bug fixes being sent back to me though. [ snip ] function

Re: [PHP] Does the AOL browser break any standards?

2003-09-29 Thread Jason Wong
On Tuesday 30 September 2003 01:33, Dan Anderson wrote: > > Aside from it being OT, how can you expect anyone to help, if even you > > don't know (can't describe) what the problem is? > > Well I was mostly looking for known issues. For instance IE has some > problems if you try and do certain thin

RE: [PHP] captcha WAS Please visit my php program

2003-09-29 Thread Chris W. Parker
Chris Shiflett on Monday, September 29, 2003 10:34 AM said: > You end up with so many chargebacks that you lose your merchant > account, and your company loses so much money that you lose your job. > > How's that? :-) Sounds fine to me thanks! Chris. -- PHP Gen

Re: [PHP] Does the AOL browser break any standards?

2003-09-29 Thread Kevin Bruce
Well, I'm not sure about any particular standards, but I do know that it views web pages with CSS wrong. I have a client that uses AOHELL and the font sizes blow up to about 5 +50. REALLY annoying. I hope that helps a little:P >> Aside from it being OT, how can you expect anyone to help, if even y

Re: [PHP] captcha WAS Please visit my php program

2003-09-29 Thread Chris Shiflett
--- "Chris W. Parker" <[EMAIL PROTECTED]> wrote: > Exactly what is the purpose of this? Let me clarify. I know that > it's supposed to prevent computers from submitting forms > automatically because they cannot read the graphic, but what I > don't understand is in what cases this is useful? You ha

Re: [PHP] Does the AOL browser break any standards?

2003-09-29 Thread Dan Anderson
> Aside from it being OT, how can you expect anyone to help, if even you don't > know (can't describe) what the problem is? Well I was mostly looking for known issues. For instance IE has some problems if you try and do certain things, so I figured AOL's browser might do the same. For instance,

[PHP] captcha WAS Please visit my php program

2003-09-29 Thread Chris W. Parker
Ryan A on Saturday, September 27, 2003 12:22 PM said: > Please visit my captcha program here and tell me if its good or if > you think i need to make some changes in text,color or anything. Exactly what is the purpose of this? Let me clarify. I know that it's suppos

Re: [PHP] PHP coders spare time [OT}

2003-09-29 Thread Jon Kriek
Very nice! -- Jon Kriek http://phpfreaks.com "Chris W. Parker" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] Curt Zirzow on Sunday, September 28, 2003 6:50 PM said: > And what they do with it... > > http://zirzow.dyndns.org/html/mlists/php_general/

RE: [PHP] How many Mondays in a month?

2003-09-29 Thread Greg Wiley
No problem, just glad it's found some wider use. Cheers, Greg. > -Original Message- > From: Phil Dowson [mailto:[EMAIL PROTECTED] > Sent: 29 September 2003 17:55 > To: [EMAIL PROTECTED] > Subject: Re: [PHP] How many Mondays in a month? > > Greg, > > That worked brilliantly... I bow do

Re: [PHP] Does the AOL browser break any standards?

2003-09-29 Thread Jason Wong
On Tuesday 30 September 2003 00:50, Dan Anderson wrote: > I'm not sure. They left angry messages on my machine this morning and > didn't leave a core dump or error. They just said the page couldn't > load. So I was wondering if there was something I should have paid > attention to -- i.e. IE hat

RE: [PHP] PHP coders spare time [OT}

2003-09-29 Thread Chris W. Parker
Curt Zirzow on Sunday, September 28, 2003 6:50 PM said: > And what they do with it... > > http://zirzow.dyndns.org/html/mlists/php_general/ Two comments: 1. Top 10! w00t! w00t! 2. Good job Curt. Chris. -- PHP General Mailing List (http://www.php.net/) To unsubs

RE: [PHP] Does the AOL browser break any standards?

2003-09-29 Thread Dan Anderson
> And this is a PHP problem how? Well the script is coded within PHP. I probably should have put an OT: on the first line of the subject. But I figured that some kind soul may be willing to help and let me know if there is something I am missing. -Dan -- PHP General Mailing List (http://www.p

RE: [PHP] Does the AOL browser break any standards?

2003-09-29 Thread Jay Blanchard
[snip] I am having problems with one of the web sites I have -- AOL users are reporting they can't view it. Does AOL break any major standards it shouldn't? [/snip] And this is a PHP problem how? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.ph

Re: [PHP] How many Mondays in a month?

2003-09-29 Thread Phil Dowson
Greg, That worked brilliantly... I bow down to your sheer excellence!!! Thankyou Thankyou Thankyou "Greg Wiley" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] Funny you should ask this because I've been meaning to share some code that I wrote a few months ago that does exactly this

Re: [PHP] Does the AOL browser break any standards?

2003-09-29 Thread Dan Anderson
I'm not sure. They left angry messages on my machine this morning and didn't leave a core dump or error. They just said the page couldn't load. So I was wondering if there was something I should have paid attention to -- i.e. IE hates Style Sheets or something else I overlooked. -Dan On Mon, 2

Re: [PHP] Does the AOL browser break any standards?

2003-09-29 Thread Larry Rosenman
--On Monday, September 29, 2003 12:43:06 -0400 Dan Anderson <[EMAIL PROTECTED]> wrote: AOL uses IE libraries, so yes, it breaks as many standards as it can. What specific symptoms are users reporting? Users can't access the web page at all. They are getting some kind of error. and that error w

Re: [PHP] Does the AOL browser break any standards?

2003-09-29 Thread Dan Anderson
> AOL uses IE libraries, so yes, it breaks as many standards as it can. What > specific symptoms are users reporting? Users can't access the web page at all. They are getting some kind of error. -Dan -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/un

Re: [PHP] Does the AOL browser break any standards?

2003-09-29 Thread Chris Shiflett
--- Dan Anderson <[EMAIL PROTECTED]> wrote: > I am having problems with one of the web sites I have -- AOL users > are reporting they can't view it. Does AOL break any major standards > it shouldn't? AOL uses IE libraries, so yes, it breaks as many standards as it can. What specific symptoms are u

Re: [PHP] A _post question I guess

2003-09-29 Thread John Taylor-Johnston
Brad. Perfect thanks. > Brad Pauly wrote: > foreach ($_POST as $field_name => $field_value) { > if (stristr($field_name, 'exercise')) { > $content .= "$field_name = $field_value\n"; > } > } Tom, Not sure why, but wouldn't work >Tom Rogers wrote: >if(isset($_POST['exercise'])){

[PHP] Does the AOL browser break any standards?

2003-09-29 Thread Dan Anderson
I am having problems with one of the web sites I have -- AOL users are reporting they can't view it. Does AOL break any major standards it shouldn't? p.s. the page is at http://www.mathjunkies.com/jtlinks/jtlinks_interface.php if you feel like taking a look. :-D Thanks in advance, Dan -- PHP

Re: [PHP] A _post question I guess

2003-09-29 Thread Brad Pauly
John Taylor-Johnston wrote: Ok, but the problem is that I will, might have other fields. I need to filter out just the exerciseN fields. Interesting though thanks, Then just look at $feild_name and see if it is one of the 'exercise' fields. foreach ($_POST as $field_name => $field_value) { if

Re: [PHP] A _post question I guess

2003-09-29 Thread John Taylor-Johnston
Ok, but the problem is that I will, might have other fields. I need to filter out just the exerciseN fields. Interesting though thanks, John Brad Pauly wrote: > You could just loop over the _POST array. > > foreach ($_POST as $field_name => $field_value) { > $content .= "$field_name = $f

Re: [PHP] A _post question I guess

2003-09-29 Thread Tom Rogers
Hi, Tuesday, September 30, 2003, 1:41:11 AM, you wrote: JTJ> I have a form. It has any number of hidden fields, named "exercise JTJ> 1-100". Their names all start with "exercise" as in: JTJ> JTJ> ... ? JTJ> JTJ> any number fo these possible ... JTJ> JTJ> How can I create one scipt that will r

Re: [PHP] A _post question I guess

2003-09-29 Thread Brad Pauly
John Taylor-Johnston wrote: I have a form. It has any number of hidden fields, named "exercise 1-100". Their names all start with "exercise" as in: ... ? any number fo these possible ... How can I create one scipt that will recognise all of them? Any number of them. My idea is a bit like formma

Re: [PHP] PHP & Rading excel files

2003-09-29 Thread Tom Rogers
Hi, Monday, September 29, 2003, 10:10:43 PM, you wrote: BJp> Hi ! BJp>It's possible to export data to excel (csv, xml, PEAR excel file BJp> writing, ...) but is it possible to import data from excel ? (i.e.: I BJp> want to get the data which is in Cell "A1" of sheet "Toto" in the posted BJp>

[PHP] A _post question I guess

2003-09-29 Thread John Taylor-Johnston
I have a form. It has any number of hidden fields, named "exercise 1-100". Their names all start with "exercise" as in: ... ? any number fo these possible ... How can I create one scipt that will recognise all of them? Any number of them. My idea is a bit like formmail.pl that reads any old

RE: [PHP] How many Mondays in a month?

2003-09-29 Thread Greg Wiley
Funny you should ask this because I've been meaning to share some code that I wrote a few months ago that does exactly this for any day of the week. Please feel free to use this and make changes. I'd appreciate any changes/bug fixes being sent back to me though. "Monday",

Re: [PHP] How many Mondays in a month?

2003-09-29 Thread Curt Zirzow
* Thus wrote Phil Dowson ([EMAIL PROTECTED]): > Hi, > > I have posted a similar question in php.db, but I was wondering if someone > could help out with a non-db issue. I am trying to display statistics of > visitors to my web site, and what I would like to do is show the average > number of visit

[PHP] How many Mondays in a month?

2003-09-29 Thread Phil Dowson
Hi, I have posted a similar question in php.db, but I was wondering if someone could help out with a non-db issue. I am trying to display statistics of visitors to my web site, and what I would like to do is show the average number of visitors that have visited the site in a given month for a cert

[PHP] Evolution syncing

2003-09-29 Thread David Norman
I telecommute, so I want my coworkers to see what I have on my plate and add to my project list. I figured syncing the Evolution calendar and task list with a PHP-based site would be good. Then I could make a few scripts for my boss to run reports on my timesheet and such. Is there a project do

Re: [PHP] search a string backwards - like reversed stripos

2003-09-29 Thread Curt Zirzow
* Thus wrote Chris Widmer ([EMAIL PROTECTED]): > hello, > > i am looking for a function that easily searches a sting backwards - > just like stripos but reversed. is there already one part of php or does > anyone have a nice function written? right now i do it by reversing the > sting and using

[PHP] RE: Add element

2003-09-29 Thread Chris Sherwood
Warning ! Don't add one to your key ($j++) in this case. The "count()" method count ( :) ) return the number of existing keys in the $chk array. You'll make hole in your array if you do this : $arr[0] = "toto"; count($arr) => 1; $arr[1] = "tata"; count($arr) => 2; $arr[count[$arr]++] = "titi";

Re: [PHP] gettext: changed .mo file, caching issue

2003-09-29 Thread daniel hahler
on Mon, 29 Sep 2003 10:24:09 +0200 Christophe Chisogne wrote: >> This works good, but if the .mo file gets changed the old content is >> returned by calls to gettext, until I restart Apache. CC> gettext uses a caching method to speed up looking translation CC> strings, which explain why Apache mu

Re: [PHP] add element to an array

2003-09-29 Thread Chris Sherwood
<-- snip --> > Hi, I want to add a new element to an array in php, is the following way the > correct way? assuming that $chk is an array and $ID contains a value. > > > $j = count($chk); > $j++; > $chk[$j] = $ID; <-- snip --> Yes that is one method of doing it. another method of adding an elemen

Re: [PHP] php & xvfb gives xauth command not found

2003-09-29 Thread Ray Hunter
> $test=exec("/usr/bin/xvfb-run /usr/bin/njplot -psonly testfile" ); Actually, I think that you can just run the command without the xvfb-run command... $test = exec("/usr/bin/njplot -psonly testfile" ); that should just create the testfile.ps file and not fire up a x-window. The error with the

Re: [PHP] Export resultset

2003-09-29 Thread CPT John W. Holmes
From: "DPCMA Metalito" <[EMAIL PROTECTED]> > New to this list. I would like to know if anybody knows where can I found > information about how can I generate an Excel Spreadsheet, with the resulset > of an LDAP query that my script made. The goal is that MS Explorer can > download and load the xls

  1   2   >