[PHP] Re: Graphical calendar

2004-05-07 Thread Manuel Lemos
Hello, On 05/07/2004 11:36 PM, Todd Cary wrote: I need to bring up a calendar so the user can determine what day of the week a certain falls on, etc. My search with Google appears to have calendars that are like appointment books. Is there a simple graphical calendar where the use can pick a m

RE: [PHP] SMTP and changing the character set

2004-05-07 Thread Chris
SMTP, just like HTTP, uses the Content-Type header. So you can do something like this: Content-Type: text/plain; charset=US-ASCII Just add that to the header argument of the mail function, if that's what you're using. Chris -Original Message- From: Todd Cary [mailto:[EMAIL PROTECTED] Se

Re: [PHP] page_title

2004-05-07 Thread John W. Holmes
Erik Gjertsen wrote: Hmmm... you're title doesn't show up? Are you using sessions? Is safe_mode on or off? Is html_title_mode on or off in your php.ini file? -- ---John Holmes... Amazon Wishlist: www.amazon.com/o/registry/3BEXC84AB3A5E/ php|architect: The Magazine for PHP Professionals – w

Re: [PHP] Graphical calendar

2004-05-07 Thread David T-G
Todd -- ...and then Todd Cary said... % % I need to bring up a calendar so the user can determine what day of the ... % Is there a simple graphical calendar where the use can pick a month and % see the days of the week? I don't know (though that makes sense), but you could always rip the calen

[PHP] Graphical calendar

2004-05-07 Thread Todd Cary
I need to bring up a calendar so the user can determine what day of the week a certain falls on, etc. My search with Google appears to have calendars that are like appointment books. Is there a simple graphical calendar where the use can pick a month and see the days of the week? Todd -- PHP

[PHP] SMTP and changing the character set

2004-05-07 Thread Todd Cary
Is there a way to specify a character set in a SMTP email? Todd -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Returning an object

2004-05-07 Thread deseavers
Aidan: Clearly, your efforts were less than successful. (I would have responded earlier, but I only really knew -- rather than really, really knew -- what I was talking about.) -Original Message- From: Curt Zirzow <[EMAIL PROTECTED]> Sent: May 7, 2004 3:20 PM To: [EMAIL PROTECTED] Cc: [

Re: [PHP] page_title

2004-05-07 Thread deseavers
echo "$page_title"; -Original Message- From: Curt Zirzow <[EMAIL PROTECTED]> Sent: May 7, 2004 4:47 PM To: [EMAIL PROTECTED] Subject: Re: [PHP] page_title * Thus wrote Erik Gjertsen ([EMAIL PROTECTED]): > > > um, your title of you page goes here. Curt -- "I used to think I was inde

Re: [PHP] page_title

2004-05-07 Thread Curt Zirzow
* Thus wrote Erik Gjertsen ([EMAIL PROTECTED]): > > > um, your title of you page goes here. Curt -- "I used to think I was indecisive, but now I'm not so sure." -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] page_title

2004-05-07 Thread Erik Gjertsen
No I cant see it on het sorurce. Butt it coms up with the hole path to the site on the topp of the page and in seek feld on the site http://www.gjertsen.as/Skole22/Kapittel6/index5.php Welcom to us'; include("./tempelates/footer.inc"); ?> Thanks Erig Gjertsen "Bao Ruixian" <[EMAIL PROTE

Re: [PHP] Re: Returning an object

2004-05-07 Thread Curt Zirzow
* Thus wrote Aidan Lister ([EMAIL PROTECTED]): > I found some more information about it here: > http://bugs.php.net/bug.php?id=24687 > > It looks like you should assign an object to a variable before returning it. [31 Dec 2003 11:46am CET] [EMAIL PROTECTED] This bug has been fixed in CVS. Eithe

Re: [PHP] page_title

2004-05-07 Thread BAO RuiXian
Erik Gjertsen wrote: >I have write following code: >$page_title = "Welcome"; >?> > >But I can not see Welcome on top of the page. >Can someone tell me why I not can see it? > > Can you see it by reading the source of the page?:) Best Bao >Thanks >Erik Gjertsen > > > -- PHP General Mail

[PHP] page_title

2004-05-07 Thread Erik Gjertsen
I have write following code: But I can not see Welcome on top of the page. Can someone tell me why I not can see it? Thanks Erik Gjertsen -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Returning an object

