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

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

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

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

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

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

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

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

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

[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

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

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

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

[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

<    1   2