[PHP] Domain Security Restrictions

2002-11-10 Thread Nick Oostveen
Our company is currently running a server which is responsible for hosting numerous domains. As a web development firm, traditionally our server has been set up so that only our developers have access to run scripts on it. Recently some of our clients have been looking for FTP access to their

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

2002-11-10 Thread @ Edwin
Yes, I think it's a good idea to emphasize "licensing" ($$). (B (BAlso, "portability" might be another thing to mention. (With little or no (Bchanges, you're apps could run on different platforms, etc.) (B (B- E (B (BPS (BDoes anybody have any tips on how to run IIS/ASP/MSSQL server on a Z

Re: [PHP] Submit hitting enter problem

2002-11-10 Thread @ Edwin
Hello, "Charles Wiltgen" <[EMAIL PROTECTED]> wrote: > David Rice wrote... > > > It's not "mandatory" to put quotes around attributes, but it would be wise to > > use this style="recommended" method of representing attributes, if for no > > reason="other" than to get used to a habit="good". > > It

Re: [PHP] Unique Identifier String

2002-11-10 Thread @ Edwin
Hello, "John W. Holmes" <[EMAIL PROTECTED]> wrote: > 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. ...but just grabbing the first 24 chars

Re: [PHP] tag

2002-11-10 Thread @ Edwin
"John Meyer" <[EMAIL PROTECTED]> wrote: > I'm doing some PHP work, and I've come across the tag. What, exactly, > is this? Could be a new tag--M$ Frontpage style :) Anyway, what does it do? It may not even be a "tag"--perhaps a secret code... - E -- PHP General Mailing List (http://www.ph

Re: [PHP] Submit hitting enter problem

2002-11-10 Thread Charles Wiltgen
David Rice wrote... > It's not "mandatory" to put quotes around attributes, but it would be wise to > use this style="recommended" method of representing attributes, if for no > reason="other" than to get used to a habit="good". It is mandatory for XHTML, I believe. -- Charles Wiltgen -- PHP

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

2002-11-10 Thread Michael Sims
On Sun, 10 Nov 2002 18:34:52 -0600, you wrote: >PS: what is the proper term for the "->" syntax? pointer? In Perl it's called an infix operator. I think in PHP the technical term for it is that "->" thingy... :-) -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://ww

RE: [PHP] Restrict file access from web users?

2002-11-10 Thread James Taylor
Thank you sir, problem solved :) -Original Message- From: Justin French [mailto:justin@;indent.com.au] Sent: Sunday, November 10, 2002 11:21 PM To: James Taylor; [EMAIL PROTECTED] Subject: Re: [PHP] Restrict file access from web users? You still need to restrict the files from being serv

Re: [PHP] date comparison

2002-11-10 Thread Justin French
Is it too late to change the way you insert dates into the DB? I really think the unix timestamp is the easiest way to store dates... comparisons are easy, because everything is in seconds, and using date() gives you the ability to re-format your dates over and over again for presentation purposes

RE: [PHP] date comparison

2002-11-10 Thread John W. Holmes
> I have a problem here again regarding the date comparison. I need to > check the most recent date that was entered in mysql database in date > format ("Y-m-d"), if the datetoday is a day or two days in advanced > compared to the queried date. > I need to make sure that the next inserted date in

Re: [PHP] Restrict file access from web users?

2002-11-10 Thread Justin French
You still need to restrict the files from being served directly over http... this can be done via a .htaccess, or just stored outside the document root. Then, you create a script called download.php, which INSN'T a html page -- it sets a content header, and passes a .zip file through itself to the

Re: [PHP] Restrict file access from web users?

2002-11-10 Thread Jason Wong
On Monday 11 November 2002 14:10, James Taylor wrote: > Ok, I have something like this set up: > > 1. User logs into site. Authenticates through a mysql table which > basically just has username/password columns. Session is set. > > 2. User goes through site looking for information he'd like to pu

Re: [PHP] Submit hitting enter problem

2002-11-10 Thread Jason Wong
On Monday 11 November 2002 14:04, rija wrote: > Really big thank to everybody, > > But, now, I know what happening, because I check form submit using > isset($_POST['submit']), so if user don't press submit button, > $_POST['submit'] stay null even the rest is already sent. Then my script > send me

[PHP] Restrict file access from web users?

2002-11-10 Thread James Taylor
Ok, I have something like this set up: 1. User logs into site. Authenticates through a mysql table which basically just has username/password columns. Session is set. 2. User goes through site looking for information he'd like to purchase based on specific fields. After the gathering of informa

[PHP] Re: PHP installation _ help needed

2002-11-10 Thread Prachait Saxena
What u had done to install PHP added a dll module in IIS or Mapped the php.exe to .php and .php3 or .php4 Prachait Bob G wrote: > 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 > d

[PHP] date comparison

2002-11-10 Thread Michael P. Carel
hi to all again, I have a problem here again regarding the date comparison. I need to check the most recent date that was entered in mysql database in date format ("Y-m-d"), if the datetoday is a day or two days in advanced compared to the queried date. I need to make sure that the next insert

Re: [PHP] Submit hitting enter problem

2002-11-10 Thread Jason Wong
On Monday 11 November 2002 13:36, rija wrote: > Sure ! > > But just simple question? > Is it necessary to put quotes around these attributes values? Let's put it this way, using quotes will not break any browser. Not using quotes /may/ make your page not work correctly on browsers which implement

Re: [PHP] Submit hitting enter problem

2002-11-10 Thread rija
Really big thank to everybody, But, now, I know what happening, because I check form submit using isset($_POST['submit']), so if user don't press submit button, $_POST['submit'] stay null even the rest is already sent. Then my script send me back to the first page. - Original Message - F

Re: [PHP] Submit hitting enter problem

2002-11-10 Thread David Rice
Hi Rija: No It's not "mandatory" to put quotes around attributes, but it would be wise to use this style="recommended" method of representing attributes, if for no reason="other" than to get used to a habit="good". coding="happiness" David On Monday, November 11, 2002, at 12:36 AM, rija wrote

Re: [PHP] Submit hitting enter problem

2002-11-10 Thread Khalid El-Kary
well, you are right they may work, but according to the sepcification qoutes should be added, you should follow it, because you don't know the hidden browsers out there which you didn't test, and IE, Opera, NS can't guarantee that they will support this behaviour in future releases

[PHP] Payflow Pro

2002-11-10 Thread James Taylor
Has anyone used the PHP functions to integrate with Payflow Pro? Before I fork out the cash to sign up for an account with them, I'd like to know how solid the SDK and integration is. Thanks! -- 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 rija
Sure ! But just simple question? Is it necessary to put quotes around these attributes values? Because I think quotes increase the site size, and using IE4, IE5, IE6, NS4, OPERA, quotes don't change anything. Of course if I have somethings with space, for value's attribute, It is important to pu

RE: [PHP] Submit hitting enter problem

2002-11-10 Thread @ Darwin
A missing tag? Some browsers are picky, so you might want to also do what someone else suggested to you earlier, which is to put quotes around your attribute values. This is especially important to implement while HTML fades out and languages based on XML (XHTML in particular) fade into popularity

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

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

[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] Re: Request entity too large (already seen the FAQ)

2002-11-10 Thread Rasmus Lerdorf
php.CONF? Is that some distribution-specific file? It's not a PHP thing and thus would not be documented by us. -Rasmus On Sun, 10 Nov 2002, John W. Holmes wrote: > > OK, thanks for no help whatsoever. But I'm not bitter; I'm here > to > > report what I found so that the next guy with thi

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

2002-11-10 Thread John W. Holmes
> OK, thanks for no help whatsoever. But I'm not bitter; I'm here to > report what I found so that the next guy with this problem isn't stuck: > > The PHP docs say to change variables in /etc/php.ini (like the whole > world knows about) but the key is to *also* look into php.CONF, too. >

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

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] 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] 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] 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] 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

[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] 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]

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] 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 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 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] 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

[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 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: >

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 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] 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] 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] 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') ???

[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] 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-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 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 _

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 ?! --

[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] 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] 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] 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

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] 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

[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] 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:

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

[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] 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

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 >

[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] 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

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

[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

[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

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

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] 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 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

[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

[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] 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

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

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] 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] Create associative array from comments by preg

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

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] 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] 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

[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] 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] 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

[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

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] 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] 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

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] 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

[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

[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] 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.

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 >

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] 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] 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

  1   2   >