[PHP] how to insert data in mysql

2002-11-10 Thread Karl James
Hello I was wondering if anyone had a good tutorial on how To insert data from a form I created to the managers Table in my database. Im using mysql and php for this?

[PHP] Re: upload whole direcotry using ftp functions

2002-11-10 Thread electroteque
was this an answer or a question ? "Akhil Kodali" <[EMAIL PROTECTED]> wrote in message news:Pine.LNX.4.44.0211091958120.10474-10@;gdit.iiit.net... > Hi, > > I there anyway to upload entire directory. > > -- > AKHIL K > 200101009 > Room No. 15 > BH-2 > IIIT > ---

[PHP] Create associative array from comments by preg

2002-11-10 Thread Alawi albaity
I have comments like that :

Re: [PHP] Re: upload whole direcotry using ftp functions

2002-11-10 Thread AKHIL KODALI
Its a question. I want to know if there is any method to upload a directory, If yes, then how. On Sun, 10 Nov 2002, electroteque wrote: > was this an answer or a question ? > > "Akhil Kodali" <[EMAIL PROTECTED]> wrote in message > news:Pine.LNX.4.44.0211091958120.10474-10@;gdit.iiit.net

Re: [PHP] Re: Function Problem

2002-11-10 Thread Ernest E Vogelsinger
At 08:16 10.11.2002, conbud said: [snip] >also I have the function wrong in my original question I have it as >function db_conn($host,$user,$pass,$dab) >{ >$db = mysql_connect("$host", "$user","$pass" >mysql_select_db("$dab",$db); >} > >and not >function db_c

Re: [PHP] how to insert data in mysql

2002-11-10 Thread Justin French
Start by reading all the pages in this section: http://www.php.net/manual/en/tutorial.php Particularly the forms one. Now you should know heaps about PHP, variables, forms, etc etc. Now you need to insert that data into mysql through a PHP script. There are hundreds of tutorials on this... Ke

Re: [PHP] Re: upload whole direcotry using ftp functions

2002-11-10 Thread Justin French
>From the browser window, I believe you can only upload individual files to the server... you can do multiples at once, but you can't (IMHO) upload an entire directory off your desktop THROUGH your browser, to the server. You could .zip, .tar or .sit a folder of course, but then you'd have to unco

Re: [PHP] set_error_handler() Keeps Triggering Errors

2002-11-10 Thread Ernest E Vogelsinger
At 06:34 10.11.2002, Monty said: [snip] >When I use set_error_handler('error_function') in my scripts, errors are >constantly being triggered that I've never seen before. If I comment the >handler function out, the errors go away. I have the error reporting s

Re: [PHP] converting decimal to fraction and vice versa

2002-11-10 Thread Ernest E Vogelsinger
At 05:45 10.11.2002, Michael P. Carel said: [snip] >is there any way to convert decimal numbers to fraction and fraction to >decimal format. i need to convert the inputed fractional value in the field >before inserting it to the mysql database, such us 1/2

Re: [PHP] how to insert data in mysql

2002-11-10 Thread elybis
> Hello hello > > I was wondering if anyone had a good tutorial on how > To insert data from a form I created to the managers > Table in my database. > > Im using mysql and php for this? check out http://www.hotscripts.com/PHP/Tips_and_Tutorials/Database-Related/ there are some good and

[PHP] Unique Identifier String

2002-11-10 Thread Sebastian A.
I am currently working on a mySQL site administration system and I need help on figuring out how I can create a 24 digit letter/number unique identifier string. I know that I can easily get a random number using a PHP function (I can remember it off the top of my head) but I also need to create ran

Re: [PHP] Unique Identifier String

2002-11-10 Thread @ Edwin
Hello, "Sebastian A." <[EMAIL PROTECTED]> wrote: > I am currently working on a mySQL site administration system and I need help > on figuring out how I can create a 24 digit letter/number unique identifier > string. I know that I can easily get a random number using a PHP function (I > can rememb

[PHP] MsWord html

2002-11-10 Thread Steel
Hi php-windows, Does anybody knows, what regexp can help me remove almost all M$ Word2000 HTML tags and styles? Let the Force Be with Yo! ;) -- The Same, Steel mailto:asergey@;inbox.ru http://www.none.ru -- PHP General Mailing Lis

Re: [PHP] php5 features?

2002-11-10 Thread electroteque
well i read somewhere that the zend 2 engine was coming out in 4.3 which had proper OO capabilities including public and private and maybe even error exeption handlers but doesnt look good might have to wait a little longer in the mean time i'm starting to get my head around tomcat .. "Maxim Malet

Re: [PHP] Unique Identifier String

2002-11-10 Thread @ Edwin
And btw, you might want to check "User Contributed Notes" dated 04-Nov-2002 @ http://www.php.net/manual/en/function.rand.php Perhaps you can just add some if...else and you can have the 12-random-digit-12-random-letter-string that you're looking for. HTH, - E -- PHP General Mailing List (ht

Re: [PHP] MsWord html

2002-11-10 Thread @ Edwin
Hello, "Steel" <[EMAIL PROTECTED]> wrote: > Hi php-windows, Wrong list :) > Does anybody knows, what regexp can help me remove almost all > M$ Word2000 HTML tags and styles? Perhaps, you can try this class instead: http://phpclasses.optip.com/browse.html/package/277.html ('Haven't use it t

