[PHP] Multiply - seemed to be so very easy

2002-11-11 Thread Tomasz Ciesielski
Hi. That's my problem: class MYCLASS { var $z = array(); function addOne($PRODUCT_ID,$IL,$PR) { $this-z[$PRODUCT_ID]=array(IL = $IL, PR = $PR); } function myPrice() { $cn = 0.0; reset($this-z); while (list($id,$vals) = each($this-z)) { problem here! - $cn=$cn + $vals[PR]*$vals[IL]; }

Re: [PHP] h/1 tag

2002-11-11 Thread Hugh Danaher
John, Google search turned up nada. Perhaps it's just a typo. Hugh - Original Message - From: @ Edwin [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Sunday, November 10, 2002 11:08 PM Subject: Re: [PHP] h/1 tag John Meyer [EMAIL PROTECTED] wrote: I'm doing some PHP work, and

[PHP] SELECT MULTIPLE...

2002-11-11 Thread Bsantos PHP
Hello: I'm building an internal messaging system for small biz companies and I can't really go longer Problem is, I use some fields to make the message form and one of them must be a select multiple form element wich refers to messaging persons. This is my form: table tr td

Re: [PHP] Submit hitting enter problem

2002-11-11 Thread Richard Allsebrook
One point nobody seems to have raised about why its important to quote attribute values ... ? $Value=foo bar; echo INPUT type=text value=$Value; ? will produce the following code in the browser INPUT type=text value=foo bar and renders in the browser (testing in ie6) as a text box containing

Re: [PHP] SELECT MULTIPLE...

2002-11-11 Thread Jason Wong
On Monday 11 November 2002 17:51, Bsantos PHP wrote: Hello: I'm building an internal messaging system for small biz companies and I can't really go longer Problem is, I use some fields to make the message form and one of them must be a select multiple form element wich refers to

Re: [PHP] Submit hitting enter problem

2002-11-11 Thread Jason Wong
On Monday 11 November 2002 17:59, Richard Allsebrook wrote: One point nobody seems to have raised about why its important to quote attribute values ... ? $Value=foo bar; echo INPUT type=text value=$Value; ? will produce the following code in the browser INPUT type=text value=foo bar

Re: [PHP] Multiply - seemed to be so very easy

2002-11-11 Thread Jason Wong
On Monday 11 November 2002 17:20, Tomasz Ciesielski wrote: Hi. That's my problem: class MYCLASS { var $z = array(); function addOne($PRODUCT_ID,$IL,$PR) { $this-z[$PRODUCT_ID]=array(IL = $IL, PR = $PR); } function myPrice() { $cn = 0.0; reset($this-z); while (list($id,$vals) =

Re: [PHP] SELECT MULTIPLE...