2004-05-07 Thread Curt Zirzow
* Thus wrote Aidan Lister ([EMAIL PROTECTED]): > > "Curt Zirzow" <[EMAIL PROTECTED]> wrote in message > news:[EMAIL PROTECTED] > > * Thus wrote Aidan Lister ([EMAIL PROTECTED]): > > ... > > > > > > > Please don't reply if you really, really don't know what you are talking > > > about. > > > > What

[PHP] Re: Recommend an IDE for Windows

2004-05-07 Thread Rainer Müller
Chris Lott wrote: I already use and am happy with a variety of text editors (vim, emacs, ultraedit, jedit, Homesite) depending on my needs, but I would like recommendations for a PHP specific IDE that will run on Windows XP. Specifically I am looking for something that can help with debugging, prov

[PHP] Re: Returning an object

2004-05-07 Thread Aidan Lister
I found some more information about it here: http://bugs.php.net/bug.php?id=24687 It looks like you should assign an object to a variable before returning it. "Justin Patrin" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Aidan Lister wrote: > > > How _should_ this be done? In ter

Re: [PHP] Returning an object

2004-05-07 Thread Aidan Lister
"Curt Zirzow" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > * Thus wrote Aidan Lister ([EMAIL PROTECTED]): > > How _should_ this be done? In terms of "best practice". > > > > > function foobar () > > { > > return new SomeObject; > > } > > ?> > > > > Or: > > > > > function bar

[PHP] Re: form submission logic

2004-05-07 Thread Torsten Roehr
"Kim Steinhaug" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > I dont agree however, if your creating a system which should be > user friendly I would absolutely demand from my users to have JS > enabled. This is only possible in a non-public application. > > If they dont have JS e

Re: [PHP] please remove this user

2004-05-07 Thread David T-G
Curt, et al -- ...and then Curt Zirzow said... % ... % messages. The best thing to do is report them to their provider. I've been sending these (initially forwarded with a "this mailbox is an autoresponder that generates this message on the list" preamble and then just redirected) to root/abuse/

[PHP] Re: form submission logic

2004-05-07 Thread Kim Steinhaug
I dont agree however, if your creating a system which should be user friendly I would absolutely demand from my users to have JS enabled. If they dont have JS enabled, then -> well, to bad for them... We have created several web applications and have alot of customers (B2B), and they have all JS

Re: [PHP] please remove this user

2004-05-07 Thread Curt Zirzow
* Thus wrote Tim Traver ([EMAIL PROTECTED]): > Uhhh...I shouldn't have to do that... > > and admin on this list should be able to remove those two offending > addresses, right ? Yes and no. In most cases it's possible. But I could set up and email account to recieve posted messages and then se

Re: [PHP] I need to hire someone to secure script

2004-05-07 Thread Chris Shiflett
--- doug_hastings <[EMAIL PROTECTED]> wrote: > I wrote a script for my site which has been compromised repeatedly. > I would like to hire someone to fix it for me. The script is about > 120 lines, nothing fancy. It needs at least an escapeshellcmd() and > I am open to suggestions for security fixes

Re: [PHP] please remove this user

2004-05-07 Thread John Nichel
Tim Traver wrote: Uhhh...I shouldn't have to do that... and admin on this list should be able to remove those two offending addresses, right ? Tim. At 11:18 AM 5/7/2004, John Nichel wrote: Tim Traver wrote: Can any admin remove this user from the list ? "Advance Credit Suisse Bank" <[EMAIL PR

Re: [PHP] Header() and POST data

2004-05-07 Thread Chris Shiflett
--- Todd Cary <[EMAIL PROTECTED]> wrote: > I need to go to another page and I use the > > header("location: " . $the_url_to_the_page); > > Is it possible to use this method with POST so that the info does > not show in the URL? No, which is a very Good Thing. Chris = Chris Shiflett - http:

Re: [PHP] please remove this user

2004-05-07 Thread Tim Traver
Uhhh...I shouldn't have to do that... and admin on this list should be able to remove those two offending addresses, right ? Tim. At 11:18 AM 5/7/2004, John Nichel wrote: Tim Traver wrote: Can any admin remove this user from the list ? "Advance Credit Suisse Bank" <[EMAIL PROTECTED]> Every time

Re: [PHP] php_admin values solution

