Re: [PHP] Using dBase.

2004-04-20 Thread Jason Wong
On Wednesday 21 April 2004 14:07, Barry Stokes wrote: > I didn't restart the webserver as I have not changed the config. > --enable-dbase was built in the first time around. > > phpinfo shows --enable-dbase as a config option, and also in the section > marked "Additional Modules". Which version o

Re: [PHP] Using dBase.

2004-04-20 Thread Barry Stokes
On Wednesday 21 Apr 2004 07:01, Jason Wong wrote: > On Wednesday 21 April 2004 13:51, Barry Stokes wrote: > > Yes, it's still undefined. > > Apparently you configured php with "--enable-dbase", did you restart your > webserver? Does phpinfo() show anything about dbase? > I didn't restart the webse

Re: [PHP] Using dBase.

2004-04-20 Thread Jason Wong
On Wednesday 21 April 2004 13:51, Barry Stokes wrote: > Yes, it's still undefined. Apparently you configured php with "--enable-dbase", did you restart your webserver? Does phpinfo() show anything about dbase? -- Jason Wong -> Gremlins Associates -> www.gremlins.biz Open Source Software System

Re: [PHP] slow upload with http post

2004-04-20 Thread Yavuz Maşlak
full duplex - Original Message - From: "William Lovaton" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Tuesday, April 20, 2004 6:40 PM Subject: Re: [PHP] slow upload with http post > full duplex or half duplex? > > > El mar, 20-04-2004 a las 02:00, Yavuz Maşlak escribió: > > Hello >

Re: [PHP] Using dBase.

2004-04-20 Thread Barry Stokes
On Wednesday 21 Apr 2004 06:12, Jason Wong wrote: > On Wednesday 21 April 2004 02:20, Barry Stokes wrote: > > Oops... Misread what you meant. Yes.. in the example I copied/pasted I'd > > misspelled it. It still doesn't work when I do spell it correctly... > > How does it still not work? Are you sti

Re: [PHP] Why NNTP is not default protocol for php groups

2004-04-20 Thread Red Wingate
Curt Zirzow wrote: > * Thus wrote T. H. Grejc ([EMAIL PROTECTED]): >> Justin Patrin wrote: >> >The threading works just fine. The problem is that users have ignorant >> >mail software that don't set the thread headers correctly. Even >> >newsgroup client software might do this. This is *not* the s

[PHP] Re: mysql_connect

2004-04-20 Thread Jason Barnett
Lasse Motroen wrote: Help again please. Im trying to connect to MySQL server, using the PHP function: mysql_connect('localhost', 'someuser', 'somePword'); I run it, and what I get is: *Fatal error*: Call to undefined function: mysql_connect() It sounds like you don't have support for the MySQL fun

Re: [PHP] Why NNTP is not default protocol for php groups

2004-04-20 Thread Red Wingate
[...] > According to historical records, on Tue, 20 Apr 2004 18:31:19 +0200 Red > Wingate <[EMAIL PROTECTED]> wrote about "Re: [PHP] Why NNTP is not default > protocol for php groups": > >>[...] >>> That is mostly Outlook and OE that are real good at trashing the Xref >>> ... others (old) clients

Re: [PHP] PHP Web Hosting

2004-04-20 Thread Jason Wong
On Tuesday 20 April 2004 23:38, -{ Rene Brehmer }- wrote: > I've got mine registered at enom through Westhost, and westhost gives me a > registrar interface so I can do whatever I want with my domain ... make new > TLDs, Make new TLDs!?! Is ICANN aware of this ;) -- Jason Wong -> Gremlins Asso

[PHP] mysql_connect

2004-04-20 Thread Lasse Motroen
(I sent this message earlier but I got a message saying that it was not sent, if you did receive it, I appologize for sending it again) Help again please. Im trying to connect to MySQL server, using the PHP function: mysql_connect('localhost', 'someuser', 'somePword'); I run it, and what I get i

Re: [PHP] Using dBase.

2004-04-20 Thread Jason Wong
On Wednesday 21 April 2004 02:20, Barry Stokes wrote: > Oops... Misread what you meant. Yes.. in the example I copied/pasted I'd > misspelled it. It still doesn't work when I do spell it correctly... How does it still not work? Are you still getting "Call to undefined function ..." or what? --

Re: [PHP] Making an app unviewable during system maintainance

2004-04-20 Thread Travis Low
Michal Migurski wrote: Don't take the database down for backups. I can think of no logical reason why you'd want to kill the DB to back it up, since it's just a big "read" operation. Referential integrity might be a reason. Good point, though if this is a concern, the OP will probably use the bui