2002-11-11 Thread Bsantos PHP
Sorry People: I really forget that: Line 110: VALUES ('$receptor[1]', '$mfi-email', '$frm[priority]', '$frm[title]', '$frm[description]', now(), '$on_special') which makes part of: if (!isset ($receptor[])) { $receptor[] = {0,0,0,0,0,0}; } else { } for ($i=0;$i6;$i++) { $qid =

[PHP] Re: PHP installation _ help needed

2002-11-11 Thread Bob G
Hi Prachait. Many thanks for your reply. I have not added to dll in IIS. I simply wanted to get off the ground and then build on what I had. So I followed the operating instructions for InstallationShield and modified the application mappings for .PHP and .PHP3 to point to C:/PHP.php.exe.I

[PHP] Copy Paste URL was [Re: [PHP] Would appreciate thoughts on sessionmanagement ]

2002-11-11 Thread B.C. Lance
one reason that i could think of for not including session id into URL and using cookies would be copy paste. users could just copy and paste the url and send it to his/her friends. and it could be a considerably number of people. imagine couple of people clicking on the link. that session

[PHP] Delivering Custom Content

2002-11-11 Thread Warmonkey
Hello there, My CS clan has just starting using phpBB for our clan forum. We are planning to develop a new php based site and wanted to be able to display customised content on the main page depending on the user logged in. For instance, I was thinking of having a login box in the corner of the

[PHP] refresh

2002-11-11 Thread Shaun
hi, How do you refresh a page in php? If i cannot wat is the code or meta(i think) to do so? Thanks Shaun -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: refresh

2002-11-11 Thread Bsantos PHP
meta http-equiv=refresh content=X, http://www.Y.EXT; Being: X - number of seconds Y - domain EXT -type of domain (.net, .pt, .com, .org, etc...) In PHP you use it also, or you may go to same location as an header (double check where to do it...): header(Location:

RE: [PHP] refresh

2002-11-11 Thread Brendon G
http://www.google.com/search?q=meta+refresh+html+code Google is your friend. Cheers Brendon -Original Message- From: Shaun [mailto:johan;novtel.co.za] Sent: Monday, November 11, 2002 9:24 PM To: [EMAIL PROTECTED] Subject: [PHP] refresh hi, How do you refresh a page in php? If i

[PHP] zend studio (erro)

2002-11-11 Thread dark rotter
hello.. I use Dreamweaver for coding but i knew the zend studio. When i try run a script, the output window show me this: X-Powered-By: PHP/4.2.1 Content-type: text/html br / bFatal error/b: Call to undefined function: mssql_connect() in bE:\cef\hab\frm_diagnostico.php/b on line b2/bbr /

[PHP] mysql_data_seek equivilant in Postgres

2002-11-11 Thread Chris Boget
I'm looking into the feasibility of moving our current MySQL database to Postgres and have been looking over the PHP documentation for each, comparing the functionality. One of the functions we use alot that I haven't seen in the pg function list is the equivilant of mysql_data_seek. Is there

[PHP] surepay

2002-11-11 Thread Clint Tredway
Has anyone implemented credit card processing with surepay.com using PHP? Any tips would be appreciated. Clint -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] surepay

2002-11-11 Thread Ernest E Vogelsinger
At 15:15 11.11.2002, Clint Tredway spoke out and said: [snip] Has anyone implemented credit card processing with surepay.com using PHP? Any tips would be appreciated. [snip] I have, approx. a year ago - what do you

Re: [PHP] surepay

2002-11-11 Thread Ernest E Vogelsinger
At 15:15 11.11.2002, Clint Tredway spoke out and said: [snip] Has anyone implemented credit card processing with surepay.com using PHP? [snip] Ehm - you mean FirePay, right? -- O Ernest E. Vogelsinger (\)

RE: [PHP] Urgent CPU and|or hdd test

2002-11-11 Thread John W. Holmes
Is there a way i can test the cpu or the hdd for its serial number in php under linux and win? Can you do it from the command line? Run the same command through exec(). You can only get information for the server, not anything about the client's computer, btw... ---John Holmes... -- PHP

[PHP] automatically updating software

2002-11-11 Thread Peter VanDijck
Hi, I want to write some (browser based) software that will get installed on the client's servers, and I want it to update automatically (as in Windows XP: new updates are downloaded and presented for install). Can that be done with PHP? Some ideas so far (that will probably betray my ignorance

RE: [PHP] SELECT MULTIPLE...

2002-11-11 Thread John W. Holmes
Line 110: VALUES ('$receptor[1]', '$mfi-email', '$frm[priority]', '$frm[title]', '$frm[description]', now(), '$on_special') Those errors are just warnings. It's telling you that $receptor[1] does not have a value when it reaches that statement. Does that matter to you? You may want to throw

[PHP] Logic headache, please help.

2002-11-11 Thread Tony Crockford
Hi all, brief explanation: I'm building a select list, to exclude certain directories from a search (with Ht://dig). The structure is like this: select name=exclude option value=All levels/option option value=/lv2/|/lv3/|/lv4/Level 1/option option value=/lv1/|/lv3/|/lv4/Level 2/option option

RE: [PHP] Urgent CPU and|or hdd test

2002-11-11 Thread Marco Tabini
If you're using linux, you can try to execute this from the command line: hdparm -i [device] to get, among other things, the serial number of a hard drive. You can then extract it with a simple regular expression. Marco -- php|architect - The magazine for PHP Professionals The

Re: [PHP] Logic headache, please help.

2002-11-11 Thread Marco Tabini
How about building an array of all the levels: $a = array(); for ($i = 1; $i = $maxlevels; $i++) $a[] = $i; then for each level you can create a new array that is the difference between the original array and an array that contains the current level: for ($i = 1; $i = $maxlevels; $i++)

RE: [PHP] Logic headache, please help.

