[PHP] problem with mysql persistent connections; already read the FAQ!

2002-03-08 Thread Dustin Puryear
We are running Apache 1.3.20 with PHP 4.0.6/rfc1876-patch built as a module. We are using PHP on a load-sharing cluster with n web servers. Our cluster supports an application that makes extensive use of mysql connections via the PHP mysql_* functions. The application was tested on a single web s

[PHP] Dynamically creating PHP before it is executed

2002-03-08 Thread Jonathan Duncan
I am trying to figure out a way to dynamically create some lines of PHP code and then have it executed. This is because I want a page to display different columns in a table depending on whatever link is clicked. There are hundreds of different combinations of column headings so I don't want to

[PHP] Can someone tell me about database....

2002-03-08 Thread GENESiS DESiGNS
Hello, Can anyone tell me about database driven web sites? I want to learn how to do that. Thanks, -GENESiS DESiGNS -Sean Kennedy -http://www.gdesigns.vcn.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Dynamically creating PHP before it is executed

2002-03-08 Thread Bogdan Stancescu
I don't quite understand why you chose such a complicated solution - I may be missing something, in which case sorry for wasting your time. But why don't you just dynamically build the select statement and then use the _fetch_array() -- and walk that array instead? Just my 2c Bogdan Jonathan

[PHP] two different MySQL connections without always select_db?

2002-03-08 Thread PHP freak
How would you keep two different MySQL connections to two different MySQL databases (on two different MySQL servers) up and available with two different pointers (id), and not need to always do "select_db()" to switch between them? I thought that if I did this: --- php: - $

[PHP] Re: problem with mysql persistent connections; already read the FAQ!

2002-03-08 Thread michael kimsal
Dustin Puryear wrote: > We are running Apache 1.3.20 with PHP 4.0.6/rfc1876-patch built as a > module. We are using PHP on a load-sharing cluster with n web servers. > Our cluster supports an application that makes extensive use of mysql > connections via the PHP mysql_* functions. > > The applic

Re: [PHP] Dynamically creating PHP before it is executed

2002-03-08 Thread Jonathan Duncan
Bogdan, Thank you for your comment, it actually made me think of a possible solution for something else I am working on. However, it is just as I thought, I am being too vague. I am most likely making my whole situation more complicated than I need. Another idea is just to do a "select *" and

Re: [PHP] patch installation

2002-03-08 Thread Jason Wong
On Saturday 09 March 2002 05:21, abw wrote: > I have downloaded the patch for the security bug found with the file > uploading. One server has php 4.0.6 and the other has 4.1.1, but my problem > is that the patch does not have any instructions. > > I was going to use the patch command, but I don't

Re: [PHP] cal_days_in_month()

2002-03-08 Thread Jason Wong
On Saturday 09 March 2002 03:29, CB wrote: > Hi! > > I get an errormessage when trying to use cal_days_in_month(). "Fatal error: > Call to undefined function: cal_days_in_month()" > > The server is runnig PHP 4.1.2, Apache 1.3.23 on some kind of Linux dist. recompile php with the "--enable-calend

Re: [PHP] Dynamically creating PHP before it is executed

2002-03-08 Thread Jonathan Duncan
Sam, The questions you write are good. I am not sure why they can't. I just assumed that if I make lines of code like: \$$col and populate them like: $column1 $column2 $column3 that I would have to then evaluate them on a different page. Am I incorrect? Thanks, Jonathan Duncan - Ori

Re: [PHP] Can someone tell me about database....

2002-03-08 Thread Tyler Longren
I suggest you buy a book. There's too much to simply tell you how to do it. I recommend PHP Essentials by Julie C. Meloni. That was the first PHP book I bought, and was really helpful. tyler - Original Message - From: "GENESiS DESiGNS" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent:

Re: [PHP] Can someone tell me about database....

2002-03-08 Thread hugh danaher
Sean, hen I first got interested in programming datadriven websites way back in 2001, I read the article at the attached link: http://www.lycos.com/sitemap.asp. Learned a lot. Now that I know a bit more, why the hell would someone using ASP talk about the virtues of php and mysql? Hope this he

[PHP] Re: cal_days_in_month()

2002-03-08 Thread David Robley
In article <[EMAIL PROTECTED]>, [EMAIL PROTECTED] says... > Hi! > > I get an errormessage when trying to use cal_days_in_month(). "Fatal error: > Call to undefined function: cal_days_in_month()" > > The server is runnig PHP 4.1.2, Apache 1.3.23 on some kind of Linux dist. > > When I run the sam

RE: [PHP] two different MySQL connections without always select_db?

2002-03-08 Thread Nick Richardson
i dont know if this will work, but you can try selecting them in the query... i.e.: select * from database.table I am by no means a guru on sql queries, but it may work. -Original Message- From: PHP freak [mailto:[EMAIL PROTECTED]] Sent: Friday, March 08, 2002 8:39 PM To: [EMAIL PROTECT

[PHP] CSS

2002-03-08 Thread jtjohnston
Has anyone any code that creates a CSS file? A GUI? As in: -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] CSS

2002-03-08 Thread Ashley M. Kirchner
jtjohnston wrote: > Has anyone any code that creates a CSS file? A GUI? You might want to read this: http://www.phpbuilder.com/columns/tim2821.php3 -- H | "Life is the art of drawing without an eraser." - John Gardner +-

[PHP] Re: Finding variable names in strings, and replacing with values?

2002-03-08 Thread Jan Grafström
Hi Nick! http://www.php.net/manual/en/function.str-replace.php Regards, Jan "Nick Richardson" <[EMAIL PROTECTED]> skrev i meddelandet [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > Been working on this one for quite awhile, and it's probably a fairly easy > solution, but i can't find it... so th

[PHP] Execute bash shell script in php

2002-03-08 Thread Your Amit
hi folks, i m trying to execute a plain shell script(bash shell) in php by using exec function(i tried even backtick operator). It is displaying me the echo commands but not doing any other processing which is there in the script. Moreover,the same scripts works when i execute it as a command l

[PHP] Re: just a link in php email

2002-03-08 Thread Jan Grafström
Hi Andrea! I use this. $message="http://www.sever.com\";>link"; $message = stripcslashes($message); $headers .= "Return-Path: <[EMAIL PROTECTED]>\n"; $headers .= "Reply-To:$admail\n"; $headers .= "From: $admail\n"; $headers .= "X-Mailer: PHP\n"; $headers .= "Content-Type: text/html; charset=iso-

<    1   2