Re: [PHP] Getting name of the main file from external included script..

2001-03-14 Thread Christian Reiniger
On Tuesday 13 March 2001 00:14, you wrote: > I already asked this once before, but nobody seems to answer. That's > why I'm re-writing > my question. Well, you waited about two hours. That's not much, even for a mailinglist like php-general. -- Christian Reiniger LGDC Webmaster (http://sunsit

[PHP] round up number

2001-03-14 Thread Jacky
How do I round up a lot of decimal number like 10.232656898 to be 10.23 ? Should I use this? $num = 10.26564787; $Rnum = round($num); What would be the function I am looking for and how? Jack [EMAIL PROTECTED] "There is nothing more rewarding than reaching the goal you set for yourself"

Re: [PHP] [Q] session variables wouldn't keep contents.

2001-03-14 Thread Yasuo Ohgaki
- Original Message - From: "Chung Ha-Nyung" <[EMAIL PROTECTED]> To: "Yasuo Ohgaki" <[EMAIL PROTECTED]> Cc: <[EMAIL PROTECTED]> Sent: Wednesday, March 14, 2001 5:07 PM Subject: Re: [PHP] [Q] session variables wouldn't keep contents. > > I found something! > If I set register_globals t

Re: [PHP] Using sessions

2001-03-14 Thread Yasuo Ohgaki
"Rosen" <[EMAIL PROTECTED]> wrote in message 98n8ut$m26$[EMAIL PROTECTED]">news:98n8ut$m26$[EMAIL PROTECTED]... > Hi, > When I use sessions, on the URL row of the browser shows > "PHPSESSID=CXXX". > Can I hide id ? > > Thanks, > Rosen Marinov Use cookie for session. It seems there are some

RE: [PHP] replacing a line in a file

2001-03-14 Thread Tim Ward
the point is that you can't replace part of a flat file. you can append to the content or replace it all. if you want to replace part, you need to read it all, amend the relevant line and then replace it all. Tim Ward Senior Systems Engineer Please refer to the following disclaim

Re: [PHP] [Q] session variables wouldn't keep contents.

2001-03-14 Thread Chung Ha-Nyung
> "YO" == Yasuo Ohgaki <[EMAIL PROTECTED]> writes: YO> - Original Message - YO> From: "Chung Ha-Nyung" <[EMAIL PROTECTED]> YO> To: "Yasuo Ohgaki" <[EMAIL PROTECTED]> YO> Cc: <[EMAIL PROTECTED]> YO> Sent: Wednesday, March 14, 2001 5:07 PM YO> Subject: Re: [PHP]

Re: [PHP] software localization with PHP

2001-03-14 Thread Christian Reiniger
On Wednesday 14 March 2001 05:50, you wrote: > I have a question about localizing PHP scripts. I understand that for > basic localization one can have a "strings" file for each language, > which contains string variables and values such as: > $title = "Welcome!"; > $error =

[PHP] RE: [?] Call a function with a button/link click?

2001-03-14 Thread Tim Ward
php works server side. you cannot get user to run anything in php without resubmitting (posting or whatever) ... you need javascript if this is something you can do client-side, if not you'll have to live with some sort of resubmit. Tim Ward Senior Systems Engineer Please refer t

Re: [PHP] Using sessions

2001-03-14 Thread Rosen
Thanks, but cookies are disabled ! Rosen Marinov ""Yasuo Ohgaki"" <[EMAIL PROTECTED]> wrote in message 98nai7$2gb$[EMAIL PROTECTED]">news:98nai7$2gb$[EMAIL PROTECTED]... > "Rosen" <[EMAIL PROTECTED]> wrote in message > 98n8ut$m26$[EMAIL PROTECTED]">news:98n8ut$m26$[EMAIL PROTECTED]... > > Hi,

SV: [PHP] round up number