2002-11-11 Thread Tony Crockford
-Original Message- From: Marco Tabini [mailto:marcot;tabini.ca] Sent: 11 November 2002 14:46 To: Tony Crockford Cc: Php-GeneralLists. Php. Net Subject: Re: [PHP] Logic headache, please help. How about building an array of all the levels: $a = array(); for ($i = 1; $i =

RE: [PHP] Logic headache, please help.

2002-11-11 Thread Marco Tabini
My guess is it works... but only one way to find out--try it! :-) Marco -- php|architect - The magazine for PHP Professionals The first monthly worldwide magazine dedicated to PHP programmers Check us out on the web at http://www.phparch.com On Mon, 2002-11-11 at 10:19, Tony

Re: [PHP] automatically updating software

2002-11-11 Thread Charles Wiltgen
Peter VanDijck wrote... I want to write some (browser based) software that will get installed on the client's servers, and I want it to update automatically (as in Windows XP: new updates are downloaded and presented for install). Can that be done with PHP? I've been considering something

Re: [PHP] automatically updating software

2002-11-11 Thread Peter VanDijck
Some ideas so far (that will probably betray my ignorance :): - updating images will require write access that may introduce security issues? Security issues will prevent you from reading or writing any files that your PHP process doesn't have permissions for. In my experience, the only

[PHP] method chaining

2002-11-11 Thread Terry McBride
Hello, I have a question about php and OO. I want to chain methods together having them performed on the results of the following method. Meaning something like $foo-get(bar)-getBaz(). I get the following error from the script bellow. Parse error: parse error, unexpected T_OBJECT_OPERATOR,

[PHP] Re: Copy Paste URL was [Re: [PHP] Would appreciate thoughts onsession management ]

2002-11-11 Thread Charles Wiltgen
B.C. Lance wrote... one reason that i could think of for not including session id into URL and using cookies would be copy paste. users could just copy and paste the url and send it to his/her friends. and it could be a considerably number of people. imagine couple of people clicking on

Re: [PHP] method chaining

2002-11-11 Thread Ernest E Vogelsinger
At 16:53 11.11.2002, Terry McBride spoke out and said: [snip] Hello, I have a question about php and OO. I want to chain methods together having them performed on the results of the following method. Meaning something like $foo-get(bar)-getBaz(). I get

RE: [PHP] Urgent CPU and|or hdd test

2002-11-11 Thread Ernest E Vogelsinger
At 15:38 11.11.2002, Marco Tabini spoke out and said: [snip] If you're using linux, you can try to execute this from the command line: hdparm -i [device] to get, among other things, the serial number of a hard drive. You can then extract it with a simple

Re: [PHP] Urgent CPU and|or hdd test

2002-11-11 Thread Thomas \omega\ Henning
Thanks for the information but is there a way to get it in windows aswell? Thanks Thomas omega Henning Marco Tabini [EMAIL PROTECTED] wrote in message news:1037025483.12570.155.camel;localhost.localdomain... If you're using linux, you can try to execute this from the command line: hdparm -i

Re: [PHP] automatically updating software

2002-11-11 Thread Charles Wiltgen
Peter VanDijck wrote... Security issues will prevent you from reading or writing any files that your PHP process doesn't have permissions for. In my experience, the only reliable way to do this is by using FTP using the username and password that the user will (presumably) give you. But

Re: [PHP] method chaining

2002-11-11 Thread Maxim Maletsky
work around: $obj = $foo-get(bar); $obj-getBaz(); it is a better way as you don't have to re-repeat the function code and re-pass the oblect. -- Maxim Maletsky [EMAIL PROTECTED] Terry McBride [EMAIL PROTECTED] wrote... : Hello, I have a question about php and OO. I want to chain

RE: [PHP] zend studio (erro)

2002-11-11 Thread Brad Young
The Zend Studio comes with both a local debugger (for convenient local-machine / offline debugging) as well as remote server debugger (for 'the real deal'). If you work with the local debugger, the local version of php is used, which includes core php, but not any extensions. The function

Re: [PHP] method chaining

