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

[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 to Off in

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

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] [Q] session

[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

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, When

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

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

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]

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"]. BUT, as

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 in the

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

Re: [PHP] How to include in PHP?

2001-03-14 Thread Tshering Norbu
?php include ("file.php"); ? 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

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

[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

[PHP] switch with multiple case

2001-03-14 Thread Christian Dechery
In ASP, you can have something like: snip % 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 % /snip IN PHP

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 PHP

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

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; } snip % select case

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

[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

[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

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

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

[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

[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: img src=http://mydomain.com/returnimage.php?var1=value1var2=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

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

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

[PHP] TAB = ENTER ????

2001-03-14 Thread Marcel Henrique Scandolara - Wide
Please, As I make to make keyboard key ENTER to function equal keyboard key TAB 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

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 ENTER to function equal keyboard key TAB

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]

[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: billede img="theme/bg.gif"/billede which holds the path of a picture. in the xml parser i'm trying to output it as an img src="" tag, but nothing seems to work. some of the things i have

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

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

[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; $i50; $i++) : $varid = "quant".$i ; if ($$varid != "") { echo " input type=hidden name=\"art_nr\" value=\"$art_nr_1\" input type=hidden

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

2001-03-14 Thread Yasuo Ohgaki
Please, As I make to make keyboard key ENTER to function equal keyboard key TAB 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

[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

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: ?php ...database stuff... Header("Content-type: image/jpg"); ? img src="image.jpg" width="100" height="50" alt="Description"

[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: snip % 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 % /snip IN PHP you can't do cases like that, because like in C, u must have a

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;$i50;$i++){ $varid = "quant".$i; if($$varid != ""){ echo 'input type=hidden name="art_nr" value="'; echo $art_nr . $i; echo '"'; echo 'input

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: td valign="top" input type="hidden" name="p_request" input

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 input type=\"hidden\" name=\"test\" value=\"$art_nr_1\" it works fine and i get back input type="hidden" name="test" value="124478" And really weird it this version for ($i=1; $i50; $i++) : $quantid =

[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

[PHP] bug or feature?

2001-03-14 Thread indrek siitan
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. :) Rgds, Tfr --== [EMAIL PROTECTED] ==

[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

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

Re: [PHP] xml parsing

2001-03-14 Thread Pavel Jartsev
Jon A wrote: ... print "img src=\"$element_attrs['IMG']\""; break; ... print "img src=\"{$element_attrs['IMG']}\""; break; - this will let it parse, but it won't do anything with the html. can

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. :) It's

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

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? if

[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 html head titleUntitled Document/title meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /head

[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

[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

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?

[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

[PHP] Have any body built the SWF snmp extensions for Redhat 7.0?

2001-03-14 Thread Mohammed Mahmoud Abdel'al
Hi all; I am using PHP4.0.4pl1 build 3 of rpms Redhat 7.0 I need the swf snmp extensions very badly rpmfind.net seems went offline so do any one there have those 2 extensions as rpms? if not could any body help me build those extensions from the source = code as external extension? thnx alot

Re: [PHP] update two frames at once?-Revised

2001-03-14 Thread Jeanne Pelletier
Whoops I forgot to include the whole buildquerystring function in my last post Sorry about that function build_querystring() { global $HTTP_GET_VARS; $vars=array(); $varlist=array("cID","dID","editreturn","return","action","editpers"); while (list($key,$value)=each($HTTP_GET_VARS)){

[PHP] [?] How to make many one line forms in a loop?

2001-03-14 Thread John Voth
Howdy Folks! I am wondering how to make a giant list of forms in a loop. My goal is to search the database for the data in the cell clicked. This is step by step process that I would like to achieve: 1. Dump the contents of the website_log db to the browser in a table format. 2. User clicks

[PHP] seminer

2001-03-14 Thread ugur coskun
Merhabalar ITU ve serbestyazilim.org.tr ortak etkinligi kapsaminda pazartesi gunu C++'in yaraticisi Bjarne Stroustrup tarafindan " Fundamental C++ programming styles / Multiparadigm programming in C++ " konularinda ITU Suleyman Demirel Kultur Merkezinde ucretsiz seminer verilecektir.

[PHP] Using php to get javascript varibles

2001-03-14 Thread Morten Hansen
Hey :) I'm in the need to fetch some javascript varibles from php, any ideas on how this could be done ? Regards, Morten Hansen -- 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] prompts

2001-03-14 Thread Gary
Is there anyway in PHP to prompt the user for input like JavaScript's prompt("Hello, what is your name?") Thanks, Gary -- 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] software localization with PHP

2001-03-14 Thread Tao
Kevin, Thanks for the reply. This will not solve my problem. The problem is, for some languages the sentence structure may be different. For example, the sentence may need to be, $greeting = "$first_name, welcome!" as opposed to, $greeting = "Welcome, $first_name!" Or, it can come in

[PHP] software localization with PHP

2001-03-14 Thread Tao
Kevin, Thanks for the reply. This will not solve my problem. The problem is, for some languages the sentence structure may be different. For example, the sentence may need to be, $greeting = "$first_name, welcome!" as opposed to, $greeting = "Welcome, $first_name!" Or, it can come in

[PHP] RE: software localization with PHP

2001-03-14 Thread Leavell Digital Design
You can still do: in your language file (presumably called english.php) define("ENGLISH_GREETING", "Hello, \$first_name"); Then in your script you just need to use ENGLISH_GREETING it should work as long as you have defined $first_name prior to using ENGLISH_GREETING you may have to declare

RE: [PHP] prompts

2001-03-14 Thread Leavell Digital Design
?PHP if( $Submit ){ print "Your name is $name"; } else{ print "FORM METHOD=\"post\" ACTION=\"$PHP_SELF\""; print "Please Enter Your Name:"; print "INPUT TYPE=\"text\" name=\"name\""; print "INPUT TYPE=\"submit\" NAME=\"Submit\" VALUE=\"Submit\""; print "/FORM"; } ? Kevin Leavell [EMAIL

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

2001-03-14 Thread John McCreesh
In article [EMAIL PROTECTED], "Michael Kimsal" [EMAIL PROTECTED] wrote: [snip] You're asking if this can be done with Linux? Probably not, unless you got into some strange Samba stuff, which I don't think is capable of doing all that stuff (someone more familiar with samba please jump in

[PHP] get content type from fopening url?

2001-03-14 Thread Noah Spitzer-Williams
is there a way so that if someone submits a web url (hopefully its a picture), i can check to make sure its a valid picture? i think its something like fopen(), but i dont know far i could get thanks! - Noah -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL

[PHP] select * from nmensagem m, nusuario...

2001-03-14 Thread Augusto Cesar Castoldi
Something is not working here: select * from nmensagem m, nusuario u, nprefuser p where m.cdpreferencia=p.cdpreferencia and p.flag=1; With "m.cdpreferencia=p.cdpreferencia" I should get just the values there exists on m.preferencia and p.cdpreferencia? thanks, Augusto -- PHP General

[PHP] adding to functionality of mysql_fetch_field

2001-03-14 Thread Dennis Gearon
I'd like to see mysql_fetch_field() return as the last value in the object, the allowable values for an enum field as an array. Could I get a cc as well as a listserver group answer from the PHP guys as to whether they think this is a good idea? Is there any other EASY way to get that

Re: [PHP] PHP and Oracle Zombie processes

2001-03-14 Thread Rouvas Stathis
If you don't see --enable-sigchild in phpinfo() then : (a) you are not running the version you compiled (b) your config script had something wrong. Baseline: if you don't see it, it's not there. You have to recompile. -Stathis. Bob Kakalec wrote: When I execute an sql statement against my

Re: [PHP] adding to functionality of mysql_fetch_field

2001-03-14 Thread Mark Maggelet
On Wed, 14 Mar 2001 12:12:22 -0800, Dennis Gearon ([EMAIL PROTECTED]) wrote: I'd like to see mysql_fetch_field() return as the last value in the object, the allowable values for an enum field as an array. Could I get a cc as well as a listserver group answer from the PHP guys as to whether they

[PHP] apache authentication

2001-03-14 Thread Michael A. Peters
This isn't a php problem as much as an apache problem, however, it is = webmasters of php sites that would have dealt with this. Here's the dilemna- If you use mod_dav to maintain a php application that uses = username/password authentication for the web app, it doesn't play very = nice. At

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

2001-03-14 Thread Johnson, Kirk
-Original Message- From: Chung Ha-Nyung [mailto:[EMAIL PROTECTED]] My second example program. a.php ?php session_start(); session_register("name"); $HTTP_SESSION_VARS["name"] = "test"; echo session_encode(); ? a.php result is as following.

[PHP] header type for flash

2001-03-14 Thread Pierre-Yves Lemaire
Hello, I am sending flash code stored in a database to the browser depending on action taken by the user. It works fine on just about any platform and browser except on Mac with IE 4.01 and IE 4.05. Is there a specific type of header we need to send to the client when we are sending a flash

[PHP] PHP saving forms on client side

2001-03-14 Thread mat t
I have new "blank" forms on the server and I would like to give my client an option to save a partially filled form to his computer. Is there any way I can do this with php? I know that if the client just saves the form using his browser then it will only save the initial HTML, and ignore

[PHP] e-mail varification problems.

2001-03-14 Thread Kenneth R Zink II
I got the following code in a script I'm testing, but it seams to not verify all good e-mail address as valid. echo "old email = ".$row[email]."br"; if (ereg("^([a-zA-Z0-9_-])+@([a-zA-Z0-9_-])+(\.[a-zA-Z0-9_-])+" or

Re: [PHP] [?] How to make many one line forms in a loop?

2001-03-14 Thread John Voth
Hi Chris, THANKS! Really BIG THANKS!! That was the problem. John Chris Lee wrote: more lilly then not its the " ' problems. echo " tr td FORM NAME='log_id_search' ACTION='$PHP_SELF' METHOD=POST INPUT TYPE=HIDDEN NAME='sql_search_type' VALUE='log_id' INPUT TYPE=HIDDEN

RE: [PHP] software localization with PHP

2001-03-14 Thread Maciek Uhlig
Check http://stphp.sourceforge.net Maciek -Original Message- From: Tao [mailto:[EMAIL PROTECTED]] Sent: Wednesday, March 14, 2001 8:14 PM To: [EMAIL PROTECTED]; [EMAIL PROTECTED] Subject: [PHP] software localization with PHP Kevin, Thanks for the reply. This will not solve my

[PHP] my page is in the error log

2001-03-14 Thread Aaron Tuller
anyone run into this? I was checking my error log and the entire post-PHP contents of a page was in my error log. I checked the access log and the page was requested but the client got back 0 bytes. very strange. It looks like it happened a few times. I'm using Apache 1.3.14 on RH 7.0 with

[PHP-CVS] cvs: php4 /ext/standard credits.c credits.h info.h

2001-03-14 Thread James Moore
jmoore Wed Mar 14 13:28:58 2001 EDT Modified files: /php4/ext/standard credits.c credits.h info.h Log: Adding webteam to credits. Index: php4/ext/standard/credits.c diff -u php4/ext/standard/credits.c:1.5 php4/ext/standard/credits.c:1.6 ---

Re: [PHP] Good Free PHP Editor?

2001-03-14 Thread chris
Do any of these editors support server mappings allowing one to auomatically preview files through a server? I find this invaluable in HomeSite (which is also VERY stable for me using Win2K) and I think HTMLKit does it too-- but do anyof the leaner text editors? By server mappings I mean that I

[PHP-CVS] cvs: php4 /pear/Experimental/HTML Menu.php

2001-03-14 Thread Ulf Wendel
uw Wed Mar 14 14:33:58 2001 EDT Modified files: /php4/pear/Experimental/HTMLMenu.php Log: - code beatifiying - minor inline doc update Index: php4/pear/Experimental/HTML/Menu.php diff -u php4/pear/Experimental/HTML/Menu.php:1.8

[PHP] exist?

2001-03-14 Thread Kenneth R Zink II
How would I go about checking to see if a file exist from php? I didn't find anything on php.net when I did a search for exist. basically, I'm trying to accomplish this. if $file exist { do something; }else{ echo "$file doesn't exist"; } thanks in advance. Kenneth R Zink II [EMAIL

Re: [PHP] exist?

2001-03-14 Thread Simon Garner
From: "Kenneth R Zink II" [EMAIL PROTECTED] How would I go about checking to see if a file exist from php? I didn't find anything on php.net when I did a search for exist. if (file_exists("/full/path/to/file.txt")) http://php.net/manual/en/function.file-exists.php -- PHP General

Re: [PHP] PHP saving forms on client side

2001-03-14 Thread Andrew Halliday
I dont know what you call 'feasable' but this would be the most efficient way of doing this: FORM NAME="coolform" METHOD=POST ACTION='reference to self' INPUT type="text" name="firstName" value="?=$firstName?"/INPUT INPUT type="text" name="lastName" value="?=$lastName?"/INPUT INPUT type="submit"

  1   2   >