2004-05-07 Thread Tim Traver
Curt, This is an apache module that dynamically determines the data directories for a particular incoming request based upon the Host header. After that directory is determined, then I set the admin value of things like "open_basedir" for php. This prevents me from having to make an entry for

[PHP] next?

2004-05-07 Thread Maxi Yedid
Hello I have products with category number (as a field in the same table). A user can access any category, and he gets a list of products under that cat. What I want is, when the user enters a product, to have a "next" link that would allow him to pass to the next record in that selection. is t

[PHP] Re: form submission logic

2004-05-07 Thread Torsten Roehr
"Kim Steinhaug" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Well, > > I would include another hidden field and name it something like "ACTION". > I would also include a checkbox on every item you want to do something with > like this : > > > > Then use javascript on your actions

Re: [PHP] Re: Installing GD library

2004-05-07 Thread Petr U.
On Fri, 7 May 2004 14:55:40 -0400 "Aaron Wolski" <[EMAIL PROTECTED]> wrote: > Now... what about installing for Linux? > ./configure && make install ? ;-P GD is bundled in PHP, nothing special isn't needed to make it working. If you're using some package manager from your distribution, install

RE: [PHP] Re: Installing GD library

2004-05-07 Thread Matt Babineau
Installing GD for Linux can be a little more challanging: If you are running red had here are a few things you will probably need: RPMS: Zlib Zlib-devel Libjpeg Libjpeg-devel GD (comes with php > 4.3.0) I think that was all I needed. Then when you compile php try something like this: ./configu

[PHP] Re: auto saving data in forms

2004-05-07 Thread Kim Steinhaug
Well shouldnt be a problem. Hook up an iframe on your page, use a javascript timer to send all data to the iframe every n seconds and submit the form inside the iframe. This will give the user a perfect workflow in the window he is working in, since the refreshing and such is done inside the ifram

Re: [PHP] Re: Installing GD library

2004-05-07 Thread Curt Zirzow
* Thus wrote Aaron Wolski ([EMAIL PROTECTED]): > Now... what about installing for Linux? > > Any ideas? :) ./configure --help | grep GD Curt -- "I used to think I was indecisive, but now I'm not so sure." -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.

RE: [PHP] Re: Installing GD library

2004-05-07 Thread Aaron Wolski
Now... what about installing for Linux? Any ideas? :) Aaron > -Original Message- > From: Kim Steinhaug [mailto:[EMAIL PROTECTED] > Sent: May 7, 2004 2:57 PM > To: [EMAIL PROTECTED] > Subject: [PHP] Re: Installing GD library > > put the DLL file in your PHP DLL file directory, > uncommen

[PHP] Re: Installing GD library

2004-05-07 Thread Kim Steinhaug
put the DLL file in your PHP DLL file directory, uncomment the line in php.ini referring to it. Restart apache if running, IIS doesnt need to be restarted. -- -- Kim Steinhaug -- There are 10 types of people when it comes to bi

Re: [PHP] Login page

2004-05-07 Thread Erik Gjertsen
Thanks it help Erik Gjertsena "Petr U." <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > On Thu, 6 May 2004 03:42:48 -0700 > "Erik Gjertsen" <[EMAIL PROTECTED]> wrote: > > > I have made a login page but I got an error on line 1. > > Where did you defined $dbc? Nowhere. > From "mys

[PHP] Re: PHP Website Architecture

2004-05-07 Thread Kim Steinhaug
Well if you really want to do it the perfect way, I would recommend using only one PHP file to generate the whole site. Or if you like, have one file with all the functions. You should also read into classess and create most of the functions as classess. To do the error handling there are many wa

Re: [PHP] php_admin values solution

2004-05-07 Thread Curt Zirzow
* Thus wrote Tim Traver ([EMAIL PROTECTED]): > Just in case anyone wants to know the solution, I found one on the apache > list... > > Apparently, from within an apache module, one can use the function > > zend_alter_ini_entry("open_basedir", 13, path, strlen(path), 4, 16); I am curious as why

[PHP] Re: form submission logic

2004-05-07 Thread Kim Steinhaug
Well, I would include another hidden field and name it something like "ACTION". I would also include a checkbox on every item you want to do something with like this : Then use javascript on your actions to set the action to whatever mode you need, for example "delete". On the PHP side you get

Re: [PHP] Having a problem with RCPT TO and email

2004-05-07 Thread Todd Cary
DATA From: "My real name" <[EMAIL PROTECTED]> <<<< To: "Your real name" <[EMAIL PROTECTED]> <<<< Subject: Something to test That's it! Thanks! Petr U. wrote: On Fri, 07 May 2004 10:49:08 -0700 Todd Cary <[EMAIL PROTECTED]> wrote: >fputs($smtp, "RCPT TO: <[EMAIL PROTECTED]>\r\n");

Re: [PHP] please remove this user

2004-05-07 Thread John Nichel
Tim Traver wrote: Can any admin remove this user from the list ? "Advance Credit Suisse Bank" <[EMAIL PROTECTED]> Every time I post, I get an autoresponse from that address... Anyone else get that ? Thanks, Tim. Send it to /dev/null (or make a filter for it in your mail client). -- John C. Ni

Re: [PHP] Profiling (Was: Re: [PHP] PHP Website Architecture)

2004-05-07 Thread Richard Davey
Hello Travis, Friday, May 7, 2004, 7:06:03 PM, you wrote: TL> Hi Richard, TL> Just curious...how do you do your profiling? Zend IDE. View the page in IE, click the Profile button, analyse the pretty pie-charts and graphs and stack trace until I see where the bottle necks are :) -- Best regard