2002-11-11 Thread Johan Ohlin
If I have understood correctly what you want to do then this will do fine... $foo-${$foo-get(bar)}-getBaz(); / Johan - Original Message - From: Terry McBride [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Monday, November 11, 2002 4:53 PM Subject: [PHP] method chaining Hello, I have

Re: [PHP] method chaining

2002-11-11 Thread Terry McBride
At this point, I respectfully disagree. To say it's not supported is one thing but to say it's better or more efficient convincingly requires more. Tell me why :) Who's repeating/repassing? I'm under the impression it would be faster for the interpreter if the statement were chained, also a

Re: [PHP] method chaining

2002-11-11 Thread Terry McBride
Thanks Johan, I tried your suggestion but got: Fatal error: Call to a member function on a non-object in /usr/local/apache/php/testchain.php on line 47 I think you might have me on the right track though :) I tried this as well: ${$foo-get(bar)}-getBaz(); but got the same error. Terry -

Re: [PHP] [ANN] Zip code db available with latitude and longitude

2002-11-11 Thread Bret L Conard
I too would prefer not to get spammed on the list. As an additional note. I have the exact data and got it for free with a little searching on government web sites : ) Bret - Original Message - From: Ernest E Vogelsinger [EMAIL PROTECTED] To: Brian Dunning [EMAIL PROTECTED] Cc:

Re: [PHP] [ANN] Zip code db available with latitude and longitude

2002-11-11 Thread Bret L Conard
h lol - Original Message - From: Ernest E Vogelsinger To: Bret L Conard Sent: Monday, November 11, 2002 12:12 PM Subject: Re: [PHP] [ANN] Zip code db available with latitude and longitude At 18:11 11.11.2002, you said:

Re: [PHP] Anchor Link?

2002-11-11 Thread Ernest E Vogelsinger
At 19:06 11.11.2002, Doug Coning spoke out and said: [snip] http://www.galapagosstudios.com/test2/viewdesigns.php?pri=1sec=1sid=1#Ga rment It works, however, IE says there is an error on the page. I believe the error is probably with mixing the variables

Re: [PHP] method chaining

2002-11-11 Thread Terry McBride
Noted. You would have to change the signature of the function to function getBar(). The statement still applies - even part of the point. I'm really just wondering why things are the way they are. Maybe I'm thinking php is supposed to be more OO than it is. Who wants to deal with copies of

Re: [PHP] Re: Copy Paste URL was [Re: [PHP] Would appreciate thoughts on session management ]

2002-11-11 Thread Jason Wong
On Monday 11 November 2002 23:56, Charles Wiltgen wrote: B.C. Lance wrote... one reason that i could think of for not including session id into URL and using cookies would be copy paste. users could just copy and paste the url and send it to his/her friends. and it could be a

RE: [PHP] [ANN] Zip code db available with latitude and longitude

2002-11-11 Thread John W. Holmes
This is actually a pretty common question on here, so it's good to know of another source to point people to. ---John Holmes... -Original Message- From: Bret L Conard [mailto:bretlc;donet.com] Sent: Monday, November 11, 2002 12:11 PM To: Brian Dunning; Ernest E Vogelsinger Cc:

Re: [PHP] [ANN] Zip code db available with latitude and longitude

2002-11-11 Thread Jason Wong
On Tuesday 12 November 2002 01:26, John W. Holmes wrote: This is actually a pretty common question on here, so it's good to know of another source to point people to. You really meant ... so it's good to know that if people search the archives they'll find another source [of zip code db]. ;-)

RE: [PHP] [ANN] Zip code db available with latitude and longitude

2002-11-11 Thread John W. Holmes
On Tuesday 12 November 2002 01:26, John W. Holmes wrote: This is actually a pretty common question on here, so it's good to know of another source to point people to. You really meant ... so it's good to know that if people search the archives they'll find another source [of zip code

[PHP] time out when uploading.. PLEASE HELP ME :)

2002-11-11 Thread Eduardo M. Bragatto
I'm using a simple php script called upload.php, here's the source: ?php move_uploaded_file($userfile, /my/dir); ? But I keep getting an error message: Fatal error: Maximum execution time of 20 seconds exceeded in D:\dominios\E\escolas-es\spe\upload.php on line 3 Then, I've tried to

[PHP] Building Menus based on User Rights

2002-11-11 Thread Ray Seals
I would like for my pages to generate HTML code based on a users rights. For example I have a table called user and it looks like this useridpasswordadminuser -- memypassY you yourpass Y When a person logs in

Re: [PHP] starting recompiled php as a cgi-interpreter

