Re: [PHP] Conversion of Field Value to Hyperlink

2004-07-30 Thread Jason Barnett
Funny... for the short time I've been on the list, it seems like our most popular topics are the ones that involve flaming. I guess I need to get some charcoal for my barbecue pit, lest I be the one on the end of the fork ;) -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visi

Re: [PHP] Browser reload problem

2004-07-30 Thread Jason Barnett
Is there a question here? Or is this a resolution? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] reading txt file - certain lines

2004-07-30 Thread Rory McKinley
Dustin Krysak wrote: Now what I want to do is read this file, but only say read 5 songs worth, then I would place the PHP code in (another table) and display the next 5 songs and so on This just allows for a more flexible layout in the final presentation. the way I am having the text files

[PHP] Splitting a string by the number of characters in the string?

2004-07-30 Thread Brent Clements
In PHP 5 there is a awesome function called str_split, is there an equivalent in PHP 4.x? I need to do the following: Split a 60 character string into 3 20 character array chunks. using str_split I could easily do it, but how do I do it in PHP 4.x? Thanks, Brent

Re: [PHP] Conversion of Field Value to Hyperlink

2004-07-30 Thread Jason Wong
On Friday 30 July 2004 06:57, John Holmes wrote: > > > Why not simply 'Read The Fine Manual', or 'Read The Fantastic > > > Manual'? Why does it have to contain profanity? > > > > For all practical purposes: > > > > RTFM == "read the manual" > > > > If someone finds it offensive then they're ei

Re: [PHP] Splitting a string by the number of characters in the string?

2004-07-30 Thread Justin Patrin
On Fri, 30 Jul 2004 02:44:19 -0500, Brent Clements <[EMAIL PROTECTED]> wrote: > In PHP 5 there is a awesome function called str_split, is there an equivalent in PHP > 4.x? > > I need to do the following: > > Split a 60 character string into 3 20 character array chunks. > > using str_split I cou

Re: [PHP] Splitting a string by the number of characters in the string?

2004-07-30 Thread Jason Wong
On Friday 30 July 2004 15:44, Brent Clements wrote: > In PHP 5 there is a awesome function called str_split, is there an > equivalent in PHP 4.x? > > I need to do the following: > > Split a 60 character string into 3 20 character array chunks. > > using str_split I could easily do it, but how do I

[PHP] Sending mail() using 5.0.0

2004-07-30 Thread Michael Purdy
Folks I am running php 5.0.0 on Windows 2000 When using php-cgi.exe or php.exe for that matter I get the following error when using MAIL() Warning: mail() [function.mail]: "sendmail_from" not set in php.ini or custom "From:" header missing in e:\http\cgi\mail.php on line 4 When using php-win.

[PHP] Calling a function at a certain time of day.

2004-07-30 Thread Angelo Zanetti
HI, Im slightly in the dark as to do the following. What I need is a thread of some sort that runs and when the time is midnight, it automatically calls a script that does something. Can anyone point me in the right direction as to where to start. Thanks Angelo --

Re: [PHP] Sending mail() using 5.0.0

2004-07-30 Thread Jason Wong
On Friday 30 July 2004 19:00, Michael Purdy wrote: > I am running php 5.0.0 on Windows 2000 > > When using php-cgi.exe or php.exe for that matter I get the following error > when using MAIL() > > Warning: mail() [function.mail]: "sendmail_from" not set in php.ini or > custom "From:" header missing

[PHP] Re: Calling a function at a certain time of day.

2004-07-30 Thread Craig Donnelly
Have a look at Cron http://www.webmasters-central.com/t/cron.shtml HTH Craig "Angelo Zanetti" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > HI, > > Im slightly in the dark as to do the following. What I need is a thread of > some sort that runs and when the time is midnight, it

[PHP] Re: Calling a function at a certain time of day.

2004-07-30 Thread Angelo binc2
thanks craig, just what I was looking for!! >>> "Craig Donnelly" <[EMAIL PROTECTED]> 7/30/2004 1:22:56 PM >>> Have a look at Cron http://www.webmasters-central.com/t/cron.shtml HTH Craig "Angelo Zanetti" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > HI, > > Im slightly in th

Re: [PHP] Conversion of Field Value to Hyperlink