[PHP] Re: please remove this user

2004-05-07 Thread Torsten Roehr
"Tim Traver" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Can any admin remove this user from the list ? > > "Advance Credit Suisse Bank" <[EMAIL PROTECTED]> > > Every time I post, I get an autoresponse from that address... > > Anyone else get that ? Unfortunately, yes. Torsten

[PHP] please remove this user

2004-05-07 Thread Tim Traver
Can any admin remove this user from the list ? "Advance Credit Suisse Bank" <[EMAIL PROTECTED]> Every time I post, I get an autoresponse from that address... Anyone else get that ? Thanks, Tim. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.p

[PHP] php_admin values solution

2004-05-07 Thread Tim Traver
Just in case anyone wants to know the solution, I found one on the apache list... Apparently, from within an apache module, one can use the function zend_alter_ini_entry("open_basedir", 13, path, strlen(path), 4, 16); This function is included in the zend base libraries, and will let you set t

[PHP] Profiling (Was: Re: [PHP] PHP Website Architecture)

2004-05-07 Thread Travis Low
Hi Richard, Just curious...how do you do your profiling? cheers, Travis Richard Davey wrote: Hello Ryan, Friday, May 7, 2004, 4:51:45 PM, you wrote: RA> Nearly all programs can be written in *one* very large .php file but just RA> thinking of going back in to make changes 3 months down the ro

RE: [PHP] form submission logic

2004-05-07 Thread Aaron Wolski
> The buttons can go anywhere inside the tags. Since this is a PHP > list, though, you should really be asking is how would this form best work > with PHP to perform each desired action? > > ---John Holmes... Yeah, John, you're right. I should have made it more PHP related. Figured I could get

[PHP] Re: Resequencing logic

2004-05-07 Thread Kim Steinhaug
Well, this is much the same as any CMS system where you are able to sort the contents by your own, in your case song titles. One way to solve this is by using form fields together with your listings so that you have some sort of link to the posts in your database. You also need a field in the data

Re: [PHP] form submission logic

2004-05-07 Thread John W. Holmes
From: "Aaron Wolski" <[EMAIL PROTECTED]> > Within the tags I have my buttons - Publish, Unpublish, > New, Edit and Delete. > > Next I have a table of that displays a list of records from a database > with a checkbox to select a particular record. > > Once a record has been "selected" they click o

Re: [PHP] Having a problem with RCPT TO and email