Re: [PHP] how to insert data in mysql

2002-11-10 Thread @ Edwin
Hello, "Karl James" <[EMAIL PROTECTED]> wrote: > Hello > > I was wondering if anyone had a good tutorial on how > To insert data from a form I created to the managers > Table in my database. > > Im using mysql and php for this? > I googled for "how to insert data in mysql" and I found th

[PHP] enable CLI

2002-11-10 Thread Pierre Vaudrey
I'm running PHP4 on Mac OS 10.2.1 using Marc Liyanage's binaries compiled with --disable-cli option .Is there any possibility to install an extension to enable CLI ? Thanks for your help . Pierre Vaudrey email [EMAIL PROTECTED]

[PHP] attachement

2002-11-10 Thread Oliver Witt
Hi, I wrote a php script that's supposed to enable me to attach files to an email. However, the attached files ends up being a mess of letters. "Hallo" becomes "SGFsbG8=". That must have to do with encoding. Is that a common problem or do you need the entire script? Thanks, Olli -- PHP General M

Re: [PHP] attachement

2002-11-10 Thread Rick Emery
Here is a PHP mail class that handles multiple attachments and several other functions: mailbody("This is simply text","This is HTML text"); * $m->attach("example.html","text/html",$filebody); * $m->attachFile("resume.gif","image/gif"); * $m->send(); * NOTE: if your system have chunk_split functio

Re: [PHP] attachement

2002-11-10 Thread Ernest E Vogelsinger
At 14:31 10.11.2002, Oliver Witt said: [snip] >I wrote a php script that's supposed to enable me to attach files to an >email. However, the attached files ends up being a mess of letters. >"Hallo" becomes "SGFsbG8=". That must have to do with encoding. Is tha

php-general Digest 10 Nov 2002 14:13:49 -0000 Issue 1696

2002-11-10 Thread php-general-digest-help
php-general Digest 10 Nov 2002 14:13:49 - Issue 1696 Topics (messages 123642 through 123686): Re: HTML forms & php 4.2.3 - how to get cvs fix applied 123642 by: Paul Nicholson Re: Errors and Logging Configuration Options: docref-root 123643 by: Paul Nicholson Re: Need MENTO

Re: [PHP] attachement

2002-11-10 Thread Oliver Witt
Ernest E Vogelsinger schrieb: > In your mail headers, you should see some MIME like > > Content-Type: multipart/alternative; > boundary=GU4wuTSk68F > > ("alternative" could also read "related" - depends on the content, the > "multipart" is the point here) > > which would te

Re: [PHP] Questions on PHP Variables

2002-11-10 Thread Ray Seals
> The fact that tutorials are outdated & using old code is not a good reason > to stick with it :) I agree totally. So I'm trying to use the $_Server variables but I continue to get this error: Parse error: parse error, expecting 'T_STRNG' or 'T_VARIABLE' or 'T_NUM_STRING' in on line 33. Here

Re: [PHP] Questions on PHP Variables

2002-11-10 Thread Rasmus Lerdorf
Don't use quotes around the array index inside a quoted string. -Rasmus On 10 Nov 2002, Ray Seals wrote: > > The fact that tutorials are outdated & using old code is not a good reason > > to stick with it :) > > I agree totally. > > So I'm trying to use the $_Server variables but I continue to g

Re: [PHP] Questions on PHP Variables

