Re: [PHP] Javascript Mouseover Help NOT A JAVASCRIPT QUESTION

2004-03-18 Thread Raditha Dissanayake
It's not a javascript question, or problem. As I said in my original post, it works fine if it's a regular html file. But when I put it in a variable in php, then use that variable from an included file, the javascript is not executed. What can I do to fix this? Like i said you have to

Re: [PHP] mail() to own domain not working

2004-03-18 Thread Gerard L Petersen
i found the problem thanks. even though the MX records were pointing to a different server, since there is an inactive mail server (qmail) installed on the server for local mail delivery it would route it to the local server. i disabled the mail server on localhost completely and now all mail

[PHP] Re: [about mail] I can't see main message either attached file what I

2004-03-18 Thread Xu
I solved this problem. by edit headers and body about boundary. here's modified source. *** below this line is php source $boundary42 = md5(rand()); // Headers $headers = ; $headers .= From: $sender $senderemail\n; $headers .= Subject: $subject\n; $headers .= Return-Path:

[PHP] New extension for PHP 4

2004-03-18 Thread RENAUD HAGER
Dear PHP community, We are two French students. We study computer sciences at the Université Louis Pasteur of Strasbourg. During our fourth year, we had to create a project. We chose to develop an extension for the PHP community. att_codec is the name of our extension. It is written in C language

Re: [PHP] Javascript Mouseover Help

2004-03-18 Thread Marek Kilimajer
Jake McHenry wrote: Hi everyone, How can I get around my problem? I have a couple pages that I would like to have buttons where the button and background changes when the javascript mouseover event happens. My code works fine if the page is .html, but when I try it as php, the mouseovers no

[PHP] installing with XSLT

2004-03-18 Thread Merlin
Hi there, I am trying to install php with XSLT support. Somehow it does not work out. I installed all packages which are explained on the install page of XSLT. But there seems to be a backend thing missing: This is from the ./configure command: checking whether to enable xslt support... yes

[PHP] Symbol reference problem with pspell in PHP5 compile

2004-03-18 Thread electroteque
Hi there, i have tried the phpinstall list with no luck i continually get this error on solaris for some strange reason, i had to install 2 totally seperate libiconv's so one could sit in /usr/local as php kept trying to look there, now i keep getting this error Undefined

RE: [PHP] installing with XSLT

2004-03-18 Thread Thijs Lensselink
Merlin wrote on donderdag 18 maart 2004 11:24: Hi there, I am trying to install php with XSLT support. Somehow it does not work out. I installed all packages which are explained on the install page of XSLT. But there seems to be a backend thing missing: This is from the ./configure

[PHP] days of week

2004-03-18 Thread Diana Castillo
does anyone know of any built in php functions that can convert a day of week that is in numeric format , e.g. 1 into a Monday (without knowing which exact date we are talking about) -- Diana Castillo Global Reservas, S.L. C/Granvia 22 dcdo 4-dcha 28013 Madrid-Spain Tel : 00-34-913604039 ext 214

Re: [PHP] days of week

2004-03-18 Thread Richard Davey
Hello Diana, Thursday, March 18, 2004, 11:38:55 AM, you wrote: DC does anyone know of any built in php functions that can convert a day of DC week that is in numeric format , e.g. 1 into a Monday (without knowing which DC exact date we are talking about) I can't think of a built-in function

[PHP] Interbase with PHP in Mandrake 9.1 help !

2004-03-18 Thread Luiz Gustavo Sarubi Macchi
Please I´m using Mandrake 9.1 and I need to use PHP with interbase ! So, I've been instaled the php430-devel and i built the extension of interbase like this: phpize after that ./configure --with-interbase=/opt/interbase/ and after make install the extension was add ! so when i try to access

[PHP] numeric to day name in various languaes