2004-05-07 Thread Petr U.
On Fri, 07 May 2004 10:49:08 -0700 Todd Cary <[EMAIL PROTECTED]> wrote: >fputs($smtp, "RCPT TO: <[EMAIL PROTECTED]>\r\n"); You should (are you doing?) something like this: -- cut -- HELO blah MAIL FROM: [EMAIL PROTECTED] RCPT TO: [EMAIL PROTECTED] DATA From: "My real name" <[EMAIL PROTECTED

Re: [PHP] Re: form submission logic

2004-05-07 Thread Torsten Roehr
"Adam Voigt" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > On Fri, 2004-05-07 at 13:47, Torsten Roehr wrote: > > > > This is more of a HTML than a PHP question, but anyway: > > It doesn't matter where you put the buttons as long as they are INSIDE the > > form-tag and have different

Re: [PHP] Re: form submission logic

2004-05-07 Thread Adam Voigt
On Fri, 2004-05-07 at 13:47, Torsten Roehr wrote: > > This is more of a HTML than a PHP question, but anyway: > It doesn't matter where you put the buttons as long as they are INSIDE the > form-tag and have different names. > Actually you don't even have to have names for the buttons, for exampl

[PHP] Having a problem with RCPT TO and email

2004-05-07 Thread Todd Cary
I am sending the following: fputs($smtp, "RCPT TO: <[EMAIL PROTECTED]>\r\n"); and when I receive the email, it has a "Bcc:" rather than a "To:". Am I overlooking something here? Todd -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: form submission logic

2004-05-07 Thread Torsten Roehr
"Aaron Wolski" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Hi all, > > Was wondering if someone had any idea's on this logic and if it'd work, > before I tried to implement it: > > Within the tags I have my buttons - Publish, Unpublish, > New, Edit and Delete. > > Next I have a t

[PHP] form submission logic

2004-05-07 Thread Aaron Wolski
Hi all, Was wondering if someone had any idea's on this logic and if it'd work, before I tried to implement it: Within the tags I have my buttons - Publish, Unpublish, New, Edit and Delete. Next I have a table of that displays a list of records from a database with a checkbox to select a par

[PHP] newbies was:Re: [PHP] Socket

2004-05-07 Thread raditha dissanayake
Juan Pablo Herrera wrote: Hi! Please, i need a tutorial about socket. I read php.net but the examples is lost. Regards, Juan Pablo A classic example of not bothering to follow list guide lines. This original message is hijacking the newbie guide thread. -- Raditha Dissanayake. -

Re: [PHP] Ñ

2004-05-07 Thread John W. Holmes
From: "Curt Zirzow" <[EMAIL PROTECTED]> > * Thus wrote Diana Castillo ([EMAIL PROTECTED]): > > we are recieving Ñ as Ñ > > ¿what type of code is that? > > Thats an html entity code. > > > Is there a function in php to convert it? > > echo chr(substr('Ñ', 2, 3)); also, http://us2.php.net/manual/e

[PHP] Re: Best way to get mysql table metadata

2004-05-07 Thread Justin Patrin
[EMAIL PROTECTED] wrote: Hi there, I am trying to upgrade my db class, so I can tell if what table type of the table being queried is. More specifically i need to work out if the table is an innodb transaction table, if so I would like to start the transaction and commit and rollback when needed.

[PHP] Resequencing logic

2004-05-07 Thread Matt Grimm
I apologize if this message is a repeat; I've had trouble posting with Thunderbird. I'm interested in how you folks would approach the following issue: You have a list of data, in a user-defined sequence. For instance, a list of song titles that can be rearranged on a web page in any order. I

[PHP] Re: Returning an object

2004-05-07 Thread Justin Patrin
Aidan Lister wrote: How _should_ this be done? In terms of "best practice". Or: Please don't reply if you really, really don't know what you are talking about. Some earlier versions of PHP5 would not allow returning by reference of a function call or a new call. It was very recently added, bu

Re: [PHP] html form elements as php arrays

2004-05-07 Thread John Nichel
Matthew Oatham wrote: Hi, I am retrieving data from a database and displaying results on a html so the user can edit them, I am sending the html form back to the server as an array, i.e on my html for I might have 10 name fields so in the html code all name fields are named name[] then I can iter

Re: [PHP] Ñ

2004-05-07 Thread Curt Zirzow
* Thus wrote Diana Castillo ([EMAIL PROTECTED]): > we are recieving Ñ as Ñ > ¿what type of code is that? Thats an html entity code. > Is there a function in php to convert it? echo chr(substr('Ñ', 2, 3)); Curt -- "I used to think I was indecisive, but now I'm not so sure." -- PHP General M

Re: Re[2]: [PHP] PHP Website Architecture

2004-05-07 Thread Robert Cummings
On Fri, 2004-05-07 at 12:00, Richard Davey wrote: > Hello Ryan, > > Friday, May 7, 2004, 4:51:45 PM, you wrote: > > RA> Nearly all programs can be written in *one* very large .php file but just > RA> thinking of going back in to make changes 3 months down the road would be a > RA> nightmare. > >

RE: [PHP] frameworks

2004-05-07 Thread Robert Cummings
On Fri, 2004-05-07 at 11:24, Jay Blanchard wrote: > [snip] > Ok...I don't want to start a flame war but I have a project coming up > with a > very short code cycle...2-3 weeks. I am a procedural guy but want to do > more OOP in this project...what are the votes for a good overall > framework > to

Re: [PHP] Re: Active PHP Sessions

2004-05-07 Thread zooming
adodb also handles sessions in a database http://phplens.com/lens/adodb/docs-session.htm - Original Message - From: "Paul Higgins" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]> Sent: Friday, May 07, 2004 9:40 AM Subject: RE: [PHP] Re: Active PHP Sessions > I've read

Re: [PHP] PHP Website Architecture

2004-05-07 Thread David T-G
Ryan, et al -- ...and then Ryan A said... % % % On 5/7/2004 5:47:47 PM, Jay Blanchard ([EMAIL PROTECTED]) % wrote: [snip] Did you realize that you quoted Jay's quote of Paul's original note but then snipped off Jay's comment? :-) ... % If you are thinking only of performance this wont matter

Re[2]: [PHP] PHP Website Architecture

2004-05-07 Thread Richard Davey
Hello Ryan, Friday, May 7, 2004, 4:51:45 PM, you wrote: RA> Nearly all programs can be written in *one* very large .php file but just RA> thinking of going back in to make changes 3 months down the road would be a RA> nightmare. I was just looking at this the other day - I had a local site runni

RE: [PHP] PHP Website Architecture

2004-05-07 Thread Paul Higgins
Ok, thanks. I didn't think it would make a difference. And I agree, splitting things up makes things a lot easier. Thanks! From: "Ryan A" <[EMAIL PROTECTED]> Reply-To: "Ryan A" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Subject: RE: [PHP] PHP Website Architecture Date: Fri, 7 May 2004 17:51:

RE: [PHP] PHP Website Architecture

2004-05-07 Thread Ryan A
On 5/7/2004 5:47:47 PM, Jay Blanchard ([EMAIL PROTECTED]) wrote: > [snip] > I have a question regarding website design with PHP. Is it better to > have a > single PHP script produce different content or have a separate PHP > script > for every action. > > For example, if an error occurs, should I

RE: [PHP] PHP Website Architecture

2004-05-07 Thread Jay Blanchard
[snip] I have a question regarding website design with PHP. Is it better to have a single PHP script produce different content or have a separate PHP script for every action. For example, if an error occurs, should I have the same PHP script produce an error page or have a separate PHP script

[PHP] PHP Website Architecture

2004-05-07 Thread Paul Higgins
Hi all, I have a question regarding website design with PHP. Is it better to have a single PHP script produce different content or have a separate PHP script for every action. For example, if an error occurs, should I have the same PHP script produce an error page or have a separate PHP scrip

RE: [PHP] frameworks

2004-05-07 Thread Jay Blanchard
[snip] Ok...I don't want to start a flame war but I have a project coming up with a very short code cycle...2-3 weeks. I am a procedural guy but want to do more OOP in this project...what are the votes for a good overall framework to use? I need good seperation of code and presentation (smarty) b

Re: [PHP] LAMP

2004-05-07 Thread John Nichel
Adam Voigt wrote: I've also heard the Perl Zealots claim the P could or does stand for Perl, but ignore there Jedi mind tricks. What what what could you be talking about? *quickly hides Camel book* -- John C. Nichel KegWorks.com 716.856.9675 [EMAIL PROTECTED] -- PHP General Mailing List (http://w

Re: [PHP] frameworks

2004-05-07 Thread Robert Cummings
On Fri, 2004-05-07 at 11:14, Edward Peloke wrote: > Ok...I don't want to start a flame war but I have a project coming up with a > very short code cycle...2-3 weeks. I am a procedural guy but want to do > more OOP in this project...what are the votes for a good overall framework > to use? I need

Re: [PHP] A work around my HTTP_REFERER Prob...

2004-05-07 Thread Tristan . Pretty
Cheers for all ideas/suggetions so far.. I've made a little progres... Visit this URL: http://www.risk.sungard.com/secure.php?secure=126807.714285714 and here's the code.. DONE IT!!!"; } ?> Secure Test Debug: Secure: Day: Master: Code 1: Code 2: Code 3: If I change the GET

[PHP] LAMP - Thanks

2004-05-07 Thread Brent Clark
Hi Thank you And yes, I feel like a dork, for not knowing this. LOL Enjoy the weekend, where ever you may be. Brent -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] frameworks