2004-07-30 Thread John Nichel
Brian Dunning wrote: I guess "flame me back channel" was a little confusing. I'll try to use smaller words next time. It had nothing to do with your words Brian. I may have been born and raised in the South, but I'm still a pretty smart guy, and knew what you meant. However that doesn't mean I

[PHP] Re: Calling a function at a certain time of day.

2004-07-30 Thread Craig Donnelly
Sorry I meant to say, assuming your on Unix/Linux system, Otherwise if Windows use task scheduler Control Panel > Scheduled Tasks Cheers, Craig "Craig Donnelly" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Have a look at Cron > > http://www.webmasters-central.com/t/cron.shtml > >

[PHP] PHP GDI

2004-07-30 Thread Jay
Hi! I have a BIIIG problem with GDI. I try to use some functions on a .gif image and now i need to install GDI. How do i install gd 2.0.28 on my XP machine. I use Win XP, Apache 2.0.50 and PHP 4.3.8 Thanx in advance J -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http:

RE: [PHP] How to nest information from different tables.

2004-07-30 Thread Karl-Heinz Schulz
Thank you for the information but I still have some problems. I use the following code ".html_decode($event[5])." "); print("".html_decode($event[4]).""); print("".html_decode($event[2]).""); } ?> ".html_decode($eventdetails[0]).""); print("".html_decode($eventdetails[1]).""); print("".html_d

RE: [PHP] PHP GDI

2004-07-30 Thread Jay Blanchard
[snip] I have a BIIIG problem with GDI. I try to use some functions on a .gif image and now i need to install GDI. How do i install gd 2.0.28 on my XP machine. I use Win XP, Apache 2.0.50 and PHP 4.3.8 [/snip] I Googled some information for you... http://gnuwin32.sourceforge.net/packages/gd.htm

RE: [PHP] PHP GDI

2004-07-30 Thread Jay Blanchard
[snip] I have a BIIIG problem with GDI. I try to use some functions on a .gif image and now i need to install GDI. How do i install gd 2.0.28 on my XP machine. I use Win XP, Apache 2.0.50 and PHP 4.3.8 [/snip] I hit send too quickly ... http://forums.devshed.com/archive/t-72779 -- PHP General

Re: [PHP] PHP GDI

2004-07-30 Thread John Nichel
Jay wrote: Hi! I have a BIIIG problem with GDI. I try to use some functions on a .gif image and now i need to install GDI. How do i install gd 2.0.28 on my XP machine. I use Win XP, Apache 2.0.50 and PHP 4.3.8 Thanx in advance J http://www.boutell.com/gd/faq.html -- By-Tor.com It's all about the

Re: [PHP] How to nest information from different tables.

2004-07-30 Thread John Nichel
Karl-Heinz Schulz wrote: But it generates now for the second query the "is not a valid MySql result" error. Echo out mysql_error() after you try to execute the second query. -- By-Tor.com It's all about the Rush http://www.by-tor.com -- PHP General Mailing List (http://www.php.net/) To unsubscrib

Re: [PHP] How to nest information from different tables.

2004-07-30 Thread John Nichel
Karl-Heinz Schulz wrote: $eventdetails_query = mysql_query("select details, information, file_name from eventdetails where event.id = eventdetails.event_id"); What is 'eventdetails.event_id'? Should this be a variable? $eventdetails.event_id? -- By-Tor.com It's all about the Rush http://www.by-to

RE: [PHP] How to nest information from different tables.

2004-07-30 Thread Karl-Heinz Schulz
John, "eventdetails" is a table "event_id" is a field in the eventdetails table I want to show all file downloads (information's in table eventdetails) for all events (table name is "event") TIA -Original Message- From: John Nichel [mailto:[EMAIL PROTECTED] Sent: Friday, July 30, 200

Re: [PHP] How to nest information from different tables.

2004-07-30 Thread Jeremy Berthet
You have forgotten one table in your second query, try this : $eventdetails_query = mysql_query("select details, information, file_name from event, eventdetails where event.id = eventdetails.event_id"); Karl-Heinz Schulz wrote: Thank you for the information but I still have some problems. I use t

Re: [PHP] How to nest information from different tables.

2004-07-30 Thread John Nichel
Karl-Heinz Schulz wrote: John, "eventdetails" is a table "event_id" is a field in the eventdetails table I want to show all file downloads (information's in table eventdetails) for all events (table name is "event") TIA Okay. What does mysql_error() say? -- By-Tor.com It's all about the Rush http

Re: [PHP] How to nest information from different tables.

2004-07-30 Thread John Nichel
Jeremy Berthet wrote: You have forgotten one table in your second query, try this : $eventdetails_query = mysql_query("select details, information, file_name from event, eventdetails where event.id = eventdetails.event_id"); Good eyes. ;) -- By-Tor.com It's all about the Rush http://www.by-tor.co

[PHP] Maintaining sessions across multiple sites

2004-07-30 Thread Ron Dyck
I'm in the process of building an application that has an adminstration back-end shared by multiple sites. I need to maintain a persistent session across these sites to properly identify users. I'm using a db to store the session data but when switching from site to site, a new session_id is starte

RE: [PHP] How to nest information from different tables.

2004-07-30 Thread Karl-Heinz Schulz
Thank you, I made one error - I forgot the second table (Thank you Jeremy) It didn't like the field "information" in the eventdetails table - it worked after I changed it to "informations" (Thank you John). ..but the result is not what I was trying to achieve. I'm trying to display th

Re: [PHP] Maintaining sessions across multiple sites

2004-07-30 Thread Matt M.
> I'm in the process of building an application that has an adminstration > back-end shared by multiple sites. I need to maintain a persistent session > across these sites to properly identify users. I'm using a db to store the > session data but when switching from site to site, a new session_id i

Re: [PHP] Maintaining sessions across multiple sites

2004-07-30 Thread Tom Rogers
Hi, Friday, July 30, 2004, 11:31:07 PM, you wrote: RD> I'm in the process of building an application that has an adminstration RD> back-end shared by multiple sites. I need to maintain a persistent session RD> across these sites to properly identify users. I'm using a db to store the RD> session d

Re: [PHP] How to nest information from different tables.

2004-07-30 Thread John Nichel
Karl-Heinz Schulz wrote: Thank you, I made one error - I forgot the second table (Thank you Jeremy) It didn't like the field "information" in the eventdetails table - it worked after I changed it to "informations" (Thank you John). ..but the result is not what I was trying to achieve. I'm t

[PHP] Number validation

2004-07-30 Thread Andre
Hello I need one script in PHP to validate only numbers inserted from a form. For example like a telephone number. Thanks.

RE: [PHP] Number validation

2004-07-30 Thread Jay Blanchard
[snip] I need one script in PHP to validate only numbers inserted from a form. For example like a telephone number. [/snip] Did you want us to search Google for you? Or would you rather we write something? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net

Re: [PHP] Number validation

2004-07-30 Thread Jordi Canals
Andre wrote: Hello I need one script in PHP to validate only numbers inserted from a form. For example like a telephone number. Thanks. Well ... you can write it or if don't want to code ... perhaps searching the web could help. -- PHP General Mailing List (http://www.php.net/) To unsubscribe,

Re: [PHP] Number validation

2004-07-30 Thread John Nichel
Andre wrote: Hello I need one script in PHP to validate only numbers inserted from a form. For example like a telephone number. Thanks. Well, you could RTFM on regular expressions http://us4.php.net/preg_match Or you could STFW for how to match a phone number... http://www.google.com/search?h

[PHP] Number validation again...

2004-07-30 Thread Andre
Hello again Does exits any function in PHP to see if one string is compose for numbers. And I have already searched in google before I asked here Thanks again André Caridade

Re: [PHP] Maintaining sessions across multiple sites

2004-07-30 Thread Ron Dyck
> RD> I'm in the process of building an application that has an adminstration > RD> back-end shared by multiple sites. I need to maintain a persistent session > RD> across these sites to properly identify users. I'm using a db to store the > RD> session data but when switching from site to site, a

Re: [PHP] Number validation

2004-07-30 Thread Angelo binc2
Nice one John, Come on guys, please read the manual or do some searching before posting. Cheers for now Angelo >>> John Nichel <[EMAIL PROTECTED]> 7/30/2004 4:07:33 PM >>> Andre wrote: > Hello > I need one script in PHP to validate only numbers inserted from a form. > For example like a teleph

RE: [PHP] Number validation again...

2004-07-30 Thread Jay Blanchard
[snip] Does exits any function in PHP to see if one string is compose for numbers. And I have already searched in google before I asked here [/snip] http://www.php.net/is_numeric -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] Number validation again...

2004-07-30 Thread Daniel Purdy
[snip] Does exits any function in PHP to see if one string is compose for numbers. And I have already searched in google before I asked here [/snip] The manual is your friend. http://www.php.net/strspn -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/u

Re[2]: [PHP] Maintaining sessions across multiple sites

2004-07-30 Thread Tom Rogers
Hi, Saturday, July 31, 2004, 12:12:26 AM, you wrote: RD> Does msession work with php5? RD> ron I have no idea :-) -- regards, Tom -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] New Flash Chat Program