2002-11-10 Thread Leif K-Brooks
Uh, no. That makes it think it's a constant, which generates a notice. Rasmus Lerdorf wrote: Don't use quotes around the array index inside a quoted string. -Rasmus On 10 Nov 2002, Ray Seals wrote: The fact that tutorials are outdated & using old code is not a good reason to stick with it

Re: [PHP] attachement

2002-11-10 Thread Ernest E Vogelsinger
At 15:27 10.11.2002, Oliver Witt said: [snip] >I had it set like this: > >$fp = fopen($file, "r"); >$contents = fread($fp, $file_size); >$encoded_file = chunk_split(base64_encode($contents)); >fclose($fp); > > ... > >$body.= "\n\n--Message-Boundary\n"; >$body

Re: [PHP] attachement

2002-11-10 Thread Oliver Witt
Ernest E Vogelsinger schrieb: > At 15:27 10.11.2002, Oliver Witt said: > [snip] > >I had it set like this: > > > >$fp = fopen($file, "r"); > >$contents = fread($fp, $file_size); > >$encoded_file = chunk_split(base64_encode($contents)); > >fclose($fp); > > >

Re: [PHP] Questions on PHP Variables

2002-11-10 Thread Ernest E Vogelsinger
At 15:28 10.11.2002, Ray Seals said: [snip] >Parse error: parse error, expecting 'T_STRNG' or 'T_VARIABLE' or >'T_NUM_STRING' in on line 33. > >Here is the script that is doing this: > > [...] > >$sql = "SELECT * >FROM users >

[PHP] Strange ....Date problem

2002-11-10 Thread Dhaval Desai
Hi! If you try this in php: 2002-01-6 > 2002-01-10 returns true 2002-01-6 > 2002-01-9 returns false Jut a leading 0 in the date makes it false...this is really strange.. Any comments? _ Add photos to your messages with MSN 8.

[PHP] PHP installation _ help needed

2002-11-10 Thread Bob G
Hi people! I have MySQL working with ASP under win2000 and IIS. I have recently tried unsuccessfully to install PHP. Initially I started with zip binary distribution. I tested it with:- PHP Test "; ?> Couldn't be much simpler! Nothing worked but "view source" showed the above code. Th

[PHP] Online Booking System/Framework question