2002-11-11 Thread info
Hi Maxim, can you please be so kind to forward me the according link to the manual regarding the installation of php as cgi. On the www.php.net site there is not much about php as a cgi interpreter. Thank u Oliver Etzel lowcost domains lowcost serverhousing www.t-host.de - Original

Re: [PHP] starting recompiled php as a cgi-interpreter

2002-11-11 Thread Tom Woody
I did a search for cgi in the online documentation, and the first item was this: http://www.php.net/manual/en/printwn/install.commandline.php On Mon, 11 Nov 2002 19:10:08 +0100 [EMAIL PROTECTED] wrote: Hi Maxim, can you please be so kind to forward me the according link to the manual

Re: [PHP] starting recompiled php as a cgi-interpreter

2002-11-11 Thread Maxim Maletsky
here: http://www.php.net/manual/en/install.apache.php -- Maxim Maletsky [EMAIL PROTECTED] [EMAIL PROTECTED] wrote... : Hi Maxim, can you please be so kind to forward me the according link to the manual regarding the installation of php as cgi. On the www.php.net site there is not

[PHP] preg_split() - pattern problem

2002-11-11 Thread Tobias Talltorp
How would I write the pattern for this preg_split()? /T.*O.*B/, seems to only return the first and last portion of the string (1: Once upon a time, 2: going for a walk). $string = Once upon a time T:O.B there was a T.O,B duck who was T-O'B going for a walk; $array = preg_split('/T.*O.*B/',

RE: [PHP] method chaining

2002-11-11 Thread Ford, Mike [LSS]
-Original Message- From: Terry McBride [mailto:terry;boxitllc.com] Sent: 11 November 2002 15:53 I have a question about php and OO. I want to chain methods together having them performed on the results of the following method. Meaning something like $foo-get(bar)-getBaz().

RE: [PHP] method chaining

2002-11-11 Thread Ford, Mike [LSS]
Apologies for the previous truncated version of this -- dunno what happened there!! -Original Message- From: Terry McBride [mailto:terry;boxitllc.com] Sent: 11 November 2002 15:53 I have a question about php and OO. I want to chain methods together having them performed on the

[PHP] form question ???

2002-11-11 Thread Jim Hatridge
HI all... looking at the code below. It works and I get what I want on the screen. BUT it leaves a gap between the top lines and where the table starts equal to the size of the table, ie if the table is 5 lines long the gap is 5 lines etc. Any ideas what I'm doing wrong? Thanks, JIM

Re: [PHP] [ANN] Zip code db available with latitude and longitude

2002-11-11 Thread UberGoober
I've been down the road of getting all that data from the Free government sources. And I'll tell ya, spending the $130 to get this data is more than worth the week I spent getting everything together from census data. Think it through, if you bill out @ $100/hour as a developer, you basically more

Re: [PHP] Building Menus based on User Rights

2002-11-11 Thread Jason Wong
On Tuesday 12 November 2002 02:05, Ray Seals wrote: I would like for my pages to generate HTML code based on a users rights. For example I have a table called user and it looks like this useridpasswordadminuser -- memypassY

Re: [PHP] preg_split() - pattern problem

2002-11-11 Thread Jason Wong
On Tuesday 12 November 2002 02:26, Tobias Talltorp wrote: How would I write the pattern for this preg_split()? /T.*O.*B/, seems to only return the first and last portion of the string (1: Once upon a time, 2: going for a walk). $string = Once upon a time T:O.B there was a T.O,B duck who was

RE: [PHP] form question ???

2002-11-11 Thread Ford, Mike [LSS]
-Original Message- From: Jim Hatridge [mailto:hatridge;fecundswamp.net] Sent: 11 November 2002 16:27 looking at the code below. It works and I get what I want on the screen. BUT it leaves a gap between the top lines and where the table starts equal to the size of the table,

Re: [PHP] method chaining

2002-11-11 Thread Terry McBride
- Original Message - From: Ford, Mike [LSS] [EMAIL PROTECTED] To: 'Terry McBride' [EMAIL PROTECTED]; [EMAIL PROTECTED] Sent: Monday, November 11, 2002 1:33 PM Subject: RE: [PHP] method chaining Apologies for the previous truncated version of this -- dunno what happened there!!

[PHP] Resource type numbers