2004-05-07 Thread Edward Peloke
Ok...I don't want to start a flame war but I have a project coming up with a very short code cycle...2-3 weeks. I am a procedural guy but want to do more OOP in this project...what are the votes for a good overall framework to use? I need good seperation of code and presentation (smarty) but also

RE: [PHP] LAMP

2004-05-07 Thread Adam Voigt
I've also heard the Perl Zealots claim the P could or does stand for Perl, but ignore there Jedi mind tricks. On Fri, 2004-05-07 at 11:00, Jay Blanchard wrote: > [snip] > Anyone know what LAMP stand for > [/snip] > > > All of us but you. > > Linux Apache MySQL PHP -- Adam Voigt [EMAIL PROTEC

Re: [PHP] LAMP

2004-05-07 Thread Clifford W. Hansen
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On Friday 07 May 2004 16:59, Brent Clark wrote: > Anyone know what LAMP stand for Linux Apache MySQL PHP - -- Thank You, Clifford W. Hansen Operations Support Developer Aspivia (Pty) Ltd. +27 (0) 11 259-1150 (Switchboard) +27 (0) 11 259-1019 (Fax) +

RE: [PHP] LAMP

2004-05-07 Thread Jay Blanchard
[snip] Anyone know what LAMP stand for [/snip] All of us but you. Linux Apache MySQL PHP -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] LAMP