[PHP] mysql_connect

2004-04-20 Thread Lasse Motroen
Help again please. Im trying to connect to MySQL server, using the PHP function: mysql_connect('localhost', 'someuser', 'somePword'); I run it, and what I get is: *Fatal error*: Call to undefined function: mysql_connect() What do I have to do in order to make it work? Im using php-4.2.2-17. Thank

[PHP] Re: A question about PHP-MySQL'basic operation

2004-04-20 Thread Jason Barnett
Phplist wrote: > php-general,您好! > > I've a PHP-MySQL site now. > I've a empty database named 'dsx'. > I'd like to creat a table named 'test' and insert some data in order > to test the database can use now. > Can any one give me some code abou

Re: [PHP] Making an app unviewable during system maintainance

2004-04-20 Thread Michal Migurski
> > Don't take the database down for backups. > > > > I can think of no logical reason why you'd want to kill the DB to back > > it up, since it's just a big "read" operation. > > Referential integrity might be a reason. Good point, though if this is a concern, the OP will probably use the built-i

[PHP] Re: redirection with PHP and closing windows?

2004-04-20 Thread Jason Barnett
Andre wrote: I want to be able to process a PHP script and then if successful redirect to another page. Is there a good way to do this with PHP or do I need to stick to Javascript? You should check out the header() function. http://www.php.net/header There are some common pitfalls with this, most

Re: [PHP] php language grammar

2004-04-20 Thread Jason Barnett
Huha wrote: hi everyone, i have to write work abaut "formal gramatic in language php". As i understand it is the way as compiler works. e.g. if i write "function", then php compiler looks for funcion name, then for "(" and so on.. Find out more about tokens/tokenizing and lexical scanner. http://w

[PHP] redirection with PHP and closing windows?

2004-04-20 Thread Andre
I want to be able to process a PHP script and then if successful redirect to another page. Is there a good way to do this with PHP or do I need to stick to Javascript? Also, is it possible to close a window that is running a .PHP page via a link or again, just stuck with Javascript? TIA!! Andre

Re: [PHP] Error compiling php-4.3.6 on Redhat 7.3 - need help please

2004-04-20 Thread Mike Ryerse
I was reading http://bugs.php.net/bug.php?id=24774 where someone mentioned to someone else getting this error that they should do a 'ldd libphp4.so' so I did and I noticed that libphp4.so is pointing to some old libraries. Here is the output: ldd libphp4.so: libcrypt.so.1 => /lib/libcrypt.so.1 (0x

[PHP] A question about PHP-MySQL'basic operation

2004-04-20 Thread PHPLIST
php-general,您好! I've a PHP-MySQL site now. I've a empty database named 'dsx'. I'd like to creat a table named 'test' and insert some data in order to test the database can use now. Can any one give me some code about this,FROM connect TO

Re: Re[4]: [PHP] Program that'll parse HTML form with results and send HTML email?

2004-04-20 Thread Justin French
On 21/04/2004, at 12:18 AM, Tom Rogers wrote: Now I see what you want, the real problem would be select boxes and radio buttons, the others would be quite easy. looks like a job for preg_replace_callback() and the worlds ugliest case statement:-) Have you got a good sample form I could play with?

RE: [PHP] why doesn't this work ?

2004-04-20 Thread Justin Palmer
I don't think that you have to request anything. I think you can do this with a .htaccess file. Like so: AddType application/x-httpd-php .html AddType application/x-httpd-php .htm This would go in your root .htaccess file. Mine allows this anyways(hostrocket.com). Also if you have a control

Re: [PHP] Error compiling php-4.3.6 on Redhat 7.3 - need help please

2004-04-20 Thread Mike Ryerse
I re-installed openssl 0.9.7d to /usr/local/ssl and changed my ./configure to --with-openssl=/usr/local/ssl and now I can make install w/o errors, but when apache tries loading libphp4.so, I am getting the following error: Syntax error on line 264 of /etc/httpd/conf/httpd.conf: Cannot load /usr/lib

Re: [PHP] form textbox with search

2004-04-20 Thread Justin French
On 21/04/2004, at 12:39 PM, Anthony Ritter wrote: $searchtext = $_POST['searchtext']; Firstly, using POST data directly in an SQL query is *really dangerous*. At the very least, you might want to trim it's length, strip tags, and trim white space. $searchtext = trim(strip_tags(sub_str($_POST['

Re: [PHP] Making an app unviewable during system maintainance