2002-11-10 Thread Steve Purkiss
Hi all, I wrote a site a while back which has a booking system for event guest lists. It was my first venture into PHP, and now that it needs some more work done on it (mainly making the site more open so people don't have to sign up until they book on the guest list) I really want to rework the

Re: [PHP] Strange ....Date problem

2002-11-10 Thread Marco Tabini
I think you should convert them to dates--otherwise the server compares them as strings. Marco -- php|architect - The magazine for PHP Professionals The first monthly worldwide magazine dedicated to PHP programmers Check us out on the web at http://www.phparch.com On Sun, 2002-11

Re: [PHP] Questions on PHP Variables

2002-11-10 Thread Rasmus Lerdorf
Uh, no. Your problem is obvious: $sql = "SELECT * FROM users WHERE username='$_SERVER["PHP_AUTH_USER"]' and password='$_SERVER["PHP_AUTH_PW"]'"; You have double-quotes inside a double-quoted string. Like I said, don't use quotes around the array index inside

Re: [PHP] set_error_handler() Keeps Triggering Errors

2002-11-10 Thread Monty
Hi Earnest. I found these user notes in the PHP manual, but, it's confusing and seems to be a bit contradictory: -[snip]- error_reporting() has no effect if you have defined your own error handler with set_error_handler() [Editor's Note: This is not quite accurate. E_ERROR, E_PARSE, E_C

[PHP] Replacing X-Powered-By header?

2002-11-10 Thread Leif K-Brooks
I'm trying to replace the X-Powered-By header out of security concerns. I know it can't really hurt - just me being paranoid. Anyway, I'm using: header("X-Powered-By: somethingthatisntphp",true); But it has 2 headers. Is there any way to do this? -- The above message is encrypted with double

Re: [PHP] Replacing X-Powered-By header?

2002-11-10 Thread Rasmus Lerdorf
See the expose_php php.ini directive. On Sun, 10 Nov 2002, Leif K-Brooks wrote: > I'm trying to replace the X-Powered-By header out of security concerns. > I know it can't really hurt - just me being paranoid. Anyway, I'm using: > > header("X-Powered-By: somethingthatisntphp",true); > > But it

[PHP] Performance through the 4.x-series

2002-11-10 Thread Thomas Seifert
Hi there, did anyone do any Performance measurement through the php4.x-series? I've heard that the performance decreased from 4.0.x to 4.1.x to 4.2.x ... ? Are there any numbers or benchmarks for this? Thanks in advance, Thomas -- PHP General Mailing List (http://www.php.net/) To unsubscrib

[PHP] An interesting (at least I think) test

2002-11-10 Thread Marco Tabini
Hey all, I was playing around this morning with a little test to decide whether string substitution is faster or slower than concatenation. I figured that, since printing variable values is one of the most common actions in a script finding which method is best would be important. I've been suspect

Re: [PHP] Performance through the 4.x-series

2002-11-10 Thread Rasmus Lerdorf
You have heard? There have been a number of performance improvements in many different areas of php actually. -Rasmus On Sun, 10 Nov 2002, Thomas Seifert wrote: > Hi there, > > did anyone do any Performance measurement through the php4.x-series? > > I've heard that the performance decreased fro

[PHP] 2 questions about PHP download

2002-11-10 Thread SED
Is it possible to use the PHP-extentions for Apahce with the PHP for the CGI version, while the version number matches? What is the md5-hash beneath the download for? Regards, Sumarlidi E. Dadason SED - Graphic Design _ Tel: 896-0376, 461-5501 E-mail: [EMAIL PROT

Re: [PHP] 2 questions about PHP download

2002-11-10 Thread Rasmus Lerdorf
> Is it possible to use the PHP-extentions for Apahce with the PHP for the > CGI version, while the version number matches? Yes > What is the md5-hash beneath the download for? To verify that the file you download (from a mirror, for example) matches the official tarball from www.php.net and has

Re: [PHP] Strange ....Date problem

2002-11-10 Thread Rasmus Lerdorf
Why is it strange? By default strings are sorted alphabetically. 6 > 10 when sorted alphabetically. Convert your strings to numbers in some logical manner and compare numbers or easier, use strnatcmp() to compare the strings directly using a natural alphanumeric comparison. -Rasmus On Sun, 10

Re: [PHP] attachement

2002-11-10 Thread Jonathan Sharp
see http://phpmailer.sourceforge.net -js Oliver Witt wrote: > Hi, > I wrote a php script that's supposed to enable me to attach files to an > email. However, the attached files ends up being a mess of letters. > "Hallo" becomes "SGFsbG8=". That must have to do with encoding. Is that > a common p

Re: [PHP] Create associative array from comments by preg

2002-11-10 Thread Jonathan Sharp
Here's the code... -js $string = << value 1

Re: [PHP] Most current non-beta version, and bcc

2002-11-10 Thread Jill S
Thanks to everyone who kindly responded with their views regarding whether or not PHP v.4.2.3. is a "beta" version or not a "beta" version. Because the opinions offered were so adamant and so contradictory, I contacted Zend. I just received the reply (below)... Hi Jill, Nice talking with y

Re: [PHP] Most current non-beta version, and bcc

2002-11-10 Thread Rasmus Lerdorf
Who in the world told you that 4.2.3 was beta? On Sun, 10 Nov 2002, Jill S wrote: > Thanks to everyone who kindly responded with > their views regarding whether or not PHP v.4.2.3. > is a "beta" version or not a "beta" version. > > Because the opinions offered were so adamant and > so contradicto

Re: [PHP] An interesting (at least I think) test

2002-11-10 Thread Maxim Maletsky
I think you shouldn't be care much about it as I would call it with one word - paranoia. I have made these tests long ago and some are even present on www.phpbeginner.com. Basically double quotes with one or two variables in it is faster. Then goes concatenation via single quotes and dot. But, th

[PHP] fs functions & unicode

2002-11-10 Thread Carlos
Php file system functions seem to hate unicode paths or filenames. I was working on generic download script and it works fine for regular ascii(?) files but when i tried a unicode-named file it failed. $file1 = c:\blah\I've Sound [Air] $BD;$N;m(B(Lia).mp3 $file2 = c:\blah\bleh.mp3 readfile, fop

[PHP] enable CLI

2002-11-10 Thread Pierre Vaudrey
I'm running PHP4 on Mac OS 10.2.1 using Marc Liyanage's binaries compiled with --disable-cli option .Is there any possibility to install an extension to enable CLI ? Thanks for your help . Pierre Vaudrey email [EMAIL PROTECTED]

[PHP] Re: attachement

2002-11-10 Thread Manuel Lemos
Hello, On 11/10/2002 11:31 AM, Oliver Witt wrote: Hi, I wrote a php script that's supposed to enable me to attach files to an email. However, the attached files ends up being a mess of letters. "Hallo" becomes "SGFsbG8=". That must have to do with encoding. Is that a common problem or do you need

Re: [PHP] Performance through the 4.x-series

2002-11-10 Thread Thomas Seifert
Sorry, yeah I've heard and I cannot prove it, therefore I ask. I didn't want to troll or similar, just curious about it. Are there any benchmarks through the different versions with a common-app or similar available? Regards, Thomas On Sun, 10 Nov 2002 08:08:04 -0800 (PST) Rasmus Lerdorf <[EMA

Re: [PHP] An interesting (at least I think) test

2002-11-10 Thread Marco Tabini
> > I have made these tests long ago and some are even present on > www.phpbeginner.com. Basically double quotes with one or two variables > in it is faster. Then goes concatenation via single quotes and dot. But, > the fastest of all is actually inline php (when you leave php with ?> > and return

Re: [PHP] Performance through the 4.x-series

2002-11-10 Thread Rasmus Lerdorf
Not that I know of. On Sun, 10 Nov 2002, Thomas Seifert wrote: > Sorry, yeah I've heard and I cannot prove it, therefore I ask. > I didn't want to troll or similar, just curious about it. > > Are there any benchmarks through the different versions with a common-app > or similar available? > > > R

Re: [PHP] set_error_handler() Keeps Triggering Errors

2002-11-10 Thread Michael Sims
On Sun, 10 Nov 2002 10:48:46 -0500, you wrote: >Hi Earnest. I found these user notes in the PHP manual, but, it's confusing >and seems to be a bit contradictory: It's simple: A user defined error handler cannot handle parse errors or compile time errors. That makes sense to me...if your script

[PHP] PHP's mail() function doesn't work on my server

2002-11-10 Thread unknown
I have sendmail installed and the path to it in the php.ini is correct, when i try a file just containing the mail() function (no errors in that!) it starts sendmail but nothing gets sent! root 22508 0.0 0.2 3556 1520 pts/2S20:09 0:00 php test.php smmsp22509 0.0 0.2 3416

[PHP] Global variables question

2002-11-10 Thread Mathieu Dumoulin
Hi, i got this project i'm building right now. It basically a core system to do adminsitrative modules for web sites. I got tons of classes that get created on call of a function like sql_setup(), frm_setup(). These functions create the objects from the classes so they can be used later in other o

Re: [PHP] Re: upload whole direcotry using ftp functions

2002-11-10 Thread electroteque
i seriously dont get it how are you suppose to use the ftp functions if the only way is via the browser uploader which goes to the server first anyway ?? "Justin French" <[EMAIL PROTECTED]> wrote in message news:B9F47504.16CA2%justin@;indent.com.au... > From the browser window, I believe you can o

Re: [PHP] enable CLI

2002-11-10 Thread Pierre Vaudrey
Le dimanche, 10 nov 2002, à 12:24 Europe/Paris, .: B i g D o g :. a écrit : The best way to enable cli is to re-configure php without apache and everything else you want. You mean 2 PHP implementation : one for Apache(existing) and a new one standalone ? I like to add --bindir to the configu

[PHP] Would appreciate thoughts on session management

2002-11-10 Thread Charles Wiltgen
Hello, I'm about to implement session management, and I'm considering rolling my own instead of using PHP's. Specifically, I'm considering using hidden fields for persistent object properties because (1) I don't want cookies to be an issue, (2) I prefer not to have session IDs appear in a URL, an

Re: [PHP] Online Booking System/Framework question

2002-11-10 Thread olinux
Lots of good ideas here: http://www.databaseanswers.com/data_models/index.htm olinux --- Steve Purkiss <[EMAIL PROTECTED]> wrote: > Hi all, > > I wrote a site a while back which has a booking > system for event guest > lists. It was my first venture into PHP, and now > that it needs some more >

Re: [PHP] Would appreciate thoughts on session management

2002-11-10 Thread Justin French
on 11/11/02 7:41 AM, Charles Wiltgen ([EMAIL PROTECTED]) wrote: > Are there drawbacks to storing persistent object properties as a serialized > value in hidden fields that I'm missing? This is a newbie's first major web > application, so I really appreciate your input. Doesn't that mean you'd h

[PHP] Fw: esayphp

2002-11-10 Thread Iguider
Hi I have installed esayphp v 1.4.0.0 on my pc (windows 98) . How can I know the version of PHP and of mysql ? Thanks

Re: [PHP] Fw: esayphp

2002-11-10 Thread Maxim Maletsky
-- Maxim Maletsky [EMAIL PROTECTED] On Sun, 10 Nov 2002 22:42:59 - "Iguider" <[EMAIL PROTECTED]> wrote: > > > Hi > I have installed esayphp v 1.4.0.0 on my pc (windows 98) . How can I know the >version of PHP and of mysql ? > > Thanks -- PHP General Mailing List (http://www.php.n

Re: [PHP] Fw: esayphp

2002-11-10 Thread Iguider
thanks a lot - Original Message - From: "Maxim Maletsky" <[EMAIL PROTECTED]> To: "Iguider" <[EMAIL PROTECTED]> Cc: <[EMAIL PROTECTED]> Sent: Sunday, November 10, 2002 10:48 PM Subject: Re: [PHP] Fw: esayphp > > > > -- > Maxim Maletsky > [EMAIL PROTECTED] > > > On Sun, 10 Nov 2002 22:42:

[PHP] mysql DECODE question

2002-11-10 Thread Donahue Ben
SELECT DECODE(ENCODE('password', 'sec'), 'sec') -> password When I try: SELECT DECODE(ENCODE('password', 'sec'), 'SUBSTRING("secret",1,3)'); or without quotes around SUBSTRING function This does not produce the same output, i am not sure what the problem is. Ben

Re: [PHP] Global variables question

2002-11-10 Thread Ernest E Vogelsinger
At 21:49 10.11.2002, Mathieu Dumoulin said: [snip] >Hi, i got this project i'm building right now. It basically a core system to >do adminsitrative modules for web sites. > >I got tons of classes that get created on call of a function like >sql_setup(), frm_s

Re: [PHP] Would appreciate thoughts on session management

2002-11-10 Thread Ernest E Vogelsinger
At 22:41 10.11.2002, Charles Wiltgen said: [snip] >I'm about to implement session management, and I'm considering rolling my >own instead of using PHP's. Hmm - NIH syndrome? (>>not invented here<<) >Specifically, I'm considering using hidden fields for pers

Re: [PHP] Would appreciate thoughts on session management

2002-11-10 Thread Charles Wiltgen
Justin wrote... > ...every link across your site has to be a form submit. Yuk!!! Yeah, yuk. I'm very silly and didn't realize this until after I'd posted. It's possible since links will be generated automatically, but yuk. Ernest wrote... > Hmm - NIH syndrome? > (>>not invented here<<) No, I

[PHP] How good is PHP to ASP?

2002-11-10 Thread Wee Keat [Amorphosium]
Hi all, I'm not too sure if this is the right place to get my answers but I really need to know this: How can I convince my clients that PHP is really good? I mean not a lot of non-programmers have heard of PHP language. Most of them only heard of things like C/C++, ASP and the like. So, h

RE: [PHP] How good is PHP to ASP?

2002-11-10 Thread John Meyer
First off, I wouldn't go comparing one language to another as "better" (a jihad has broken out on another list between Perl and PHP, substituting belief for anything remotely resembling a civilized and intelligent discussion), but if you want to convince them about the merits of PHP, look up the ne

[PHP] missing Parser Error ?

2002-11-10 Thread Hatem Ben
why PHP don't return a parse error here ? case "browse" : $text = $myobject->browse();;; // some codes ... break; i guess syntax isn't correct or what do you think ?! Best regards Hatem -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: h

Re: [PHP] missing Parser Error ?

2002-11-10 Thread Ernest E Vogelsinger
At 02:51 11.11.2002, Hatem Ben said: [snip] >why PHP don't return a parse error here ? > > > case "browse" : > $text = $myobject->browse();;; >// some codes ... > break; > > > >i guess syntax isn't correct or what do you think ?! --

RE: [PHP] How good is PHP to ASP?

2002-11-10 Thread Khalid El-Kary
oh man you missed a great opportunity, through the last few days some one posted a message saying "convince the boss" containing a list of well-known websites running PHP, go check the list archive it will be available there _

php-general Digest 11 Nov 2002 02:14:57 -0000 Issue 1697

2002-11-10 Thread php-general-digest-help
php-general Digest 11 Nov 2002 02:14:57 - Issue 1697 Topics (messages 123687 through 123738): Re: attachement 123687 by: Oliver Witt 123691 by: Ernest E Vogelsinger 123692 by: Oliver Witt 123708 by: Jonathan Sharp 123715 by: Manuel Lemos Re: Questions

RE: [PHP] How good is PHP to ASP?

2002-11-10 Thread Brendon G
I've noticed this question a fair bit, having to convince clients and employers of a technology.. DO you guys really have that much trouble selling php?? I tend to leave the development environment out of conversations all together and talk product features, scalability, promotion etc I do this

[PHP] Submit hitting enter problem

2002-11-10 Thread rija
What am I missing? My form does not submit when I hit enter in the text box. I do something approximately like this : ... // Thanks in advance.

Re: [PHP] mysql DECODE question

2002-11-10 Thread rija
SELECT DECODE(ENCODE('password', 'sec'), SUBSTRING("secret",1,3)); if you put quotes around substring function, mysql considere it as a string, so I think you shouldn't. After, are you sure that the correct table field name is the weirdthing encoded by this function : ENCODE('password', 'sec') ???

Re: [PHP] How good is PHP to ASP?

2002-11-10 Thread Marco Tabini
You can also tell them that some 10 million websites run PHP, including the most popular one--Yahoo!. Marco -- php|architect - The magazine for PHP Professionals The first monthly worldwide magazine dedicated to PHP programmers Check us out on the web at http://www.phparch.com On

Re: [PHP] How good is PHP to ASP?

2002-11-10 Thread Jason Sheets
Search google.com for PHP case studies, also http://www.zend.com/links/links.php has a few links to sites about PHP vs. ASP. You might also enlighten them about the differences of open source and Microsoft licensing. Bottom line is if you have to make a product something it isn't to sell a client

Re: [PHP] Submit hitting enter problem

2002-11-10 Thread Justin French
on 11/11/02 12:44 PM, rija ([EMAIL PROTECTED]) wrote: > I think you need to use a if you wish for the returns to be submitted. Cheers Justin French Creative Director http://Indent.com.au Web Developent & Graphic Design -- PHP General Mailing List

Re: [PHP] Submit hitting enter problem

2002-11-10 Thread rija
Thanks for your quick answer, But it doesn't change anything. change my text box into big text area- So I always have to click on submit button to submit the form. - Original Message - From: "Justin French" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]>; "php" <[EMAIL PROTECTED]> Sent:

Re: [PHP] Submit hitting enter problem

2002-11-10 Thread Jason Sheets
Return key presses in a will usually be converted into a newline (\n). Making your browser submit the form when you press enter is an HTML/Browser issue. You probably should look at a javascript solution because this is a client side problem. Jason On Sun, 2002-11-10 at 21:16, rija wrote: >

[PHP] tag

2002-11-10 Thread John Meyer
I'm doing some PHP work, and I've come across the tag. What, exactly, is this? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Submit hitting enter problem

2002-11-10 Thread Justin French
on 11/11/02 2:16 PM, rija ([EMAIL PROTECTED]) wrote: > Thanks for your quick answer, > > But it doesn't change anything. > change my text box into big text area- > > So I always have to click on submit button to submit the form. Actually, I miss-read your question... do you WANT the form to be

RE: [PHP] Submit hitting enter problem

2002-11-10 Thread John W. Holmes
> Thanks for your quick answer, > > But it doesn't change anything. > change my text box into big text area- > > So I always have to click on submit button to submit the form. So? This doesn't have anything to do with PHP, it's dependant on the browser you are using. IE will do this for you som

RE: [PHP] tag

2002-11-10 Thread John W. Holmes
> I'm doing some PHP work, and I've come across the tag. What, > exactly, > is this? It is probably just a typo for an tag. It's nothing that PHP would create on its own. ---John Holmes... -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Submit hitting enter problem

2002-11-10 Thread Jason Wong
On Monday 11 November 2002 10:44, rija wrote: > What am I missing? > > My form does not submit when I hit enter in the text box. > I do something approximately like this : > > > > > ... > > What happens when ENTER is pressed depends on what browser you're using. Different browsers exhibit

RE: [PHP] tag

2002-11-10 Thread John Meyer
Actually, it's a product of Microsoft Frontpage that a client sent me. -Original Message- From: John W. Holmes [mailto:holmes072000@;charter.net] Sent: Sunday, November 10, 2002 9:33 PM To: 'John Meyer'; [EMAIL PROTECTED] Subject: RE: [PHP] tag > I'm doing some PHP work, and I've come a

RE: [PHP] Unique Identifier String

2002-11-10 Thread John W. Holmes
What if you create an array of all the letters and numbers, then shuffle that array, implode it into a string and grab the first 24 characters? It should be fairly random, but not guaranteed unique. ---John Holmes... > -Original Message- > From: @ Edwin [mailto:copperwalls@;hotmail.com]

[PHP] isset doesn't like "->"?

2002-11-10 Thread UberGoober
I don't know if this is a bug, or what, but I get an error when trying the following if ( isset($adodbobject->Fields('myresult') ) ) { // do something } PHP throws an error ( not warning ) saying: Parse error: parse error, expecting `','' or `')'' in /path/to/index.php on line 45 However, when I

RE: [PHP] tag

2002-11-10 Thread John W. Holmes
H Frontpage creating bad code? ... say it ain't so! ---John Holmes... > -Original Message- > From: John Meyer [mailto:johnmeyer_1978@;yahoo.com] > Sent: Sunday, November 10, 2002 11:34 PM > To: [EMAIL PROTECTED] > Subject: RE: [PHP] tag > > > Actually, it's a product of Microso

RE: [PHP] Php | Architect Magazine?

2002-11-10 Thread John W. Holmes
> Has anyone taken a look at this magazine yet (www.phparch.com)? I came > across mention of it on Slashdot earlier today and it looks interesting. > I > am considering subscribing but wouldn't mind some feedback about the > overall quality of the publication beforehand. > > Nick Oostveen It's ne

RE: [PHP] confusion in session vars

2002-11-10 Thread John W. Holmes
> did any one face a prob when session vars get mixed from a website to > another when you use the same browser window ? No, did you? ---John Holmes... -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] Handling Errors Gracefully

2002-11-10 Thread John W. Holmes
Well, if you rule out ob_* and javascript, the best you can probably do is to just include() your error page or write a function to display it. You won't be redirected to the page, but it'll show up. ---John Holmes... > -Original Message- > From: Monty [mailto:monty3@;hotmail.com] > Sent:

RE: [PHP] isset doesn't like "->"?

2002-11-10 Thread John W. Holmes
> I don't know if this is a bug, or what, but I get an error when trying the > following > > if ( isset($adodbobject->Fields('myresult') ) ) { // do something } > > PHP throws an error ( not warning ) saying: > Parse error: parse error, expecting `','' or `')'' in /path/to/index.php > on > line 45

Re: [PHP] isset doesn't like "->"?

2002-11-10 Thread UberGoober
> That's because isset() is expecting a variable, not a function. In your > first example, you're trying to see if a function is set, not a > variable. In your second example, you're doing it right... > > ---John Holmes... That actually makes sense once I thought about it, a function referencing

[PHP] Mcrypt under Win32?

2002-11-10 Thread Nick Richardson
Anyone out there know how to get the mcrypt functions running under Win32? Any help / how-to's / URLs will be greatly appreciated. - I have searched around the web and found a few things, but nothing that really gives any good information Thanks in advance for the help!!! //Nick Richardson //

RE: [PHP] tag

2002-11-10 Thread @ Darwin
Perhaps it has something to do with XML? A new coding scheme perhaps? Or perhaps a typo from XHTML-like syntax, which requires coding like , etc. with the trailing forward slash inside the tag. It could be that Microsoft has developed a new coding scheme using XML which has its own DTD or XML Schem

Re: [PHP] Re: Request entity too large (already seen the FAQ)

2002-11-10 Thread Charles Wiltgen
John W. Holmes wrote... > But, thank you for posting the solution you did eventually find. That will be > of assistance if anyone ever searches the archives before posting... > > Hey, I can dream, can't I?? I personally think more people would do that if something like... Ask your worst, bu

  1   2   >