2004-07-30 Thread Matt Palermo
Hello everyone. Once again I would like to thank you for all your help. I have just completed a new program called TotalChat. It's a PHP/Flash/MySQL live chat system for your website. It's a great tool for providing live support to your site members. You can view the full product information h

[PHP] PHP5 exception handling

2004-07-30 Thread Matthew Weier O'Phinney
I've done some reading on the ZE2 exception handling, but I'm not quite sure I understand how it works. I'm familiar with the following in perl: eval { do some stuff... } if ($@) { report an exception... } Which looks a lot like the following in PHP5: try {

Re: [PHP] Number validation again...

2004-07-30 Thread Jordi Canals
Andre wrote: Does exits any function in PHP to see if one string is compose for numbers. YES http://catb.org/~esr/faqs/smart-questions.html -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] How to nest information from different tables.

2004-07-30 Thread Karl-Heinz Schulz
John, Since we never have more than 30 records I don't think it will be necessary to join the tables. I tried the following syntax and have one last question. How can I specify that the eventdetails only print the details for the specific record? The first "where" example puts the details after

Re: [PHP] Browser reload problem

2004-07-30 Thread Ashley M. Kirchner
Jason Barnett wrote: Is there a question here? Or is this a resolution? Thanks for asking. I found a solution that works. Basically when data gets returned, check the unique id against the DB. If it doesn't exist, insert it together with the other stuff I want in the DB. If it does, don'