2004-04-20 Thread Travis Low
Michal Migurski wrote: Hi there I was wondering how people usually turn the app off during system maintainance. During the hours of 6-7 the database goes down for backing up, the users therefore keeping trying to get into the system, i get an error that the database is down when i know it should be

[PHP] form textbox with search

2004-04-20 Thread Anthony Ritter
Greets, The following code snippet receives data from a textbox named searchtext if the user types in a word. It then tries to match that word from the mysql database using: $searchtext = $_POST['searchtext']; if ($searchtext != '') { // Some search text was specified $where .= " AND blurb LIKE

Re: [PHP] Making an app unviewable during system maintainance

2004-04-20 Thread Michal Migurski
> Hi there I was wondering how people usually turn the app off during > system maintainance. During the hours of 6-7 the database goes down for > backing up, the users therefore keeping trying to get into the system, i > get an error that the database is down when i know it should be down > near th

Re: [PHP] Making an app unviewable during system maintainance

2004-04-20 Thread Marek Kilimajer
[EMAIL PROTECTED] wrote: Hi there I was wondering how people usually turn the app off during system maintainance. During the hours of 6-7 the database goes down for backing up, the users therefore keeping trying to get into the system, i get an error that the database is down when i know it should

Re: [PHP] Making an app unviewable during system maintainance

2004-04-20 Thread Greg Donald
> Hi there I was wondering how people usually turn the app off during system > maintainance. During the hours of 6-7 the database goes down for backing > up, the users therefore keeping trying to get into the system, i get an > error that the database is down when i know it should be down near that

RE: [PHP] Making an app unviewable during system maintainance

2004-04-20 Thread Chris W. Parker
[EMAIL PROTECTED] on Tuesday, April 20, 2004 3:41 PM said: > Hi there I was wondering how people usually turn the app off during > system maintainance. During the hours of 6-7 the database goes down > for backing up, the users therefore keeping trying to get into the

[PHP] Making an app unviewable during system maintainance

2004-04-20 Thread daniel
Hi there I was wondering how people usually turn the app off during system maintainance. During the hours of 6-7 the database goes down for backing up, the users therefore keeping trying to get into the system, i get an error that the database is down when i know it should be down near that time. W

RE: [PHP] Calculator Script

2004-04-20 Thread Stephen Craton
Erk, my mistake, it's just 1 over x-7 or whatever because it's the remainder. My bad. Thanks Daniel for all the help. :-) Thanks, Stephen Craton http://www.melchior.us - -Original Message- - From: Stephen Craton [mailto:[EMAIL PROTECTED] - Sent: Tuesday, April 20, 2004 5:11 PM - To: 'PH

RE: [PHP] Calculator Script

2004-04-20 Thread Stephen Craton
Well, that would almost work, except that for something like (2x^2 - 8x - 41) / (x-7). A = 2 B+A*R = 6 C+B*R+A*R^2 = 1 This is actually pretty close: 2x + 8 + (1 / (x-7)) I guess there isn't any one way to really make this program work, unless you have any ideas. Thanks, Stephen Craton http://w

RE: [PHP] Calculator Script

2004-04-20 Thread Stephen Craton
(x^2 - 14x - 25) / (3x + 4) is one of the problems it wants you to solve with this calculator problem though, so it must be allowing coefficients there. At any rate, it doesn't exactly deal with that number anyway. What my questions is, though, is what is this calculator giving me? What does it me

RE: [PHP] Calculator Script

2004-04-20 Thread Daniel Purdy
[snip] A = 1 B+A*R = 9 C+B*R+A*R^2 = -7 I get (b/3) + 3 - (7/3b) when I work it out by hand, and a teacher of mine got the same thing. What exactly is this program finding, since it obviously isn't any coefficients? [/snip] Acutally, looking at it further, it looks like it actually almost did it

Re: [PHP] PHP and Perl Integration for E-Cart

2004-04-20 Thread Justin Patrin
John Nichel wrote: Pushpinder Singh wrote: Hello all, We are trying to incorporate a CGI Perl based E-Cart module into our PHP driven site. This is because the E-Cart supplied by our merchant uses CGI. I want to check with all of you if its possible to integrate PHP with Perl. Will it be

Re: [PHP] PHP and Perl Integration for E-Cart

2004-04-20 Thread Justin Patrin
Pushpinder Singh wrote: The session ID is not stored in the database, its propagated invisible via a cookie (I think so ;-) ) Is is possible to check for the existance of a PHP session ID on a Perl script ?? This ways I want to be able to send a confirmation email to to the buyer after he compl

RE: [PHP] Calculator Script