2004-05-07 Thread Brent Clark
Hi Anyone know what LAMP stand for Kind Regards Brent Clark -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Installing GD library

2004-05-07 Thread Phpu
Hi, I've downloaded the GD library. Can someone tell me how do i install it on a windows system? I found in internet a few articles but i don't quite understand. Thanks

Re: [PHP] Re: strip comments from HTML?

2004-05-07 Thread Rob Ellis
On Thu, May 06, 2004 at 11:48:36PM -0400, Paul Chvostek wrote: > On Thu, May 06, 2004 at 07:11:55PM +, Curt Zirzow wrote: > > > > > > $text="one ", "",$text); > > > > Because your missing a - > > $text="one two\n"; > > /me applies mallet to head > > % php -r '$text="one two\n"; print >

Re: [PHP] Re: Active PHP Sessions

2004-05-07 Thread Richard Harb
Friday, May 7, 2004, 3:40:06 PM, thus was written: > I've read stuff like that also. However, if I choose to do this, I must > write all the session handling myself, correct? Well, yes and no: You could still use the default session handler and just add a function/whatever to the top of the page

[PHP] Ñ

2004-05-07 Thread Diana Castillo
we are recieving Ñ as Ñ ¿what type of code is that? Is there a function in php to convert it? -- Diana Castillo Global Reservas, S.L. C/Granvia 22 dcdo 4-dcha 28013 Madrid-Spain Tel : 00-34-913604039 Fax : 00-34-915228673 email: [EMAIL PROTECTED] Web : http://www.hotelkey.com http://www.des

Re: [PHP] Re: Active PHP Sessions

2004-05-07 Thread Torsten Roehr
"Paul Higgins" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > I've read stuff like that also. However, if I choose to do this, I must > write all the session handling myself, correct? Are there any scripts > already out there that do this? I'm using PEAR's HTTP_Session in combinat

Re: [PHP] Active PHP Sessions