2004-03-18 Thread Diana Castillo
Is there anything built into php that would do something like this , but in all of the possible languages? switch ($restriction_week_days) { case 1: $restriction_day = Monday,Lunes,Lundi; break; case 2: $restriction_day = Tuesday,Martes,Mardi; break; case 3:

Re: [PHP] days of week

2004-03-18 Thread Diana Castillo
yes but I want it in various languages. Richard Davey [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Hello Diana, Thursday, March 18, 2004, 11:38:55 AM, you wrote: DC does anyone know of any built in php functions that can convert a day of DC week that is in numeric format , e.g.

Re[2]: [PHP] days of week

2004-03-18 Thread Richard Davey
Hello Diana, Thursday, March 18, 2004, 12:00:55 PM, you wrote: DC yes but I want it in various languages. Not in your *original* post you didn't (the one that I replied to). Besides, it wouldn't be that hard to modify to make it happen. -- Best regards, Richard Davey

Re: Re[2]: [PHP] days of week

2004-03-18 Thread Diana Castillo
I didnt want to hard code the names , so we made this up: function getDayName($day, $lang=''){ if ($locale = Language::getLocale($lang)) { setlocale(LC_TIME, $locale); } $sunday = strtotime('1 January 1995'); // That day was a Sunday return strftime(%A,

Re[4]: [PHP] days of week

2004-03-18 Thread Richard Davey
Hello Diana, Thursday, March 18, 2004, 12:34:32 PM, you wrote: DC I didnt want to hard code the names , so we made this up: DC function getDayName($day, $lang=''){ DC if ($locale = Language::getLocale($lang)) { DC setlocale(LC_TIME, $locale); DC } DC $sunday

RE: [PHP] Simple: Whats wrong with this?

2004-03-18 Thread Ford, Mike [LSS]
On 17 March 2004 17:09, Chris W. Parker wrote: $var++ is a post incrementer meaning the value is updated at the next command*. * i'm not exactly sure how the compiler determines when to post increment, but i think i'm correct. Not quite -- the increment is performed immediately after the

[PHP] Letter incrementing

2004-03-18 Thread Brent Clark
Hi all Does anyone know how, or even if it is possible to increment a letter from the alphabet. I know that if you use e.g $o = 1; $o++; will result in $o == 2,. But I need to do a $variable = B; and then do a $variable++ that will result in $variable == C Kind Regards Brent Clark

Re: [PHP] Letter incrementing

2004-03-18 Thread Richard Davey
Hello Brent, Thursday, March 18, 2004, 1:16:34 PM, you wrote: BC Does anyone know how, or even if it is possible to increment a letter from the alphabet. BC But I need to do a $variable = B; BC and then do a $variable++ that will result in BC $variable == C Sure: ?php $letter = a;

Re: [PHP] Letter incrementing

2004-03-18 Thread Brent Baisley
You want to use the char() function. What you need to do is increment an ascii value and then convert that value to a letter. So ascii 65 is A. $asciiVal = 65; echo char($asciiVal); A $asciiVal++; ... On Mar 18, 2004, at 8:16 AM, Brent Clark wrote: Hi all Does anyone know how, or even if

Re: [PHP] numeric to day name in various languaes

2004-03-18 Thread Marek Kilimajer
Diana Castillo wrote: Is there anything built into php that would do something like this , but in all of the possible languages? What do you want to do? Do you want to assign $restriction_day a list of weekday in ALL 6000+ languages? :-) Why don't you keep $restriction_day numeric and display

Re: [PHP] Javascript Mouseover Help NOT A JAVASCRIPT QUESTION

2004-03-18 Thread Raditha Dissanayake
Raditha Dissanayake wrote: It's not a javascript question, or problem. As I said in my original post, it works fine if it's a regular html file. But when I put it in a variable in php, then use that variable from an included file, the javascript is not executed. What can I do to fix

Re: [PHP] installing with XSLT

2004-03-18 Thread Raditha Dissanayake
Merlin wrote: Hi there, I am trying to install php with XSLT support. Somehow it does not work out. I installed all packages which are explained on the install page of XSLT. But there seems to be a backend thing missing: This is from the ./configure command: checking whether to enable xslt

[PHP] Re: Problem with sending mail with attachment

2004-03-18 Thread Scott Fletcher
I had experience this similar problem with the attachment, as it turned out that not all email software work out the same way, especially with MS-Exchange which need an extra \r or \n for it to work. For the attachment issue you have. I don't know what Content-Type you're using because it showed

Re: [PHP] header() vs. fsockopen for Location: http:www.d.com....

2004-03-18 Thread Scott Fletcher
Thanks... FletchSOD Raditha Dissanayake [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Hi Scott, This has been heavily discussed in recent weeks you will find lots of pointers in the archives. But in short there's no harm in header(Location:); Scott Fletcher wrote: Hi!

Re: [PHP] installing with XSLT

2004-03-18 Thread Ray Hunter
On Thu, 2004-03-18 at 03:24, Merlin wrote: I am trying to install php with XSLT support. Somehow it does not work out. I installed all packages which are explained on the install page of XSLT. But there seems to be a backend thing missing: This is from the ./configure command: checking

Re: [PHP] Interbase with PHP in Mandrake 9.1 help !

2004-03-18 Thread Ray Hunter
On Thu, 2004-03-18 at 04:51, Luiz Gustavo Sarubi Macchi wrote: Please I´m using Mandrake 9.1 and I need to use PHP with interbase ! So, I've been instaled the php430-devel and i built the extension of interbase like this: phpize after that ./configure --with-interbase=/opt/interbase/

[PHP] How to do this in PHP?

2004-03-18 Thread Mike Mapsnac
I have a table that has 5 cells and each cell has a link. So when I click on a cell , the visited cell will get background color. In other words, when I click on the cell the color of the cell changes. Thanks _ Get rid of annoying

Re: [PHP] How to do this in PHP?

2004-03-18 Thread Richard Davey
Hello Mike, Thursday, March 18, 2004, 2:16:32 PM, you wrote: MM I have a table that has 5 cells and each cell has a link. MM So when I click on a cell , the visited cell will get background color. MM In other words, when I click on the cell the color of the cell changes. This is an HTML (or

[PHP] Possible to have Array in $_SESSION????

2004-03-18 Thread Scott Fletcher
Hi! Is it possible to have an array that contain 2 or more segment to be put into the $_SESSION and to retreived it back? FletchSOD -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] the '' character and PHP...?

2004-03-18 Thread Tristan . Pretty
I've a script that uses '' However, if I pass that as a variable to another page, everything after it, gets ignored... I've tried: 1. Esacping the character with '\' 2. Using amp; But nothing works... Any ideas how to include an '' in my variable? Tris...

RE: [PHP] Possible to have Array in $_SESSION????

2004-03-18 Thread Clifford W. Hansen
Scott, Yes it is, You can also store objects in $_SESSION Eg. $_SESSION['Config'] = array( DBName = Common, DBHost = localhost ); Eg. MySQL_Connect( $_SESSION['Config']['DBHost'] ); Till We Meet Again... Clifford W. Hansen Operations Support Developer Aspivia (Pty) Ltd. +27 (0) 11 259-1150

Re: [PHP] How to do this in PHP?

2004-03-18 Thread Roger Spears
Mike Mapsnac wrote: I have a table that has 5 cells and each cell has a link. So when I click on a cell , the visited cell will get background color. In other words, when I click on the cell the color of the cell changes. I often see post here that are not so PHP related. This is due to the

Re: [PHP] the '' character and PHP...?

2004-03-18 Thread Raditha Dissanayake
[EMAIL PROTECTED] wrote: I've a script that uses '' However, if I pass that as a variable to another page, everything after it, gets ignored... I've tried: 1. Esacping the character with '\' 2. Using amp; But nothing works... Any ideas how to include an '' in my variable? Tris... Are you

Re: [PHP] the '' character and PHP...?

2004-03-18 Thread Stuart
[EMAIL PROTECTED] wrote: I've a script that uses '' However, if I pass that as a variable to another page, everything after it, gets ignored... I've tried: 1. Esacping the character with '\' 2. Using amp; But nothing works... Any ideas how to include an '' in my variable?

[PHP] Re: Javascript Mouseover Help

2004-03-18 Thread Five
I would be very interested in a solution to this problem because I have a similar one. I stored tables on a page. examp: $table_1 = tabletrtd.$name./td/tr/table; $table_2 = tabletrtd.$message./td/tr/table; etc... and included the page and used the variables (echo $table_1;) The table

Re: [PHP] Re: Javascript Mouseover Help

2004-03-18 Thread Tom Rogers
Hi, Friday, March 19, 2004, 12:44:40 AM, you wrote: F I would be very interested in a solution to this problem because I have a similar one. F I stored tables on a page. F examp: F $table_1 = tabletrtd.$name./td/tr/table; F $table_2 = tabletrtd.$message./td/tr/table; F etc... F and included

Re: [PHP] Re: Javascript Mouseover Help

2004-03-18 Thread Five
F ?php F $table_1 = tabletrtd.$name./td/tr/table; F $table_2 = tabletrtd.$message./td/tr/table; F $name = blah blah; F if(blah blah){ F echo $table_1;} F else{ F echo $table_2;} ? You have to define variable $name before you try to use it. The only other way would be to eval

[PHP] OT PHP Programmers

2004-03-18 Thread Jack Sasportas
Not sure where to post this, but my company is looking to hire an inhouse PHP programmer. This could be part or full time depending on details. We are not looking to contract an outside company ( doesn't work for us) or to get headhunters etc to call us. If you are a good PHP/MySQL/HTML

Re[2]: [PHP] Re: Javascript Mouseover Help

2004-03-18 Thread Tom Rogers
Hi, Friday, March 19, 2004, 1:11:52 AM, you wrote: F Doesn't $name = blah blah; define it enough? Not if it comes after $table_1 = tabletrtd.$name./td/tr/table; at this point $name does not exist. Try turning on E_ALL error reporting and it will tell you things like this. -- regards,

[PHP] How to keep a timestamp from updating?

2004-03-18 Thread Brian Dunning
I have a timestamp field that updates itself with NOW() every time I update the record. I don't want that to happen - I want it to remain as the original creation timestamp. How do I prevent this from happening? Thanks, - Brian -- PHP General Mailing List (http://www.php.net/) To unsubscribe,

[PHP] ereg_replace help

2004-03-18 Thread Richard Davey
Hi all, I'm sure this is blindingly simple, but could anyone tell me how to get an ereg_replace() to return a string where all characters OTHER than alpha-numerics have been stripped out? I can do the reverse with: $output = ereg_replace('[[:alnum:]]', '', $string); Which will happily remove

Re: [PHP] How to keep a timestamp from updating?

2004-03-18 Thread Richard Davey
Hello Brian, Thursday, March 18, 2004, 3:17:49 PM, you wrote: BD I have a timestamp field that updates itself with NOW() every time I BD update the record. I don't want that to happen - I want it to remain as BD the original creation timestamp. How do I prevent this from happening? Two

Re: [PHP] How to keep a timestamp from updating?

2004-03-18 Thread Adam Voigt
On MySQL anyway, the timestamp is by-design, a update/insert timestamp. I quote: The TIMESTAMP column type provides a type that you can use to automatically mark INSERT or UPDATE operations with the current date and time. If you have multiple TIMESTAMP columns, only the first one is updated

Re: [PHP] How to keep a timestamp from updating?

2004-03-18 Thread John W. Holmes
From: Brian Dunning [EMAIL PROTECTED] I have a timestamp field that updates itself with NOW() every time I update the record. I don't want that to happen - I want it to remain as the original creation timestamp. How do I prevent this from happening? Set it equal to itself or use a DATETIME

[PHP] Problem to display the results of an exec + rsh command

2004-03-18 Thread Frédéric Martin
Hi everybody, I'm trying to execute some commands in a remote host (a cisco router) using rsh connection and I've problems for displaying the results. For example if I do this: $res = exec(rsh x.x.x.x -l username ping x.x.x.x); echo pre $res /pre; I cannot display the result of the ping made

[PHP] php code to connect to MS-SQL SERVER

2004-03-18 Thread Rafi Sheikh
Hello folks. Basics: Apache 1.3.29, PHP 4.3.4, on WIN 2K-Pro SYS DSN=using SQL Server driver a connection exists (tested via Ms-Access) against a SQL Server PROBLEM: I am very new in php, therefore requesting if a simple snippet of code can be listed showing the proper way of making a

Re: [PHP] ereg_replace help

2004-03-18 Thread John W. Holmes
From: Richard Davey [EMAIL PROTECTED] I'm sure this is blindingly simple, but could anyone tell me how to get an ereg_replace() to return a string where all characters OTHER than alpha-numerics have been stripped out? $output = ereg_replace('[^a-zA-Z0-9]','',$string); The ^ is NOT (when the

Re: [PHP] ereg_replace help

2004-03-18 Thread Chris Hayes
At 16:21 18-3-04, you wrote: I can do the reverse with: $output = ereg_replace('[[:alnum:]]', '', $string); Which will happily remove all alpha-numeric characters from $string! But I want it to remove anything but.. suggestions please? did you try $output = ereg_replace('[^[:alnum:]]', '',

Re: [PHP] php code to connect to MS-SQL SERVER

2004-03-18 Thread Adam Voigt
mssql_connect('repo',$User,$Pass); mssql_select_db('test'); On Thu, 2004-03-18 at 02:31, Rafi Sheikh wrote: Hello folks. Basics: Apache 1.3.29, PHP 4.3.4, on WIN 2K-Pro SYS DSN=using SQL Server driver a connection exists (tested via Ms-Access) against a SQL Server PROBLEM: I am

Re[2]: [PHP] ereg_replace help

2004-03-18 Thread Richard Davey
Hello Chris, Thursday, March 18, 2004, 3:28:01 PM, you wrote: CH did you try CH $output = ereg_replace('[^[:alnum:]]', '', $string); CH ? Nope, because in the only reference book I had to hand it said the ^ matched the start of a string so it didn't occur to me to try it. Thanks to John I now

[PHP] HTML/PHP page print

2004-03-18 Thread Manisha Sathe
Hello, I want to print a document. The values are picked up from database and then PHP displays it is on screen. But I want to print in some predefined format (Customer has printed stationary) by using Browser's print button. How can avoid other stuff on my web page ? Also when i print then

[PHP] How to edit a datetime field?

2004-03-18 Thread Brian Dunning
I'm trying to set a datetime field to 24 hours in the future... NOW()+6000, which worked on a timestamp field, only gives 12 seconds in the future. Algebra suggested I try NOW()+720 which is invalid. Any suggestions? Thanks! - Brian -- PHP General Mailing List (http://www.php.net/) To

RE: [PHP] PHP On Solaris 9 - MySQL Problem

2004-03-18 Thread Cameron B. Prince
Hi Tom, This was a good idea... You might try an fsockopen() to port 3306 on the dbserver and see if it works. If not, you get a reasonably descriptive error. I just tried a couple of known servers and bogus addresses with this code: ?php $ipaddr = localhost; # substitute the IP

Re: Re[2]: [PHP] Re: Javascript Mouseover Help

2004-03-18 Thread Five
Tom Rogers [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Hi, Friday, March 19, 2004, 1:11:52 AM, you wrote: F Doesn't $name = blah blah; define it enough? Not if it comes after $table_1 = tabletrtd.$name./td/tr/table; at this point $name does not exist. Try turning on

Re: [PHP] How to edit a datetime field?

2004-03-18 Thread Richard Davey
Hello Brian, Thursday, March 18, 2004, 4:10:20 PM, you wrote: BD I'm trying to set a datetime field to 24 hours in the future... BD NOW()+6000, which worked on a timestamp field, only gives 12 seconds in BD the future. Algebra suggested I try NOW()+720 which is invalid. UPDATE table SET

[PHP] installing.

2004-03-18 Thread Edward Peloke
Hello, I know this is probably something stupid but... I have two windows2000 machines, both with Apache 1.3.2 and PHP 4.3. One of the machines works fine yet the other keeps throwing the error that it can't find the apache.dll when apache loads.. snip Syntax error on line 989 of c:/program

[PHP] Turn on E_ALL Error Reporting

2004-03-18 Thread Roger Spears
Hello, I changed the title of this email so it doesn't thread hijack... I use a simple function like this to turn on and show warnings and errors. It's my understanding though, if the error is catastrophic, it will not be displayed on the screen no matter what you do. Not sure about that

Re: Re[2]: [PHP] ereg_replace help

2004-03-18 Thread trlists
On 18 Mar 2004 Richard Davey wrote: Nope, because in the only reference book I had to hand it said the ^ matched the start of a string so it didn't occur to me to try it. Thanks to John I now know when used in a block it's no longer limited to the start of the string. The code you posted

RE: [PHP] PHP On Solaris 9 - MySQL Problem

2004-03-18 Thread trlists
On 18 Mar 2004 Cameron B. Prince wrote: I'm sure this is good to know because it proves at least part of PHP can reach the other machine... Which hopefully rules out a TCP/IP problem. I'm going to enable debugging on the MySQL server and see if that tells me anything. Ah, that's good. Then

Re[4]: [PHP] Re: Javascript Mouseover Help

2004-03-18 Thread Tom Rogers
Hi, Friday, March 19, 2004, 2:26:06 AM, you wrote: F Tom Rogers [EMAIL PROTECTED] wrote in message F news:[EMAIL PROTECTED] F Cool, it works! F include (the file where the tables are stored) after the the F variables are defined, and it works. F I took 3 semesters of C and C++ programming. I

RE: [PHP] Problem to display the results of an exec + rsh command

2004-03-18 Thread Chris W. Parker
Frédéric Martin mailto:[EMAIL PROTECTED] on Thursday, March 18, 2004 7:31 AM said: $res = exec(rsh x.x.x.x -l username ping x.x.x.x); echo pre $res /pre; I cannot display the result of the ping made in the remote host. any idea to fix that? thank you in advance for your tips ... i

Re: [PHP] HTML/PHP page print

2004-03-18 Thread Jason Giangrande
Manisha Sathe wrote: How can avoid other stuff on my web page ? I assume you want to only print the information and not the page header, footer, navigation, etc. There are several ways to do this. The best way is with CSS. However, if you have not created your page primarily with CSS this

Re: [PHP] Letter incrementing

2004-03-18 Thread Justin Patrin
echo char(ord('A') + 1); Brent Baisley wrote: You want to use the char() function. What you need to do is increment an ascii value and then convert that value to a letter. So ascii 65 is A. $asciiVal = 65; echo char($asciiVal); A $asciiVal++; ... On Mar 18, 2004, at 8:16 AM, Brent Clark

RE: [PHP] Simple: Whats wrong with this?

2004-03-18 Thread Chris W. Parker
Ford, Mike LSS on Thursday, March 18, 2004 5:02 AM said: Not quite -- the increment is performed immediately after the access -- in fact, as part of the same operation. So: $x = 3; $y = ($x++ * 2) + $x; is likely to give you $y==10, not 9. i see. good example. chris. --

Re: [PHP] HTML/PHP page print

2004-03-18 Thread Filip de Waard
On Mar 18, 2004, at 4:52 PM, Manisha Sathe wrote: Hello, I want to print a document. The values are picked up from database and then PHP displays it is on screen. But I want to print in some predefined format (Customer has printed stationary) by using Browser's print button. How can avoid

RE: [PHP] Re: Global variables in a class? Nested classes VS inheritance...

2004-03-18 Thread Chris W. Parker
I make a database connection outside of my classes... lets call it $myDBConnection. I need to use this connection in a class nested in a class... Was wondering the most efficient way of doing this? I don't want to create a new db connection in the class. I want to use the existing one...

Re: [PHP] Turn on E_ALL Error Reporting

2004-03-18 Thread Roger Spears
Also, when I use that code in my scripts, if there are any variables (arrays too) that are in existence with no value: $someVariable = ; it will throw a warning on the screen. First time I saw that I went into panic mode thinking that I had a huge amount of errors/warnings... You are also

[PHP] too much trimming

2004-03-18 Thread Ivan Sergio Borgonovo
I've simple code like this: -- begin -- #!/usr/bin/php -q ? $pippo='goofy' ? hey my name is ?= $pippo ? and I feel good -- end -- I would expect this output: -- begin -- hey my name is goofy and I feel good -- end -- but I obtain this: -- begin

[PHP] putting selected text in textarea i a string

2004-03-18 Thread R.G. Vervoort
Is it possible to change selected text in a textarea without using java and only php or html. There are lots of solutions in a javascript but i would like to try it without. If it is possible to place the in a textarea selected text in the return of a function i like to believe is can be done. So

Re: [PHP] Re: Global variables in a class? Nested classes VS inheritance...

2004-03-18 Thread Justin Patrin
Chris W. Parker wrote: I make a database connection outside of my classes... lets call it $myDBConnection. I need to use this connection in a class nested in a class... Was wondering the most efficient way of doing this? I don't want to create a new db connection in the class. I want to use the

[PHP] Get form name after submission

2004-03-18 Thread Jonathan Villa
Is there a way to get the name of the form once it's submitted like $_POST['form1'] or something. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Thank you, Microsoft! Now I need an alternate login method

2004-03-18 Thread Chris de Vidal
Microsoft broke IE 6.0 SP1 on XP in January, requiring this patch to be able to log into our MySQL-authenticated website: http://www.microsoft.com/downloads/details.aspx?FamilyId=254EB128-5053-48A7-8526-BD38215C74B2displaylang=en Microsoft won't put out this patch into the regular XP updates (I

Re: [PHP] putting selected text in textarea i a string

2004-03-18 Thread Richard Davey
Hello R.G., Wednesday, March 17, 2004, 9:18:53 PM, you wrote: RGV Is it possible to change selected text in a textarea without using java and RGV only php or html. RGV There are lots of solutions in a javascript but i would like to try it RGV without. If it is possible to place the in a

Re: [PHP] Get form name after submission

2004-03-18 Thread Richard Davey
Hello Jonathan, Thursday, March 18, 2004, 5:24:29 PM, you wrote: JV Is there a way to get the name of the form once it's submitted JV like $_POST['form1'] or something. Good question, but the answer is no - I don't believe you can. You could try passing the form name as a hidden form value? Or

Re: [PHP] Thank you, Microsoft! Now I need an alternate login method

2004-03-18 Thread Adam Voigt
What exactly is breaking? If it's the header to redirect, you could just issue a meta refresh, or a javascript one. On Thu, 2004-03-18 at 12:38, Chris de Vidal wrote: Microsoft broke IE 6.0 SP1 on XP in January, requiring this patch to be able to log into our MySQL-authenticated website:

[PHP] str_replace or regex

2004-03-18 Thread Adam Williams
Hi, I was wondering if I can get some help with either a str_replace or a regex. I have some data and it always begins with $$ but it can end with any letter of the alphabet. so sometimes its $$a and sometimes its $$b and sometimes $$c all the way to $$z. $$a all the way to $$z needs to be

[PHP] Anybody using Ensim Pro 3.5, help badly needed (0T)

2004-03-18 Thread Ryan A
Hey, If anybody uses ensim please help with the below problem...am going totally nuts. I reciently tried to upgrade mysql from 3.23 to 4.0 and in the process had to take out this rpm phpMyAdmin-2.3.2-ensim2.rpm and these files: php-mysql-4.3.3-0ensim2 perl-DBD-MySQL-1.2219-6

[PHP] Re: str_replace or regex

2004-03-18 Thread Justin Patrin
Adam Williams wrote: Hi, I was wondering if I can get some help with either a str_replace or a regex. I have some data and it always begins with $$ but it can end with any letter of the alphabet. so sometimes its $$a and sometimes its $$b and sometimes $$c all the way to $$z. $$a all the way

Re: [PHP] Get form name after submission

2004-03-18 Thread Robert Cummings
On Thu, 2004-03-18 at 12:24, Jonathan Villa wrote: Is there a way to get the name of the form once it's submitted like $_POST['form1'] or something. Include a hidden field with the name of the form for it's value. Cheers, Rob. --

Re: [PHP] How to edit a datetime field?

2004-03-18 Thread John W. Holmes
From: Brian Dunning [EMAIL PROTECTED] I'm trying to set a datetime field to 24 hours in the future... NOW()+6000, which worked on a timestamp field, only gives 12 seconds in the future. Algebra suggested I try NOW()+720 which is invalid. field = NOW() + INTERVAL 1 DAY or field =

Re: [PHP] Get form name after submission

2004-03-18 Thread John W. Holmes
From: Jonathan Villa [EMAIL PROTECTED] Is there a way to get the name of the form once it's submitted like $_POST['form1'] or something. No. You'd have to use javascript to set a variable upon submission and then find that variable. ---John Holmes... -- PHP General Mailing List

Re: [PHP] str_replace or regex

2004-03-18 Thread Richard Davey
Hello Adam, Thursday, March 18, 2004, 6:06:06 PM, you wrote: AW Hi, I was wondering if I can get some help with either a str_replace or a AW regex. I have some data and it always begins with $$ but it can end with AW any letter of the alphabet. so sometimes its $$a and sometimes its $$b AW and

[PHP] Parsing recordsets - only first row returned

2004-03-18 Thread Alex Hogan
Hi All, I am parsing data returned from a field that looks like this; 6-8-3-5-10-9-6__7-5-9--etc... The code below parses out the data they way I want it but only returns the first row. I need to compare all rows and return an average from each of the parsed out numbers. Where have I

Re: [PHP] str_replace or regex

2004-03-18 Thread John W. Holmes
From: Adam Williams [EMAIL PROTECTED] Hi, I was wondering if I can get some help with either a str_replace or a regex. I have some data and it always begins with $$ but it can end with any letter of the alphabet. so sometimes its $$a and sometimes its $$b and sometimes $$c all the way to

Re: [PHP] str_replace or regex

2004-03-18 Thread Firman Wandayandi
eregi_replace('(\$\$)([a-z].+)', '\1z', '$$a'); Maybe i'm wrong, please crosscheck. Regards, Firman - Original Message - From: Adam Williams [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Friday, March 19, 2004 1:06 AM Subject: [PHP] str_replace or regex Hi, I was wondering if I

RE: [PHP] PHP On Solaris 9 - MySQL Problem

2004-03-18 Thread Cameron B. Prince
Hi Tom, Ah, that's good. Then it is just a problem of MySQL. Have you tried accessing a remote machine running MySQL 3.2x instead of 4.0? That seems like an obvious potential culprit. I just finished doing that on a third machine that didn't have a previous MySQL installation. I

Re: [PHP] OT PHP Programmers

2004-03-18 Thread Chris Shiflett
--- Jack Sasportas [EMAIL PROTECTED] wrote: Not sure where to post this, but my company is looking to hire an inhouse PHP programmer. You might consider here: http://www.phpcommunity.org/wiki/Home/PHPJobs This may potentially turn into a full-fledged PHP job site, depending on interest.

Re: [PHP] Get form name after submission

2004-03-18 Thread Roger Spears
You assign it to a hidden field in your form input type=hidden name=formName value=actualFormName in your PHP: $formName = $_POST['formName']; of course, this would have to be accomplished BEFORE the form is submitted. Not sure if that is what you are looking for or not... HTH, Roger -- PHP

RE: [PHP] too much trimming

2004-03-18 Thread Chris W. Parker
Ivan Sergio Borgonovo mailto:[EMAIL PROTECTED] on Thursday, March 18, 2004 9:22 AM said: but I obtain this: -- begin -- hey my name is goofy and I feel good -- end -- Lines are indented with tabs. I suspect something related to -w flag, but I haven't been able to

[PHP] How to LogOut ?

2004-03-18 Thread Labunski
I made Login page using http auth method ($PHP_AUTH_USER), and it's workong fine. But how to LogOut user? Thanks for all the answers. Lab. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Get form name after submission

2004-03-18 Thread trlists
On 18 Mar 2004 Richard Davey wrote: Good question, but the answer is no - I don't believe you can. You could try passing the form name as a hidden form value? Or name your submit button accordingly? I have done this with the Submit button but I find that the results vary. If you click

RE: [PHP] PHP On Solaris 9 - MySQL Problem

2004-03-18 Thread trlists
On 18 Mar 2004 Cameron B. Prince wrote: I just finished doing that on a third machine that didn't have a previous MySQL installation. I installed the same version that the webserver has. I had the same results. I'm losing track here -- are you saying you can't connect to another machine

[PHP] Re: Thank you, Microsoft! Now I need an alternate login method

2004-03-18 Thread Andre Cerqueira
try absolute urls on 'Location' headers if thats the problem, ie is not exactly broken, just making some (questionable) standards mandatory Chris De Vidal wrote: Microsoft broke IE 6.0 SP1 on XP in January, requiring this patch to be able to log into our MySQL-authenticated website:

Re: [PHP] Letter incrementing

2004-03-18 Thread David Otton
On Thu, 18 Mar 2004 15:16:34 +0200, you wrote: But I need to do a $variable = B; and then do a $variable++ that will result in $variable == C for ($i = 0; $i 26; $i++) { echo (chr($i + ord('A'))); } -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

Re: [PHP] Thank you, Microsoft! Now I need an alternate loginmethod

2004-03-18 Thread Chris de Vidal
Adam Voigt said: What exactly is breaking? If it's the header to redirect, you could just issue a meta refresh, or a javascript one. The only time redirects are sent is when there is a failure. Otherwise it's a simple post operation to a PHP file with an include. Have another look at the

Re: [PHP] Thank you, Microsoft! Now I need an alternate loginmethod

2004-03-18 Thread Adam Voigt
Have another look at the code. Try it on your server if you'd like. You can replicate the problem with an XP box that's recently (this month) been automatically updated. If I ran XP I might be able to do that. From reading the security release my MS, it sounds like some times the POST

RE: [PHP] Parsing recordsets - only first row returned

2004-03-18 Thread Chris W. Parker
Alex Hogan mailto:[EMAIL PROTECTED] on Thursday, March 18, 2004 10:39 AM said: Hi All, I am parsing data returned from a field that looks like this; 6-8-3-5-10-9-6__7-5-9--etc... The code below parses out the data they way I want it but only returns the first row. I

Re: [PHP] Parsing recordsets - only first row returned

2004-03-18 Thread John W. Holmes
From: Alex Hogan [EMAIL PROTECTED] I am parsing data returned from a field that looks like this; 6-8-3-5-10-9-6__7-5-9--etc... Wow... you're totally missing the point of a database when you store data like this. The code below parses out the data they way I want it but only returns the

[PHP] date()

2004-03-18 Thread Khalid Judeh
hello all, i am new to php, i am trying to call the date function this way: ?php echo date(d/m/y); ? and the result i get is: object18/03/04 any help would be appreciated Khaled Jouda cell. phone: 0163-2382758 fax: 1(801)439-1253

  1   2   >