[PHP] Help Please

2002-12-10 Thread SpiderWebb
From: SpiderWebb [EMAIL PROTECTED] Subject: Help nedded Date: 09 December 2002 16:46 I dont know if this is possible in PHP (Newbie) im working on a project where each product has 3 diffierent prices depending on the amount sold so say for example 1- 100 price A 101-299 price B and above 300

Re: [PHP] Re: Snoopy Class

2002-12-10 Thread DL Neil
Hi UberGoober, Thanks for your (unique) reply. Specifically: am playing with web pages/link continuity checking and suchlike. So HTTP; as an improvement over the facilities offered by fopen(). Have worked through the readme examples, and dived into the script's code, as you would expect. Was

Re: [PHP] Help Please

2002-12-10 Thread BABA Yoshihiko
SpiderWebb wrote: From: SpiderWebb [EMAIL PROTECTED] Subject: Help nedded Date: 09 December 2002 16:46 I dont know if this is possible in PHP (Newbie) im working on a project where each product has 3 diffierent prices depending on the amount sold so say for example 1- 100 price A 101-299 price B

Re: [PHP] Help Please

2002-12-10 Thread BABA Yoshihiko
Forget my previous advice. I'd misunderstood it. BABA Yoshihiko wrote: This seems a matter of database design. For simple solution, use COUNT in SQL. But having a record for each item would probably exceed the limit of either harddisc or database one day. -- BABA Yoshihiko -- PHP

[PHP] Help needed

2002-12-10 Thread SpiderWebb
I dont know if this is possible in PHP (Newbie) im working on a project where each product has 3 diffierent prices depending on the amount sold so say for example 1- 100 price A 101-299 price B and above 300 Price C. What I need to be able to do is increment an mysql database field each time an

[PHP] Theoretical - Device server using PHP - Is this possible?

2002-12-10 Thread Steve Jackson
Hi all, I work for a company that manufactures device servers. They currently have a very low internal memory (about 8MB) which is more than enough for TCP/IP connections (which BTW we just released the code open source to anyone interested www.opentcp.org) to devices but I was wondering if there

Re: Re[2]: [PHP] Script not working from one computer

2002-12-10 Thread DL Neil
Hi John, You mention that it is a login script and that input is rejected. Is it rejected when it is initially typed in, or is it reported as rejected when ensuing pages are served? Please check the IE on the offending machine. Does it have security settings that forbid cookies? Check the

Re: [PHP] How to test php.info from command line

2002-12-10 Thread DL Neil
I agree with Jason, it seems strange to have a command line option (that can only apply to command line operation) and yet the output be in browser/non-command line format... However with PHP-CLI 'coming soon', maybe that sorts things out. Meantime may I suggest combining the two answers: php -i

Re: Re[2]: [PHP] Script not working from one computer

2002-12-10 Thread Jason Wong
On Tuesday 10 December 2002 17:11, DL Neil wrote: Hi John, You mention that it is a login script and that input is rejected. Is it rejected when it is initially typed in, or is it reported as rejected when ensuing pages are served? Please check the IE on the offending machine. Does it have

[PHP] PHP and SOAP

2002-12-10 Thread Tony Burgess
Hi everyone, I have been looking for a decent tutorial on how to use PHP and SOAP (nusoap) but as yet I haven't been able to find anything. I have a copy of a client script and a server script but I can't get them to work properly. Any help would be appreciated. Thanks -- Tony Burgess --

Re: [PHP] Different output on two different servers

2002-12-10 Thread DL Neil
Hi Steve, Have you solved this already? If not, when you copied the code between machines was there some effort to ensure that the 'copy' points to the RDBMS/tbls on the same box/different box - or does the original box have code that points to tbls on itself, and the second box have code that

[PHP] Resize an image from URL

