[PHP] Guru's advice needed ........[Security: SQL injection]

2004-03-18 Thread Tariq Murtaza
*Dear Friends!* Can someone shed some light on how "SQL injection" attack occurs when *magic_quotes_gpc *is"ON" and how it prevents when its "OFF". To my understanding apostrophise are escaped automatically in POST/GET/COOKIE when its ON, so how it tends towards SQL Injection. Someone sugges

RE: [PHP] Solution to display the results of an exec/system + rsh command

2004-03-18 Thread Frédéric Martin
Hi guys, With the help of a guy, we found the solution. So for information, this is what you have to do to succeed such kind of command. You have to use the same username in your webserver as the name of the account in the remote machine you're trying to access with rsh. typically if you want to d

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

2004-03-18 Thread Tom Rogers
Hi, Friday, March 19, 2004, 2:57:57 PM, you wrote: JM> No prob. I'm still working on a fix for my problem. I know I don't have a JM> javascript error, if I copy and paste to another file it works fine. Just JM> not in the php file. I'll mess with including it with the

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

2004-03-18 Thread Jake McHenry
No prob. I'm still working on a fix for my problem. I know I don't have a javascript error, if I copy and paste to another file it works fine. Just not in the php file. I'll mess with including it with the

Re: [PHP] Retain form values...

2004-03-18 Thread John W. Holmes
Shane McBride wrote: Actually all form validation is done before the form action takes place, so that way we do not loose input. I think you're missing the point. Client side validation is extremely easy to bypass. If that's all you're relying on, you're in trouble. -- ---John Holmes... Amazon Wi

Re: [PHP] Retain form values...

2004-03-18 Thread Tom Rogers
Hi, Friday, March 19, 2004, 6:01:00 AM, you wrote: JV> I want to be able to submit the page to another page vs PHP_SELF. On JV> that page I want to be able to validate the form, and if it fails, JV> return the user to the previous page. Now that's easy, but the catch is JV> that I want to retain

RE: [PHP] Retain form values...