Re: [PHP] How to nest information from different tables.

2004-07-30 Thread John Nichel
Karl-Heinz Schulz wrote: John, Since we never have more than 30 records I don't think it will be necessary to join the tables. Your queries are preforming a join (you're selecting from more than one table with one query, a common reference pointetc.). Check out http://dev.mysql.com/doc/mysql

Re: [PHP] How to nest information from different tables.

2004-07-30 Thread Aldwyn
Did your table "event_details" contain a field linked with "event.id" ? if not, you'll need it Maybe I misunderstood what you want, but try this $event_result = mysq_query("SELECT * FROM event_table") or die("Cant catch events"); print(""); while ($eventDb = mysql_fetch_object($event_res

Re: [PHP] PHP5 exception handling

2004-07-30 Thread Curt Zirzow
* Thus wrote Matthew Weier O'Phinney: > > The problem I'm running into: what do I pass as arguments to catch()? > The articles on ZE2 use something like: catch (Exception $e) {}, or > something like catch(MyException $e) (where MyException is a class they > defined in their examples). Is the 'Excep

RE: [PHP] Browser reload problem

2004-07-30 Thread Ford, Mike [LSS]
On 30 July 2004 16:25, Ashley M. Kirchner wrote: > Jason Barnett wrote: > > Though I'm intrigued by two things: a) why am I getting both > $_REQUEST as well as $_POST variables Because $_REQUEST is an aggregate of $_GET, $_POST and $_COOKIE. That's the way it's defined: see http://www.php

Re: [PHP] Variable functions within an object

2004-07-30 Thread Julio Sergio Santana
Curt Zirzow wrote: $this->{$this->fname}(); or (what it actually is doing.. ) $func = $this->fname; $this->$func(); Curt The point here is that the named function is outside the object. That is, $this->foo() doesn't exist, so $this->{$this->fname}(), does not work either. But if you look

Re: [PHP] PHP5 exception handling

2004-07-30 Thread Jason Davidson
You can check out how exceptions are handled in Java or C++ as well, they all sorta work the same, you may find more complete docs for them. Jason On 30 Jul 2004 14:58:59 -, Matthew Weier O'Phinney <[EMAIL PROTECTED]> wrote: > I've done some reading on the ZE2 exception handling, but I'm not

Re: [PHP] PHP5 exception handling