2002-12-10 Thread fragmonster
Hi, I want to resize an image from an URL if it is too large. Is there a way to know the size (width and height) of an image from an url without download it? For exemple: getWidth(http://www.toto.com/imlage.gif) -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

Re: [PHP] Resize an image from URL

2002-12-10 Thread Jason Wong
On Tuesday 10 December 2002 18:52, fragmonster wrote: Hi, I want to resize an image from an URL if it is too large. Is there a way to know the size (width and height) of an image from an url without download it? For exemple: getWidth(http://www.toto.com/imlage.gif) No. PHP is good, but not

[PHP] PHP_SELF Variable

2002-12-10 Thread info
Hello List, anybody knows how to set the PHP_SELF variable? Short answers are welcome... Oliver Etzel

RE: [PHP] update query based on array

2002-12-10 Thread Ford, Mike [LSS]
-Original Message- From: Jason Dulberg [mailto:[EMAIL PROTECTED]] Sent: 09 December 2002 23:52 So you mean do something like: input type=text name=category[15] value=Prep School input type=text name=rank[15] value=30 size=4 input type=checkbox name=rankid[15] value=166

Re: [PHP] PHP_SELF Variable

2002-12-10 Thread Leif K-Brooks
Not quite sure what you mean, but I'm guessing you're trying to use $PHP_SELF and it's not set. If that's the case, use $_SERVER['PHP_SELF'] instead. Register_globals defaults to disabled now. [EMAIL PROTECTED] wrote: Hello List, anybody knows how to set the PHP_SELF variable? Short

[PHP] Re: Resize an image from URL

2002-12-10 Thread Lokesh Setia
I dont believe that such a function would already exist. If saving network bandwidth is your aim, you can open an HTTP connection yourself, read only the first 10 bytes, and close the connection. The first six bytes of an GIF image is always 'GIF87a' or 'GIF89a'. Then comes the width as a

Re: [PHP] PHP_SELF Variable

2002-12-10 Thread info
Hello Leif, hello all, after successfully compiling and installing php.4.3-dev from tarball there in my info.php the variable Variable Value PHP_SELF  PHP_SELF has no value. How can I set this? Oliver Etzel

Re: [PHP] PHP_SELF Variable

2002-12-10 Thread Johannes Schlueter
On Tuesday 10 December 2002 12:36, info AT t-host.com wrote: after successfully compiling and installing php.4.3-dev from tarball ... PHP_SELF has no value. How can I set this? Try using $_SERVER['PHP_SELF'] if it works look at the release notes and look for register_globals johannes -- PHP

Re: [PHP] PHP_SELF Variable

2002-12-10 Thread info
Hello Johannes, hello all, I compiled it as CGI-php and the variable $_SERVER['PHP_SELF'] has no value either. What can I do on order to give PHP_SELF the right value? Oliver Etzel On Tuesday 10 December 2002 12:36, info AT t-host.com wrote: after successfully compiling and installing

Re: [PHP] PHP_SELF Variable

2002-12-10 Thread Leif K-Brooks
Odd. Mind doing: print_r($GLOBALS); and tsending the results? [EMAIL PROTECTED] wrote: Hello Johannes, hello all, I compiled it as CGI-php and the variable $_SERVER['PHP_SELF'] has no value either. What can I do on order to give PHP_SELF the right value? Oliver Etzel On Tuesday 10

[PHP] server problems.

2002-12-10 Thread Steve Jackson
I have a production server and a 'live' web server. The set-ups are the same and yet I can view code fine on the 'live' web site but not on the production server. At least I can view one shopping cart section online but not offline. All the other database driven stuff appears fine. I've even tried

Re: [PHP] PHP_SELF Variable

2002-12-10 Thread info
Hi Leif, hi all, when I run the following script from commandline (RedHat7.3) PHP_SELF has a value and I will get the following result: --- snip [_] = /usr/local/bin/php [OLDPWD] = /home/fritz/htdocs3/bildvote/admin [PHP_SELF] = info70.php [SCRIPT_NAME] = info70.php

Re: [PHP] PHP_SELF Variable

2002-12-10 Thread Leif K-Brooks
It's because register_globals is off by default in your 4.3 installation. Change it in php.ini, or use the superglobal array instead. [EMAIL PROTECTED] wrote: Hi Leif, hi all, when I run the following script from commandline (RedHat7.3) PHP_SELF has a value and I will get the following

RE: Re[2]: [PHP] Script not working from one computer

2002-12-10 Thread John W. Holmes
You mention that it is a login script and that input is rejected. Is it rejected when it is initially typed in, or is it reported as rejected when ensuing pages are served? When it's initially typed in. Please check the IE on the offending machine. Does it have security settings that

[PHP] Re: Resize an image from URL

2002-12-10 Thread fragmonster
No,no. I just want to display distant images on my site (from another site). But, in order to not crash my look, just before display the image I want to evaluate its size. If it is too large I put a width attribute in the img tag. I want to do that: $imgWidth =

RE: [PHP] server problems.

2002-12-10 Thread Rich Gray
A wild guess: Are you using a database abstraction class or configuration file? Is it still pointing to the live server database instead of the production server database? Rich -Original Message- From: Steve Jackson [mailto:[EMAIL PROTECTED]] Sent: 10 December 2002 12:34 To: PHP General

Re: [PHP] Resize an image from URL

2002-12-10 Thread Mika Tuupola
On Tue, 10 Dec 2002, fragmonster wrote: I want to resize an image from an URL if it is too large. Is there a way to know the size (width and height) of an image from an url without download it? For exemple: getWidth(http://www.toto.com/imlage.gif) Depending on the version of PHP

[PHP] How know from wich page you came from

2002-12-10 Thread Rodrigo
Hi guys I need a way to know how to know from wich page the visitor came, something like: I wanna put in a php file a switch to do a certain action if the visitor came from a certain page, and something else if he came from a diferent one, this way I could write, update, insert, delete or

Re: [PHP] PHP_SELF Variable

2002-12-10 Thread info
Hello Leif, hello all, register_globals is on How can I use the superglobal array? And here is how my php behave: when I run the following script: info70.php ?php print_r($GLOBALS); ? 1) from commandline then [SCRIPT_NAME] = info70.php is set correctly 2) direkt via http request from browser

[PHP] Re: Help Please

2002-12-10 Thread David Eisenhart
I can think of a couple of ways to tackle this: 1) The purest way is to do with your database design - a typical order processing database will contain a table for products, a table for customers, a table for orders, a table for order lines and so on ... If this is implemented correctly (ie the

RE: [PHP] How know from wich page you came from

2002-12-10 Thread Jon Haworth
Hi Rodrigo, Hi guys I need a way to know how to know from wich page the visitor came echo $_SERVER[HTTP_REFERER]; HTH Jon -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] How know from wich page you came from