2002-11-11 Thread Gerard Samuel
Im debugging a script that opens a connection to a pop3 server. When I var dump the return of fsockopen() from the script Im debugging, I get - resource(38) of type (socket) I made up a dummy script to see what I would get and the return of fsockopen is - resource(1) of type (socket) My dummy

Re: [PHP] method chaining

2002-11-11 Thread Terry McBride
Thanks! Yep, this is good. Thanks for letting me know. http://www.zend.com/engine2/ZendEngine-2.0.pdf It's all been done b4 -- already been brought up :p Terry - Original Message - From: Ford, Mike [LSS] [EMAIL PROTECTED] To: 'Terry McBride' [EMAIL PROTECTED]; [EMAIL PROTECTED] Sent:

[PHP] Need CyberCash MCK for Linux

2002-11-11 Thread Peter Janett
I'm moving a site over from a Sun server to a Linux server, and need the CyberCash MCK software to install on the Linux box. I know that Verisign has purchased and swallowed CyberCash into their PayFlowPro system, but I just need to move an existing, functioning site that uses CyberCash. So,

Re: [PHP] preg_split() - pattern problem

2002-11-11 Thread Jonathan Sharp
I believe it's U so try /T.*0.*B/U -js Jason Wong wrote: On Tuesday 12 November 2002 02:26, Tobias Talltorp wrote: How would I write the pattern for this preg_split()? /T.*O.*B/, seems to only return the first and last portion of the string (1: Once upon a time, 2: going for a walk).

[PHP] _POST _GET

2002-11-11 Thread GC
Hi- Can I use both _GET and _POST in the same php file? Thanks!! -Greg -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Running PHP code into JavaScript if-else clause

2002-11-11 Thread Wagner Marini
JavaScrip and PHP together Hey ALL, I really do not understand what's going on. In my code below I try to inform the user that the number added to him already exists in database but in my JavaScrit's if-else the line ?php $tst = TRUE; ? ever run, even the user wants to add the number. What's

[PHP] Browser upload timeout

2002-11-11 Thread Scott Teresi
I am using a PHP script which allows the user to upload files through a browser (the script opens an FTP session behind the scenes). The problem is, all browsers (on Mac and PC platforms) often time out after a random amount of time, between five minutes and a couple hours or sometimes not at all.

RE: [PHP] _POST _GET

2002-11-11 Thread Nick Richardson
yes -Original Message- From: GC [mailto:gregchagnon;hotmail.com] Sent: Monday, November 11, 2002 11:27 AM To: [EMAIL PROTECTED] Subject: [PHP] _POST _GET Hi- Can I use both _GET and _POST in the same php file? Thanks!! -Greg -- PHP General Mailing List (http://www.php.net/) To

Re: [PHP] _POST _GET

2002-11-11 Thread .: B i g D o g :.
Basically your form is going to use one or the other you might be able to do this... form action=file.php?op=submit method=post name=someform /form Then you can use _GET to get the op=submit and use _POST for the form... never tried so i do not know...but in theory it should work... On

[PHP] Socket Connections Was: Re: [PHP] Resource type numbers

2002-11-11 Thread Gerard Samuel
Ok, I think I found out why the script Im debbugging is returning an empty string. 1. It opens a socket to the mailserver with fsockopen 2. It checks the greeting by reading using fgets() 3. Then it check the reponse by supplying the username to the fsockopen() connection 4. It returns an

RE: [PHP] _POST _GET

2002-11-11 Thread Nick Richardson
One thing to watch out for when doing this is that all browsers do not support the ?foo=blah in the action attribute of the form tag. IE and Mozilla can handle it fine, but (and what a surprise this is) Netscape will sometime have some trouble with it (mostly in older versions (4.x)). But this

RE: [PHP] _POST _GET

2002-11-11 Thread John W. Holmes
Hi- Can I use both _GET and _POST in the same php file? Thanks!! -Greg Yes, you can use both in your code, but only one method is going to be valid when your page is requested by a user. A user can't request a page with both a GET and POST request at the same time. ---John Holmes... --

[PHP] Exec()ing two strings, using same shell?

2002-11-11 Thread Leif K-Brooks
Sorry if I'm using the wrong words - not sure of the exact terminology. Anyway, is there a way to exec() two statments in the same shell? Example: //On win32 test machine exec(cd somedir); print `dir`; //Outputs directory listing for c:\, not c:\somedir //But is there a way to get the directory

[PHP] ImageFill Segmentation Fault

2002-11-11 Thread kevin
Allo, I am trying to do a dynamic image as a welcome type thing for a site using the GD libraries. I was working on a development machine with 4.0.6 and GIF support and things worked fine. When I (finally) was able to check out the live machine it was 4.0.6 but no GIF support. Ok , I think no

RE: [PHP] Mcrypt Under IIS 5 / Win32?

2002-11-11 Thread Nick Richardson
Yes, there is a DLL for it, but getting PHP to know it is there is where I'm having the problem - I don’t know how to get PHP to under windows to do the equivalent of --with-mcrypt in configure under linux. - maybe I havn't registered the mcrypt dll's correctly or something like that... But I just

[PHP] test

2002-11-11 Thread James Johnson
test -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] Exec()ing two strings, using same shell?