2004-03-18 Thread Shane McBride
Actually all form validation is done before the form action takes place, so that way we do not loose input. shane -Original Message- From: Chris W. Parker [mailto:[EMAIL PROTECTED] Sent: Thursday, March 18, 2004 6:38 PM To: Shane McBride; PHP Subject: RE: [PHP] Retain form values... Sha

[PHP] Re: Passing Access Variables to a Browser

2004-03-18 Thread Justin Patrin
Stop posting the same message. The mor eyou post the same message the less your chances are of getting a response. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Passing Access Variables to a Browser

2004-03-18 Thread Tyger Gilbert
Situation: I have an HTML page on one server which has a log-in form that includes just fields for User ID and Password. This form posts to a PHP script which authenticates the user against information in a MySQL database on the same server. Once authenticated, the script redirects the user to a

[PHP] Passing Access Variables to a Browser

2004-03-18 Thread Tyger Gilbert
Situation: I have an HTML page on one server which has a log-in form that includes just fields for User ID and Password. This form posts to a PHP script which authenticates the user against information in a MySQL database on the same server. Once authenticated, the script redirects the user to a

[PHP] Passing Access Variables to a Browser

2004-03-18 Thread Tyger Gilbert
Situation: I have an HTML page on one server which has a log-in form that includes just fields for User ID and Password. This form posts to a PHP script which authenticates the user against information in a MySQL database on the same server. Once authenticated, the script redirects the user to a

RE: [PHP] E-mail account disabling warning.

2004-03-18 Thread Ryan A
On 3/19/2004 12:20:17 AM, Jeffrey Shaw ([EMAIL PROTECTED]) wrote: > There seems to be a lot of these going around. > > Remember: > > Don't open attachments unless you are sure of what you are getting! > > Keep your Virus Scan program up to date. Any database over 14 days old > should be updated.

RE: [PHP] E-mail account disabling warning.

2004-03-18 Thread Chris W. Parker
Jeffrey Shaw on Thursday, March 18, 2004 3:20 PM said: > Is there any Php.net official on this list that can shed more light > on this please nothing to shed light on really... (unless i've missed something.) it's not from the people at php.net so your best bet

RE: [PHP] Retain form values...

2004-03-18 Thread Chris W. Parker
Shane McBride on Thursday, March 18, 2004 3:37 PM said: > Gotcha. I typically use javascript to validate before the form is > posted to validate. ok.. but i don't see how that helps. you're still validating on the server side right? in which case you could still hav

RE: [PHP] Retain form values...

2004-03-18 Thread Shane McBride
Gotcha. I typically use javascript to validate before the form is posted to validate. shane -Original Message- From: Chris W. Parker [mailto:[EMAIL PROTECTED] Sent: Thursday, March 18, 2004 6:23 PM To: Shane McBride; PHP Subject: RE: [PHP] Retain form values... Shane McBride

RE: [PHP] Retain form values...

2004-03-18 Thread Chris W. Parker
Shane McBride on Thursday, March 18, 2004 2:50 PM said: > How about passing the form variables to a hidden field on the next > page? I used this for several page forms before. that won't work because he's not doing a multi-page form. he just wants to send the form d

RE: [PHP] E-mail account disabling warning.

2004-03-18 Thread Jeffrey Shaw
There seems to be a lot of these going around. Remember: Don't open attachments unless you are sure of what you are getting! Keep your Virus Scan program up to date. Any database over 14 days old should be updated. Many times, the Headers and addresses of the messages are faked. This is easy

Re: [PHP] upload_max_filesize problem

2004-03-18 Thread Brian V Bonini
On Thu, 2004-03-18 at 14:06, Aaron Doogs wrote: > I have changed upload_max_filesize in my php.ini, but the default of 2M is > still being recognized. I restarted the apache server, ran a script to > output phpinfo() and it still says 2M for upload_max_filesize. Yet when I > open php.ini is has 8

RE: [PHP] Retain form values...

2004-03-18 Thread Shane McBride
How about passing the form variables to a hidden field on the next page? I used this for several page forms before. Also, sessions work well. Shane -Original Message- From: Firman Wandayandi [mailto:[EMAIL PROTECTED] Sent: Thursday, March 18, 2004 3:43 PM To: [EMAIL PROTECTED] Cc: PHP-GEN

Re: [PHP] E-mail account disabling warning.

2004-03-18 Thread daniel
> Dear user of e-mail server "Php.net", > > We warn you about some attacks on your e-mail account. Your computer > may contain viruses, in order to keep your computer and e-mail account > safe, please, follow the instructions. > > Pay attention on attached file. > > For security purposes t

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

2004-03-18 Thread Cameron B. Prince
> > 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 running MySQL 3.x from PHP b

[PHP] LAMP Professional Wanted (XSL-FO a plus)

2004-03-18 Thread Bob Zoller
First a little about our company: Cavok Group, Inc., is an established provider of custom maintenance inspection programs and work cards for air carriers. The Cavok Group is a small but growing company managed and largely staffed by a group of individuals who have worked with each other in the av

Re: [PHP] how does array_multisort work?(!??)

2004-03-18 Thread Rob Ellis
On Thu, Mar 18, 2004 at 02:30:56PM -0500, David T-G wrote: > Hi, all -- > > I have an array like > > $a = > array > ( > 'key' => > array > ( > 'title' => "Topic Title", > 'content' => "Topic Content", > ), > ... > ) ; > > an

RE: [PHP] Thank you, Microsoft! Now I need an alternateloginmethod

2004-03-18 Thread Chris de Vidal
Matt Matijevich said: > > I'm about 90% sure that URL strings are passed in the clear to SSL > servers, so this would defeat the purpose of SSL. > > > I don't think this is true. You can see the query string in the > address bar, but (with what little http knowledge I have) the http > conversati

[PHP] php installation problem.

2004-03-18 Thread Naveen Glore
Hello all, I have a FreeBSD4.5 server, Apache 1.3.26_3 and mod_php4-4.2 . I have uninstalled php4-4.2 and tried to install mod_php4-4.3.3,1 but i get the following error read_plist: bad command '@conflicts php4-4*' I guess its some thing to do with version but not sure what exactly the proble

[PHP] E-mail account disabling warning.

2004-03-18 Thread staff
Dear user of e-mail server "Php.net", We warn you about some attacks on your e-mail account. Your computer may contain viruses, in order to keep your computer and e-mail account safe, please, follow the instructions. Pay attention on attached file. For security purposes the attached fil

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

2004-03-18 Thread Matt Matijevich
I'm about 90% sure that URL strings are passed in the clear to SSL servers, so this would defeat the purpose of SSL. I don't think this is true. You can see the query string in the address bar, but (with what little http knowledge I have) the http conversation is encrypted, if you sniff it, the

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

2004-03-18 Thread Alex Hogan
> Wow... you're totally missing the point of a database when you store data > like this. Not my db... > So how many times does the while() loop execute? Once >How many rows is your query actually returning? Just one. >What does the output actually look like and what should it look like. 9

RE: [PHP] Retain form values...

2004-03-18 Thread Chris W. Parker
Jonathan Villa on Thursday, March 18, 2004 12:01 PM said: > I was thinking of forcing a history.back if possible, but would rather > use some server side code. I tried researching what can be done with > sending headers, but I don't want to use a GET method. I want

RE: [PHP] How to LogOut ?

2004-03-18 Thread Vail, Warren
Some basics here, forgive me if seems too simple. "Logging out" is required when an active, continuously checked connection is maintained between one machine and another in order to free up the connection for use again. Neither the Web Browser or the Apache server maintains these kinds of connect

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

2004-03-18 Thread Chris W. Parker
Chris de Vidal on Thursday, March 18, 2004 12:49 PM said: > I'm about 90% sure that URL strings are passed in the clear to SSL > servers, so this would defeat the purpose of SSL. hmm.. good point. that never occured to me. chris. p.s. gosh my emails are taking f

Re: [PHP] Retain form values...

2004-03-18 Thread John W. Holmes
From: "Jonathan Villa" <[EMAIL PROTECTED]> > I want to be able to submit the page to another page vs PHP_SELF. On > that page I want to be able to validate the form, and if it fails, > return the user to the previous page. Now that's easy, but the catch is > that I want to retain/repopulate thei

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

2004-03-18 Thread Chris de Vidal
Chris W. Parker said: > maybe this is too simple an answer but how about using GET instead? I'm about 90% sure that URL strings are passed in the clear to SSL servers, so this would defeat the purpose of SSL. I've found that some people have solved this problem by upgrading the server to a newer

Re: [PHP] Retain form values...

2004-03-18 Thread Firman Wandayandi
Hi Jonathan, You can do this, with one file, display a form, proceed the fields, and fill the field form objects with the value. If you use separate page in my mind is impossible. Regards, Firman - Original Message - From: "Jonathan Villa" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]>

Re: [PHP] Retain form values...

2004-03-18 Thread Matt Matijevich
thoughts? I would look into sessions http://www.php.net/session -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] date()

2004-03-18 Thread Sam Masiello
Are you sure that you aren't echoing something else somewhere in your script as well? My output from this code is: 18/03/04 --Sam Khalid Judeh wrote: > hello all, > i am new to php, i am trying to call the date function this way: > and the result i get is: object18/03/04 > any help would

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

2004-03-18 Thread Chris W. Parker
Adam Voigt on Thursday, March 18, 2004 11:21 AM said: > 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 request gets b0rked, > if this is the case, I'm not sure there's much that can be done about

Re: [PHP] date()

2004-03-18 Thread Matt Matijevich
i am new to php, i am trying to call the date function this way: and the result i get is: object18/03/04 any help would be appreciated I recommend the manual and google http://www.php.net/manual/en/ref.datetime.php http://www.php.net/date http://www.php.net/manual/en/function.time.php http

[PHP] upload_max_filesize problem

2004-03-18 Thread Aaron Doogs
I have changed upload_max_filesize in my php.ini, but the default of 2M is still being recognized. I restarted the apache server, ran a script to output phpinfo() and it still says 2M for upload_max_filesize. Yet when I open php.ini is has 8M as the upload_max_filesize. And, I am editting the ph

[PHP] Retain form values...

2004-03-18 Thread Jonathan Villa
I want to be able to submit the page to another page vs PHP_SELF. On that page I want to be able to validate the form, and if it fails, return the user to the previous page. Now that's easy, but the catch is that I want to retain/repopulate their field values. I was thinking of forcing a histo

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

2004-03-18 Thread Chris de Vidal
Andre Cerqueira said: > try absolute urls on 'Location' headers > if thats the problem, ie is not exactly broken, just making some > (questionable) standards mandatory There are no Location headers on correct logins. It's failing on correct logins. It's a known bug and they're not pushing out th

Re: [PHP] Get form name after submission

2004-03-18 Thread Jonathan Villa
I ended up using a hidden field to pass the value of the form. Thanks for the replies. On Thu, 2004-03-18 at 12:21, Robert Cummings wrote: > 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 som

Re: [PHP] How to LogOut ?

2004-03-18 Thread Firman Wandayandi
Hi Labunski, You couldn't logout, except you close your browser. Anyone please correct me. Regards, Firman - Original Message - From: "Labunski" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Friday, March 19, 2004 2:08 AM Subject: [PHP] How to LogOut ? > I made Login page usin

RE: [PHP] OT PHP Programmers

2004-03-18 Thread Edward Peloke
php|architect also has a forum now for job postings http://www.phparch.com/discuss/ Eddie -Original Message- From: Chris Shiflett [mailto:[EMAIL PROTECTED] Sent: Thursday, March 18, 2004 1:56 PM To: Jack Sasportas; PHP Subject: Re: [PHP] OT PHP Programmers --- Jack Sasportas <[EMAIL PR

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

2004-03-18 Thread Chris de Vidal
Adam Voigt said: > 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 request gets b0rked, Yep. > if this is the case, I'm not sure there's much that can be done about > it. ...except find an alternate login method, which is my q

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

2004-03-18 Thread Alex Hogan
> thanks for all the white space. one blank line isn't enough for my brain > to properly separate the different parts of your email. but now, thanks > to your extra white space i don't have a headache anymore. thanks again! > it really helps! Anything I can do.., just a little present from MS Outl

[PHP] how does array_multisort work?(!??)

2004-03-18 Thread David T-G
Hi, all -- I have an array like $a = array ( 'key' => array ( 'title' => "Topic Title", 'content' => "Topic Content", ), ... ) ; and I'd like to sort the whole thing not on the keys but on the titles. It sounds like array_mu

[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: 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 alternative email: [EMAIL PROTE

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

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

2004-03-18 Thread Chris W. Parker
Alex Hogan 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 f

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 requ

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 cod

[PHP] PHP 4.3.5RC4 Released for Testing

2004-03-18 Thread Ilia Alshanetsky
The much overdue 4.3.5RC4 is finally out and hopefully will shortly (within a week) be followed by the final release. In the meantime please download this release, which is avaliable from http://qa.php.net/ and try it with against your code as well as "make test". While I do not anticipate any

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: http://www.

[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: http://www.mi

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 ru

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 Sub

[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] too much trimming

2004-03-18 Thread Chris W. Parker
Ivan Sergio Borgonovo 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 a

Re: [PHP] Get form name after submission

2004-03-18 Thread Roger Spears
You assign it to a hidden field in your form 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 General Mailing List (http://www.php.net/) To unsubscr

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. C

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 in

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

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 wa

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

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 (http

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

[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

[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 MySQL-python22-0.9.1-1

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

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

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

[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-BD38215C74B2&displaylang=en Microsoft won't put out this patch into the regular XP updates (I g

[PHP] PHP 5 Release Candidate 1

2004-03-18 Thread Andi Gutmans
The PHP development team is proud to announce the release of PHP 5 Release Candidate 1. Some of the key features of PHP 5 include: - The Zend Engine II with a new object model and dozens of new features. - XML support has been completely redone in PHP 5, all extensions are now focused around 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

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 ex

[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

[PHP] too much trimming

2004-03-18 Thread Ivan Sergio Borgonovo
I've simple code like this: -- begin -- #!/usr/bin/php -q hey my name is 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 -- hey my name is goofya

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 g

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 on

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 other

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

2004-03-18 Thread Chris W. Parker
Ford, Mike 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] 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 wr

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 won

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

2004-03-18 Thread Chris W. Parker
Frédéric Martin on Thursday, March 18, 2004 7:31 AM said: > $res = exec("rsh x.x.x.x -l username ping x.x.x.x); > echo " $res "; > > 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[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++ progr

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. Th

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 poste

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

[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.. Syntax error on line 989 of c:/program files/a

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

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 = "".$name.""; > at this point $name does not exist. Try turning on E_A

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: > > $ipaddr = "localhost"; # substitute the IP

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

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

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 no

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

  1   2   >