2004-07-30 Thread Matthew Weier O'Phinney
* Curt Zirzow <[EMAIL PROTECTED]>: > * Thus wrote Matthew Weier O'Phinney: > > > > The problem I'm running into: what do I pass as arguments to catch()? > > The articles on ZE2 use something like: catch (Exception $e) {}, or > > something like catch(MyException $e) (where MyException is a class the

Re: [PHP] Variable functions within an object

2004-07-30 Thread Curt Zirzow
* Thus wrote Julio Sergio Santana: > > Curt Zirzow wrote: > > > $this->{$this->fname}(); > > > > or (what it actually is doing.. ) > > > > $func = $this->fname; > > $this->$func(); > > > >Curt > > The point here is that the named function is outside the object. That > is, $this->foo() doesn

[PHP] Means of collecting HTTP response headers

2004-07-30 Thread Gerard Samuel
A means that is not specifically tied to Apache functions. Just looking for a way so that it works no matter the webserver. Thanks -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] XML validation with XML Schema

2004-07-30 Thread Matias Bagini
Is there any way to validate an XML with XML Schema using PHP4... I need something like the bool DOMDocument->schemaValidate ( string filename) that exists on PHP5 Thanks, Matias. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] php mysql--mysqli persistent connections...

2004-07-30 Thread bruce
hi.. in looking over mysqli/mysql constructs, i noticed that mysqli doesn't appear to support persistent connections. is this correct, did i miss something..??? without using persistent connections/transactional processing, how is one supposed to accomplish handling db transactions across multipl

Re: [PHP] php mysql--mysqli persistent connections...

2004-07-30 Thread John Holmes
> without using persistent connections/transactional > processing, how is one > supposed to accomplish handling db transactions across > multiple pages..??? At what point was this ever allowed or even capable of being done? Are you saying you're doing this now? ---John Holmes... UCCASS - PHP Su

Re: [PHP] Variable functions within an object

