Re: [PHP] Revised: RE: [PHP] Re: Can I do this?

2004-02-11 Thread John Taylor-Johnston
This thread is still alive? :) What you see is what you include. André was mistaken. That is the lesson. And there is no danger. If there was, folks would have stopped using PHP long ago. In my case, I'm hijacking my own script on another server. I'm doing it only because I don't have access

[PHP] Re: Working with a Front Page developer

2004-02-11 Thread rush
Chris De Vidal [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Can anyone recommend some template engines? Or tips on using PHP to parse an HTML doc, replacing it with real data? You could also try TemplateTamer, and I would be glad to help you out if with it if needed. rush --

[PHP] Re: phpMyAdmin Problems

2004-02-11 Thread John Taylor-Johnston
Simplest is to go into your config file and turn that on. Freedomware wrote: I've been using both phpMyAdmin and EMS MySQL Manager to work with MySQL tables and PHP. Things are generally going OK, but I'm still ironing out a few kinks. I suspect some of my problems might be related to an

Re: [PHP] phpMyAdmin Problems

2004-02-11 Thread John Taylor-Johnston
Helpful, isn't he. If you can't find it in your config file, post again and I'll show you what i have in mine. John Jason Wong wrote: This has nothing to do with PHP. Please ask on the relevant list/forum. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

Re: [PHP] phpMyAdmin Problems

2004-02-11 Thread Freedomware
John Taylor-Johnston wrote: Helpful, isn't he. If you can't find it in your config file, post again and I'll show you what i have in mine. John Jason Wong wrote: This has nothing to do with PHP. Please ask on the relevant list/forum. Thanks. Actually, I have another question: Can someone

Re: [PHP] array data

2004-02-11 Thread Richard Davey
Hello Imran, Wednesday, February 11, 2004, 8:17:11 PM, you wrote: IA Is not working, is it correct way IA File1.php IA? $colors = array('red','blue','green','yellow'); ? IAform action=file2.php method=post IA input type=hidden type name=colors value=?=$colors? IA

Re: [PHP] phpMyAdmin Problems

2004-02-11 Thread Jason Wong
On Wednesday 11 February 2004 16:42, John Taylor-Johnston wrote: Helpful, isn't he. If you can't find it in your config file, post again and I'll show you what i have in mine. John It's hardly helpful asking your tailor about a problem with your leaky roof is it? Ask the right questions at

Re: [PHP] PHp Books

2004-02-11 Thread Stuart
Rajani Anand Iyer wrote: Can someone recommend some good books on PHP Advanced topics. http://php.net/books -- Stuart -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] phpMyAdmin Problems

2004-02-11 Thread Freedomware
Jason Wong wrote: On Wednesday 11 February 2004 16:42, John Taylor-Johnston wrote: Helpful, isn't he. If you can't find it in your config file, post again and I'll show you what i have in mine. John It's hardly helpful asking your tailor about a problem with your leaky roof is it? It is if

Re: [PHP] [Q] Problems invoking a PHP script - Have no hair left to pull - Please help [:-)

2004-02-11 Thread Richard Davey
Hello Michael, Wednesday, February 11, 2004, 2:48:00 AM, you wrote: MTP Again, no are any errors displayed or logged. Any help would be greatly MTP appreciated. Your code is fine (well, the code you posted anyway) so I'd bet the problem is Apache related regarding the config of PHP on your

Re: [PHP] parse error, unexpected $

2004-02-11 Thread Bruno Mattarollo
Hello Raditha and all, Thanks for the replies ... I reviewed all my code with Zend Studio and the syntax was correct everywhere ... so I tried running the application from the command line: $ php donate.php and it worked fine, so looking through the code we saw that there was a short-tag in

[PHP] Problem with XSLT Sablotron

2004-02-11 Thread Juan Torres
Hi, I have got this XML file: !-- ?xml version=1.0 encoding=UTF-16? DOC PARAtexto 1/PARA PARAtexto 2/PARA PARAtexto 3/PARA PARAtexto 4/PARA PARAtexto 5/PARA /DOC -- and this XSL file: !-- ?xml version=1.0? xsl:stylesheet version=1.0

Re: [PHP] [Q] Problems invoking a PHP script - Have no hair left to pull - Please help [:-)

2004-02-11 Thread Tony
Hello, I have a similar problem whereby in the receiving PHP program the variable $Myname doesn't contain anything (i.e. echo $Myname returns nothing) however $_GET['Myname'] returns the correct value. How can this be? I attach the two short files. I'd appreciate it if anyone can tell me why

Re[2]: [PHP] [Q] Problems invoking a PHP script - Have no hair left to pull - Please help [:-)

2004-02-11 Thread Richard Davey
Hello Tony, Wednesday, February 11, 2004, 11:18:49 AM, you wrote: T I have a similar problem whereby in the receiving PHP program the variable T $Myname doesn't contain anything (i.e. echo $Myname returns nothing) however T $_GET['Myname'] returns the correct value. How can this be? Because

[PHP] Problem with Parameter Passing in PHP. Can anyone help

2004-02-11 Thread Tony
Hello, I've recently installed Apache 1.3.28 on my Windows XP system. I have then installed php 4.3.4 as a module. Everything seems to work except for one thing. PARAMETER PASSING. The following program should work but doesn't. Can anyone tell me what I'm doing wrong. I can't see why

RE: [PHP] Problem with Parameter Passing in PHP. Can anyone help

2004-02-11 Thread Jay Blanchard
[snip] I've recently installed Apache 1.3.28 on my Windows XP system. I have then installed php 4.3.4 as a module. Everything seems to work except for one thing. PARAMETER PASSING. The following program should work but doesn't. Can anyone tell me what I'm doing wrong. I can't see why $myname

[PHP] Set_time_limit ( )

2004-02-11 Thread Angelina
hello, plz someone help me out for this script set_time_limit (); I have problem with : Fatal error: Maximum execution time of 30 seconds exceeded in D:\hshome\angelina\ud-clan.net\forum\posting.php on line 23 I can't fix php.ini coz my hosting company not allow, and they don't adjust php.ini

RE: [PHP] Set_time_limit ( )

2004-02-11 Thread Jay Blanchard
[snip] set_time_limit (); [/snip] set_time_limit(0); This will remove all time limits from scripts unless PHP is running in safe mode http://us4.php.net/set_time_limit -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: Re[2]: [PHP] HELP: Nested include(...)'s take relative paths not intuitively

2004-02-11 Thread Ford, Mike [LSS]
On 11 February 2004 00:38, Adam Bregenzer contributed these pearls of wisdom: On Tue, 2004-02-10 at 19:06, Richard Davey wrote: This is slightly off-topic, but related to the include() function. What is the given standard regarding when you should or shouldn't use braces on a function.

[PHP] [Newbie Guide] For the benefit of new members

2004-02-11 Thread Ma Siva Kumar
=== This message is for the benefit of new subscribers and those new to PHP. Please feel free to add more points and send to the list. === 1. If you have any queries/problems about PHP try http://www.php.net/manual/en

[PHP] Help with ldap_add

2004-02-11 Thread Chakravarthy Cuddapah
I am using RedHat Enterprise Linux (ES). Installed openldap, php, apache latest versions. All except ldap_add functions are working. When I use ldapadd at the terminal it works adding entries to ldap. But when I use php ldap_add , error code shows it is Success. But does not add any entires to

[PHP] Re: PHp Books

2004-02-11 Thread memoimyself
Hello Rajani, On 10 Feb 2004 at 12:36, Rajani Anand Iyer wrote: Can someone recommend some good books on PHP Advanced topics. Well, I can advise you on what not to buy, which should help, too. Don't spend your money on Professional PHP4 (Argerich, Choi, Coggeshall, Egervari, Geisler, Greant,

[PHP] limit run time of a function?

2004-02-11 Thread Anthony
I have a function in my application that does a large query on my database. In certain instances the query will take to long to return and will reach the max execution time set in PHP.ini. This is ok though, it's already set to 90 secs and I don't want it any longer than that. What I would like

Re: [PHP] limit run time of a function?

2004-02-11 Thread Richard Davey
Hello Anthony, Wednesday, February 11, 2004, 1:43:29 PM, you wrote: A I have a function in my application that does a large query on my database. A In certain instances the query will take to long to return and will reach A the max execution time set in PHP.ini. This is ok though, it's already

Re: [PHP] phpMyAdmin Problems

2004-02-11 Thread Marek Kilimajer
Freedomware wrote: I've been using both phpMyAdmin and EMS MySQL Manager to work with MySQL tables and PHP. Things are generally going OK, but I'm still ironing out a few kinks. I suspect some of my problems might be related to an error message I get when I click on a Database in phpMyAdmin:

[PHP] Undefined function

2004-02-11 Thread Dominique ANOKRE
I use php with interbase. But when i try the code below i get this eror message : Fatal error: Call to undefined function: ibase_connect() in c:\inetpub\wwwroot\index.php on line 12 I want to know what is wrong with the code or if i have to do with php in order to run with Interbase ?

[PHP] Math Question

2004-02-11 Thread Jeremy Schroeder
Hey group Is there a function that when you divide 2 numbers you drop the remainder and are left with the whole number. -- Blake -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Undefined function

2004-02-11 Thread Richard Davey
Hello Dominique, Wednesday, February 11, 2004, 1:58:17 PM, you wrote: DA Fatal error: Call to undefined function: ibase_connect() in DA c:\inetpub\wwwroot\index.php on line 12 DA I want to know what is wrong with the code or if i have to do DA with php in order to run with Interbase ? You

Re: [PHP] Math Question

2004-02-11 Thread Richard Davey
Hello Jeremy, Wednesday, February 11, 2004, 2:00:32 PM, you wrote: JS Is there a function that when you divide 2 numbers you drop the JS remainder and are left with the whole number. round($number1 / $number2) See the manual for the precision value if you need it. -- Best regards, Richard

RE: [PHP] Math Question

2004-02-11 Thread Vincent Jansen
Seems to me you need floor($number1 / $number2) Vincent -Original Message- From: Richard Davey [mailto:[EMAIL PROTECTED] Sent: woensdag 11 februari 2004 15:07 To: Jeremy Schroeder Cc: [EMAIL PROTECTED] Subject: Re: [PHP] Math Question Hello Jeremy, Wednesday, February 11, 2004,

Re[2]: [PHP] Math Question

2004-02-11 Thread Richard Davey
Hello Vincent, Wednesday, February 11, 2004, 2:15:15 PM, you wrote: VJ Seems to me you need VJ floor($number1 / $number2) Only if you always want to round *down* the equation. For example flooring a result of 4.99 will give you an integer of 4 whereas round() (or ceil()) will give you 5. It

RE: Re[2]: [PHP] Math Question

2004-02-11 Thread Jay Blanchard
[snip] VJ Seems to me you need VJ floor($number1 / $number2) Only if you always want to round *down* the equation. For example flooring a result of 4.99 will give you an integer of 4 whereas round() (or ceil()) will give you 5. It depends on the situation as to which is most useful. [/snip] you

[PHP] Re: array data

2004-02-11 Thread pete M
Think this is what u want Imran Asghar wrote: Hi, Is not working, is it correct way File1.php ? $colors = array('red','blue','green','yellow'); ? form action=file2.php method=post input type=hidden type name=colors value=?=$colors? /fomr ?php $colors =

RE: Re[2]: [PHP] Math Question

2004-02-11 Thread Vincent Jansen
Hi Richard I agree But you always want to round down ;) Blake Is there a function that when you divide 2 numbers you drop the Blake remainder and are left with the whole number. Still seems floor() to me Vincent -Original Message- From: Richard Davey [mailto:[EMAIL PROTECTED]

[PHP] replace ' with

2004-02-11 Thread Diana Castillo
How do I replace all single quotes with double quotes in a string for echoing it with the double quotes? -- Diana Castillo Global Reservas, S.L. C/Granvia 22 dcdo 4-dcha 28013 Madrid-Spain Tel : 00-34-913604039 ext 214 Fax : 00-34-915228673 email: [EMAIL PROTECTED] Web : http://www.hotelkey.com

Re: [PHP] replace ' with

2004-02-11 Thread Stuart
Diana Castillo wrote: How do I replace all single quotes with double quotes in a string for echoing it with the double quotes? $text = str_replace(', '', $text); http://php.net/str_replace and please at least RTFM before posting here in future. -- Stuart -- PHP General Mailing List

RE: [PHP] replace ' with

2004-02-11 Thread Angelo Zanetti
str_replace(''',', $StringToReplace); should work -Original Message- From: Diana Castillo [mailto:[EMAIL PROTECTED] Sent: Wednesday, February 11, 2004 4:33 PM To: [EMAIL PROTECTED] Subject: [PHP] replace ' with How do I replace all single quotes with double quotes in a string for

Re: [PHP] Math Question

2004-02-11 Thread Jeremy Schroeder
Thanks for all the help, floor() was the correct choice for this problem . -Blake Vincent Jansen wrote: Hi Richard I agree But you always want to round down ;) Blake Is there a function that when you divide 2 numbers you drop the Blake remainder and are left with the whole number. Still

[PHP] uploaded files are corrupted

2004-02-11 Thread Donpro
Hi, I have a script that allows the user to browse his/her local hard drive for a file and email it as an attachment. Text files come through OK but any binary type file, e.g., JPEG or PDF arrive broken. JPEG will show as a red X in my browser and Adobe will complain about the PDF. I don't

[PHP] str_replace not replacing

2004-02-11 Thread Aaron Merrick
I'm reading in to a variable $section1 an entire php file that creates a mysql table. I can output the variable in a new file just fine (figured out what all had to be escaped in the original file). My problem is, I want to replace the table name in the original file with a new table name before

Re: [PHP] Math Question

2004-02-11 Thread John Nichel
Jeremy Schroeder wrote: Hey group Is there a function that when you divide 2 numbers you drop the remainder and are left with the whole number. A whole section of the manual dedicated to mathematical functions! http://us4.php.net/manual/en/ref.math.php floor() ceil() round() -- By-Tor.com

Re: [PHP] replace ' with

2004-02-11 Thread John Nichel
Diana Castillo wrote: How do I replace all single quotes with double quotes in a string for echoing it with the double quotes? By looking here... http://us4.php.net/str_replace -- By-Tor.com It's all about the Rush http://www.by-tor.com -- PHP General Mailing List (http://www.php.net/) To

Re: [PHP] str_replace not replacing

2004-02-11 Thread Richard Davey
Hello Aaron, Wednesday, February 11, 2004, 3:00:47 PM, you wrote: AM $section1 = file_get_contents(table_create.php); AM str_replace($search, $replace, $section1); You need to assign the output of str_replace to something: $new_section = str_replace($search, $replace, $section1) -- Best

Re: [PHP] str_replace not replacing

2004-02-11 Thread Jason Wong
On Wednesday 11 February 2004 23:00, Aaron Merrick wrote: My problem is, I want to replace the table name in the original file with a new table name before I output it to the new file. But the str_replace has no effect. [snip] str_replace($search, $replace, $section1); str_replace()

RE: Re[2]: [PHP] HELP: Nested include(...)'s take relative paths not int uitively

2004-02-11 Thread Alex Hogan
Hi Richard, Why not just set a $basedir value somewhere and always use that in an include/require function: include $basedir/sub/whatever - then no matter where it's called from it'll never be wrong. That makes sense... Is it also recommended that an application local config file be used to

Re: [PHP] Undefined function

2004-02-11 Thread Dominique ANOKRE
ok , i install the good php windows installer (with interbase) and now i think my function is recognized. But the message displayed is : Warning: ibase_connect(): unavailable database in c:\inetpub\wwwroot\index.php on line 12 But i can connect to the database whitout any problems via interbase

Re: [PHP] str_replace not replacing

2004-02-11 Thread Aaron Merrick
Richard, Thank you so much. That works perfectly. I knew it had to be something simple. Aaron From: Richard Davey [EMAIL PROTECTED] Reply-To: Richard Davey [EMAIL PROTECTED] Date: Wed, 11 Feb 2004 15:04:44 + To: Aaron Merrick [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Subject: Re: [PHP]

[PHP] Re: str_replace not replacing

2004-02-11 Thread Michael Nolan
Aaron Merrick wrote: I'm reading in to a variable $section1 an entire php file that creates a mysql table. I can output the variable in a new file just fine (figured out what all had to be escaped in the original file). My problem is, I want to replace the table name in the original file with a

Re: [PHP] uploaded files are corrupted

2004-02-11 Thread Jason Wong
On Wednesday 11 February 2004 22:58, Donpro wrote: A code sample of my form is: form enctype=multipart/form-data action=formmail.php method=post Send this file: input name=userfile type=file input type=submit value=Send your file name=submit /form Try the example(s) in manual Handling

Re: [PHP] Undefined function

2004-02-11 Thread John Nichel
Dominique ANOKRE wrote: ok , i install the good php windows installer (with interbase) and now i think my function is recognized. But the message displayed is : Warning: ibase_connect(): unavailable database in c:\inetpub\wwwroot\index.php on line 12 But i can connect to the database whitout any

Re[4]: [PHP] HELP: Nested include(...)'s take relative paths not int uitively

2004-02-11 Thread Richard Davey
Hello Alex, Wednesday, February 11, 2004, 3:08:02 PM, you wrote: AH Is it also recommended that an application local config file be used to set AH all the globals that will be used throughout? Right now I'm using the db to AH hold all the vars that I want to make available for all apps. Is this

Re: Re[2]: [PHP] HELP: Nested include(...)'s take relative paths not intuitively

2004-02-11 Thread John W. Holmes
From: Ford, Mike [LSS] [EMAIL PROTECTED] Mind you, there are exceptions: exit(), for example, is a language construct but requires the parens (at least, that's what the fine manual appears to say, and I've not tested it without!). Only if you want to pass an exit value, i.e. exit(101);

Re: [PHP] uploaded files are corrupted

2004-02-11 Thread Richard Davey
Hello Donpro, Wednesday, February 11, 2004, 2:58:20 PM, you wrote: D I have a script that allows the user to browse his/her local hard drive for D a file and email it as an attachment. Text files come through OK but any D binary type file, e.g., JPEG or PDF arrive broken. JPEG will show as a

Re: Re[4]: [PHP] HELP: Nested include(...)'s take relative paths not int uitively

2004-02-11 Thread John W. Holmes
From: Richard Davey [EMAIL PROTECTED] Personally I use a file called common.inc which is basically my global include file - it has nothing but variables I need set (no functions, etc - they are held elsewhere) and files I need to include. It sits at the root of my project and is included on

Re[6]: [PHP] HELP: Nested include(...)'s take relative paths not int uitively

2004-02-11 Thread Richard Davey
Hello John, Wednesday, February 11, 2004, 3:25:23 PM, you wrote: JWH I hope you are also denying access to .inc files otherwise we could view JWH your file as plain text. Please.. try ;) I used to call the file common.php until we had a rather large debate about the correct naming convention

[PHP] question

2004-02-11 Thread Meramec Challenge Paintball, LLC
I have tried for a long time now on various forums to get help. Every one says to come to you for support. I looked for a forum on your site but did not see one. I had to turn the Enable account activation by admin feature. In doing so when someone tries to create an account when they hit

Re: Re[6]: [PHP] HELP: Nested include(...)'s take relative paths not int uitively

2004-02-11 Thread John W. Holmes
From: Richard Davey [EMAIL PROTECTED] JWH I hope you are also denying access to .inc files otherwise we could view JWH your file as plain text. Please.. try ;) I used to call the file common.php until we had a rather large debate about the correct naming convention for PHP include files on

Re: [PHP] uploaded files are corrupted

2004-02-11 Thread John W. Holmes
From: Donpro [EMAIL PROTECTED] I have a script that allows the user to browse his/her local hard drive for a file and email it as an attachment. Text files come through OK but any binary type file, e.g., JPEG or PDF arrive broken. JPEG will show as a red X in my browser and Adobe will

Re[8]: [PHP] HELP: Nested include(...)'s take relative paths not int uitively

2004-02-11 Thread Richard Davey
Hello John, Wednesday, February 11, 2004, 3:42:39 PM, you wrote: JWH Heh.. I was just giving a heads up, not threatening. :) JWH I personally don't care for .inc files that are in the web root. The ways to JWH deny access to them vary across web servers and platforms, so it makes JWH

RE: Re[6]: [PHP] HELP: Nested include(...)'s take relative paths not int uitively

2004-02-11 Thread Alex Hogan
How large can that file be? I have a func.php file that I'm putting all my reusable functions in but I can see that getting pretty large if this project starts getting eaten up with feature creep, er.., I mean additional functionality. (I know that'll never happen...;-) So how large is too

Re[8]: [PHP] HELP: Nested include(...)'s take relative paths not int uitively

2004-02-11 Thread Richard Davey
Hello Alex, Wednesday, February 11, 2004, 3:47:09 PM, you wrote: AH How large can that file be? How long is a piece of string? :) It's as long as you need it to be. AH I have a func.php file that I'm putting all my reusable functions in but I AH can see that getting pretty large if this

[PHP] Sessions on Win2k

2004-02-11 Thread Donpro
Hi, I've searched the archives and note that many have probelms using session on a Win2K server. I am getting a Undefined index: sessions in D:\inetpub\mydomain\www\forms\formmail\formmail.php on line 768 error. Line 768 is: session_start(); It works Ok on Linux; is there any special

RE: [PHP] array data

2004-02-11 Thread Shaunak Kashyap
It is not the correct way because $colors being an array, the HTML code for the hidden input element will look like this (once the HTML has been generated by PHP): [code] input type=hidden name=colors value=Array [/code] What you probably want to do instead is something like this: [code] ?

Re: [PHP] HELP: Nested include(...)'s take relative paths not intuitively

2004-02-11 Thread Samuel Ventura
Hi there again people, I looks like this thread turned into a 'include' usage discussion. Well, nothing wrong with that. The conclusion seems to be that ALL level of nested included inherit current directory reference for relative paths from the very first script ( that in $_SERVER[SCRIPT_NAME]

RE: [PHP] Sessions on Win2k

2004-02-11 Thread Alex Hogan
Session_start() has to be the first thing at the top of the page before anything else. Even header info. I just got this answered for me about two weeks ago -Original Message- From: Donpro [mailto:[EMAIL PROTECTED] Sent: Wednesday, February 11, 2004 10:20 AM To: php list

RE: [PHP] Sessions on Win2k

2004-02-11 Thread Ford, Mike [LSS]
On 11 February 2004 16:39, Alex Hogan contributed these pearls of wisdom: Session_start() has to be the first thing at the top of the page before anything else. Even header info. Er, no. session_start() itself generates headers, so it doesn't matter whether it goes before or after other

[PHP] Newbie questions

2004-02-11 Thread James Marcinek
Hey Everyone, I have a couple of questions I'd like to ask: 1.) Are there built in libraries to connect to DB2? Nothings clear from the documentation I've read. I see that there's libraries for Oracle, Informix, MySQL. 2.) If there is a DB2 library(support or whatever its called, someone

[PHP] Zlib - Insert files?

2004-02-11 Thread Till Krüss
Hi there! I'm trying to make a GZip compressed file with some files in it. But i'm only getting a foo.gz with a file foo in it an foo contains the data of all files in $this-_Files. I need foo.gz with a file and its content for each $this-_Files. $fp =

[PHP] Using a perl regex

2004-02-11 Thread Verdon Vaillancourt
Hi, I am trying to use a perl regular expression to validate a form field where I am allowing someone to edit a sql date-time stamp in the format of '2004-02-05 21:43:34'. I have found a pattern that works (at http://www.regexplib.com/RETester.aspx?regexp_id=93) which is;

Re: [PHP] Using a perl regex

2004-02-11 Thread Richard Davey
Hello Verdon, Wednesday, February 11, 2004, 5:09:22 PM, you wrote: VV I am trying to use a perl regular expression to validate a form field where VV (!ereg(20\d{2}(-|\/)((0[1-9])|(1[0-2]))(-|\/)((0[1-9])|([1-2][0-9])|(3[0-1] Surely you should be using preg_match() (i.e. a perl syntax reg exp)

Re: [PHP] Using a perl regex

2004-02-11 Thread Verdon Vaillancourt
I should have prefaced my subject with NEWBIE :) Thanks, I'll give it a try. Best regards, verdon On 2/11/04 12:12 PM, Richard Davey [EMAIL PROTECTED] wrote: Hello Verdon, Wednesday, February 11, 2004, 5:09:22 PM, you wrote: VV I am trying to use a perl regular expression to validate a

Re: [PHP] Using a perl regex

2004-02-11 Thread Verdon Vaillancourt
I thought I might have tried that and just did again. I receive the error; Warning : Delimiter must not be alphanumeric or backslash in /server/path/to/functions.php on line I'm not sure if this means I have to escape something in the pattern, but will look further. Cheers, Verdon On

Re: [PHP] Using a perl regex

2004-02-11 Thread Kelly Hallman
On Wed, 11 Feb 2004, Verdon Vaillancourt wrote: I thought I might have tried that and just did again. I receive the error; Warning : Delimiter must not be alphanumeric or backslash in /server/path/to/functions.php on line I'm not sure if this means I have to escape something in the

Re: [PHP] Using a perl regex

2004-02-11 Thread Verdon Vaillancourt
Thanks Kelly (and Richard), That did the job :) Salut, Verdon On 2/11/04 12:22 PM, Kelly Hallman [EMAIL PROTECTED] wrote: On Wed, 11 Feb 2004, Verdon Vaillancourt wrote: I thought I might have tried that and just did again. I receive the error; Warning : Delimiter must not be

RE: [PHP] Sessions on Win2k

2004-02-11 Thread Alex Hogan
Sorry..., my bad I was just relating what I thought had been related to me for the same question. I think I'll stick to the asking and not the answering for a while longer... Gotta go goose is waiting.. -Original Message- From: Ford, Mike [LSS] [mailto:[EMAIL PROTECTED]

[PHP] Getting image size for a compressed flash movie

2004-02-11 Thread Shaunak Kashyap
Is there any way in PHP to get the height and width attributes of a compressed flash movie? I have tried getimagesize() which seems to work for uncompressed flash movies but will not work for compressed movies. TIA Shaunak -- PHP General Mailing List (http://www.php.net/) To unsubscribe,

[PHP] [Q]PHP not taking input values from forms

2004-02-11 Thread Dan Aloma
Can anyone tell me why PHP is not taking any values I give it? In other words, if I post something it doesn't accept any of those values. I have set register_globals to on, which is the only thing I could think of that would be doing this. I'm a newbie to php, and I've scoured the net for an

Re: [PHP] [Q]PHP not taking input values from forms

2004-02-11 Thread John Nichel
Dan Aloma wrote: Can anyone tell me why PHP is not taking any values I give it? In other words, if I post something it doesn't accept any of those values. I have set register_globals to on, which is the only thing I could think of that would be doing this. I'm a newbie to php, and I've scoured

Re: [PHP] [Q]PHP not taking input values from forms

2004-02-11 Thread Richard Davey
Hello Dan, Wednesday, February 11, 2004, 5:47:21 PM, you wrote: DA Can anyone tell me why PHP is not taking any values I give it? In other DA words, if I post something it doesn't accept any of those values. I have set DA register_globals to on, which is the only thing I could think of that

RE: [PHP] [Q]PHP not taking input values from forms

2004-02-11 Thread Shaunak Kashyap
Please post your code. It makes it easier to understand the problem. Shaunak -Original Message- From: Dan Aloma [mailto:[EMAIL PROTECTED] Sent: Wednesday, February 11, 2004 12:47 PM To: [EMAIL PROTECTED] Subject: [PHP] [Q]PHP not taking input values from forms Can anyone tell

Re: [PHP] [Q]PHP not taking input values from forms

2004-02-11 Thread Dan Aloma
Sorry about not including code the first time. Here is a snippet of code I am fairly certain should be doing something. Thank you SOOO much for the help. I've been working on setting up php for four days now and EVERYTHING else works (phpinfo() calls, etc), but for some reason forms, even ones

RE: [PHP] question

2004-02-11 Thread Chris W. Parker
Meramec Challenge Paintball, LLC mailto:[EMAIL PROTECTED] on Wednesday, February 11, 2004 7:40 AM said: I'm glad you put question in your subject line because for a minute there I thought you were sending me a note of praise. I realized you weren't once I read your informative subject line.

Re: [PHP] Using a perl regex

2004-02-11 Thread Michal Migurski
I am trying to use a perl regular expression to validate a form field where I am allowing someone to edit a sql date-time stamp in the format of '2004-02-05 21:43:34'. Just FYI, strtotime() provides date/time validation for free - check the input using strtotime() and date('Y-m-d H:i:s') to get

Re[2]: [PHP] [Q]PHP not taking input values from forms

2004-02-11 Thread Richard Davey
Hello Dan, Wednesday, February 11, 2004, 6:01:21 PM, you wrote: DA Sorry about not including code the first time. Here is a snippet of code I DA am fairly certain should be doing something. Thank you SOOO much for the Your code is (mostly) fine. The only part that didn't work is the final the

Re: [PHP] [Q]PHP not taking input values from forms

2004-02-11 Thread John Nichel
Dan Aloma wrote: Sorry about not including code the first time. Here is a snippet of code I am fairly certain should be doing something. Thank you SOOO much for the help. I've been working on setting up php for four days now and EVERYTHING else works (phpinfo() calls, etc), but for some reason

Re: [PHP] question

2004-02-11 Thread John Nichel
Chris W. Parker wrote: Meramec Challenge Paintball, LLC mailto:[EMAIL PROTECTED] on Wednesday, February 11, 2004 7:40 AM said: I'm glad you put question in your subject line because for a minute there I thought you were sending me a note of praise. I realized you weren't once I read your

RE: [PHP] question {way OT}

2004-02-11 Thread Jay Blanchard
[snip] Did you forget your mind-reading helmet at home today? [/snip] I have both kinds of ESP.ESPn ESPn2 :) -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: Re[2]: [PHP] [Q]PHP not taking input values from forms

2004-02-11 Thread Dan Aloma
I tried adding that code you gave me, but all it does go back to the same page, and doesn't echo out the time(); results. I can't seem to figure it out for the life of me. like i said, everything else in php is working fine, except for this. From: Richard Davey [EMAIL PROTECTED] Reply-To:

Re[4]: [PHP] [Q]PHP not taking input values from forms

2004-02-11 Thread Richard Davey
Hello Dan, Wednesday, February 11, 2004, 6:32:16 PM, you wrote: DA I tried adding that code you gave me, but all it does go back to the same DA page, and doesn't echo out the time(); results. I can't seem to figure it DA out for the life of me. like i said, everything else in php is working

RE: Re[4]: [PHP] [Q]PHP not taking input values from forms

2004-02-11 Thread Dan Aloma
they're being tested on a testing machine we use. I know PHP is (rather appears to be) working fine. Why would it be parsing files fine and calling phpinfo() fine, but not being able to take input values. that's strange From: Richard Davey [EMAIL PROTECTED] Reply-To: Richard Davey [EMAIL

Re[6]: [PHP] [Q]PHP not taking input values from forms

2004-02-11 Thread Richard Davey
Hello Dan, Wednesday, February 11, 2004, 6:39:35 PM, you wrote: DA they're being tested on a testing machine we use. I know PHP is (rather DA appears to be) working fine. Why would it be parsing files fine and calling DA phpinfo() fine, but not being able to take input values. that's strange

Re: [PHP] [Q]PHP not taking input values from forms

2004-02-11 Thread John Nichel
Dan Aloma wrote: I tried adding that code you gave me, but all it does go back to the same page, and doesn't echo out the time(); results. I can't seem to figure it out for the life of me. like i said, everything else in php is working fine, except for this. Fill in some values for your form

Re: [PHP] Undefined function

2004-02-11 Thread Dominique ANOKRE
Ok, everything run now ! the problem was the path to the database. You must indicate like this : $host = localhost:c:\path\to\databasename Thanks you !! - Original Message - From: John Nichel [EMAIL PROTECTED] To: Dominique ANOKRE [EMAIL PROTECTED] Cc: Php List [EMAIL PROTECTED] Sent:

[PHP] Help with ldap_add

2004-02-11 Thread Chakravarthy Cuddapah
I am using RedHat Enterprise Linux (ES). Installed openldap, php, apache latest versions. All except ldap_add functions are working. When I use ldapadd at the terminal it works adding entries to ldap. But when I use php ldap_add , error code shows it is Success. But does not add any entires to

[PHP] date() funtion language

2004-02-11 Thread Thiago Pavesi
Hello, Does any one knows how do I set my date() function to return the days of the week and moth in my own language (brazilian portuguese)? Thanks, Thiago Pavesi -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] date() funtion language

2004-02-11 Thread Richard Davey
Hello Thiago, Wednesday, February 11, 2004, 8:03:47 PM, you wrote: TP Does any one knows how do I set my date() function to return the days TP of the week and moth in my own language (brazilian portuguese)? setlocale() -- Best regards, Richardmailto:[EMAIL

[PHP] A dumb question

2004-02-11 Thread Jeremy Schroeder
Hey Group I am starting to write class and objects and came across some syntax that I dont understand. What does the ampersand do in the bottom example code, they both work. $n1 = $num1 - function(); $n1 = $num1 - function(); -Blake -- PHP General Mailing List (http://www.php.net/) To

RE: [PHP] A dumb question

2004-02-11 Thread Chris W. Parker
Jeremy Schroeder mailto:[EMAIL PROTECTED] on Wednesday, February 11, 2004 11:39 AM said: What does the ampersand do in the bottom example code, they both work. $n1 = $num1 - function(); $n1 = $num1 - function(); I think in this it's what's called a reference. Don't know much else. :)

Re: [PHP] parse error, unexpected $

2004-02-11 Thread Hugh Danaher
Bruno, This often occurs when there is no closing bracket } for a conditional statement or a loop. hth Hugh - Original Message - From: Bruno Mattarollo [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, February 11, 2004 2:51 AM Subject: Re: [PHP] parse error, unexpected $ Parse

RE: [PHP] A dumb question

2004-02-11 Thread Chris W. Parker
Chris W. Parker on Wednesday, February 11, 2004 11:45 AM said: I think in this it's what's called a reference. Don't know much else. :) Ok that should be I think this is what's called... had to correct that. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

  1   2   >