2004-05-07 Thread Paul Higgins
An active session would be one that has not expired. Not necessarily that the user is not using the website. If the user leaves the site, the PHP session does not necessarily expire at that time. I want a list of PHP sessions that have not yet expired. Thanks! Paul From: Jason Wong <[EMAI

RE: [PHP] Re: Active PHP Sessions

2004-05-07 Thread Paul Higgins
I've read stuff like that also. However, if I choose to do this, I must write all the session handling myself, correct? Are there any scripts already out there that do this? Thanks From: "Torsten Roehr" <[EMAIL PROTECTED]> To: [EMAIL PROTECTED] Subject: [PHP] Re: Active PHP Sessions Date: Fr

Re: [PHP] A work around my HTTP_REFERER Prob...

2004-05-07 Thread Travis Low
How about something like this: Write a script on server 1 to accept "username" and "password" parameters. If successful, it echoes "1", if not, it echoes "0". On server 2, you do something like this: $s = file("http://server1?login.php?username=$username&password=$password";); if ($s[0]) {

RE: [PHP] Header() and POST data

2004-05-07 Thread Lizet Peña de Sola
Hi, I had the same problem, had to send parameters through POST to a second page I redirected to, I ended up using the curl library but I'm still facing a few troubles with it, it redirects the page, the parameters are sent through POST but the relative urls on the second page are taking the first

php-general Digest 7 May 2004 13:30:10 -0000 Issue 2749

2004-05-07 Thread php-general-digest-help
php-general Digest 7 May 2004 13:30:10 - Issue 2749 Topics (messages 185579 through 185614): Returning an object 185579 by: Aidan Lister 185581 by: Petr U. 185583 by: Curt Zirzow 185585 by: John W. Holmes 185603 by: Jay Blanchard Re: strip comments fr

Re: [PHP] auto saving data in forms

2004-05-07 Thread Travis Low
To do this reliably, you'll need something like a Java applet. In your shoes, I'd ask the customer how important this requirement REALLY is. It will cost more to develop, and will increase the load on the database a LOT. cheers, Travis [EMAIL PROTECTED] wrote: i'm currently designing a websi

[PHP] Re: Active PHP Sessions

2004-05-07 Thread Torsten Roehr
"Paul Higgins" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Hi all, > > I'm on a shared server, and I do not believe that I have access to the /tmp > directory where the session files are stored (I believe that is how it works > :). I want to keep track of which sessions are activ

[PHP] Re: Recommend an IDE for Windows

2004-05-07 Thread Seth Bembeneck
I use Maguma Studio, the free version: http://www.maguma.com/products/?article=Studio The differences between the versions: http://www.maguma.com/products/?article=studio_compare It does have a splash screen that asks if you want to buy a copy even though its free. Hope this helps Seth "Chris

Re: [PHP] Active PHP Sessions

2004-05-07 Thread John W. Holmes
From: "Jason Wong" <[EMAIL PROTECTED]> > i) There is no way to determine which session files are for your site without > actually examining their contents. > > ii) PHP does not store any site identification info in the session files. > > iii) Hence you need to store a (hopefully) unique string in

Re: [PHP] Active PHP Sessions

2004-05-07 Thread Jason Wong
On Friday 07 May 2004 20:32, Paul Higgins wrote: > I'm on a shared server, and I do not believe that I have access to the /tmp > directory where the session files are stored (I believe that is how it > works > > :). Of course you have access to it. The webserver needs to be able to READ the ses

Re: [PHP] Active PHP Sessions

2004-05-07 Thread Brent Clark
> I'm on a shared server, and I do not believe that I have access to the /tmp > directory where the session files are stored (I believe that is how it works > :). I want to keep track of which sessions are active. Basically, I just > want a list of the active sessions for my site. > > How can I d

Re: [PHP] A work around my HTTP_REFERER Prob...

2004-05-07 Thread Jason Wong
On Friday 07 May 2004 20:05, [EMAIL PROTECTED] wrote: > > varibale called 'secure' > > we asign that variable that value of '4654376534' and divide it by the > > day > > > (eg: if it's the 12th of may, we divide by 12.. 7th of June, we divide > > by > > > 7) That would result in a floating point

[PHP] Active PHP Sessions

2004-05-07 Thread Paul Higgins
Hi all, I'm on a shared server, and I do not believe that I have access to the /tmp directory where the session files are stored (I believe that is how it works :). I want to keep track of which sessions are active. Basically, I just want a list of the active sessions for my site. How can I

Re: [PHP] A work around my HTTP_REFERER Prob...

2004-05-07 Thread Tristan . Pretty
I looked into getting PHP to talk to a Lotus notes database, and was really really scared..! I think this is my best bet, for now at least... however, my simple code does not work? Wierd... Any other ideas? Richard Harb <[EMAIL PROTECTED]> 07/05/2004 11:38 Please respond to Richard Harb <[E

RE: [PHP] Showing only part of string

2004-05-07 Thread Dave Carrera
Thanks John, Works a treat. Thank You Dave Carrera -Original Message- From: John W. Holmes [mailto:[EMAIL PROTECTED] Sent: 07 May 2004 12:32 To: Dave Carrera Cc: [EMAIL PROTECTED] Subject: Re: [PHP] Showing only part of string Dave Carrera wrote: > $string = "This is a test string

  1   2   >