2002-12-10 Thread Justin French
*SOME* browsers set a referrer script name/url, and some don't, so you can't rely on it. The solution can be as simple as including the referring script as a GET variable in the URL: a href=page.php?ref=anotherpage.phpclick/a Or, by keeping track of that sorta stuff with sessions... Whenever

[PHP] imap_fetch_overview function doesn't work

2002-12-10 Thread kckannan
Hello All, I have installed Apache/1.3.27, PHP 4.2.3 with imap support on HP-UX. When I try to run the following php code, imap_fetch_overview funcion which is used to fetch mail headers for the given sequence doesn't return anything even if there are mails in the remote

RE: [PHP] Cookie handling, NS 4.x?

2002-12-10 Thread Chad Day
Ok, I understand. I was able to get NS to set the cookie, but -only- if I put nothing in the domain field. setcookie(NSUSERNAME, cday, time()+2592000, /, .domain.com); echo meta HTTP-EQUIV=\REFRESH\ content=\0;url=nscookie2.php\; did not work. domain.com also did not work . . this is kind of

RE: [PHP] Cookie handling, NS 4.x?

2002-12-10 Thread Jaime Bozza
Hello, By any chance, is your website named http://domain.com or is it http://www.domain.com ? Jaime Bozza -Original Message- From: Chad Day [mailto:[EMAIL PROTECTED]] Sent: Tuesday, December 10, 2002 8:09 AM To: [EMAIL PROTECTED]; php general Subject: RE: [PHP] Cookie

RE: [PHP] Please help - uploading multiple files

