[PHP] Re: PHP vs PERL - thanks

2004-04-22 Thread David Scott
I'm currently getting my feet wet with Perl and PHP. It's good many people replied with "it's your preference" so as not to get into a flame war and to remain open about the matter. However, I don't see that as being very helpful because Perl !== PHP, obviously. Here's what I've come across so

Re: [PHP] regular expressions php/perl/actionscript

2004-04-22 Thread David Scott
I believe Regular Expressions are language independent. Here is an O'Reilly book on the matter: http://www.oreilly.com/catalog/regex2/ Chris W. Parker wrote: Gabino Travassos on Thursday, April 22, 2004 12:24 PM said: I'm wondering if Regular Expressions are the sa

[PHP] Re: Having trouble formatting width using printf() and default spaces

2004-03-30 Thread David Scott
ould be exactly what I'm after. Jason Barnett wrote: David Scott wrote: I'm using a for() loop to generate random die rolls. I'd like the numbers to be formatted in a grid. In a grid... like an HTML table? You could something like: $row = 20; $col = 5; echo ''; for ($i

[PHP] Having trouble formatting width using printf() and default spaces

2004-03-30 Thread David Scott
I'm using a for() loop to generate random die rolls. I'd like the numbers to be formatted in a grid. for ($i = 0; $i < 100; $i++) { if (!($i % 5)) { print(""); } printf("%'.10u", rand(1,$sides)); } Currently, I'm padding with '.', but I'd like to pad with t

[PHP] No input file specified. Please help.

2003-01-06 Thread David Scott
I am running this file from a tutorial: Something Useful Tutorial When this file is run from my webserver (IIS) I get a page that says: No input file specified. What can I do to get this working? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www

[PHP] Re: Unable to run any PHP script with WinXP/IIS. Please help.

2003-01-06 Thread David Scott
Eh, nevermind on this one. I uninstalled PHP and then reinstalled it. I am no longer getting this error. I have another problem now that I will mention in a new post. "David Scott" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > Whe

[PHP] Unable to run any PHP script with WinXP/IIS. Please help.

2003-01-06 Thread David Scott
When attempting to run any PHP script, I get the message: Unknown(): Cannot open 'C:\WINDOWS\system32\inetsrv' for reading And then I get the windows error message: PHP Script Interpreter has encountered a problem and needs to close. We are sorry for the inconvenience. Any ideas here? -- PHP

[PHP] Thank you all for your help.

2002-12-10 Thread David Scott
I corrected the typo and and $_POST works correctly now. I don't know why it didn't work the first time I corrected the typo (I think that I had to re-publish my web site or somesuch), nonetheless it is working now. Thank you all. "David Scott" <[EMAIL PROTECTED]&g

Re: [PHP] Re: Help please: Unable to get $_POST["variable"]; to work in a form.

2002-12-10 Thread David Scott
vars are in the http request, but > $_POST[""] contains nothing as the other poster noted: mehtod="post" > > >>-Original Message- > >>From: David Scott [mailto:[EMAIL PROTECTED]] > >>Sent: Tuesday, December 10, 2002 1:20 PM > >>To: [EMAI

[PHP] Re: Help please: Unable to get $_POST["variable"]; to work in a form.

2002-12-10 Thread David Scott
Using $_REQUEST["variable"] causes the script to work. Why is this? And, why can I not use $_POST? "David Scott" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > I am going through the introductory tutorial on http://www

[PHP] Re: Help please: Unable to get $_POST["variable"]; to work in a form.

2002-12-10 Thread David Scott
wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > Make sure your form is sent through the method="POST" > > "David Scott" <[EMAIL PROTECTED]> a écrit dans le message de news: > [EMAIL PROTECTED] > > I am going through the introd

[PHP] Help please: Unable to get $_POST["variable"]; to work in a form.

2002-12-10 Thread David Scott
I am going through the introductory tutorial on http://www.php.net/ and am stuck on this page: http://www.php.net/manual/en/tutorial.forms.php I have been able to get all of the examples up to this point to work. The form is simple: it asks for a text "name", a text "age" and has a submit button.