2001-03-14 Thread Johan Holst Nielsen
>How do I round up a lot of decimal number like 10.232656898 to be 10.23 ? Should I use this? >$num = 10.26564787; >$Rnum = round($num); >What would be the function I am looking for and how? Try: $num = 10.26564787; $Rnum = round($num, 2); /Johan -- PHP General Mailing List (http://www.php.n

RE: [PHP] Using sessions

2001-03-14 Thread Stewart Taylor
An idea is to put the session id in your web page addresses. e.g. http://level1/level2/12123234234234234234/test.php Then setup your web server to filter all addresses to remove the session id from the address before it is displayed in the browser window (you can set apache to do this) so the use

Re: [PHP] Session problem

2001-03-14 Thread Pavel Kalian
set the session.save_path to a directory that exists on your system (for example: session.save_path = c:\temp) Pavel - Original Message - From: "Brandon Orther" <[EMAIL PROTECTED]> To: "PHP User Group" <[EMAIL PROTECTED]> Sent: Tuesday, March 13, 2001 10:56 PM Subject: [PHP] Ses

Re: [PHP] [Q] session variables wouldn't keep contents.

2001-03-14 Thread Yasuo Ohgaki
SNIP > > > >I found something! > >If I set register_globals to Off in php.ini, then session *seems* to work > YO> well. > >In /tmp, session data file contains both of variable name and value and I > YO> can > >use $HTTP_SESSION_VARS["variable"]. > >

Re: [PHP] Multi-Step Script

2001-03-14 Thread Jens Nedal
on 14.03.2001 5:59 Uhr, Andrew V. Romero at [EMAIL PROTECTED] wrote: > Is it possible to use different parts of one php script for multiple > html forms? I am not seeing how people create multiple pages of html > forms with each form importing information from the previous form. > Right now, for

Re: [PHP-CVS] cvs: php4 /ext/mysql php_mysql.c php_mysql.h

2001-03-14 Thread Derick Rethans
On Tue, 13 Mar 2001, Zeev Suraski wrote: > zeev Tue Mar 13 14:52:53 2001 EDT > > Modified files: > /php4/ext/mysql php_mysql.c php_mysql.h > Log: > Implement mysql_unbuffered_query() - uses mysql_use_result() instead of > mysql_store_result() Don't you think this belongs i

[PHP] I want this magic directory

2001-03-14 Thread Alex
I just want every customer on my site get his own unique id as his directory name but the pages requested are all processed by the root. Such as: customer1's url is http://www.mysite.com/2000123/ customer2's url is http://www.mysite.com/2000124/

Re: [PHP] update two frames at once?

2001-03-14 Thread Jens Nedal
Yes you can and there is even a neater script that does it. with thise you can update any amount of frames a t the same time. Just well i got to find it. msg back in a few. Jens Nedal on 12.03.2001 22:15 Uhr, Angerer, Chad at [EMAIL PROTECTED] wrote: > Yes you can.. use Javascript > > Look

[PHP] How to include in PHP?

2001-03-14 Thread Costas
Im new to PHP and want to know if it is possible to reference PHP scripts from a html page, the equivalent to an <% include%> tag in asp. If so what is the syntax? Thanks -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-m

Re: [PHP] How to include in PHP?

2001-03-14 Thread Tshering Norbu
NOBBY > > > - Original Message - > From: Costas <[EMAIL PROTECTED]> > To: <[EMAIL PROTECTED]> > Sent: Wednesday, March 14, 2001 4:37 PM > Subject: [PHP] How to include in PHP? > > > > Im new to PHP and want to know if it is possible to reference PHP scripts > > from a html page, t

[PHP] database abstraction module

2001-03-14 Thread Marc Boeren
Hi! I'ld like to announce the availability of a database abstraction module, called 'dbx'. It gives you the ability to code your database-enabled php-templates once (for a specific database), and port to a different database later by just changing the string "odbc" to "mysql" (e.g.) once. This

Re: [PHP-CVS] cvs: php4 /ext/mysql php_mysql.c php_mysql.h

2001-03-14 Thread Zeev Suraski
I added it... At 11:28 14/3/2001, Derick Rethans wrote: >On Tue, 13 Mar 2001, Zeev Suraski wrote: > > > zeev Tue Mar 13 14:52:53 2001 EDT > > > > Modified files: > > /php4/ext/mysql php_mysql.c php_mysql.h > > Log: > > Implement mysql_unbuffered_query() - uses mysql_use_resul

Re: [PHP] [Q] session variables wouldn't keep contents.

2001-03-14 Thread Christian Reiniger
On Wednesday 14 March 2001 09:33, you wrote: > I set "register_globals = Off" for many reasons. > Session may not work with "register_globals = On"?? Works fine here (php 4.0.4 / Linux / Apache) -- Christian Reiniger LGDC Webmaster (http://sunsite.dk/lgdc/) "Never doubt that a small group of

[PHP] Execute sql a number of times

2001-03-14 Thread Wade Halsey
Hi I need to execute an sql statement a certain number of times based on a users input /* number of times to execute $NumCases = $HTTP_POST_VARS['txtNumCases']; /* sql to run $GetDetails = sqlexecute("select b.accno,b.debttype, c.surname, c.initial ,c.firstname, c.id_number, c.maidenname, c.ad

RE: [PHP] Execute sql a number of times

2001-03-14 Thread Jon Haworth
What about wrapping it in a FOR loop: for ($counter = 1; $counter <= $NumCases; $counter++) { // do the sql stuff } (http://www.php.net/manual/en/control-structures.for.php) I don't think the type of database will make any difference to this. HTH Jon -Original Message- From:

[PHP] Problems with mail function

2001-03-14 Thread Kike
Hi, I have a seious problem with the mail function. It does not send the emails. It returns 1 but does not send them. I think it may be a problem with sendmail permissions. Can you help me? Please. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For a

[PHP] DSO x CGI

2001-03-14 Thread Christian Dechery
What are the main differences of running PHP as a DSO Module or as CGI? I had some problems running as DSO, cuz I need the mssq70 extension and everytime I ran a script it caused a GPF in php4ts.dll. So I switched back to CGI and the error disapeared. I wanna know if I'm loosing something with

[PHP] Linking Libraries ...

2001-03-14 Thread James Marshall
Hi All, This might be a really dumb question - I'm a bit of a newbie. I have a hosting account that provides PHP, but it hasn't been compiled with the IMAP libraries, and I really need these functions. Is there any way to link the IMAP lib locally (ie: without root permissions)? I've used Perl b

[PHP] switch with multiple case

2001-03-14 Thread Christian Dechery
In ASP, you can have something like: <% select case something case "this" do that case "those","them" do other case "crap","doesn't matter","whatever" do nothing case else print error end select %> IN PHP you can't

SV: [PHP] Linking Libraries ...

2001-03-14 Thread Johan Holst Nielsen
>I have a hosting account that provides PHP, but it hasn't been compiled with >the IMAP libraries, and I really need these functions. Is there any way to >link the IMAP lib locally (ie: without root permissions)? I've used Perl >before and know that similar is possible. No, you have to compile PH

Re: [PHP] switch with multiple case

2001-03-14 Thread Phil Driscoll
Same as C switch($something) { case "this": do that;break; case "those":case "them": do other; break ... default: print error } Cheers -- Phil Driscoll Dial Solutions +44 (0)113 294 5112 http://www.dialsolutions.com http://www.dtonline.org -- PHP General Mailing List (http://www.php.net

RE: [PHP] switch with multiple case

2001-03-14 Thread Matt Williams
switch($something) { case "this": do this; break; case "those": case "them": do other; break; case "crap": case "doesn't matter": case "whatever": do nothing; break; default: print error; } > > <% > select case something

[PHP] CGI Question?

2001-03-14 Thread Dan Pupek
On the latest version of Apache I have heard you can run Compiled C binaries from the CGI bin. Is this true? If so how does it work? -- Dan Pupek On the Web: http://www.sunnet.net/dnkp/dan Email: [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EM

[PHP] writing to a text file

2001-03-14 Thread george
I have a script which the user enters information into a form and it returns a enquiry number using mysql_insert_id Is it possible when the form is filled in to pull a unique order number from a text file. TIA george -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail:

[PHP] install

2001-03-14 Thread hananet
how to install php on windows 98 or iis 5.0

[PHP] IMAP sort help.

2001-03-14 Thread Terrence Wong
This command works without problems on a local unix server. However, when I tried the exact same code , $sortmail = imap_sort($mailbox,SORTSIZE,1) on a remote imap server running on mac, it produces problems. (no error messages) I am unable to check the error messages as they are none. And adding

[PHP] (rac)Php dobut with an extension

2001-03-14 Thread Celestino Roberto Alejandro
Hey !! How are you I've tried to do run PHP with JAVA support enabled, (in a Win32 plattform in this case), and when i uncommented the extension=php_java.dll, all is ok, then i configure the [JAVA] section, with... [Java] java.home = c:\java java.library = c:\java\jre\bin\classic\jvm.dll java

RE: [PHP] install

2001-03-14 Thread Jon Haworth
It's truly amazing what you can find three clicks away from the main page of www.php.net. http://www.php.net/manual/en/installation.php HTH Jon -Original Message- From: hananet [mailto:[EMAIL PROTECTED]] Sent: 14 March 2001 12:53 To: [EMAIL PROTECTED] Subject: [PHP] install how to in

Re: [PHP] Good Free PHP Editor?

2001-03-14 Thread b0ld b0lb
UltraEdit-32 does show the whole filename. I wonder what version u have... >From: Dennis Gearon <[EMAIL PROTECTED]> >To: [EMAIL PROTECTED] >Subject: Re: [PHP] Good Free PHP Editor? >Date: Tue, 13 Mar 2001 08:52:05 -0800 > >I have tried many editors on windblows for php. > >UltraEdit-32 is good,

Re: [PHP] Mysql Show SQL

2001-03-14 Thread Jason Stechschulte
On Tue, Mar 13, 2001 at 03:07:45PM -0500, Mike wrote: > require("Connection.php"); > $query="Show Columns from Inventory"; > $result= mysql_query($query); > while ($row = mysql_fetch_row($result)); > { > for ($i =1;$i {echo $row[$i]; > }} > ?> 2 problems. 1. Delete the ';' after the while loop

[PHP] Linux/Apache/PHP & Windows/IIS/ColdFusion

2001-03-14 Thread Joe Sheble (Wizaerd)
Currently in-house our intranet is made up of Windows NT, IIS, and ColdFusion. We've also settled on MS IE as our standard browser, and use advanced authentication for logging into the intranet. This provides employees with one click access to the intranet without having to manually and phys

[PHP] Day of Week??

2001-03-14 Thread Bruno Freire
Hi It's me again! Bruno...From Brazil... Hi wanna know How can i take the day of week of aany date... Example: How to know that 14 of march of 2001 is a Wednesday?? Thanks... Bruno.

RE: [PHP] Day of Week??

2001-03-14 Thread Boget, Chris
> Hi wanna know How can i take the day of week of aany date... > Example: > How to know that 14 of march of 2001 is a Wednesday?? date( "l", $timeStamp ); // lowercase "L", or you could use "D" Look up the date() function. The documentation is your friend. Chris

php-general Digest 14 Mar 2001 13:57:07 -0000 Issue 566

2001-03-14 Thread php-general-digest-help
php-general Digest 14 Mar 2001 13:57:07 - Issue 566 Topics (messages 43754 through 43829): Re: tutorials on good database design 43754 by: Jeff Oien 43755 by: Andrew Halliday 43757 by: Justin French foreach() faster than while()? 43756 by: Yasuo Ohgaki

[PHP] Tutorial for RegExpressions

2001-03-14 Thread Martin Thoma
Hi ! Does someone know a good tutorial für regula-expression, like they are used in ereg and preg ? Martin -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail

Re: [PHP] Day of Week??

2001-03-14 Thread Tim McGuire
from manual at www.php.net: $today = getdate(); $weekday = $today[weekday]; echo $weekday; if it is another date $thedate = getdate(mktime (0,0,0,(0,0,0,1,1,1998)); $weekday = $t

Re: [PHP] Day of Week??

2001-03-14 Thread Tim McGuire
Sorry There was a typo in last post: SHOULD BE: from manual at www.php.net: $today = getdate(); $weekday = $today[weekday]; echo $weekday; if it is another date $thedate = getdate(mktime (0,0,0,1,1,1998

Re: [PHP] Tutorial for RegExpressions

2001-03-14 Thread Fredrik Wahlberg
I must recommend the book ”Mastering Regular Expressions” from O'Reilly. It is one of the best programming books I have ever read. /Fredrik >> Ursprungligt meddelande << Martin Thoma <[EMAIL PROTECTED]> skrev 2001-03-14, kl. 15:12:05 angående ämnet [PHP] Tutori

RE: [PHP] Getting name of the main file from external included sc ript..

2001-03-14 Thread Aviv Revach
Hey! I already tried many ways. I also tried using $PHP_SELF. It returned the included script and not the main script (I echo'ed it to screen in order to be sure). The main file(main.php3) has an inclusion similar to the next one: http://$SERVER_NAME/scripts/ext.php3?LayoutDir=/layout/&Layout

[PHP-CVS] cvs: php4 /ext/standard browscap.c

2001-03-14 Thread Sascha Schumann
sas Wed Mar 14 05:38:03 2001 EDT Modified files: /php4/ext/standard browscap.c Log: Fix ZTS build Index: php4/ext/standard/browscap.c diff -u php4/ext/standard/browscap.c:1.43 php4/ext/standard/browscap.c:1.44 --- php4/ext/standard/browscap.c:1.43 Tue

[PHP] Script returns an image?

2001-03-14 Thread Paul Warner
I am trying to make a call from one page (pure HTML) that would include a tag as follows: http://mydomain.com/returnimage.php?var1=value1&var2=value2 width="100" height="50" alt="Description"> My question is how to get the php script to return the proper headers as well as the image to the clien

RE: [PHP] CGI Question?

2001-03-14 Thread John Huggins
This has been true since CGI began in the NSCA days. Any program that can take input from STDIN and output to STDOUT works as a CGI program. Languages I have actually used in the CGI bin include, C, C++, AWK, Sh, PHP and of course Perl. The C program simply has to deal with the CGI variables com

Re: [PHP] Linux/Apache/PHP & Windows/IIS/ColdFusion

2001-03-14 Thread Michael Kimsal
What they've got now is completely fine - why necessarily change it? OK OK - I know many of the reasons why, but moving to another platform, you will most likely 'lose' that 'advanced authentication'. Oo. To gain the flexibility and stability of PHP on Linux/Apache, everyone in the comp

[PHP] TAB = ENTER ????

2001-03-14 Thread Marcel Henrique Scandolara - Wide
Please, As I make to make keyboard key to function equal keyboard key Thanks Marcel Henrique from Brazil -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail

Re: [PHP] TAB = ENTER ????

2001-03-14 Thread Tim McGuire
Check out http://developer.irt.org/script/471.htm it is a document titled "How can I simulate the tab key when the enter key is pressed?" >>> Marcel Henrique Scandolara - Wide <[EMAIL PROTECTED]> 03/14/01 08:38AM >>> Please, As I make to make keyboard key to function equal keyboard key T

Re: [PHP] Script returns an image?

2001-03-14 Thread Yasuo Ohgaki
Did you read this page? http://www.php.net/manual/en/features.images.php What is your php code looks like? if you read this page already. Yasuo Ohgaki = My favorite links [RFC] http://www.faqs.org/rfcs/ [W3C] http://www.w3.org/ [PHP Manual] http://www.php.net/manual/e

[PHP] xml parsing

2001-03-14 Thread Jon A
please help me... I'm working with some simple xml parsing. in my xml document i have a tag like this: which holds the path of a picture. in the xml parser i'm trying to output it as an tag, but nothing seems to work. some of the things i have tried: case "BILLEDE": p

[PHP] variable on 2 forms

2001-03-14 Thread Miguel Loureiro
Hello all, I have a normal form (form1) with a variable (var1) and a form inside a layer (form2) with a variable (var2). After submit (form1), how can I have access to var2 ? (if I must use javascript should use: document.layer.var2 or document.form2.var2 or document.layer.form2.var2 ...???

Re: [PHP] Script returns an image?

2001-03-14 Thread pablo
Return document , other than HTML is very simple. The type of the document is contained in the http content-type header. You can easly set it by the header function. header("Content-type: application/x-www-urlform-encoded"); Pablo [EMAIL PROTECTED] > Yasuo Ohgaki > = >

Re: [PHP] Linux/Apache/PHP & Windows/IIS/ColdFusion

2001-03-14 Thread Joe Sheble (Wizaerd)
At 09:36 AM 3/14/01 -0500, Michael Kimsal wrote: >What they've got now is completely fine - why necessarily change it? As you've stated, there are many reasons why changing would be a good thing, but mostly it's a manager (a higher up executive level mucky-muck) throwing out 'Hey what about thi

[PHP] simple I'm sure

2001-03-14 Thread Keith
Following loop works fine ! but I don't want $art_nr_1 (which is 4564) I want to have $art_nr_$i but if you use it you just get 1,2,3,4 for ($i=1; $i<50; $i++) : $varid = "quant".$i ; if ($$varid != "") { echo " "; } endfor; -- PHP General Mailing List (http://www.php.net/) To unsubscribe,

Re: [PHP] TAB = ENTER ????

2001-03-14 Thread Yasuo Ohgaki
> Please, > > As I make to make keyboard key to function equal keyboard key > > > Thanks > Assuming you are talking about page that is displayed on user's browser. You cannot use PHP to do that, PHP simple does not have control. However, you can catch key pressed event (onkeydown) using JavaScr

[PHP-CVS] cvs: php4 /ext/fbsql EXPERIMENTAL

2001-03-14 Thread Jani Taskinen
sniper Wed Mar 14 05:42:33 2001 EDT Added files: /php4/ext/fbsql EXPERIMENTAL Log: Missing. -- PHP CVS Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the

Re: [PHP] variable on 2 forms

2001-03-14 Thread pablo
I think you'll need to use javascript. put a input with the type "hidden" in the first form with no value. Call a javascript function on the submit button or image action. This javascript must set the hidden input in form1 with the var2 value before submiting the form to the script. the object st

Re: [PHP] Script returns an image?

2001-03-14 Thread Paul Warner
I have been over that page, but did not know that it applied since I do not want to modify an image, simply pass it on to the requestor. Here;s my relevant code: Do I need to use something more like: - Original Message - From: "Yasuo Ohgaki" <[EMAIL PROTECTED]> Subject: Re: [PHP] S

[PHP-CVS] cvs: php4 /ext/fbsql CREDITS

2001-03-14 Thread Jani Taskinen
sniper Wed Mar 14 05:43:58 2001 EDT Added files: /php4/ext/fbsql CREDITS Log: Forgot this one.. -- PHP CVS Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact

Re: [PHP-CVS] cvs: php4 /ext/standard browscap.c

2001-03-14 Thread Sebastian Bergmann
Sascha Schumann wrote: > sas Wed Mar 14 05:38:03 2001 EDT > > Modified files: > /php4/ext/standard browscap.c > Log: > Fix ZTS build Works - thanks, Sascha. -- sebastian bergmann e-mail : [EMAIL PROTECTED] homepage :

Re: [PHP] switch with multiple case

2001-03-14 Thread Yasuo Ohgaki
> In ASP, you can have something like: > > > <% > select case something > case "this" do that > case "those","them" do other > case "crap","doesn't matter","whatever" do nothing > case else print error > end select > %> > > > IN PHP you can't do cases like that, because like in C, u must have

Re: [PHP] simple I'm sure

2001-03-14 Thread Jack Dempsey
try this...didn't test it, but i think it'll do the trick: for($i=1;$i<50;$i++){ $varid = "quant".$i; if($$varid != ""){ echo ''; echo ''; } } jack Keith wrote: > > Following loop works fine ! > but I don't want $art_nr_1 (which is 4564)

RE: [PHP] variable on 2 forms

2001-03-14 Thread Rudolf Visagie
I don't know if this fixes your problem but this worked for me. Define a Javascript function: function PassRequest(what) { document.fields_frm.p_request.value=what } and then in the form you could perhaps have: When the user clicks on the insert button it passes 'In

Re: [PHP] I want this magic directory

2001-03-14 Thread Joe Stump
Read up on forcetype'ing on phpbuilder.com - it will do just what you want it to do. --Joe On Wed, Mar 14, 2001 at 06:08:18PM +0800, Alex wrote: > I just want every customer on my site get his own unique id as his directory > name but the pages requested are all processed by the root. > Such as:

Re: [PHP] simple I'm sure

2001-03-14 Thread Keith
It's bizarre it should work but I get back just 1, 2 or 3 Although with this just to test it works fine and i get back And really weird it this version for ($i=1; $i<50; $i++) : $quantid = "quant".$i ; if ($$quantid != "") { $artid = "art_nr_".$i; echo " "; } en

[PHP] shared memory questions

2001-03-14 Thread Monte Ohrt
Hi, I have a situation where I'd like to store some data in shared memory as opposed to repetitive database requests. Basically, I'd read in a (small) database table and serialize the results into shared mem. I've read through the semaphore and shared memory documentation, but some things are lef

[PHP] bug or feature?

2001-03-14 Thread indrek siitan
Hi, output: Value is NULL! is it a bug or expected behaviour? tested it on 4.0.4pl1. i got around it by using strcasecmp(), but just wondering. :) Rgds, Tfr --==< [EMAIL PROTECTED] >==< http://tfr.cafe.ee/ >==< +372-50-17621 >==-- -- PHP General Mailing List (http://www.php.net/) To

[PHP] Function, array - problem (probably easy to solve)

2001-03-14 Thread Tobias Talltorp
I am constructing a function for retrieving records from a mysql database and putting them into an array called $print_field[name][number]. My problem is that I only seem to get the first two records and I think I know where the problem is, but I can´t seem to be able to solve it. Any ideas anyo

Re: [PHP] Linux/Apache/PHP & Windows/IIS/ColdFusion

2001-03-14 Thread Michael Kimsal
"Joe Sheble (Wizaerd)" wrote: > At 09:36 AM 3/14/01 -0500, Michael Kimsal wrote: > >What they've got now is completely fine - why necessarily change it? > > As you've stated, there are many reasons why changing would be a good > thing, but mostly it's a manager (a higher up executive level muck

Re: [PHP] xml parsing

2001-03-14 Thread Pavel Jartsev
Jon A wrote: > > ... > > print ""; > break; > > ... > print ""; > break; > > - this will let it parse, but it won't do anything with the html. > > can somebody help me?? > Try this: print ''; -- Pavel

Re: [PHP] bug or feature?

2001-03-14 Thread Pavel Jartsev
indrek siitan wrote: > > Hi, > >$value=0; > if ($value=="NULL") > echo "Value is NULL!"; > else > echo "Value is not null."; > ?> > > output: Value is NULL! > > is it a bug or expected behaviour? tested it on 4.0.4pl1. > i got around it by using strcasecmp(), but just wondering

RE: [PHP] Tutorial for RegExpressions

2001-03-14 Thread Nathan Cassano
Learning to Use Regular Expressions by Example http://www.phpbuilder.com/columns/dario19990616.php3 -Original Message- From: Martin Thoma [mailto:[EMAIL PROTECTED]] Sent: Wednesday, March 14, 2001 6:12 AM To: [EMAIL PROTECTED] Subject: [PHP] Tutorial for RegExpressions Hi ! Does someo

Re: [PHP] Problems with mail function

2001-03-14 Thread Colin May
Quoting Kike (Wed, Mar 14, 2001 at 11:59:32AM -) > Hi, > I have a seious problem with the mail function. It does not send the emails. > It returns 1 but does not send them. I think it may be a problem with > sendmail permissions. Can you help me? Please. What do the sendmail mail logs say?

[PHP] Re: [PHP-WIN] Print variables coming from a form not controled by me...

2001-03-14 Thread Dream
Hi Michael, Alos, when I run the page, it give me a parse error in line 22, that is: while ( list ( $key, $val ) = each ( $HTTP_GET_VARS ) ) Any idea? Here's the complete page Untitled Document $val\n"; if ( "array" == GetType( $val ) ) { while

[PHP] sort in mysql

2001-03-14 Thread McShen
hi I have a database with some urls and numbers. There are currently 2 records in the database. I wanna sort them by the numbers. How should i do it? my table is like name hits john 343 scott 3423 any suggestions would be greatly appreciated! -- PHP Genera

[PHP] stopping readfile dumping file contents to apache's error_log on error?

2001-03-14 Thread Seth Ladd
Hi, I'm experiencing an odd situation. I am returning a large file back to a client w/ readfile(). If I cancel the stream before it is done, it will cause the PHP script to write the rest of the file's contents to Apache's error_log (creating quite a huge log file). I'm afraid I don't understa

Re: [PHP] foreach() faster than while()?

2001-03-14 Thread Dennis Gearon
I meant to write about this last week! I see a LOT of examples on the PHP website, both by contributions and by the staff responsible for the manual, of using functions inside of loops to get a value that doesn't change, i.e. the end or beginning of an array. A lot of code out there would speed

Re: [PHP] Problems with mail function

2001-03-14 Thread stas
I have the same problem. Mail function works fine on my NT development box, but when I transfer files over to Unix, it doesn't, as if mail goes into the void. The only setting you need on Unix is the sendmail path, no? SMTP and sendmail_from are not required and are ignored, is that correct? sta

[PHP] values for extensive

2001-03-14 Thread Marcel Henrique Scandolara - Wide
As I could make a function to write values for extensive, example: It types 10 soon below appears (Ten) Obliged for the attention Marcel Henrique -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To

Re: [PHP] Good Free PHP Editor?

2001-03-14 Thread Dennis Gearon
>UltraEdit-32 does show the whole filename. I wonder what version u have... The most recent download trial version, you'd think they'd make it LOOK as nice as the final one. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-ma

Re: [PHP] foreach() faster than while()?

2001-03-14 Thread Rick St Jean
the print() stuff is minimal. You are just copying stuff to the buffer. If you were outputting to a file when your way is faster. It has to do with the fact that in the while you keep leaving the array. and check the while, in the php layer. In the foreach do the same thing just on the c layer.

RE: [PHP] sort in mysql

2001-03-14 Thread Jeff Oien
ORDER BY hits default is ascending (ASC). Otherwise ORDER BY hits DESC Jeff Oien > hi > > I have a database with some urls and numbers. There are currently 2 records > in the database. I wanna sort them by the numbers. How should i do it? > my table is like > > name hits > john

[PHP] image counter?

2001-03-14 Thread Fai
We always use 0-9 images to generate the image counter but this image counter contains more than one image. Does any body know how to combine these images as one? That is the final output of image counter is one image. Thank you very much! -- PHP General Mailing List (http://www.php.net/) To

[PHP] cannot use post

2001-03-14 Thread Fabian Fabela
Hello, I think that this is off topic but may be you can help me. I have just installed linux, apache, and php. I have some programs (in php) running in a server when I try to run them in this new server I get the following error. Method Not Allowed The requested method POST is not allowed for

[PHP] email a file from server

2001-03-14 Thread Jerry Lake
Is there an easy way to email a file that resides on the server to a given email address ? Jerry Lake- [EMAIL PROTECTED] Web Designer Europa Communications - http://www.europa.com Pacifier Online - http://www.pacifier.com -- PHP General Mailing List (http://www.php.net/) To uns

Re: [PHP] image counter?

2001-03-14 Thread Jack Dempsey
Fai wrote: > > We always use 0-9 images to generate the image counter but this image > counter contains more than one image. Does any body know how to combine > these images as one? That is the final output of image counter is one image. > > Thank you very much! > > -- > PHP General Mailing Lis

Re: [PHP] Mysql Show SQL

2001-03-14 Thread Christian Reiniger
On Wednesday 14 March 2001 14:41, you wrote: > > $result= mysql_query($query); > > while ($row = mysql_fetch_row($result)); > > { > > for ($i =1;$i > {echo $row[$i]; > > }} > > ?> > > 2 problems. > > 1. Delete the ';' after the while loop. With that there the for loop > will never run. It will.

Re: [PHP] Day of Week??

2001-03-14 Thread Christian Reiniger
On Wednesday 14 March 2001 14:53, you wrote: > Hi It's me again! > Bruno...From Brazil... > > Hi wanna know How can i take the day of week of aany date... Have you tried reading the manual? -- Christian Reiniger LGDC Webmaster (http://sunsite.dk/lgdc/) CPU not found. retry, abort, igno

[PHP] RE: I want this magic directory

2001-03-14 Thread Tim Ward
You'll need to do your log in on the root and then redirect depending on what username they are are logged on as. You can use cookies to set the initial user name value in your log in screen but that's as far as you can go if you want any level of security. once you have a validated username (whi

Re: [PHP] Script returns an image?

2001-03-14 Thread Christian Reiniger
On Wednesday 14 March 2001 16:04, you wrote: > I have been over that page, but did not know that it applied since I do > not want to modify an image, simply pass it on to the requestor. > Here;s my relevant code: > > > ...database stuff... > > Header("Content-type: image/jpg"); You tell the

RE: [PHP] image counter?

2001-03-14 Thread Jeff Oien
I'm curious as to why you need to combine them. Wouldn't it be easier just to display the images side by side? Jeff Oien > We always use 0-9 images to generate the image counter but this image > counter contains more than one image. Does any body know how to combine > these images as one? That

[PHP] Value

2001-03-14 Thread Marcel Henrique Scandolara - Wide
How could make a function to write values in extense, example: Write 10 soon below appears(Ten) How ? Thanks Marcel Henrique -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list

[PHP] Multiple rows returned ?. . .

2001-03-14 Thread Mrvball008
Hi I have little tiny script like so.. >- $dbName = "somedb"; >$dbPass = "somepass"; >$dbUserName = "someuser"; >$host = "localhost"; >$db = mysql_connect($host, $dbUserName, $dbPass) or die ("Could not connect to database"); >mysql_select_db($dbName,$db); $sql = "SELECT * FROM downloa

Re: [PHP] Script returns an image?

2001-03-14 Thread Paul Warner
Thanks, I knew I didn't want to create or modify an image, so the html seemed the only way to retrieve it...I guess I didn't know I could retrieve a binary file in this manner. -- P - Original Message - From: "Christian Reiniger" <[EMAIL PROTECTED]> Subject: Re: [PHP] Script returns an i

  1   2   3   >