2002-12-10 Thread Allred, Mark
Darn, that's what I was afraid of. Is there a way to do this in a client-side language like JavaScript? Mark -Original Message- From: Ernest E Vogelsinger [mailto:[EMAIL PROTECTED]] Sent: Monday, December 09, 2002 5:50 PM To: Allred, Mark Cc: 'php' Subject: Re: [PHP] Please help -

[PHP] PHP_SELF on a php CGI

2002-12-10 Thread info
Hello Leif, hello all, i compiled successfully php-4.3-dev deom tarball as CGI on RedHat7.3 register_globals is on And here is how my php behave: When I run the following script: info70.php ?php print_r($GLOBALS); ? 1) from commandline then [SCRIPT_NAME] = info70.php is set correctly 2)

RE: [PHP] Cookie handling, NS 4.x?

2002-12-10 Thread Chad Day
domain.com, but www is pointed to it as well. When I was setting the cookies with Header calls and using .domain.com, they worked fine (I want to be able to access these cookies from my.domain.com, forums.domain.com, etc, which is why they need to be set in .domain.com). But then the NS 4.x

Re[3]: [PHP] Output page cut off after 7000 characters -- FIXED

2002-12-10 Thread Fritz Wittwer
Hi Tom, i was afraid I had to trace it down this way before, I even tried it, but missed the PHP function call at the end of a 300 and some characters line. Anyway it was a function wich had a hard coded Windows path to a directory in it wich started with 'e:/', I did not try to figure out

[PHP] php.ini

2002-12-10 Thread Gregory Hernandez
hello. quick question. can someone give a small example of what a php.ini file would look like? i had no php.ini file so i created blank one. if i wanted to set register_globals on (for example), how would i put this in the php.ini file? or if i wanted to enable support for curl (for example)

RE: [PHP] Cookie handling, NS 4.x?

2002-12-10 Thread Jaime Bozza
The original cookie specifications required that the domain in the cookie has at least 2 (or 3 for domains not in the primary tlds) periods in it. (So as to stop someone from using .com, .edu, etc...) So, you use .domain.com, right? Well, Netscape 4.x is strict in that .domain.com does not

[PHP] Re: php.ini

2002-12-10 Thread hacook
You have it in the zip when you download from php.net Gregory Hernandez [EMAIL PROTECTED] a écrit dans le message de news: [EMAIL PROTECTED] hello. quick question. can someone give a small example of what a php.ini file would look like? i had no php.ini file so i created blank one. if i

Re: [PHP] php.ini

2002-12-10 Thread 1LT John W. Holmes
can someone give a small example of what a php.ini file would look like? i had no php.ini file so i created blank one. http://cvs.php.net/co.php/php4/php.ini-dist ---John Holmes... -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Problem with PHP_SELF

2002-12-10 Thread info
Hello Leif, hello all, i compiled successfully php-4.3-dev deom tarball as CGI on RedHat7.3 register_globals is on And here is how my php behave: When I run the following script: info70.php ?php print_r($GLOBALS); ? 1) from commandline then [PHP_SELF] = info70.php is set correctly 2) from

[PHP] OCINewCollection and so on

2002-12-10 Thread rems
hi! I'm curios if there are some materials on the net, where there is more (may be some examples) about how use OCINewCollection and OCIColl* functions. I've found a little on presentation of Thies C. Arntzen at conf.php.net, but this is only about binding VARRAY objects. Beside this no search

RE: [PHP] Cookie handling, NS 4.x?

2002-12-10 Thread Chad Day
So, basically... cookies aren't going to work in NS 4.x if I specify a domain and need to do a redirect afterwards. (I tried the dot at the end, also no go) ... wow, that sucks. :\ Thanks, Chad -Original Message- From: Jaime Bozza [mailto:[EMAIL PROTECTED]] Sent: Tuesday, December 10,

[PHP] How do I populate a select?