2004-07-30 Thread Julio Sergio Santana
Curt Zirzow wrote: or for the oneline purists :) ${ ${$this->fname} = $this->fname }(); wow.. ${} is more powerful than i had originally though. Thank you Curt, With your suggestion, I finally re-wrote the example, and here it is: function foo() { echo "In foo()\n"; } class a { var $fname;

[PHP] Replace a button by an image

2004-07-30 Thread Henri Marc
Hello, Is it possible to replace a button by an image with PHP? Thanks! Dave Vous manquez d’espace pour stocker vos mails ? Yahoo! Mail vous offre GRATUITEMENT 100 Mo ! Créez votre Yahoo! Mail sur http://fr.benefits.yahoo.com/ Le nouveau Yahoo! Messenger e

RE: [PHP] php mysql--mysqli persistent connections...

2004-07-30 Thread bruce
php/mysql supported persistent connections.. i had assumed that mysqli would as well it appears that it doesn't... -bruce -Original Message- From: John Holmes [mailto:[EMAIL PROTECTED] Sent: Friday, July 30, 2004 10:54 AM To: [EMAIL PROTECTED]; [EMAIL PROTECTED] Subject: Re: [PHP]

Re: RE: [PHP] php mysql--mysqli persistent connections...

2004-07-30 Thread John Holmes
> php/mysql supported persistent connections.. Have you ever used persistant connections. I don't think they work the way you are thinking. Persistant connections rarely had any benifit except in certain server configurations. ---John Holmes... UCCASS - PHP Survey System http://www.bigredspar

RE: [PHP] Replace a button by an image

2004-07-30 Thread Jay Blanchard
[snip] Is it possible to replace a button by an image with PHP? [/snip] Yes, anything is possible. http://phpbutton.sourceforge.net/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: RE: [PHP] php mysql--mysqli persistent connections...

2004-07-30 Thread bruce
never worked with them but i'm getting close in an app that i believes requires them... i'm going to need to do transactional processing across multiple pages for a test app. i was looking at the mysqli functions which work for the rollback/commit which is ok. but it's my understanding that o

Re: [PHP] Replace a button by an image

2004-07-30 Thread John Nichel
Jay Blanchard wrote: Yes, anything is possible. Can I be the next Queen of England? -- John C. Nichel ÜberGeek KegWorks.com 716.856.9675 [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] XML validation with XML Schema

2004-07-30 Thread Christian Stocker
Hi On Fri, 30 Jul 2004 14:25:44 -0300, Matias Bagini <[EMAIL PROTECTED]> wrote: > Is there any way to validate an XML with XML Schema using PHP4... I need > something like the > > bool DOMDocument->schemaValidate ( string filename) No, not implemented in PHP 4. The Schema Implementatin of libxml

[PHP] es_US spanish locale doesn't recognize meridian (AM/PM)

2004-07-30 Thread Olga
Hi! I am working on a bilingual site for US users - it will be in English and Spanish... I came across some difficulties formatting dates. I set the locale depending on language chosen and use strftime to display the formatting I need. However, it looks like none of the Spanish locales (I am using

[PHP] UML

2004-07-30 Thread [EMAIL PROTECTED]
Now that PHP is OOP with 5.0 is there a UML tool dedicated to PHP? /T Best IT [EMAIL PROTECTED] http://www.best-it.biz

RE: [PHP] UML

2004-07-30 Thread Jay Blanchard
[snip] Now that PHP is OOP with 5.0 is there a UML tool dedicated to PHP? [/snip] Since UML stands for Unified Modeling Language why would you need one for PHP? Have you seen Umbrello? http://uml.sourceforge.net/index.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: ht

Re: [PHP] PHP5 exception handling

2004-07-30 Thread Tularis
Matthew Weier O'Phinney wrote: * Curt Zirzow <[EMAIL PROTECTED]>: * Thus wrote Matthew Weier O'Phinney: The problem I'm running into: what do I pass as arguments to catch()? The articles on ZE2 use something like: catch (Exception $e) {}, or something like catch(MyException $e) (where MyException i

RE: [PHP] UML

2004-07-30 Thread Jay Blanchard
[snip] [snip] Now that PHP is OOP with 5.0 is there a UML tool dedicated to PHP? [/snip] Since UML stands for Unified Modeling Language why would you need one for PHP? Have you seen Umbrello? http://uml.sourceforge.net/index.php [/snip] An article of interest http://www.ph

[PHP] Re: UML

2004-07-30 Thread Manuel Lemos
Hello, On 07/30/2004 04:14 PM, [EMAIL PROTECTED] wrote: Now that PHP is OOP with 5.0 is there a UML tool dedicated to PHP? Umbrello already supported PHP before PHP 5. http://www.umbrello.org/ -- Regards, Manuel Lemos PHP Classes - Free ready to use OOP components written in PHP http://www.phpclass

Re: [PHP] PHP5 exception handling

2004-07-30 Thread Matthew Weier O'Phinney
* Tularis <[EMAIL PROTECTED]>: > Matthew Weier O'Phinney wrote: > >> * Curt Zirzow <[EMAIL PROTECTED]>: >> >>>* Thus wrote Matthew Weier O'Phinney: >>> The problem I'm running into: what do I pass as arguments to catch()? The articles on ZE2 use something like: catch (Exception $e) {}, or

Re: [PHP] Means of collecting HTTP response headers

2004-07-30 Thread Gerard Samuel
On Friday 30 July 2004 01:32 pm, Gerard Samuel wrote: > A means that is not specifically tied to Apache functions. > Just looking for a way so that it works no matter the webserver. > Seems like the function stream_get_meta_data() will fill the job.. -- PHP General Mailing List (http://www.php

RE: RE: [PHP] php mysql--mysqli persistent connections...

2004-07-30 Thread John Holmes
> i'm going to need to do transactional processing across > multiple pages for a test app. Not going to happen. That's not how persistant connections work and not what they are for. You'll need to come up with a different method. ---John Holmes... UCCASS - PHP Survey System http://www.bigred

Re: [PHP] UML

2004-07-30 Thread Colin Kettenacker
[EMAIL PROTECTED] [EMAIL PROTECTED] on 7/30/04 12:14 PM wrote: > Now that PHP is OOP with 5.0 is there a UML tool dedicated to PHP? > Well it is not dedicated to PHP, but the latest release of ArgoUML can output to PHP 5.0 (haven't tried it myself yet). ck -- Cheap Domain Registration | Web Ho

[PHP] db transactions across multiple pages...

2004-07-30 Thread bruce
i can't be the only one to need to do this since it appears that php5/mysqli no longer supports pconnect, how does this get done??? it almost seems that there needs to be a small intermediate server/app that php would talk to, that would in turn talk with the mysql server. this app would esse

[PHP] MAX_FILE_SIZE

2004-07-30 Thread Monty
This is what is says in the online php manual: ... You should add the MAX_FILE_SIZE form variable anyway as it saves users the trouble of waiting for a big file being transferred only to find that it was too big and the transfer actually failed. ... The MAX_FILE_SIZE hidden field must precede the

Re: [PHP] db transactions across multiple pages...

2004-07-30 Thread John Nichel
bruce wrote: i can't be the only one to need to do this since it appears that php5/mysqli no longer supports pconnect, how does this get done??? it almost seems that there needs to be a small intermediate server/app that php would talk to, that would in turn talk with the mysql server. this app

[PHP] help with regex

2004-07-30 Thread C.F. Scheidecker Antunes
Hello, I has as the output of a unzip command called from a PHP script the following: unzip test.zip Archive: test.zip inflating: arch1.txt inflating: arch2.txt inflating: arch3.txt inflating: arch4.txt inflating: arch5.txt inflating: arch6.txt The same I have from a pkware execution : pku

RE: [PHP] db transactions across multiple pages...

2004-07-30 Thread bruce
we want to have the ability to perform db queries/actions with the db across multiple pages. the pconnect supposedly allowed an app to use the same connection if one was available. so an app would establish the connection on page 1, and page 2 could use the same db connection... this is required a

[PHP] upload_tmp_dir Not Working

2004-07-30 Thread Monty
In my .htaccess file I have... php_value upload_tmp_dir /home/site/temp But when I upload a file using a form, here's what the $_FILE array prints out: [tmp_name] => /temp/phpvRRDss /temp is a valid directory, but, it's not the directory I specified in the .htaccess file for this site.

Re: [PHP] db transactions across multiple pages...

2004-07-30 Thread John Nichel
bruce wrote: we want to have the ability to perform db queries/actions with the db across multiple pages. the pconnect supposedly allowed an app to use the same connection if one was available. so an app would establish the connection on page 1, and page 2 could use the same db connection... this i

[PHP] Page load based on logic

2004-07-30 Thread Michael Harding
I have a if statement. if (this){ load page1.php; } else { load page2.php; } I simply want to go to different page depending on the results of a logic statement. I can't find a function or statement that allow me to pass the page to. I am looking for a "load()" or goto() type call. I d

RE: [PHP] db transactions across multiple pages...

2004-07-30 Thread bruce
not sure if it's php/mysqli... but if you check the php.net for the "mysqli" not "mysql" functions... you won't see the persistent attribute listed for the php.ini attributes... -bruce you're learning more every day -Original Message- From: John Nichel [mailto:[EMAIL PROTECTED] Sent

RE: [PHP] db transactions across multiple pages...

2004-07-30 Thread Pablo Gosse
> the pconnect supposedly allowed an app to use the same connection if > one was available. so an app would establish the connection on page > 1, and page 2 could use the same db connection... this is required as > i understand it if you're going to do transactional processing, as > once the conne

[PHP] Re: Page load based on logic

2004-07-30 Thread Tino Didriksen
Michael Harding wrote: I have a if statement. if (this){ load page1.php; } else { load page2.php; } I simply want to go to different page depending on the results of a logic statement. I can't find a function or statement that allow me to pass the page to. I am looking for a "load()" or g

[PHP] Is preg_quote() UTF8 safe?

2004-07-30 Thread Tino Didriksen
Is preg_quote() UTF8 safe? Or any other mb_string encoding really, but for me UTF8 is the important one. As far as I can see from the source it does not check encodings, but I don't know if there would ever be conflicts even without such a check. -- Tino Didriksen / Project JJ -- PHP General Mailin

Re: [PHP] Maintaining sessions across multiple sites

2004-07-30 Thread Rodolfo Gonzalez Gonzalez
On Fri, 30 Jul 2004, Tom Rogers wrote: > RD> I'm in the process of building an application that has an adminstration > RD> back-end shared by multiple sites. I need to maintain a persistent session > > msession is designed for just this purpose how reliable msession is?. I'm interested on it too

Re: [PHP] MAX_FILE_SIZE

2004-07-30 Thread Jason Wong
On Saturday 31 July 2004 04:40, Monty wrote: > If the MAX_FILE_SIZE form variable doesn't prevent this, as the manual says > it should, then what's the point of using it? It's up to the browser whether or not it uses that setting, most don't. -- Jason Wong -> Gremlins Associates -> www.gremlins

Re: [PHP] upload_tmp_dir Not Working

2004-07-30 Thread Justin Patrin
On Fri, 30 Jul 2004 17:08:46 -0400, Monty <[EMAIL PROTECTED]> wrote: > In my .htaccess file I have... > > php_value upload_tmp_dir /home/site/temp > > But when I upload a file using a form, here's what the $_FILE array prints > out: > > [tmp_name] => /temp/phpvRRDss > > /temp is a valid

Re: [PHP] Page load based on logic

2004-07-30 Thread Justin Patrin
On Fri, 30 Jul 2004 17:12:01 -0400, Michael Harding <[EMAIL PROTECTED]> wrote: > I have a if statement. > > if (this){ > load page1.php; > } else { > load page2.php; > } > > I simply want to go to different page depending on the results of a logic > statement. I can't find a function or

[PHP] Re: upload_tmp_dir Not Working

2004-07-30 Thread Mark Collin
Have you phsyically checked what is in /home/site/temp/ directory ? I suspect the file is being placed there but php is just referring to it as /temp/ "Monty" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED]: > In my .htaccess file I have... > > php_value upload_tmp_dir /home/sit

Re: [PHP] upload_tmp_dir Not Working

2004-07-30 Thread Monty
> On Fri, 30 Jul 2004 17:08:46 -0400, Monty <[EMAIL PROTECTED]> wrote: >> In my .htaccess file I have... >> >> php_value upload_tmp_dir /home/site/temp >> >> But when I upload a file using a form, here's what the $_FILE array prints >> out: >> >> [tmp_name] => /temp/phpvRRDss >> >> /temp is a

[PHP] Re: Replace a button by an image

2004-07-30 Thread Harlequin
Henri. I prefer to use CSS for things like this but I'm sure PHP has it's own idiosyncrasies. I checked out the site posted in response to your post and personally thought the graphics were a bit ropey. typically CSS is used for replacing images or backgrounds on hover but is very flexible and q

[PHP] Re: A native Windows binding for PHP

2004-07-30 Thread Manuel Lemos
Hello, On 07/30/2004 06:32 PM, Rubem Pechansky wrote: On the other hand you can always open the source of the library and develop closed source extensions or tools that make the development of your library more powerful and useful so it will be an advantage for people to buy those extensions and

Re[2]: [PHP] Maintaining sessions across multiple sites

2004-07-30 Thread Tom Rogers
Hi, Saturday, July 31, 2004, 7:34:08 AM, you wrote: RGG> On Fri, 30 Jul 2004, Tom Rogers wrote: RGG> how reliable msession is?. I'm interested on it too. RGG> Regards. I have been using it for several years now as my default session handler and it has never once failed me, so I would say from my

Re: [PHP] Replace a button by an image

2004-07-30 Thread PHP Gen
> Jay Blanchard wrote: > > Yes, anything is possible. > > Can I be the next Queen of England? > > -- > John C. Nichel Anythings possible...and with all your choices you want to be an old fart?? :-) = -- - The faulty interface lies between the chair and the keyboard. - Creativity

Re: [PHP] upload_tmp_dir Not Working

2004-07-30 Thread Justin Patrin
On Fri, 30 Jul 2004 18:05:54 -0400, Monty <[EMAIL PROTECTED]> wrote: > > > On Fri, 30 Jul 2004 17:08:46 -0400, Monty <[EMAIL PROTECTED]> wrote: > >> In my .htaccess file I have... > >> > >> php_value upload_tmp_dir /home/site/temp > >> > >> But when I upload a file using a form, here's what the $_

Re: [PHP] Re: Replace a button by an image

2004-07-30 Thread Justin Patrin
On Fri, 30 Jul 2004 23:14:53 +0100, Harlequin <[EMAIL PROTECTED]> wrote: > Henri. > > I prefer to use CSS for things like this but I'm sure PHP has it's own > idiosyncrasies. > > I checked out the site posted in response to your post and personally > thought the graphics were a bit ropey. > > ty

[PHP] str_replace: use multiple or array?

2004-07-30 Thread PHP Gen
Hi, I need to use a couple of str_replace's in one of my programs and would like to know which is more resource friendly: 1) having multiple str_replace one after another eg: $text = str_replace("orange", "apple", "$text"); $text = str_replace("black", "white", "$text"); $text = str_replace("girl

  1   2   >