RE: [PHP] newbie: redirecting a POSTed form

2002-05-29 Thread PeterV
>I think the CURL library >(http://www.php.net/manual/en/ref.curl.php) is your best bet for >doing this, since you must need SSL (you mentioned credit card >authorization). Is there not a simpler way of doing this?? I thought there would be... I can't install extra software on the server. help?

Re: [PHP] Inconsistent behavior with preg_match_all in conditional

2002-05-29 Thread Randy Janinda
It never fails. I mention toil for hours and mention the problem to a public forum and it turns out to be a typo. Thanks Jason. On Wed, 2002-05-29 at 00:30, Jason Wong wrote: > On Wednesday 29 May 2002 11:06, Randy Janinda wrote: > > Hello everyone, > > > > I have a script to check a user submit

Re: [PHP] mail() function

2002-05-29 Thread Ed Gorski
lol.what does that return? At 09:08 PM 5/29/2002 -0700, r wrote: >That may and may not work, I would suggest you add the RTFM() function, then >it WILL work. >Cheers, >-Ryan >- Original Message - >From: "Phil Schwarzmann" <[EMAIL PROTECTED]> >To: <[EMAIL PROTECTED]> >Sent: Wednesday,

[PHP] Re: IMAP quota support

2002-05-29 Thread Luiz Lima
Just found out that the bug is known... Anyone care to came with a patch? :-) Guess it's time to quit php and start learning C to fix it... :-)) http://bugs.php.net/bug.php?id=14673 -- Luiz Lima Image Link Internet http://www.imagelink.com.br "Luiz Lima" <[EMAIL PROTECTED]> escreveu na mensagem

Re: [PHP] mail() function

2002-05-29 Thread r
That may and may not work, I would suggest you add the RTFM() function, then it WILL work. Cheers, -Ryan - Original Message - From: "Phil Schwarzmann" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Wednesday, May 29, 2002 7:57 AM Subject: [PHP] mail() function > I want to write a simp

Re: [PHP] php3 / php4 vars - Submitted form doesn't work

2002-05-29 Thread Nicolas Costes
Le Mercredi 29 Mai 2002 17:00, Philip Olson a écrit : > > So my question is : Are there differences between > > PHP3 and PHP4, in the manner of passing variables to > > a script ??? > > Sort of. There are many factors for using data from > outside of PHP, such as forms. For example, let's > assu

[PHP] Install php 4.2.1

2002-05-29 Thread Roman Duriancik
How to install or configure php 4.2.1 downloaded from www.php.net on red Hat Linux 7.0 that i used function imagettfbox(). I create install file with command ./configure --prefix=/usr --exec-prefix=/usr --with-config-file-path=/etc --disable-debug --enable-pic --enable-in

RE: [PHP] mail() function

2002-05-29 Thread James Holden
RTFM! mail($email_address,$subject,$message,$header); You can use @mail to supress any errors produced. Example: @mail("[EMAIL PROTECTED]","This is a Test","My Message","From: James <[EMAIL PROTECTED]>"); Look at: http://uk.php.net/manual/en/ref.mail.php - James www.LondonTown.com -Ori

Re: [PHP] mail() function

2002-05-29 Thread 1LT John W. Holmes
Yes. - Original Message - From: "Phil Schwarzmann" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Wednesday, May 29, 2002 10:57 AM Subject: [PHP] mail() function > I want to write a simple script that sends an e-mail message using PHP. > > I'm assuming that my web-host has the mai

[PHP] mail() function