2002-12-10 Thread Steve Jackson
How do I populate a select list with a list of category names from a DB? I can select the names using a query but how do I loop through them to display them in a select? My query below will return the cat names. (when I do something with it like echoing the result) $mysql = mysql_query(SELECT

RE: [PHP] Cookie handling, NS 4.x?

2002-12-10 Thread Jaime Bozza
Well, not quite. Cookies won't work if you specify a domain and you don't use something like http://www.domain.com For instance, if you drop the support for http://domain.com and then set your cookie with .domain.com, everything will work fine. (Perhaps setup a virtual host for domain.com that

[PHP] UNA AYUDA-NOVATO PHP

2002-12-10 Thread Héctor Fabio Sánchez Velasco
Soy un principiante de PHP , instale PHP 4.2.3 en un servidor NT4 , con SQL SERVER 7.0 y OPTION PACK 4.0 , en el momento que publico una pagina con una conexion a la base de datos SQL me trae la informacion de las tablas hasta aqui todo normal , pero al crear una forma con una variable escondida

Re: [PHP] How do I populate a select?

2002-12-10 Thread Tim Ward
echo(select name='...') while ($array = mysql_fetcharray($mysql)) {echo(option{$array[catname]}/option); } echo(/select) that's the simple version - you may want to put the whole lot inside ... if (mysql_numrows()) { ... } else {echo(warning); } I may have got the function names wrong -

[PHP] w32api Functions

2002-12-10 Thread Marcus Fazzi
Where is w32_* function in PHP 4.3.0 RC2 ? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] Cookie handling, NS 4.x?

2002-12-10 Thread Chad Day
I think I understand now .. I was purposely making all my login forms/etc go to http://domain.com so that when the cookies were set, they would be ensured to set in .domain.com so I could read them on other parts of domain.com (www., my., calendar., forums.) .. It looks like dropping the support

RE: [PHP] UNA AYUDA-NOVATO PHP

2002-12-10 Thread Daniel Masson
Amigo: Tiene que ajustar el archivo c:/winnt/php.ini Y poner register_globals= On Cordialmente; Daniel E. Massón. Web: www.imagine.com.co Te Deseamos una Feliz Navidad y un Prospero 2,003 -Mensaje original- De: Héctor Fabio Sánchez Velasco [mailto:[EMAIL PROTECTED]] Enviado

[PHP] run query

2002-12-10 Thread Diana Castillo
After I run a query lik this, $db-query($sql); what is the quickest way to find out how many records result? Without having to loop through them all? Thank you , Diana -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] number of records

2002-12-10 Thread Diana Castillo
After I run a query lik this, $db-query($sql); what is the quickest way to find out how many records result? Without having to loop through them all? Thank you , Diana -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] run query