2004-04-20 Thread Daniel Purdy
[snip] 3b = 3x - 0 The book has this as an example too dealing with the program: (x^2 - 14x - 25) / (3x + 4) [/snip] Exactly. However the program is looking for x - r. there is no place to put a coefficient in front of the x. -- PHP General Mailing List (http://www.php.net/) To unsubscribe,

RE: [PHP] Calculator Script

2004-04-20 Thread Stephen Craton
3b = 3x - 0 The book has this as an example too dealing with the program: (x^2 - 14x - 25) / (3x + 4) Thanks, Stephen Craton http://www.melchior.us - -Original Message- - From: Daniel Purdy [mailto:[EMAIL PROTECTED] - Sent: Tuesday, April 20, 2004 4:50 PM - To: PHP List - Subject: RE: [

RE: [PHP] Calculator Script

2004-04-20 Thread Daniel Purdy
[snip] form ax^2 + bx + c by a binomial of the form x - r. One example I tried out was (b^2 + 9b - 7) / 3b. [/snip] I don't think that 3b is same form as x - r -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mai

Re: [PHP] Forking external binaries

2004-04-20 Thread Michal Migurski
> We have a web application that forks off an external program to inject > an email in the outgoing queue. At busy periods this external program > (qmail-inject) can take a little while to return. I'm currently using > popen() to spawn the qmail-inject binary. > > Is there a way to spawn the extern

[PHP] Calculator Script

2004-04-20 Thread Stephen Craton
This isn't exactly PHP, but I do plan to translate this program to PHP, but first I need to know if it's even worth my time. I ran accross this program in my math book today and I wasn't sure what exactly it's doing. Below is what it says it does, and then the actual script. "Helps you find th

Re: [PHP] PHP Web Hosting

2004-04-20 Thread Greg Donald
> Why don't you two just email each other instead of including us > all in > your little pissing contest? My initial email to John Nichel concerning his signature _was_ sent privately. He's the one who chose to reply to my private email on the list. I thought the listserve was for PHP discussio

Re: [PHP] ADOdb SQL Updates

2004-04-20 Thread John W. Holmes
From: "Gabe" <[EMAIL PROTECTED]> > I double checked the names. Everything looks okay. Another ideas? > >>(access): UPDATE tblFAQ_Book SET tblFAQ_Book.fldTitle = "one more test" > >>WHERE (tblFAQ_Book.autoBookID = 1) > >> > >>Warning: odbc_exec(): SQL error: [Microsoft][ODBC Microsoft Access > >

RE: [PHP] PHP Web Hosting

2004-04-20 Thread Ryan A
On 4/20/2004 11:02:16 PM, Stanley X. Martin ([EMAIL PROTECTED]) wrote: > Why > don't you two just email each other instead of including us all in > your little pissing contest? > > Stanley G. Martin > I second that. -Ryan > -Original Message- > From: -{ Rene Brehmer }- [mailto:[EMAIL PR

RE: [PHP] PHP Web Hosting

2004-04-20 Thread Stanley X. Martin
Why don't you two just email each other instead of including us all in your little pissing contest? Stanley G. Martin -Original Message- From: -{ Rene Brehmer }- [mailto:[EMAIL PROTECTED] Sent: Tuesday, April 20, 2004 4:59 PM To: PHP Mailing List Subject: Re: [PHP] PHP Web Hosting Accor

Re: [PHP] ADOdb SQL Updates

2004-04-20 Thread Gabe
I double checked the names. Everything looks okay. Another ideas? Curt Zirzow wrote: * Thus wrote Gabe ([EMAIL PROTECTED]): ... (access): UPDATE tblFAQ_Book SET tblFAQ_Book.fldTitle = "one more test" WHERE (tblFAQ_Book.autoBookID = 1) Warning: odbc_exec(): SQL error: [Microsoft][ODBC Microsof

Re: [PHP] Why NNTP is not default protocol for php groups

2004-04-20 Thread -{ Rene Brehmer }-
According to historical records, on Tue, 20 Apr 2004 18:31:19 +0200 Red Wingate <[EMAIL PROTECTED]> wrote about "Re: [PHP] Why NNTP is not default protocol for php groups": >[...] >> That is mostly Outlook and OE that are real good at trashing the Xref ... >> others (old) clients do it too, but OE

Re: [PHP] PHP Web Hosting

2004-04-20 Thread -{ Rene Brehmer }-
According to historical records, on Tue, 20 Apr 2004 10:39:33 -0400 John Nichel <[EMAIL PROTECTED]> wrote about "Re: [PHP] PHP Web Hosting": >-{ Rene Brehmer }- wrote: >> At 21:19 19-04-2004, John Nichel wrote: >> >>> Greg Donald wrote: >>> Your signature is twice the rfc1855 suggested limit

Re: [PHP] Error compiling php-4.3.6 on Redhat 7.3 - need help please

2004-04-20 Thread Elfyn McBratney
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hello Mike, On Tuesday 20 Apr 2004 20:46, Mike Ryerse wrote: > Hi, I've been racking my brain on this for quite a while now. Any > help at all is much appreciated (I might start going bald early at > this rate of frustration!) > When I compile php, .

[PHP] Error compiling php-4.3.6 on Redhat 7.3 - need help please

2004-04-20 Thread Mike Ryerse
Hi, I've been racking my brain on this for quite a while now. Any help at all is much appreciated (I might start going bald early at this rate of frustration!) When I compile php, ./configure (with options) runs w/o error, but when I make I get the following: main/network.lo: In function `php_str

Re: [PHP] PHP and Perl Integration for E-Cart

2004-04-20 Thread Pushpinder Singh
The session ID is not stored in the database, its propagated invisible via a cookie (I think so ;-) ) Is is possible to check for the existance of a PHP session ID on a Perl script ?? This ways I want to be able to send a confirmation email to to the buyer after he completes a transaction. I al

Re: [PHP] Passing Parameters to PHP Script

2004-04-20 Thread Curt Zirzow
* Thus wrote Ben Ramsey ([EMAIL PROTECTED]): > I'm executing a PHP script from the Windows command prompt: > > c:/path/to/php.exe c:/path/to/script.php > > I want to pass some parameters to script.php, but I can't use a query > string because then I get a file not found type of error. So, how

[PHP] Passing Parameters to PHP Script

2004-04-20 Thread Ben Ramsey
I'm executing a PHP script from the Windows command prompt: c:/path/to/php.exe c:/path/to/script.php I want to pass some parameters to script.php, but I can't use a query string because then I get a file not found type of error. So, how should I pass parameters to the script? -- Regards, Ben

Re: [PHP] PHP and Perl Integration for E-Cart

2004-04-20 Thread John W. Holmes
From: "Pushpinder Singh" <[EMAIL PROTECTED]> > This is the situation at hand ... we have a PHP Session based Login > module. The user is required to login to get to the Shopping cart > (which is provided for by the Merchant) This shopping cart is CGI / > Perl based. So my question would be to inte

Re: [PHP] PHP and Perl Integration for E-Cart

2004-04-20 Thread Pushpinder Singh
This is the situation at hand ... we have a PHP Session based Login module. The user is required to login to get to the Shopping cart (which is provided for by the Merchant) This shopping cart is CGI / Perl based. So my question would be to integrate the ordering with the PHP Login module, so t

Re: [PHP] PHP and Perl Integration for E-Cart

2004-04-20 Thread John W. Holmes
From: "Pushpinder Singh" <[EMAIL PROTECTED]> > We are trying to incorporate a CGI Perl based E-Cart module into > our PHP driven site. This is because the E-Cart supplied by our > merchant uses CGI. I want to check with all of you if its possible to > integrate PHP with Perl. If you're talki

Re: [PHP] PHP and Perl Integration for E-Cart

2004-04-20 Thread John Nichel
Pushpinder Singh wrote: Hello all, We are trying to incorporate a CGI Perl based E-Cart module into our PHP driven site. This is because the E-Cart supplied by our merchant uses CGI. I want to check with all of you if its possible to integrate PHP with Perl. Will it be too much of a job ..

[PHP] php language grammar

2004-04-20 Thread huha
hi everyone, i have to write work abaut "formal gramatic in language php". As i understand it is the way as compiler works. e.g. if i write "function", then php compiler looks for funcion name, then for "(" and so on.. so i was wondering if there are written down all those rules.. i think theese t

[PHP] PHP and Perl Integration for E-Cart

2004-04-20 Thread Pushpinder Singh
Hello all, We are trying to incorporate a CGI Perl based E-Cart module into our PHP driven site. This is because the E-Cart supplied by our merchant uses CGI. I want to check with all of you if its possible to integrate PHP with Perl. Will it be too much of a job ... or is it easier to cre

RE: [PHP] Resizing Pictures

2004-04-20 Thread Vail, Warren
http://www.php.net/manual/en/ref.image.php http://www.php.net/manual/en/function.imagecopyresized.php Warren Vail -Original Message- From: Ryan Schefke [mailto:[EMAIL PROTECTED] Sent: Monday, April 19, 2004 5:01 PM To: Php-General-Help; 'Ryan Schefke' Subject: [PHP] Resizing Pictures

Re: [PHP] Using dBase.

2004-04-20 Thread Barry Stokes
Oops... Misread what you meant. Yes.. in the example I copied/pasted I'd misspelled it. It still doesn't work when I do spell it correctly... On Tuesday 20 Apr 2004 19:15, Barry Stokes wrote: > I have the brackets etc. It should also have a parameter. I just left them > out for clarity. > > PHP v

RE: [PHP] Resizing Pictures

2004-04-20 Thread Shaunak Kashyap
What OS are you running? Shaunak > -Original Message- > From: Ryan Schefke [mailto:[EMAIL PROTECTED] > Sent: Monday, April 19, 2004 8:01 PM > To: Php-General-Help; 'Ryan Schefke' > Subject: [PHP] Resizing Pictures > > > How do you resize pictures once they're in a certain directory? >

Re: [PHP] Using dBase.

2004-04-20 Thread Barry Stokes
I have the brackets etc. It should also have a parameter. I just left them out for clarity. PHP version " 4.3.6RC2" It's just not playing. On Tuesday 20 Apr 2004 19:12, Curt Zirzow wrote: > * Thus wrote Barry Stokes ([EMAIL PROTECTED]): > > Hey All... > > > > I seem to be having a problem with

Re: [PHP] Using dBase.

2004-04-20 Thread Curt Zirzow
* Thus wrote Barry Stokes ([EMAIL PROTECTED]): > Hey All... > > I seem to be having a problem with the "dbase_get_header_info" command. It > doesn't seem to exist. On all three systems I have tried it on (all of which > have --enable-dbase as a compile option) it just says "Call to undefined >

[PHP] Re: session variables

2004-04-20 Thread Charles Collins
Thanks for the suggestions, turned out to be a server setting the hosting compnay had set in the php.ini, see below: - session.cookie_domain = inweb.net.uk// this points to the hosting companies url by adding the following resolved the problem: - ini_set("session.cookie_domain", $domain_name

Re: [PHP] [Solved] session variables

2004-04-20 Thread Charles Collins
Thanks for the suggestions, turned out to be a server setting the hosting compnay had set in the php.ini, see below: - session.cookie_domain = inweb.net.uk// this points to the hosting companies url by adding the following resolved the problem: - ini_set("session.cookie_domain", $domain_name

[PHP] Using dBase.

2004-04-20 Thread Barry Stokes
Hey All... I seem to be having a problem with the "dbase_get_header_info" command. It doesn't seem to exist. On all three systems I have tried it on (all of which have --enable-dbase as a compile option) it just says "Call to undefined function: base_get_header_info()" Anyonegot any ideas (ot

[PHP] Resizing Pictures

2004-04-20 Thread Ryan Schefke
How do you resize pictures once they're in a certain directory? I have the script to upload a picture, that's working fine. I just need some help with resizing it. Can someone help? Thanks!

Re: [PHP] ADOdb SQL Updates

2004-04-20 Thread Curt Zirzow
* Thus wrote Gabe ([EMAIL PROTECTED]): > ... > (access): UPDATE tblFAQ_Book SET tblFAQ_Book.fldTitle = "one more test" > WHERE (tblFAQ_Book.autoBookID = 1) > > Warning: odbc_exec(): SQL error: [Microsoft][ODBC Microsoft Access > Driver] Too few parameters. Expected 1., SQL state 07001 in > SQLE

RE: [PHP] ADOdb SQL Updates

2004-04-20 Thread Jay Blanchard
[snip] I'm trying to do a simple update to an access database using the ADOdb library. Any help is much appreciated! [/snip] What error message are you getting? You are outputting an error message when queries fail, aren't you? Does the connected user have permission to perform updates on the sp

RE: [PHP] FW: Resizing Pictures

2004-04-20 Thread Vail, Warren
OK, here you have lots of options using PHP gd extensions just to start (or not). Just specifying width and height in your html IMG statement will result in the image being resized by the browser, however, the entire image file must be transferred to the browser. http://www.php.net/manual/en/ref.

[PHP] ADOdb SQL Updates

2004-04-20 Thread Gabe
I'm trying to do a simple update to an access database using the ADOdb library. For some reason I can't get it to work. I can however, get a simple select statment to work just fine. Take a look at my code below as well as the error message. Maybe someone can help me out. As you'll see bel

Re: [PHP] session variables

2004-04-20 Thread Curt Zirzow
* Thus wrote Curt Zirzow ([EMAIL PROTECTED]): > This looks like output from 'php -i'. The php module *can* have a > different config, check these values from phpinfo() in a webpage > in the same directory as your scripts with I fired my proofreader so I have to do this manually now :) s/ with/.

Re: [PHP] session variables

2004-04-20 Thread Curt Zirzow
* Thus wrote Charles Collins ([EMAIL PROTECTED]): > I have two test files running on a server, which is giving me a headache, > due to the fact the session variables are not been maintained across the two > pages. > > The server is running ... > > PHP Version = 4.0.5 > register_globals = ON > Se

Re: [PHP] session variables

2004-04-20 Thread Daniel Clark
Does page1 call page2? Or do you open another browser window and open page2? My understanding is some browsers to NOT transfer the same session info to another borwser window. > Tried that as well as $HTTP_SERVER_VARS, $_SESSION, etc., still cannot get > the damn thing working. > > Regards, > Cha

Re: [PHP] Search for a *

2004-04-20 Thread Brent Clark
> preg_match('/\*/', $var); Thanks, worked like charm Kind Regards Brent Clark -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] session variables

2004-04-20 Thread Daniel Clark
hum. Try $_SESSION['test'] on page 2. > I have two test files running on a server, which is giving me a headache, > due to the fact the session variables are not been maintained across the > two > pages. > > The server is running ... > > PHP Version = 4.0.5 > register_globals = ON > Session Supp

RE: [PHP] Logic problem

2004-04-20 Thread Alex Hogan
> What's in your array? $array1[0] = 'firstname'; $array1[1] = 'lastname'; $array1[2] = 'tkt_title'; I got that fixed. Thanks. alex hogan ** The contents of this e-mail and any files transmitted with it are confidential and i

Re: [PHP] Search for a *

2004-04-20 Thread Curt Zirzow
* Thus wrote Brent Clark ([EMAIL PROTECTED]): > Hi all > how do you search for a * in preg_match You need to escape it: preg_match('/\*/', $var); 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

[PHP] Search for a *

2004-04-20 Thread Brent Clark
Hi all how do you search for a * in preg_match Kind Regards Brent Clark

Re: [PHP] Logic problem

2004-04-20 Thread John Nichel
Alex Hogan wrote: I gotcha.., I do have one question though. I ran your code and it only returns the first letter for that element in the array. For instance fieldone returns as f and tableone returns as t. The output looks like this; SELECT f,f,f FROM t,t. alex What's in your array? -- ***

RE: [PHP] Upload file form SOLVED

2004-04-20 Thread Jeff McKeon
The problem is solved. /etc/httpd/conf.d/php.conf the parameter LimitRequestBody is set to 524288 by default. Jeff > -Original Message- > From: Jeff McKeon > Sent: Tuesday, April 20, 2004 10:48 AM > To: [EMAIL PROTECTED] > Subject: RE: [PHP] Upload file form > > > > -Original Me

RE: [PHP] Logic problem

2004-04-20 Thread Ford, Mike [LSS]
On 20 April 2004 16:44, Alex Hogan wrote: > foreach ( $array1 as $flds ) { > if ( $start ) { > $query .= $flds; > $start = false; > } else { > $query .= ", " . $flds; > > } > } $query .= implode(", ", $array1); Cheers! Mike --

[PHP] Forking external binaries

2004-04-20 Thread Mark
Hello All, I was hoping to benefit from the collective wisdom of the list. We have a web application that forks off an external program to inject an email in the outgoing queue. At busy periods this external program (qmail-inject) can take a little while to return. I'm currently using popen() to

Re: [PHP] session variables

2004-04-20 Thread Charles Collins
Dear Vincent, Tried that as well as $HTTP_SERVER_VARS, $_SESSION, etc., still cannot get the damn thing working. Regards, Charlie. "Vincent Dupont" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] I would do script 1 : $_SESSION['test'] = "hello world"; and in script2 : print($_SESSI

Re: [PHP] Logic problem

2004-04-20 Thread Kelly Hallman
Apr 20 at 9:55am, Alex Hogan wrote: > function myselect($array1, $array2){ > $query = "SELECT".foreach($array1 as $flds){ $flds[$i]; }. > "FROM".foreach($array2 as $tbls){ $tbls[$n]; } ... Alex, if you merely wish to place the values of an array into your query, you might also try doing it th

RE: [PHP] session variables

2004-04-20 Thread Vincent DUPONT
I would do script 1 : $_SESSION['test'] = "hello world"; and in script2 : print($_SESSION['test']); vincent -Original Message- From: Charles Collins [mailto:[EMAIL PROTECTED] Sent: mardi 20 avril 2004 17:44 To: [EMAIL PROTECTED] Subject: [PHP] session variables I have two test files r

[PHP] session variables

2004-04-20 Thread Charles Collins
I have two test files running on a server, which is giving me a headache, due to the fact the session variables are not been maintained across the two pages. The server is running ... PHP Version = 4.0.5 register_globals = ON Session Support = Enabled session.auto_start = Off session.cache_expir

RE: [PHP] Logic problem

2004-04-20 Thread Alex Hogan
[snip] I do have one question though. I ran your code and it only returns the first letter for that element in the array. For instance fieldone returns as f and tableone returns as t. The output looks like this; SELECT f,f,f FROM t,t. [/snip] Never mind I found it. It should be; $query = "SELEC

Re: [PHP] slow upload with http post

2004-04-20 Thread William Lovaton
full duplex or half duplex? El mar, 20-04-2004 a las 02:00, Yavuz Maşlak escribió: > Hello > I have a webserver that running php4.3.x,mysql3.5x,apache1.3.x on Mandrake9. > I intended to transfer this server to another server. > I installed Freebsd4.9 on newserver. and certainly apache1.3x,php4,

RE: [PHP] Logic problem

2004-04-20 Thread Alex Hogan
[snip] > $query = "SELECT "; > $start = true; > foreach ( $array1 as $flds ) { > if ( $start ) { > $query .= $flds[$i]; > $start = false; > } else { > $query .= ", " . $flds[$i]; > } > } > $query .= " FROM "; > $start = true; > foreach ( $

Re: [PHP] Why NNTP is not default protocol for php groups

2004-04-20 Thread Curt Zirzow
* Thus wrote T. H. Grejc ([EMAIL PROTECTED]): > Justin Patrin wrote: > >The threading works just fine. The problem is that users have ignorant > >mail software that don't set the thread headers correctly. Even > >newsgroup client software might do this. This is *not* the server's > >fault in any

Re: [PHP] Logic problem

2004-04-20 Thread John Nichel
Alex Hogan wrote: Hi All, I am having a logic problem. (insert jokes here) I am trying to create a function that will allow me to pass any number of fields and tables into a blanket query. I am getting an error; Unexpected foreach. I have tried placing the loop in several different places and am

RE: [PHP] CURL Help

2004-04-20 Thread jon roig
You wanna feed it an array - something like this: $post_array = array( "x_Login"=> $config['authnetLogin'] ,"x_Password"=> $config['authnetPass'] ,"x_Type"=> $config['authnetXtype'] ,"x_Method" => "CC" ,"x_Version" => "3.0" ,"x_A

[PHP] Re: Logic problem

2004-04-20 Thread Red Wingate
As foreach is a language-construct you cannot concat it to a string. try something like: $temp = '.'; foreach ( $array AS $key ) $temp .= ''.$key.''; $temp .= ''; instead --red [...] > Hi All, > > I am having a logic problem. (insert jokes here) I am trying to create a

[PHP] Logic problem

2004-04-20 Thread Alex Hogan
Hi All, I am having a logic problem. (insert jokes here) I am trying to create a function that will allow me to pass any number of fields and tables into a blanket query. I am getting an error; Unexpected foreach. I have tried placing the loop in several different places and am getting the same

RE: [PHP] Re: Converting XML into something PHP like....

2004-04-20 Thread Red Wingate
Nunners wrote: Array != Object echo $data->Title .''; echo $data->avail_dataset[0]->dept_date .''; etc. pp There are some examples on how to convert your XML-Dump into an Array check out the comments over at php.net -- red [...] > Hi Folks, > > At the end of the email is a var_dump of my XM

Re: [PHP] Unwanted e-mails

2004-04-20 Thread -{ Rene Brehmer }-
At 00:16 20-04-2004, Andy B wrote: > BUT that does not help at all. btconnect is my service provider, and I > have to send my eMails through them. The messages are caused by > lists.php.net not accepting my messages >but your messages *ARE* getting accepted otherwise i >would not be >reading t

RE: [PHP] Upload file form

2004-04-20 Thread Jeff McKeon
> -Original Message- > From: Jeff McKeon > Sent: Tuesday, April 20, 2004 10:21 AM > To: [EMAIL PROTECTED] > Subject: [PHP] Upload file form > > > Ok, not exactly pure PHP problem but I hope someone here has > seen this before.. > > I'm got an upload form on a webpage, here's the code:

  1   2   >