2002-11-11 Thread Nick Richardson
Exec(dir c:\somedir) or exec(cd somedir dir) i.e. $dirContent = one of the above; print($dirContent); -Original Message- From: Leif K-Brooks [mailto:eurleif;buyer-brokerage.com] Sent: Monday, November 11, 2002 11:39 AM To: [EMAIL PROTECTED] Subject: [PHP] Exec()ing two strings, using

Re: [PHP] Running PHP code into JavaScript if-else clause

2002-11-11 Thread John Nichel
Php runs on the server, JavaScript runs on the browser. If your function CheckNumber( $numero ) validates true, the script is going to out put your JavaScript, but the JavaScript will NOT change your php values no matter what the user selects. Wagner Marini wrote: JavaScrip and PHP together

Re: [PHP] _POST _GET

2002-11-11 Thread Greg
Thanks everyone :) -Greg John W. Holmes [EMAIL PROTECTED] wrote in message news:001f01c289b9$bebdf3b0$7c02a8c0;coconut... Hi- Can I use both _GET and _POST in the same php file? Thanks!! -Greg Yes, you can use both in your code, but only one method is going to be valid when your page is

RE: [PHP] test

2002-11-11 Thread John Meyer
I never do well on tests. Always forget my pencil. -Original Message- From: James Johnson [mailto:james;owell.com] Sent: Monday, November 11, 2002 11:23 AM To: [EMAIL PROTECTED] Subject: [PHP] test test -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

Re: [PHP] Building Menus based on User Rights

2002-11-11 Thread Ray Seals
I found an article 1 of 6 parts by Ben Rowe on devarticles.com. It looks like he is doing what I want to accomplish but I have to wait for the other 5 articles. When a user logs in he writes a record to MYSQL for the session. That record holds certain variables for the session. Your reply

RE: [PHP] Mcrypt Under IIS 5 / Win32?

2002-11-11 Thread .: B i g D o g :.
You need to uncomment the dll in the php.ini file...do a search for it and then uncomment it or add it to the php.ini file... That will load it... *Note: i would add that directory to your path that contains the mcrypt dll or all dlls for php and the extension directory to... On Mon,

RE: [PHP] Mcrypt Under IIS 5 / Win32?

2002-11-11 Thread Nick Richardson
I will try that - Thanks for the suggestion. If it was something that simple, I'm going to shoot myself :) Thanks! //Nick -Original Message- From: .: B i g D o g :. [mailto:bigdog;venticon.com] Sent: Monday, November 11, 2002 4:50 AM To: Nick Richardson Cc: [EMAIL PROTECTED] Subject:

[PHP] Undefined Variable errors

2002-11-11 Thread James Johnson
Hello, I'm migrating to PHP from ColdFusion. I've been running some sample scripts I have found in various places and all of them throw an error: Notice: Undefined variable: varname in c:\inetpub\wwwroot\myphpcalendar\somefile.php on line someline. In ColdFusion, I can use the cfparam tag to

RE: [PHP] Undefined Variable errors

2002-11-11 Thread John W. Holmes
I'm migrating to PHP from ColdFusion. I've been running some sample scripts I have found in various places and all of them throw an error: Notice: Undefined variable: varname in c:\inetpub\wwwroot\myphpcalendar\somefile.php on line someline. In ColdFusion, I can use the cfparam tag to

[PHP] MD4 and lanman hash