2002-05-29 Thread Phil Schwarzmann
I want to write a simple script that sends an e-mail message using PHP. I'm assuming that my web-host has the mail function hooked up to the e-mail server (should I be assuming this or should I assume that it's NOT hooked up?). What is the syntax for this command? something like this... ? (

Re: [PHP] php3 / php4 vars - Submitted form doesn't work

2002-05-29 Thread Philip Olson
> So my question is : Are there differences between > PHP3 and PHP4, in the manner of passing variables to > a script ??? Sort of. There are many factors for using data from outside of PHP, such as forms. For example, let's assume: Within test.php will be our information,

Re: [PHP] php3 / php4 vars - Submitted form doesn't work

2002-05-29 Thread 1LT John W. Holmes
It's probably your register_globals setting. with it off, you have to use the HTTP_*_VARS or _* variables where * is GET, COOKIE, or POST. With it on, those are still available, but you also have the form element names registered. With register globals on, you have a variable $foo that contains

Re: [PHP] Intermediate "Searching..." screen.

2002-05-29 Thread Mike Gohlke
As stated elsewhere, this is somewhat similar to what you need. (btw, NOT tested for syntax errors) document.location='$PHP_SELF?finishedquery=$searchquery;"); } else { showsearch($finishedquery); } ?> Jeff Bearer wrote: >I have a part of my site that searches a large database and sometimes

Re: [PHP] php3 / php4 vars - Submitted form doesn't work

2002-05-29 Thread Nicolas Costes
Le Mercredi 29 Mai 2002 16:15, vous avez écrit : > Not really. You still pass variables through GET, POST, or COOKIE data. How > you access the value is different based on your configuration and the PHP > version. It's different for different versions of PHP4, too. Do you have a > specific questio

Re: [PHP] comment followed by ?> fails to parse

2002-05-29 Thread Thalis A. Kalfigopoulos
On Wed, 29 May 2002, Jason Wong wrote: > On Wednesday 29 May 2002 21:27, Leotta, Natalie (NCI/IMS) wrote: > > I disagree. I use // because then when I need to take out a chunk of code > > (the requirements for the programs change faster than I can keep up with > > them!!) I can do /* unnecessary

RE: [PHP] comment followed by ?> fails to parse

2002-05-29 Thread Thalis A. Kalfigopoulos
On Wed, 29 May 2002, Ford, Mike [LSS] wrote: > > -Original Message- > > From: Thalis A. Kalfigopoulos [mailto:[EMAIL PROTECTED]] > > Sent: 28 May 2002 20:21 > > > > If I write a comment line with // and I include in it ?> then > > it fails to parse the rest of the page bec

RE: [PHP] newbie: redirecting a POSTed form

2002-05-29 Thread Jonathan Rosenberg
I think the CURL library (http://www.php.net/manual/en/ref.curl.php) is your best bet for doing this, since you must need SSL (you mentioned credit card authorization). If the CURL library isn't compiled with your version of PHP, you could use the CURL executable & invoke it with exec. > -Or

Re: [PHP] php3 / php4 vars - Submitted form doesn't work

2002-05-29 Thread 1LT John W. Holmes
Not really. You still pass variables through GET, POST, or COOKIE data. How you access the value is different based on your configuration and the PHP version. It's different for different versions of PHP4, too. Do you have a specific question or problem? ---John Holmes... - Original Message

Re: [PHP] HTML Checkboxes and PHP variables

2002-05-29 Thread 1LT John W. Holmes
What version of PHP are you using? Is register_globals on or off? Try $_GET['foo'] as the array name, instead of $foo, or $_POST['foo'], depending on the method of your form. ---John Holmes... - Original Message - From: "Michael Hall" <[EMAIL PROTECTED]> To: "1LT John W. Holmes" <[EMAIL

[PHP] newbie: redirecting a POSTed form

2002-05-29 Thread PeterV
Hi, I have to redirect a POSTed form, ie. a form gets posted to my PHP page, and I then do some database stuff and then redirect it to another site. I know of header("http://othersite.com";); to redirect a simple URL request, but how can I redirect a post with a bunch of form fields in it? I do

[PHP] Re: PHP doubt

2002-05-29 Thread Girish Nath
Hi Make sure you have an auto_increment field in your table, do the insert first, then use mysql_insert_id() to get the number of the last which you can use for the customer number. See the notes at the following page: http://www.php.net/manual/en/function.mysql-insert-id.php Regards Girish -

[PHP] Oracle Cursors

2002-05-29 Thread J. Anderson Scarbrough
I have a bound variable to an oracle cursor. I then use the OCIFetchInto() statment to move forward through the resultset. My question is how do i move backwards through the resultset? Or reset it to its starting position? thanks.

[PHP] evaluating php expressions using Sablotron

2002-05-29 Thread R.J.C. Vos
Hi, I am using php >4.1, with Sablotron. I have both an xml and xsl file, and use sablotron to output html. But the php expressions inside these files are not evaluated (i.e. left out in the html-file) How can they be evaluated for sure? (most examples use sablotron with php4.0 and are therefo

RE: [PHP] Advantages of php

2002-05-29 Thread Ed Gorski
Maybe he's still mulling over the "Hello World" solution 3. htmlspecialchars() is a very nice function as welland you can't beat the regular expression functions for validating data ed At 08:41 AM 5/29/2002 -0500, Jay Blanchard wrote: >[snip] >Hmm...point number 1 would be time managem

Re: [PHP] Parse Error(newbie)

2002-05-29 Thread Jason Wong
On Wednesday 29 May 2002 21:45, [EMAIL PROTECTED] wrote: > Notepad at the moment as I can't change the settings of my computer due to > lack of privilages You have my sympathy :) -- Jason Wong -> Gremlins Associates -> www.gremlins.com.hk Open Source Software Systems Integrators * Web Design & H

Re: [PHP] Parse Error(newbie)

2002-05-29 Thread webmaster
Notepad at the moment as I can't change the settings of my computer due to lack of privilages - Original Message - From: "Jason Wong" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Wednesday, May 29, 2002 11:26 PM Subject: Re: [PHP] Parse Error(newbie) > On Wednesday 29 May 2002 21:22

Re: [PHP] sessions and 'normal practice'

2002-05-29 Thread Ed Gorski
Well that must mean that they are using session_name() and session_id(). I really don't know why they are using that (considering it'll add unnecessary overhead of calling session_name(),session_id() twice). My guess is that they don't have a clue about the SID constant that automatically ge

RE: [PHP] Advantages of php

2002-05-29 Thread Jay Blanchard
[snip] Hmm...point number 1 would be time management, for you! Maybe you should've started researching this more than a day before hand. [/snip] +1 John [snip] > I'am a php programer, [/snip] And GET & POST you don't know? [snip] I have got an seminar on 31st of May(hardly > one day le

Re: [PHP] Periods with UNIX timestamps

2002-05-29 Thread Jason Wong
On Wednesday 29 May 2002 21:35, [EMAIL PROTECTED] wrote: > Where is the best place to find out the values in seconds(i.e. UNIX time > stamps) for standard periods of time such as one day and one week and one > month(The month thing would need to be correct for each month) 1 minute = 1 x 60 second

Re: [PHP] sessions and 'normal practice'

2002-05-29 Thread Nick Wilson
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 * and then Ed Gorski declared > 1. This is done for users that don't use cookies. Believe it or not but > there are people out there that are afraid of cookies and automatically > turn them off. Without appending the sessionid to the end of

Re: [PHP] HTML Checkboxes and PHP variables

2002-05-29 Thread Michael Hall
I've been wrestling with the same issue. I had some code loop through and create an arbitrary number of checkbox inputs with the name 'foo[]' I then attempted to access the array using: foreach ($foo as $bar) { echo $bar; } but I got error messages telling me that $foo is not an array

Re: [PHP] Advantages of php

2002-05-29 Thread Stuart Dallas
1LT John W. Holmes <[EMAIL PROTECTED]> wrote: > POST data is sent in the headers I know it's being picky but if the OP is going to be presenting to an audience it would be better if what he says is correct. POST data is not sent in the headers of an HTTP request. It is sent in the data part of t

Re: [PHP] comment followed by ?> fails to parse

2002-05-29 Thread Jason Wong
On Wednesday 29 May 2002 21:27, Leotta, Natalie (NCI/IMS) wrote: > I disagree. I use // because then when I need to take out a chunk of code > (the requirements for the programs change faster than I can keep up with > them!!) I can do /* unnecessary code */ and it doesn't end prematurely. Yes th

[PHP] Periods with UNIX timestamps

2002-05-29 Thread webmaster
Where is the best place to find out the values in seconds(i.e. UNIX time stamps) for standard periods of time such as one day and one week and one month(The month thing would need to be correct for each month)   JJ Harrison[EMAIL PROTECTED]www.tececo.com -- PHP General Mailing List (http://

Re: [PHP] sessions and 'normal practice'

2002-05-29 Thread Ed Gorski
1. This is done for users that don't use cookies. Believe it or not but there are people out there that are afraid of cookies and automatically turn them off. Without appending the sessionid to the end of the URL, sessions won't work for these people. Now how does your host append to the e

Re: [PHP] Advantages of php

2002-05-29 Thread 1LT John W. Holmes
Hmm...point number 1 would be time management, for you! Maybe you should've started researching this more than a day before hand. As far as POST vs. GET, there's hardly a difference. POST data is sent in the headers, GET data is sent in the URL. Either one can easily be "created" by the user, so

RE: [PHP] comment followed by ?> fails to parse

2002-05-29 Thread Leotta, Natalie (NCI/IMS)
I disagree. I use // because then when I need to take out a chunk of code (the requirements for the programs change faster than I can keep up with them!!) I can do /* unnecessary code */ and it doesn't end prematurely. -Natalie -Original Message- From: Ed Gorski [mailto:[EMAIL PROTECTED

[PHP] php3 / php4 vars - Submitted form doesn't work

2002-05-29 Thread Nicolas Costes
Er, ... Well, that mail seemed too long :-) So my question is : Are there differences between PHP3 and PHP4, in the manner of passing variables to a script ??? Thanx for your help ... -- ( °> Nicolas Costes //\\ IUT de La Roche / Yon / \/ ) [EMAIL PROTECTED] `-<< http://luxregina.fre

Re: [PHP] Parse Error(newbie)

2002-05-29 Thread Jason Wong
On Wednesday 29 May 2002 21:22, Niklas Lampén wrote: > mysql_query("delete from conf_event where time < ( time() ); > > You're missing the ending " there. > > > Niklas > > -Original Message- > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] > Sent: 29. toukokuuta 2002 16:20 > To: [EMAIL

Re: [PHP] comment followed by ?> fails to parse

2002-05-29 Thread Ed Gorski
Bah quit complaining, you should be using /* comments */ anyway. ed At 09:16 PM 5/29/2002 +0800, Jason Wong wrote: >On Wednesday 29 May 2002 21:10, Brinkman, Theodore wrote: > > It really should ignore anything in any sort of comment. The whole point > > of a comment is that it provides the

[PHP] PHP Grammar

2002-05-29 Thread Sugandh Mittal
Hi, This is Sugandh Mittal from IIT Delhi. Would any one please refer me to the BNF Grammar (or any other similar grammar) for PHP. Thanks very much. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] sessions and 'normal practice'

2002-05-29 Thread Nick Wilson
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hi all I have 2 questions relating to how session id's are passed from page to page: 1: My host uses the 'append to url and hidden fields' method. I dislike this as it makes my urls untidy and my pages won't validate. So, is it considered normal prac

RE: [PHP] Parse Error(newbie)

2002-05-29 Thread Niklas Lampén
mysql_query("delete from conf_event where time < ( time() ); You're missing the ending " there. Niklas -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: 29. toukokuuta 2002 16:20 To: [EMAIL PROTECTED] Subject: Re: [PHP] Parse Error(newbie) Line 81 is $query

Re: [PHP] Re: Parse Error(newbie)

2002-05-29 Thread Nick Wilson
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 * and then Kevin Lowe declared > Looks OK to me, could it be that youa re missing a semi colon ; or a brace } from a >previous line, in this case PHP often reports the parse error as being the line where >the next ; is? Yep, that would be me g

Re: [PHP] Avoid escaping

2002-05-29 Thread Ed Gorski
Inside php.ini there is a setting to turn "Magic Quotes" on or off.turn them off and you won't have this problem. If you don't have access to the php.ini file or your administrator will not turn them off use echo stripslashes($test); ed At 11:36 AM 5/29/2002 +0200, Jose Jeria wrote: >i h

Re: [PHP] comment followed by ?> fails to parse

2002-05-29 Thread Jason Wong
On Wednesday 29 May 2002 21:10, Brinkman, Theodore wrote: > It really should ignore anything in any sort of comment. The whole point > of a comment is that it provides the programmer with information and is > ignored by the compiler/interpreter. If // is supposed to comment until > the end of th

Re: [PHP] Parse Error(newbie)

2002-05-29 Thread webmaster
Line 81 is $query. I showed it in my first email. I suspect this line is the one causing the trouble(It is about four lines above the start of the function and is the only previous PHP statement) mysql_query("delete from conf_event where time < ( time() ); - Original Message - From: "Ja

[PHP] Advantages of php

2002-05-29 Thread J.F.Kishor
Hi all, I'am a php programer, I have got an seminar on 31st of May(hardly one day left) on PHP, I have to expose its advantages and advantage of PHP's security when compared to other languages. I would be thankful if you people could send me some useful information regarding its

Re: [PHP] Relative beginner in dire need of help! (Scratch my last message, sorry... )

2002-05-29 Thread Ed Gorski
Are you sure the permissions on the directory are set up correctly? The user that the db is run as (usually nobody in apache/linux) needs read and write privileges on that directory ed At 04:30 AM 5/29/2002 -0400, [EMAIL PROTECTED] wrote: >I really hope someone can help me here!! LOL!! > >I'm

Re: [PHP] Parse Error(newbie)

2002-05-29 Thread Jason Wong
On Wednesday 29 May 2002 21:13, [EMAIL PROTECTED] wrote: > Here is the function: > > function print_new_story(){ > $query = "SELECT * FROM news ORDER BY id DESC LIMIT 1"; > $result = mysql_query($query); > $num_results = mysql_num_rows($result); > > for ($i=0; $i < $num_results; $i++) > { >

[PHP] Re: Parse Error(newbie)

2002-05-29 Thread Kevin Lowe
Hi JJ, Looks OK to me, could it be that youa re missing a semi colon ; or a brace } from a previous line, in this case PHP often reports the parse error as being the line where the next ; is? EG $var1 = "x" $var2 = "y"; This will show an error on the second line. KEvin

Re: [PHP] HTML Checkboxes and PHP variables

2002-05-29 Thread 1LT John W. Holmes
If you name the form elements as arrays, then yeah, they are pretty much the same. One Two Three When submitted, $foo will be an array containing the values that were checked. If a box was not checked, it won't have any value in the array. i.e. If you check One and Three, then you'll have a $fo

RE: [PHP] comment followed by ?> fails to parse

2002-05-29 Thread Brinkman, Theodore
It really should ignore anything in any sort of comment. The whole point of a comment is that it provides the programmer with information and is ignored by the compiler/interpreter. If // is supposed to comment until the end of the line, then by god, it should comment until the end of the line,

Re: [PHP] Parse Error(newbie)

2002-05-29 Thread webmaster
Here is the function: function print_new_story(){ $query = "SELECT * FROM news ORDER BY id DESC LIMIT 1"; $result = mysql_query($query); $num_results = mysql_num_rows($result); for ($i=0; $i < $num_results; $i++) { $row = mysql_fetch_array($result); echo ': '; echo $row['title']

Re: [PHP] PHP doubt

2002-05-29 Thread Ed Gorski
You really need to put in more of the code as it ACTUALLY appears... ed At 05:39 PM 5/29/2002 -0700, r wrote: >Hey guys, > >I have written a program and being a newbie I dont know if this is good or >will give me problems in the future, so will appreciate it if you could just >have a look at the

Re: [PHP] FATAL call to undefined function pg_query()

2002-05-29 Thread Jason Wong
On Wednesday 29 May 2002 20:47, Steve G wrote: > I'm using 4.0.6. That would explain it... > > So how does one using 4.0.6 perform a query on a postgres database? I > think it's pg_exec. However, my manual is for the newest versions of PHP. > Is the syntax the same? Is there an older manual o

Re: [PHP] Parse Error(newbie)

2002-05-29 Thread Nick Wilson
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 * and then [EMAIL PROTECTED] declared > I get a parse error on this line > > $query = "SELECT * FROM news ORDER BY id DESC LIMIT 1"; > > I believe that it is an error in the SQL statement Nothing wrong with that. Let's have the whole error msg

Re: [PHP] Parse Error(newbie)

2002-05-29 Thread Stuart Dallas
[EMAIL PROTECTED] wrote: > $query = "SELECT * FROM news ORDER BY id DESC LIMIT 1"; > > I believe that it is an error in the SQL statement Nope, looks fine. Show us the previous few lines, the error is probably in those somewhere. -- Stuart -- PHP General Mailing List (http://www.php.net/) To

Re: [PHP] Parse Error(newbie)

2002-05-29 Thread 1LT John W. Holmes
Look for errors in the line above this one. PHP doesn't know what SQL is...it's just a string to PHP. ---John Holmes... - Original Message - From: [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, May 29, 2002 9:03 AM Subject: [PHP] Parse Error(newbie) I get a par

Re: [PHP] parse error in line??

2002-05-29 Thread RIVES Sergio
Hi all, I would say as Jason, and I would add a little remark also even if that doesn't seem to be the pb you have : if (($row = mysql_fetch_array($result)) && ($password==$row["password"]) && ($password ! = "")) I hope it helps SR Jason Wong a écrit : > On Wednesday 29 May 2002 19:17, Webby

[PHP] HTML Checkboxes and PHP variables

2002-05-29 Thread Brad Harriger
Are HTML Checkbox values handled the same way as Select Multiple tags? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Parse Error(newbie)

2002-05-29 Thread webmaster
I get a parse error on this line   $query = "SELECT * FROM news ORDER BY id DESC LIMIT 1";   I believe that it is an error in the SQL statement   Thanks in advance   JJ Harrison[EMAIL PROTECTED]www.tececo.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www

RE: [PHP] DNS-less Connections With PHP?

2002-05-29 Thread Ed Gorski
Yes you really need to indicate what version of php you are using, what server you are using and what db you are using if you ever need to ask for help. Go to www.php.net and read up on: SQL SERVER mssql_connect() MYSQL mysql_connect() MOST obdc_connect() ORACLE ora_plogon() ed At 06:45 A

RE: [PHP] PHP new super globals or something else??

2002-05-29 Thread Ed Gorski
Well you should be using $_GET, $_POST and $_SESSION and turn register-globlals off as of PHP 4.2.1.I think you need to keep track-vars on for these arrays to be initialized. ed At 10:48 AM 5/29/2002 +1000, Martin Towell wrote: >code snippets would be good, if possible > >-Original

Re: [PHP] .php extension

2002-05-29 Thread Ed Gorski
Yeah one of the simple tricks to mask that you use php is to make the extention that the PHP Parser looks for (ie name it page.foo) or whatever and have: AddType application/x-httpd-php .foo At 07:27 PM 5/28/2002 -0500, Miguel Cruz wrote: >On Tue, 28 May 2002, Luis Miguel N. Tavora wrote: > >

Re: [PHP] Thread safe

2002-05-29 Thread Ed Gorski
Yeah but if you get a higher load of users that can get REALLY uglyif it is strictly an update (editing of an already existing element) then locking that record should be fine but if it's an insert or delete you shouldn't lock the table. ed At 07:15 PM 5/28/2002 -0500, Miguel Cruz wrote:

Re: [PHP] FATAL call to undefined function pg_query()

2002-05-29 Thread Steve G
I'm using 4.0.6. That would explain it... So how does one using 4.0.6 perform a query on a postgres database? I think it's pg_exec. However, my manual is for the newest versions of PHP. Is the syntax the same? Is there an older manual out there? Thanks! That definitely answeres that questi

RE: [PHP] Intermediate "Searching..." screen.

2002-05-29 Thread Ed Gorski
Well if you just wanted to do a simple redirect like the one you describe just use meta tags in the If you use the method that Scott details (I would try to avoid that one though), create an HTML "Searching..." page with this meta tag. In the "searchPage.php" file have a redirect to anothe

Re: [PHP] PHP doubt

2002-05-29 Thread 1LT John W. Holmes
> // connected to the database successfully and running this query: > { > mysql_query.etc > $r=select max(cno)+1 from customer; > insert into customer values($r,'$name'); > } > print("Your customer number is: $r"); > > what do you think? And will this return the correct values if 2 people

Re: [PHP] Avoid escaping

2002-05-29 Thread Steve Buehler
http://www.php.net/manual/fi/function.stripslashes.php Steve At 11:36 AM 5/29/2002 +0200, you wrote: >i have some html that i submit using html >example > > Perro > > >When i submit this and retrieve it on the target page the value looks like >this: >Perro > >Can I somehow avoid that somehow

Re: [PHP] unsetting function

2002-05-29 Thread Steve Buehler
You might want to give an example of what you are trying to do or at least, why. I am not an expert (not by a long ways), but to me, the way your question is worded, I would have to sayOpen up the page in whatever editing program you want to use delete the function and put in a new functi

RE: [PHP] comment followed by ?> fails to parse

2002-05-29 Thread Jay Blanchard
[snip] ...lots of stuff from lots of messages... [/snip] If you need to display PHP code in an HTML page and have it validate properly you need to use the following; which will properly display as As a matter of course it is typical to use < (<) and > (>) along with a set of pre-form

[PHP] PHP doubt

2002-05-29 Thread r
Hey guys, I have written a program and being a newbie I dont know if this is good or will give me problems in the future, so will appreciate it if you could just have a look at the function and give me your "esteemed opinion" ;-) This is just a snip from the program...its pretty easy so your guru

RE: [PHP] DNS-less Connections With PHP?

2002-05-29 Thread Jay Blanchard
[snip] Could anybody explain to me (or even give me a link to a place explaining) the creation of "DSN-less" connections? I've extensivly searched Google with this, but I couldn't find anything that was of any help to me. I know how to do this in ASP, though... [/snip] PHP does not use the concep

Re: [PHP] parse error in line??

2002-05-29 Thread Jason Wong
On Wednesday 29 May 2002 19:17, Webby wrote: When starting a new topic please do not reply to an existing post. Start a new one. > **/ when i run this script it's say parse error in this line 'i don't what > is wrong with this line > if (($row = mysql_fetch_array($result)) && > ($passw

[PHP] php on *nix & Worldpay

2002-05-29 Thread Kevin Lowe
Hi, Has anyone interfaced to Worldpay using php running on Unix/Linux? Worlp pay have a COM interface but thsi is only avaliable if PHP is running under windows, so I was wondering if there is another way? Thanks, Kevin -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

[PHP] parse error in line??

2002-05-29 Thread Webby
%s\n",$message); } function authenticateUser($user, $password) { global $host, $httphost, $user_db, $password_db, $db, $docroot; if (! ($link = mysql_pconnect($host, $user_db, $password_db))) { DisplayErrMsg(sprintf("internal Error %d: %s \n"

RE: [PHP] comment followed by ?> fails to parse

2002-05-29 Thread Ford, Mike [LSS]
> -Original Message- > From: Ed Gorski [mailto:[EMAIL PROTECTED]] > Sent: 28 May 2002 21:53 > > No, if you use /* ? */ as a comment the parser will skip right over > it.if you want to use sample code in your script just use: > > /* > code here > ?> > */ > > that'll work fi

RE: [PHP] comment followed by ?> fails to parse

2002-05-29 Thread Ford, Mike [LSS]
> -Original Message- > From: Thalis A. Kalfigopoulos [mailto:[EMAIL PROTECTED]] > Sent: 28 May 2002 20:21 > > If I write a comment line with // and I include in it ?> then > it fails to parse the rest of the page because (i'm guessing) > the parser gets confused and goes off PHP mode.

RE: [PHP] easy date question?

2002-05-29 Thread Ford, Mike [LSS]
> -Original Message- > From: Ed Lazor [mailto:[EMAIL PROTECTED]] > Sent: 29 May 2002 01:49 > To: [EMAIL PROTECTED] > Subject: [PHP] easy date question? > > > How can I find out the date of the 3rd Tuesday of any given month? > > Thanks, To get a timestamp value: $third_tues = strt

Re: [PHP] if foreach

2002-05-29 Thread Nick Wilson
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 * and then Laurent Drouet declared > if > foreach ($conditions as $key=>$val) > > ($val==$summary["$key"]) >{ > statements to execute if the condition is right for all > $conditions >

[PHP] Nick please read this! You'll be surprised!! LOL!!

2002-05-29 Thread DragonPsyche2
Nick... this world of technology is very, very odd. I got really annoyed, and when I pressed the submit button as a test, I held it down for a few seconds, chanting "Work, dammit, work..." Lo and behold, it did... now it works everytime... god knows how.. Thank you so much for your input, I fe

RE: [PHP] Relative beginner in dire need of help! (Scratch my last message, sorry... )

2002-05-29 Thread David Freeman
> > Warning: Unable to create > > '../specialoffer_images/specoffpicone.jpg': Permission denied in > > > /home/virtual/loverskey/home/httpd/html/specialoffer_admin/sp > ecial_off > > ers_changed.php on line 45 > > The directories are permissiond correctly, and I've tried so many > Nop

[PHP] if foreach

2002-05-29 Thread Laurent Drouet
Hi ! I would like to know if somebody already done the following thing : I'm writing a function which accept 2 args : $conditions and $summary in my function I have to construct an if statement with these arg like : if foreach ($conditions as $key=>$val) ($val==$summary["$key"])

[PHP] Re: Input data for php program.

2002-05-29 Thread David Robley
In article <[EMAIL PROTECTED]>, [EMAIL PROTECTED] says... > Hi, > > I am designing a php program running in Linux, i would like to know can i > design a program by adding permeter after the file name? > > Just like the following, "adding.php" is the filename and "123" ,"456" is > the data which

[PHP] Re: Avoid escaping

2002-05-29 Thread David Robley
In article <[EMAIL PROTECTED]>, [EMAIL PROTECTED] says... > i have some html that i submit using html > example > > Perro > > > When i submit this and retrieve it on the target page the value looks like > this: > Perro > > Can I somehow avoid that somehow? Use stripslashes, or turn off m

[PHP] My old problem...

2002-05-29 Thread DragonPsyche2
Hhmmm... Now it doesn;t seem to find the page it's referring to, then upon refresh it removes all table entires... odd... and gives these errors: Warning: Unable to open '' for reading: No such file or directory in /home/virtual/loverskey/home/httpd/html/specialoffer_admin/special_offers_chan

RE: [PHP] Is there any substitute for header function?

2002-05-29 Thread Balaji Ankem
Hi, Yes Problem is there with the ID: Bug #15090 header("Location: $url") causes php.exe to generate an error Submitted: 17 Jan 5:21pm Modified: 18 Jan 11:54pm From: [EMAIL PROTECTED] Status: Closed Category: Reproducible crash Version: 4.0.6 OS: Windows 2000 Cheers Balaji -Original

[PHP] Input data for php program.

2002-05-29 Thread Sidney
Hi, I am designing a php program running in Linux, i would like to know can i design a program by adding permeter after the file name? Just like the following, "adding.php" is the filename and "123" ,"456" is the data which i want to input for the program? [root@localhost bin]# php adding.php 1

[PHP] Re: odd class/session/db behaviour

2002-05-29 Thread Nick Wilson
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 * and then Tim Ward declared > I'm not sure if this is your problem but are you closing the connection > anywhere in the script? Nope. thanks though... - -- Nick Wilson // www.explodingnet.com -BEGIN PGP SIGNATURE- Version: Gnu

[PHP] Avoid escaping

2002-05-29 Thread Jose Jeria
i have some html that i submit using html example Perro When i submit this and retrieve it on the target page the value looks like this: Perro Can I somehow avoid that somehow? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Re: php+oracle

2002-05-29 Thread Laurent Drouet
I don't know for Win2000 but for my NT box I had to put the file php_oci8.dll in the winnt directory like the php.ini. Laurent Drouet "Maurice

[PHP] Re: php+oracle

2002-05-29 Thread Maurice Kevenaar
Try to install the windows 2000 support tools and check width the Dependency Walker the file and ll see witch file is missing! -- Maurice "Mauricio" <[EMAIL PROTECTED]> schreef in bericht [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > Hi for all. > I have php+apache+win2000+client oracle in my

[PHP] unsetting function

2002-05-29 Thread Laurent Drouet
Hi the ML I would like to know if there is a way to unset a function or to replace function contents by an other ? Regards Laurent -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] RE: odd class/session/db behaviour

2002-05-29 Thread Tim Ward
I'm not sure if this is your problem but are you closing the connection anywhere in the script? e.g. function Fred() { $freddb = mysql_connect("servername","user","password"); mysql_close($freddb); } $db = mysqlconnect("servername","user","password"); Fred(); Mysql_query("select

RE: [PHP] 'ucfirst' function for text area strings?

2002-05-29 Thread Ford, Mike [LSS]
> -Original Message- > From: Andre Dubuc [mailto:[EMAIL PROTECTED]] > Sent: 28 May 2002 22:37 > > if > (eregi("<([^>]|\n)*>|//ims|onClick|onLoad| > onDblClick| > onDragStart|onKeyDown|onKeyPress|onKeyUp|onMouseDown|onMouseMove| > onMouseOut|MouseOver|SelectStart|Blur|Focus|Scroll|onMouse

Re: [PHP] Relative beginner in dire need of help! (Scratch my last message, s...

2002-05-29 Thread DragonPsyche2
In a message dated 5/29/02 5:09:12 AM Eastern Daylight Time, [EMAIL PROTECTED] writes: > Okay! I think I've got it. > Get into the dir and do 'chmod 777 *' I reckon you have permissions on > the dir but not on the imgs. Oh! Good man!! Why didn't I think of that? I'll give it a go... Of course

Re: [PHP] Relative beginner in dire need of help! (Scratch my last message, s...

2002-05-29 Thread Nick Wilson
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 * and then [EMAIL PROTECTED] declared > > 1. Does this image already exist in that dir? > > Yes it does - the script is supposed to overwrite any image in the dir, and > rename whatever you upload to a preset name, as far as I can see it. I've

Re: [PHP] Relative beginner in dire need of help! (Scratch my last message, s...

2002-05-29 Thread DragonPsyche2
In a message dated 5/29/02 4:53:22 AM Eastern Daylight Time, [EMAIL PROTECTED] writes: > 1. Does this image already exist in that dir? Yes it does - the script is supposed to overwrite any image in the dir, and rename whatever you upload to a preset name, as far as I can see it. I've tried

Re: [PHP] Relative beginner in dire need of help! (Scratch my last message, s...

2002-05-29 Thread Nick Wilson
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 * and then [EMAIL PROTECTED] declared > > H what is /inside/ that directory? > > Inside it? Right now, it holds three jpgs. There's no further files or dir > structure. Okay, 2 things then. 1. Does this image already exist in that di

<    1   2   3   >