2002-12-10 Thread Jon Haworth
Hi Diana, After I run a query lik this, $db-query($sql); what is the quickest way to find out how many records result? Look into mysql_num_rows (or the equivalent if you're not using MySQL) Cheers Jon -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

[PHP] Page display of query resuts using ODBC

2002-12-10 Thread Luc Roettgers
Hi, Just wondering if anybody knows a script to display a resultset over several pages using page numers previous, next links. So far I've only found such scripts for mysql using the the following sql syntax which is not odbc compliant: SELECT * from table LIMIT 0, 4 I've looked at many

[PHP] Pls Help: Moving script from Win to Linux

2002-12-10 Thread Shane
Greetings gang. You know me, I never ask for help if I haven't checked all my other options, but this is day two, and I'm getting spanked on this one. Some recently moved scripts from a WIN2K server running PHP 4.2.1 to an Apache PHP 4.2.3 setup have stop accepting HTML Form Variables. I can

RE: [PHP] Pls Help: Moving script from Win to Linux

2002-12-10 Thread Jon Haworth
Hi Shane, I can pass variables till I am blue in the face, even see them in the URL but they are still showing up as (!isset) Are you accessing these variables through $var or $_GET[var]? Cheers Jon -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

[PHP] Re: Pls Help: Moving script from Win to Linux

2002-12-10 Thread Bastian Vogt
Hi, sounds like you should use $_GET['your_variable'] and $_POST['your_variable'] instead of $your_variable Regards, Bastian Shane schrieb: Greetings gang. You know me, I never ask for help if I haven't checked all my other options, but this is day two, and I'm getting spanked on this one.

Re: [PHP] Pls Help: Moving script from Win to Linux

2002-12-10 Thread Adam Williams
is register globals enabled? On Tue, 10 Dec 2002, Shane wrote: Greetings gang. You know me, I never ask for help if I haven't checked all my other options, but this is day two, and I'm getting spanked on this one. Some recently moved scripts from a WIN2K server running PHP 4.2.1 to an

Re: [PHP] Pls Help: Moving script from Win to Linux

2002-12-10 Thread Rodney Green
Register_Globals is off by default in version 4.2.3. See the following manual page for more information. http://www.php.net/manual/en/language.variables.predefined.php - Original Message - From: Shane [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Tuesday, December 10, 2002 11:08 AM

RE: [PHP] Pls Help: Moving script from Win to Linux

2002-12-10 Thread Shane
I can pass variables till I am blue in the face, even see them in the URL but they are still showing up as (!isset) Are you accessing these variables through $var or $_GET[var]? I am accessing them as $var. Example (from memory) if(!isset($var)){ // do nothing }else{ // VAR IS SET.. DO

RE: [PHP] Pls Help: Moving script from Win to Linux

2002-12-10 Thread Shane
Ahh Yes, Register Globals is off on the new set up, and is ON on the old Win Box. You folks soo rule Drinks all around! -Thanks a million NorthBayShane Register_Globals is off by default in version 4.2.3. See the following manual page for more information.

Re: [PHP] Pls Help: Moving script from Win to Linux

2002-12-10 Thread Rodney Green
Needs to be changed to the following if your forms are using the GET HTTP method: if(!isset($_GET[var])){ // do nothing }else{ // VAR IS SET.. DO SOMETHING } If your forms use the POST HTTP method then it needs to be changed to: if(!isset($_POST[var])){ // do nothing }else{ // VAR IS SET.. DO

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

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

Re: [PHP] Script not working from one computer

2002-12-10 Thread @ Edwin
Hello, 1LT John W. Holmes [EMAIL PROTECTED] wrote: ...[snip]... Browser's are the same (128bit). It's not a laptop. The web page can pull up You mean, the web browser, right? :) any other external web page correctly. And, I assume pull up external web page means web pages served from the

[PHP] w32API where is?

2002-12-10 Thread Marcus Fazzi
Where is w32_* functions on PHP 4.3.0 RC2? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Theoretical - Device server using PHP - Is this possible?

2002-12-10 Thread @ Edwin
Hello, Steve Jackson [EMAIL PROTECTED] wrote: Hi all, I work for a company that manufactures device servers. They currently have a very low internal memory (about 8MB) which is more than enough for TCP/IP connections (which BTW we just released the code open source to anyone interested

Re: [PHP] Please help - uploading multiple files

2002-12-10 Thread @ Edwin
Hello, Allred, Mark [EMAIL PROTECTED] wrote: Darn, that's what I was afraid of. Is there a way to do this in a client-side language like JavaScript? Javascript? No, I don't think so. (Maybe Java.) But, of course, you can always get a second opinion from a Javascript ML :) - E ...[snip]...

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

2002-12-10 Thread hacook
Make sure your form is sent through the method=POST David Scott [EMAIL PROTECTED] a écrit dans le message de news: [EMAIL PROTECTED] I am going through the introductory tutorial on http://www.php.net/ and am stuck on this page: http://www.php.net/manual/en/tutorial.forms.php I have been able

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

2002-12-10 Thread Rick Emery
Try $_POST['name'] and $_POST['age'] Try $HTTP_POST_VARS['name'] and $HTTP_POST_VARS['age'] - Original Message - From: David Scott [EMAIL PROTECTED] To: Sent: Tuesday, December 10, 2002 10:56 AM Subject: [PHP] Help please: Unable to get $_POST[variable]; to work in a form. I am going

Re: [PHP] run query

2002-12-10 Thread @ Edwin
Or, Jon Haworth [EMAIL PROTECTED] wrote: Hi Diana, After I run a query lik this, $db-query($sql); what is the quickest way to find out how many records result? Look into mysql_num_rows (or the equivalent if you're not using MySQL) ... you can even do it faster by using a

[PHP] Ayuda o Help en IIS 5.0

2002-12-10 Thread Ysrael Guzmán
instale el PHP en win 2000 server. Cuando agreque la extension en la configuracion del HOME DIRECTORI, me pidio algo de child NOTES, pero no le hice caso y lo anule me corre el PHP, pero no me corren los HTML??? Ysrael Guzmán Meza -- PHP General Mailing List (http://www.php.net/) To

[PHP] help II5

2002-12-10 Thread Ysrael Guzmán
2000 server installs the PHP in win. When agreque the extension in the configuration of the HOME DIRECTORI, me pidio something of child YOU NOTICE, but I did not do case to him and it annuls it runs to me the PHP, but they do not run the HTML to me? Ysrael Guzmán Meza

RE: [PHP] run query

2002-12-10 Thread Rich Gray
Er... but the original poster wanted a count of rows returned by a particular query... your method just returns the number of rows in the table... Rich -Original Message- From: @ Edwin [mailto:[EMAIL PROTECTED]] Sent: 10 December 2002 17:21 To: Jon Haworth; 'Diana Castillo' Cc: [EMAIL

Re: [PHP] number of records

2002-12-10 Thread Cory Hicks
Diana, This is how I typically do this with mysql_num_rows: $sql = SELECT * FROM sometable WHERE field LIKE '%$field%' LIMIT 0, 30 ; $result = mysql_query($sql) or die (Error In Query:.mysql_error()); $num_results = mysql_num_rows($result); HTH! Cory On Tue, 2002-12-10 at

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

2002-12-10 Thread David Scott
This is the exact code in the HTML file: html head titlePHP Form Example/title /head body form action=action.php mehtod=POST Your name: input type=text name=name / Your age: input type=text name=age / input type=submit /form /body /html I believe that is using the method POST. If there is

[PHP] w32api where is?

2002-12-10 Thread Marcus Fazzi
where is w32_* functions on PHP 4.3.0 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

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

2002-12-10 Thread Rodney Green
the word METHOD is incorrectly spelled. This is the exact code in the HTML file: html head titlePHP Form Example/title /head body form action=action.php mehtod=POST Your name: input type=text name=name / Your age: input type=text name=age / input type=submit /form /body /html --

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

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

[PHP] How to force an image to reload

2002-12-10 Thread Adam White
Guys, not sure if this is a PHP problem or a more general HTML problem, but... I've written a small test script (see below), basically, which allows the user to rotate an image by 90degrees. When I press the button, the page reloads having rotated the image, but the old image is still displayed.

Re: [PHP] How to force an image to reload

2002-12-10 Thread ed
As one who has had to do the same thing and had gotten some help from this list I'll put in my two cents. ? $rand = rand(1000,); ? img src=image.jpg?? echo $rand; ? This echoes a ? with a random number behind the filename forcing a request to the server for the image because you probably

RE: [PHP] Pls Help: Moving script from Win to Linux

2002-12-10 Thread Craig Thomas
If you do not want to re-write all your code and your web server is Apache and your host allows the use of .htaccess files you can turn register_globals = on programmatically: http://www.php.net/manual/en/configuration.directives.php#ini.register-globa ls (php_flag register_globals = ON;) i

Re: [PHP] run query

2002-12-10 Thread @ Edwin
Oops, ok, I misread the original question :) Rich Gray [EMAIL PROTECTED] wrote: Er... but the original poster wanted a count of rows returned by a particular query... your method just returns the number of rows in the table... Anyway, you're right. If you already have a result then use

Re: Re[2]: [PHP] Script not working from one computer

2002-12-10 Thread DL Neil
John, You mention that it is a login script and that input is rejected. Is it rejected when it is initially typed in, or is it reported as rejected when ensuing pages are served? When it's initially typed in. =do you have multiple 'environments' (eg VHosts or even physical servers)

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

2002-12-10 Thread Craig Thomas
Using $_REQUEST[] works because the vars are in the http request, but $_POST[] contains nothing as the other poster noted: mehtod=post -Original Message- From: David Scott [mailto:[EMAIL PROTECTED]] Sent: Tuesday, December 10, 2002 1:20 PM To: [EMAIL PROTECTED] Subject: [PHP] Re: Help

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

2002-12-10 Thread David Scott
I have corrected the typo and had hoped this was a simple solution, yet $_POST still doesn't work. Any ideas? Craig Thomas [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... Using $_REQUEST[] works because the vars are in the http request, but $_POST[] contains

[PHP] fwrite()ing predefined variables

2002-12-10 Thread Alberto Brea
Hi, Could somebody please tell me why I can't print pre-defined variables to a file with fwrite()? The code I use is this: $filename = '../vlog.txt'; $fd= fopen($filename, 'a'); $a= date(YmdHi); $b= basename($PHP_SELF); $c= $HTTP_USER_AGENT; $d= $HTTP_HOST; $e= $_SERVER['HTTP_HOST'];

Re: [PHP] Pls Help: Moving script from Win to Linux

2002-12-10 Thread Jason Wong
On Wednesday 11 December 2002 02:38, Craig Thomas wrote: If you do not want to re-write all your code and your web server is Apache and your host allows the use of .htaccess files you can turn register_globals = on programmatically:

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

2002-12-10 Thread Rick Emery
What version of PHP are you using? I believe that anything earlier than 4.05 does not support $_POST. Did you try $HTTP_POST_VARS['name']? This will work, regardless of version. - Original Message - From: David Scott [EMAIL PROTECTED] To: Sent: Tuesday, December 10, 2002 12:54 PM

[PHP] Know the path

2002-12-10 Thread Christian Ista
Hello, I have a web site with several directories or subdorectories, I'd like to know when I call (include) php page, the path where I'm. Is it possible? Christian, -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] How to force an image to reload

2002-12-10 Thread Adam White
Many thanks Ed, works a treat! Regards Adam White Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: 10 December 2002 18:31 To: Adam White Cc: [EMAIL PROTECTED] Subject: Re: [PHP] How to force an image to reload As one who has had to do the same thing and had

[PHP] help with II5

2002-12-10 Thread Ysrael Guzmán
Instale el PHP, pero no puedo ahora ver mis HTML? porque, todo lo instale en el Internet Information Service 5, me salia un mensaje CHILDS NOTES, pero no lo acepte sobre unos permisos de Ejecución. Mas ahora configuro mi pagina de inicio en Document y no me lee el HTML. este error me sale: The

RE: [PHP] How to force an image to reload

2002-12-10 Thread ed
Even though I did forget the ending on the tag. Cool. Ed On Tue, 10 Dec 2002, Adam White wrote: Many thanks Ed, works a treat! Regards Adam White Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: 10 December 2002 18:31 To: Adam White Cc: [EMAIL

Re: [PHP] Know the path

2002-12-10 Thread Ray Hunter
Check out the filesystem functions: http://www.php.net/manual/en/ref.filesystem.php On Tue, 2002-12-10 at 12:05, Christian Ista wrote: Hello, I have a web site with several directories or subdorectories, I'd like to know when I call (include) php page, the path where I'm. Is it possible?

Re: [PHP] fwrite()ing predefined variables

2002-12-10 Thread Jason Wong
On Wednesday 11 December 2002 03:00, Alberto Brea wrote: Hi, Could somebody please tell me why I can't print pre-defined variables to a file with fwrite()? The code I use is this: $filename = '../vlog.txt'; $fd= fopen($filename, 'a'); $a= date(YmdHi); $b= basename($PHP_SELF); $c=

Re: [PHP] save file from outside url

2002-12-10 Thread Jeremiah Breindel
When I wanted to output the png to file, I just need to plop the global label in front of the $image_filename before I passed it.. Simple mistake, that's what I get for using someone else's script ;-) // output PNG object. global $image_filename; imagePNG($image, $image_filename);

[PHP] command line output

2002-12-10 Thread Bryan Koschmann - GKT
Hello, I'm trying out a little script run from the command line. It simply outputs a number to send to Cacti. Is there any way to get it to NOT send all the stuff like this: X-Powered-By: PHP/4.2.3 Set-Cookie: PHPSESSID=ec0e2c10c8bd9e0a0ad02cfcc182dbfb; path=/ Expires: Thu, 19 Nov 1981 08:52:00

  1   2   >