2002-11-11 Thread Greg
Hi- Does anyone know how I can craete md4 and lanman hashes with php? Thanks!! -Greg -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] phpMyAdmin please help

2002-11-11 Thread Iguider
Hi I have a furom working under php 4.0 and when I upgrade it to php 4.2 by installing the new version of easyphp 1.6.0.0 . the new phpMyAdmin is 2.2.6 . when I run the forum or I tried to re-create a tables in mySQL database with a install.php it shows me the following errors : Warning:

[PHP] cyrus / php

2002-11-11 Thread Greg
Does anyone know of a way to add cyrus users through php? I've looked at web-cyradm but that relies on mysql...Thanks again! -Greg -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Mcrypt Under IIS 5 / Win32?

2002-11-11 Thread Nick Richardson
I asked this before, but didn't get a response. Anyone out there have any experience a/o know where I can find information on getting the mcrypt functionality to work under Win32 - I have found a port of mcrypt for Win32, and also learned that you can compile it using cygwin - but I don’t know

Re: [PHP] Mcrypt Under IIS 5 / Win32?

2002-11-11 Thread .: B i g D o g :.
is there not a dll for mcrypt? On Mon, 2002-11-11 at 19:34, Nick Richardson wrote: I asked this before, but didn't get a response. Anyone out there have any experience a/o know where I can find information on getting the mcrypt functionality to work under Win32 - I have found a port of

Re: [PHP] form question ???

2002-11-11 Thread Tom Rogers
Hi, Tuesday, November 12, 2002, 2:27:10 AM, you wrote: JH HI all... JH looking at the code below. It works and I get what I want on the screen. BUT JH it leaves a gap between the top lines and where the table starts equal to the JH size of the table, ie if the table is 5 lines long the gap is

[PHP] wildcard search?

2002-11-11 Thread Håkan
I'm trying to make a small and simple search function, but it only works for exact searches, and I can't figure out how to make a wildcard search, if I do it in the php or in the mysql_query, can't really find anything about it and I don't know what to look for on php.net Håkan -- PHP General

Re: [PHP] phpMyAdmin please help

2002-11-11 Thread John Nichel
Look at the config.inc.php file in the phpMyAdmin install directory. Iguider wrote: Hi I have a furom working under php 4.0 and when I upgrade it to php 4.2 by installing the new version of easyphp 1.6.0.0 . the new phpMyAdmin is 2.2.6 . when I run the forum or I tried to re-create a tables in

Re: [PHP] wildcard search?

2002-11-11 Thread Rasmus Lerdorf
That's because this is a MySQL-specific question and you should be reading the MySQL documentation or asking on the MySQL list. -Rasmus On Mon, 11 Nov 2002, Håkan wrote: I'm trying to make a small and simple search function, but it only works for exact searches, and I can't figure out how to

RE: [PHP] wildcard search?

2002-11-11 Thread John W. Holmes
You'll do it in the database, not PHP. Look into using LIKE in your query... SELECT * FROM yourtable WHERE column LIKE '%searchterm%' The % characters are wildcards that'll match any amount of characters. You can use _ to match a single character. You could also look at FULL-TEXT indexing in

Re: [PHP] wildcard search?

2002-11-11 Thread John Nichel
RTFM... http://www.mysql.com/doc/en/Pattern_matching.html Håkan wrote: I'm trying to make a small and simple search function, but it only works for exact searches, and I can't figure out how to make a wildcard search, if I do it in the php or in the mysql_query, can't really find anything about

[PHP] Need Help in installation of PHP, appache and MySQL on Linux

2002-11-11 Thread ppf
Hi All: I got php/mysql/appache on my windows machine, it works fine Now i have to install appache/php/mysql on Linux 6.1 red hat. I had searched the php.net for intallation document, but it didn't have much detailed description. I am new to Linux also, if u guys know some URL or doc pls let me

Re: [PHP] Need Help in installation of PHP, appache and MySQL onLinux

2002-11-11 Thread John Nichel
http://www.php.net/manual/en/install.unix.php You'll make it easier on yourself installing MySQL from the rpm's on your RedHat CD's. rpm -ivh mysql-xxx-.rpm Be sure to install both the server and client of MySQL. ppf wrote: Hi All: I got php/mysql/appache on my windows machine, it

  1   2   >