[PHP] Netscape 4.77 and PHP

2001-04-14 Thread Jason Caldwell
I've created a test.php file that dynamically loads HTML.. works totally fine in IE 5, but when I test it with Netscape 4.77 -- nothing comes up... just a totally blank page. Anyone know why this might be happening? Thanks. Jason -- PHP General Mailing List (http://www.php.net/) To unsubscr

Re: [PHP] next release?

2001-04-14 Thread Plutarck
Nope, it 4.0.5 hasn' been released yet. However at one point I believe there was a 4.0.6dev source code on CVS, before the Midgaard extension required another round of release candidates. So I think that's where the mentions came from. And I'm sure some people are planning their features to be i

php-general Digest 15 Apr 2001 05:42:17 -0000 Issue 628

2001-04-14 Thread php-general-digest-help
php-general Digest 15 Apr 2001 05:42:17 - Issue 628 Topics (messages 48556 through 48618): Re: W2K Install Problem 48556 by: Long Lam Javascript in a header 48557 by: Dan Harrington strange error 48558 by: n e t b r a i n 48560 by: Phil Driscoll Re: PHP &

Re: [PHP] What's XML's Purpose??

2001-04-14 Thread Plutarck
I agree with most of your points actually. That's why I said I thought the love would "fade off a bit". For some things I agree that XML really is quite excellant. But what I meant about people not being good with "new" on Java and XML, is that when people (including myself) get a new toy they t

[PHP] limiting page for printing

2001-04-14 Thread Fabian Fabela
Hello, I have a page with a lot of data, all of this data is formated in that page to be printed, in a table with 500 px width, but how can I messure the length of the page with my results, for example a query can give me exactly the height of the page, but other queries can give me more of th

Re: [PHP] PHP without a webserver

2001-04-14 Thread Markus Fischer
On Sat, Apr 14, 2001 at 03:34:32PM -0500, Plutarck wrote : > The final layer is the scripting engine. In the script if a move_elevator() [...] > This would allow the vast majority of the real "content" of a game or > application to be written in a scripting language, much like web apps are > now.

RE: [PHP] Display Formatted Query Results

2001-04-14 Thread Jeff Holzfaster
Teemu, thanks for the input. I tried this with somewhat modified code (added all the fields) and perhaps you saw what I did on my last post to the list. I have actually been able to get the same results as this. I'm a little confused about how to get the info in the 'for' section to format to l

RE: [PHP] Display Formatted Query Results

2001-04-14 Thread Jeff Holzfaster
Thanks for the help, Brian. That'll give me something to go on. I definitely will need some assistance with this array stuff. I was actually able to do this (below) which got everything to a page - unformatted in any way - but when I tried moving it around (the arrays??) such as $my_row .= "$ro

Re: [PHP] Extract from string, version 3.0

2001-04-14 Thread Steve Edberg
Sheesh! No one should let me reply to email without sufficient caffiene! Now, I actually just read and grokked your question... I haven't tested this. And, I included a line that removes apostrophes (eg; "steve's" becomes "steve"). You can comment that line out if this doesn't suit your needs.

Re: [PHP] converting DATETIME to a readable date.

2001-04-14 Thread DRN
Brian Clark <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... | Hi DRN, | Try this and see if it functions correctly: | | | That works great, thanks Donald -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For addition

Re: [PHP] converting DATETIME to a readable date.

2001-04-14 Thread Chris Adams
On 14 Apr 2001 17:31:02 -0700, DRN <[EMAIL PROTECTED]> wrote: >$date = $row["date"]; > >$new_date = date("l, j M Y, G:i:s", strtotime($date)); >~~ > >but I cannot get this to work :(, I get an "unexpected error in >date()" At a guess strtotime() is choking on the format MySQL used to return the d

Re: [PHP] Display Formatted Query Results

2001-04-14 Thread Brian Clark
Hi Jeff, @ 8:52:10 PM on 4/14/2001, Jeff Holzfaster wrote: ... > My apologies if this is too wordy. A little confusing, but here we go. If this makes no sense what so ever, maybe someone else can provide a better way of doing what you're describing here. ... > I have a form page that looks lik

[PHP] Display Formatted Query Results

2001-04-14 Thread Jeff Holzfaster
Hi All, My apologies if this is too wordy. This is driving me nuts. I have very little experience or knowledge of PHP and MySQL but have been put in a position that requires me to build several applications that require me to figure them out. I am making progress, though. Here is my first del

Re: [PHP] converting DATETIME to a readable date.

2001-04-14 Thread Brian Clark
Hi DRN, @ 8:34:08 PM on 4/14/2001, DRN wrote: ... > $date = $row["date"]; > $new_date = date("l, j M Y, G:i:s", strtotime($date)); > ~~ > but I cannot get this to work :(, I get an "unexpected error in > date()" ... Try this and see if it functions correctly: Your original code gives me th

[PHP] converting DATETIME to a readable date.

2001-04-14 Thread DRN
Hi, I have a MySQL table recording errors, 1 of the fields is a DATETIME, to give me the time of the error. I have made a file which will then display a table of errors. I would like to display the date and time in a more readable format, even just with spaces between the years & months etc. Hav

Re: [PHP] session

2001-04-14 Thread Yasuo Ohgaki
I guess you are using "files" session module. If you take a look at note in PHP Manual, there is my note why your session files are not deleted. (See Session reference) Hope this helps. -- Yasuo Ohgaki ""E K L"" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... >

Re: [PHP] 2 Different Mysql Server Connection Problem

2001-04-14 Thread Brian Clark
Hi Mesut, @ 6:19:04 PM on 4/14/2001, Mesut TUNGA wrote: ... > Warning: MySQL Connection Failed: Can't initialize character set 30 > (path: default) in /home/user/public_html/createtable.php on line 2 http://www.mysql.com/doc/C/a/Cannot_initialize_character_set.html -Brian -- PGP is spoken h

Re: [PHP] Sorry :(

2001-04-14 Thread Chris Anderson
Well thanks everyone, don't feel like I'm "leeching" from the community anymore. Now when it comes to me and napster, thats another story - Original Message - From: "Brian Clark" <[EMAIL PROTECTED]> To: "PHP is not a drug." <[EMAIL PROTECTED]> Sent: Saturday, April 14, 2001 7:47 PM Sub

Re: [PHP] Sorry :(

2001-04-14 Thread Brian Clark
Hi Chris, @ 3:51:02 PM on 4/14/2001, Chris Anderson wrote: > I realized that'll that I don't do much to help this community. I > rarely reply to people's questions. Mainly because I have 56.6 and > when I get mail people answered already. I also ask alot of > questions. Just saying thanks for pu

[PHP] next release?

2001-04-14 Thread Michael Kimsal
I'm seeing references to functions that 'are' in 4.0.6, but I wasn't even aware that 4.0.5 was released yet. I've seen references to RCs for 4.0.5, but nothing's on the php.net page. Did I miss something? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTE

Re: [PHP] Extract from string, version 2.0

2001-04-14 Thread Steve Edberg
OK, this is less elegant (to me, anyway), and probably a bit slower, but: function word_occurrence($word,$phrase) { $word = strtolower($word); # this way, $phrase = strtolower($phrase); # case is irrelevant $Bits = split('[^[:alnum:]]+', $phrase); $count = 0; for ($i=0; $

Re: [PHP] What's XML's Purpose??

2001-04-14 Thread Michael Kimsal
Plutarck wrote: > I use to be really enthusiastically pro-XML just as I was getting into PHP, > but now I've basically taken a "XML shmexXML" approach. I get the initial > attraction, but I would think the love would fade off a bit. > > The key that so many people seem to forget is the best way

Re: [PHP] Sorry :(

2001-04-14 Thread Richard
Hey, take it easy, I started like that too, I think we all did. - Richard ""Chris Anderson"" <[EMAIL PROTECTED]> wrote in message 001301c0c51c$3cb49e40$0d1012d1@null">news:001301c0c51c$3cb49e40$0d1012d1@null... I realized that'll that I don't do much to help this community. I rarely reply to peo

[PHP] Sorry :(

2001-04-14 Thread Chris Anderson
I realized that'll that I don't do much to help this community. I rarely reply to people's questions. Mainly because I have 56.6 and when I get mail people answered already. I also ask alot of questions. Just saying thanks for putting up with me. Chris, The 17 yr

[PHP] 2 Different Mysql Server Connection Problem

2001-04-14 Thread Mesut TUNGA
Hi All, we have 2 mysql server located two dfiferent iss. one of them compiled latin1 with php-4.0.4pl1 and other one compiled latin5 with php-4.0.3.pl1. when we tried to connect from latin1 compiled one to latin5 compiled one, it gives this error: Warning: MySQL Connection Failed: Can't initia

[PHP] Secure Sockets

2001-04-14 Thread phpman
do the socket functions built into PHP work with SSL? Do I need to add some sort of encryption to get them to? -dave -- 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 administrator

Re: [PHP] Extract from string

2001-04-14 Thread Steve Edberg
At 11:07 PM +0200 4/14/01, n e t b r a i n wrote: >Hi all, >anyone have or know where I can find a small function in order to extract >from a string the most relevant words in it? > >something like this: > >$var="I love coffe ... Coffe is from Brazil and coffe with milk .."; >$occurence=2; >//$occ

Re: [PHP] What's XML's Purpose??

2001-04-14 Thread Jason Caldwell
amen brother! ""Plutarck"" <[EMAIL PROTECTED]> wrote in message 9baam8$6sh$[EMAIL PROTECTED]">news:9baam8$6sh$[EMAIL PROTECTED]... > I use to be really enthusiastically pro-XML just as I was getting into PHP, > but now I've basically taken a "XML shmexXML" approach. I get the initial > attractio

Re: [PHP] What's XML's Purpose??

2001-04-14 Thread phpman
hold on here, XML and HTML have, as far as I'm concerned, nothing to do with each other. I'm using XML to link databases on the sites I write (with PHP) with disparate databases on other Inernet servers. A good example would be linking up with UPS's online rates application server. I send an XML r

Re: [PHP] HTML and PHP?

2001-04-14 Thread Jason Caldwell
> > Just make sure you don't indent the closing marker or the parser will miss > > it! YES!! -- I struggled with that one for a long time... (at least a couple of hours, before I said, hmmm... let me [for giggles] remove the TABS before the closing marker... -- bam... Parser Error went away...)

Re: [PHP] PHP without a webserver

2001-04-14 Thread Plutarck
Btw, thanks for all your answers to far ;) > I have no idea. What language? Using system() in C and Perl, I'm > sure you could concoct something. Why would you want to do that? A move recently being made by game programmers has been to move an increasing amount of work into a scripting engine.

Re: [PHP] What's XML's Purpose??

2001-04-14 Thread Plutarck
I use to be really enthusiastically pro-XML just as I was getting into PHP, but now I've basically taken a "XML shmexXML" approach. I get the initial attraction, but I would think the love would fade off a bit. The key that so many people seem to forget is the best way to do HTML is with, *gasp*,

Re: [PHP] What's XML's Purpose??

2001-04-14 Thread Brian Clark
Hi Chris, @ 1:17:25 PM on 4/14/2001, Chris Anderson wrote: ... > I stll think it sounds like its more geared for the MS crowd No way. "XML is a set of rules, guidelines, conventions, whatever you want to call them, for designing text formats for such data, in a way that produces files that are

Re: [PHP] What's XML's Purpose??

2001-04-14 Thread Chris Anderson
thanks that helped I stll think it sounds like its more geared for the MS crowd - Original Message - From: "Brian Clark" <[EMAIL PROTECTED]> To: "PHP is not a drug." <[EMAIL PROTECTED]> Sent: Saturday, April 14, 2001 3:29 PM Subject: Re: [PHP] What's XML's Purpose?? > Hi Chris, > > @ 1

[PHP] setuid

2001-04-14 Thread Ulysses Almeida
Hi... Is there a way to use posix_setuid without set Apache to run as root? Or, is there some other function to do the same thing? []s .~. Ulysses Almeida / V \ [EMAIL PROTECTED] / ( ) \ Seja livre, use GNU/Linux! ^^-^^ -- PHP General Mailing List (http://www.php.n

Re: [PHP] What's XML's Purpose??

2001-04-14 Thread Brian Clark
Hi Chris, @ 12:01:45 AM on 4/14/2001, Chris Anderson wrote: > Am I missing something here? This has been discussed many times. There was an extremely long thread last year about XML, but I can't find it in the archives. Here's a good start: http://marc.theaimsgroup.com/?l=php-general&m=979691

Re: [PHP] A tricky problem

2001-04-14 Thread Brian Clark
Hi David, @ 3:06:19 PM on 4/14/2001, David Tandberg-Johansen wrote: ... > The problem is: > If a user leaves the site because the user doesn't want to go thrue with the > order, or if the user closes the broser, then the recods of the selected > info are still in the temp TABLE. How can I delete

Re: [PHP] PHP without a webserver

2001-04-14 Thread Brian Clark
Hi Plutarck, @ 2:40:28 PM on 4/14/2001, Plutarck wrote: > Ahh, so it's the location of the script that get's passed. Yes: % cat test.php % php -q test.php a b c d e f g 0: test.php 1: a 2: b 3: c 4: d 5: e 6: f 7: g % > Now, if the script was coming from a program, is there a way to hand th

Re: [PHP] Selected Radio Buttons

2001-04-14 Thread Jordan Elver
Hi, The $article_active comes from a session and I want be able to select the radio button (which ever one, yes or no) when the user comes back to the page. I think thats a bit clearer :-) Jord On Saturday 14 April 2001 15:12, you wrote: > I'm not sure I understand. In the first loop you are s

[PHP] What's XML's Purpose??

2001-04-14 Thread Chris Anderson
Alright I'll start this out by saying I have a subscription to "Visual Basic Programmers Journal". Before I converted and realized that I loved PHP so much I used ASP. Well it seems that in this magazine that XML is a hot topic in the MS world. I know XML can be used by PHP, but is there a poin

[PHP] R: [PHP] CLASSES AND OBJECTS..

2001-04-14 Thread alberto
Yes... Becouse in some large projects, it's very hard to wok with a single level inheritance... i think that PHP is a very good language and come better every day... so i hope in the future programmers can use multiple inheritante with classes in PHP. Thank for the answer Alberto "Plutarck" <[E

[PHP] A tricky problem

2001-04-14 Thread David Tandberg-Johansen
This is maybe of topic, but I try. I have this site where the user first selects a langueage, and then i use session_register() to register the information. Then I use the the registered onformatin to dispaly the site text in the user selected language. The user put the selected things in a temp

Re: [PHP] HTML and PHP?

2001-04-14 Thread Brian Clark
Hi Les, @ 2:09:01 PM on 4/14/2001, Les Neste wrote: > I think the echo approach is pretty handy if you want a subroutine > to spit out a common chunk of HTML which is less than an entire > page. And the here-doc marker lets you just paste existing HTML in > place without having to escape all the

Re: [PHP] antifraud logic for voting poll, banner clicks

2001-04-14 Thread Brian Clark
Hi Keyur, @ 2:57:56 AM on 4/14/2001, Keyur Kalaria wrote: ... > Can anyone suggest me how to avoid the fraud rating and fraud banner clicks. > What all things we need to take care for the same etc. Have a look at how those are implemented in phpAds and phpPolls: http://www.phpwizard.net/ -Bri

[PHP-CVS] cvs: php4 /ext/ircg config.m4 ircg.c

2001-04-14 Thread Sascha Schumann
sas Sat Apr 14 11:49:04 2001 EDT Modified files: /php4/ext/ircg config.m4 ircg.c Log: Make it possible to build ircg without thttpd Index: php4/ext/ircg/config.m4 diff -u php4/ext/ircg/config.m4:1.6 php4/ext/ircg/config.m4:1.7 --- php4/ext/ircg/conf

Re: [PHP] Forcing Case

2001-04-14 Thread Brian Clark
Hi James, @ 6:44:08 AM on 4/14/2001, James Moore wrote: ... > http://www.php.net/manual/en/function.strtoupper.php > http://www.php.net/manual/en/function.strtolower.php > http://www.php.net/manual/en/function.ucfirst.php Another extremely useful one is ucwords() http://www.php.net/manual/en/f

Re: [PHP] Any one have PHP voteBOOTH source code...?!?

2001-04-14 Thread Brian Clark
@ 6:50:49 AM on 4/14/2001, news.php.net wrote: > hello... anyone know where i can downlaod voteBOOTH.php w/ the image > viewer?! or does anyone have it that you can send to me..? I don't know anything about a poll type script with an image viewer, but look around here: http://www.hotscript

Re: [PHP] PHP without a webserver

2001-04-14 Thread Plutarck
Ahh, so it's the location of the script that get's passed. Now, if the script was coming from a program, is there a way to hand the file directly to PHP, or will a temporary file have to be used? So if a user filled in a form and clicked a button in the program, the program would toy with the fo

Re: [PHP] user info?

2001-04-14 Thread Brian Clark
Hi Ramiro, @ 6:48:38 AM on 4/14/2001, Ramiro Radjiman wrote: ... > I'm just wondering if there is a method to extract user specific > info when this user connects to the site. http://www.php.net/manual/nl/function.getenv.php May be what you're looking for. > U user must have a handle, but i d

Re: [PHP] PHP without a webserver

2001-04-14 Thread Brian Clark
Hi Plutarck, @ 2:11:35 PM on 4/14/2001, Plutarck wrote: > Ah, even better. However, how would the script be passed to PHP? As > a command line argument? Install the CGI executable of PHP in c:\php In your autoexec.bat: SET PATH=c:\php;%PATH% Reboot. >From the command line: php -q script.ph

Re: [PHP] Supplied argument is not a valid MS SQL-Link resource

2001-04-14 Thread Brian Clark
Hi davek, @ 1:50:14 PM on 4/14/2001, davek wrote: > Does anybody know how to fix this error? "Supplied argument is not a > valid MS SQL-Link resource" I am running: ... > $Conn=mssql_connect('192.168.1.20','username','password') or die("Could not connect to the mssql server"); > $ThisConnect=

Re: [PHP] Supplied argument is not a valid MS SQL-Link resource

2001-04-14 Thread Plutarck
http://us.php.net/manual/en/function.mssql-select-db.php *_select_db does not return a connection id, it returns true or false. Just change your script like this: $Conn=mssql_connect('192.168.1.20','username','password'); mssql_select_db('My_Database',$Conn); $QueryString="select id, name from

Re: [PHP] PHP without a webserver

2001-04-14 Thread Plutarck
Ah, even better. However, how would the script be passed to PHP? As a command line argument? -- Plutarck Should be working on something... ...but forgot what it was. "Jeroen Wesbeek" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > well actually you could com

[PHP] Red Hat 7.0

2001-04-14 Thread Mauricio Junqueira
I am trying to start the server and it returns the following in the interbase.log. ns1.mautec.com (Client) Sat Apr 14 22:06:05 2001 INET/inet_error: connect errno = 111 ns1.mautec.com (Client) Sat Apr 14 22:06:05 2001 /opt/interbase/bin/ibguard: guardian starting bin/ibserver

RE: [PHP] PHP without a webserver

2001-04-14 Thread Les Neste
Can anybody comment on PHPTriad? This appears to be PHP+MySQL+Apache for the Windows desktop. At 07:51 PM 4/14/2001 +0200, Jeroen Wesbeek wrote: >well actually you could compile php4 >on it's own so you get a php executable which >you can use as an interpreter for php4 scripts... >no webserver

Re: [PHP] HTML and PHP?

2001-04-14 Thread Les Neste
I think the echo approach is pretty handy if you want a subroutine to spit out a common chunk of HTML which is less than an entire page. And the here-doc marker lets you just paste existing HTML in place without having to escape all the quotation marks. To me, this is a Good Thing. At 01:56 PM

RE: [PHP] PHP without a webserver

2001-04-14 Thread Jeroen Wesbeek
well actually you could compile php4 on it's own so you get a php executable which you can use as an interpreter for php4 scripts... no webserver needed dowebwedo Jeroen Wesbeek .programming Nieuwekade 213 | 3511 RW Utrecht The Netherlands p 030 2380544 | f 020 8632045 [roses are red, violets

Re: [PHP] HTML and PHP?

2001-04-14 Thread Brian Clark
Hi Steve, @ 11:34:26 PM on 4/13/2001, Steve Werby wrote: ... > echo << > Yes, echo can use here-docs! Is it really that *hard* to take 1 minute to > test for yourself? ;-) > And you can use whatever marker (the 'STOP' above and below) you choose. > Just make sure you don't indent the closing

[PHP] Supplied argument is not a valid MS SQL-Link resource

2001-04-14 Thread davek
Does anybody know how to fix this error? "Supplied argument is not a valid MS SQL-Link resource" I am running: NT4 MSSQL7.0 IIS4 PHP 4.0.4pl1 I've been running php3 for some time now without any problems but want to upgrade to 4. This error seems to be occuring at the mssql_query() function.

Re: [PHP] PHP without a webserver

2001-04-14 Thread Brian Clark
Hi Plutarck, @ 11:37:09 AM on 4/14/2001, Plutarck wrote: > I've heard much about how PHP is far more than just a language for > web programming, and I agree. I agree enough that I would like to > actually try it. I'd like to use PHP scripting in a C/C++ program > that doesn't need a webserver as

[PHP] Using gnupg with php - errors

2001-04-14 Thread sohara
Hello all, This has been covered before, but I can't get it to work and I've searched all the archives already. I am trying to encrypt a small string of data. I am using a script by Richard Lynch as my starting point. I found it here: http://www.weberdev.com/get_example.php3?count=1379 Now, I

Re: [PHP] Do any of you provide hosting?

2001-04-14 Thread Manuel Lemos
Hello Chris, On 12-Apr-01 14:05:38, you wrote: >I currently am using Thehostpros.com for my hosting, but I can't say its been >a pleasant experience. I had to have them install PHP because they are more >ASP oriented. So that cost me more. Then I wanted MySQL and they have spent 3 >months sayin

Re: [PHP] strange error

2001-04-14 Thread Phil Driscoll
It may not be responsible for the error, but you ought to move your fclose to before your return(true) statement, as it never gets executed at all in your code. Cheers -- Phil Driscoll Dial Solutions +44 (0)113 294 5112 http://www.dialsolutions.com http://www.dtonline.org -- PHP General Mailin

Re: [PHP] PHP & MySQL Search Results

2001-04-14 Thread Jason Caldwell
Hi Jason, Say you have a search form that says search for "searchbox" and the search box has a variable name of "search": NO Valid search results. "> 1) { echo "Previous"; } if (($num > 25) && (($limit + 25) < $num)) { echo "Next."; } /* End the initial "Else" */ } ?> ___

[PHP] strange error

2001-04-14 Thread n e t b r a i n
Hi all, I don't know why this (quick & dirty) small function: function esiste_url($file){ @$fp=fopen($file,"r"); if(!$fp){return false;}else{return true;} @fclose($fp); } //it checks if a url submit via form client exist in two different pages: a.php3 ---> works fine b.p

[PHP] Javascript in a header

2001-04-14 Thread Dan Harrington
Hello, Am I brain damaged or will something like this work? header("Location:javascript:window.open('http://login.php?arg1&arg2','','windowname')"); I want to popup a login script in a sub-browser window, and then pass the results back to the main window. Someone told me that the javascript in

RE: [PHP] W2K Install Problem

2001-04-14 Thread Long Lam
Win2k's command prompt is located under the start button/programs/accessories/command prompt. At 09:53 AM 4/14/2001 -0500, Jeff Oien wrote: >I got it to work. I would still like to know how to open a command >window in W2K though. > >I had a reference to d:/php4/ instead of d:/php/ which is whe

php-general Digest 14 Apr 2001 15:38:40 -0000 Issue 627

2001-04-14 Thread php-general-digest-help
work: while(list($k, $v) = each($myarray)){ $myarray[$k] = (int) $v; } arsort($myarray); reset($myarray); while(list($k, $v) = each($myarray)){ echo $k, ' == ', $v, "\n; } - Original Message - From: <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]>

[PHP] PHP without a webserver

2001-04-14 Thread Plutarck
I've heard much about how PHP is far more than just a language for web programming, and I agree. I agree enough that I would like to actually try it. I'd like to use PHP scripting in a C/C++ program that doesn't need a webserver as an intermediary. I basically want to use PHP in a standalone/TCP-I

Re: [PHP] Selected Radio Buttons

2001-04-14 Thread Plutarck
I'm not sure I understand. In the first loop you are seing if $article_active equals y. And no where in the code do you set $article_active to anything else. Why would you think $article_active would be anything but "y" or "n"? -- Plutarck Should be working on something... ...but forgot what it

[PHP] Extract from string

2001-04-14 Thread n e t b r a i n
Hi all, anyone have or know where I can find a small function in order to extract from a string the most relevant words in it? something like this: $var="I love coffe ... Coffe is from Brazil and coffe with milk .."; $occurence=2; //$occurence means word that are repeat 2 or more times my_dream_

Re: [PHP] help on something simple?

2001-04-14 Thread Plutarck
What function are you calling on $result when it returns the error? Try doing this, all in one place: $db = mysql_connect("localhost", "username"); mysql_select_db("subsurface_net", $db); $result = mysql_query("SELECT * FROM customer_genre", $db); echo mysql_num_rows($result); When you use a

Re: [PHP] PHP for Apache 2.0

2001-04-14 Thread Alexander Wagner
Patrick Dunford wrote: > According to Apache, modules made for Apache 1.3 will not work as-is > in 2.0 due to changes in the API. > > Is a version of PHP 4 for Apache 2.0 coming out? Try the configure-option --with-apxs2 instead of --with-apxs and it should work with Apache 2. PHP 4 supports fa

Re: [PHP] Explain recordset

2001-04-14 Thread Plutarck
$result holds a "resource id". When you do anything like mysql_fetch_row it sends a request to the database. All results, until you "fetch" them, are kept in MySQL. If you want to store the results away from the DB you will need to do something like: while ($array[] = mysql_fetch_row($result));

Re: [PHP] counter reseting help!

2001-04-14 Thread Plutarck
How are you saving the current counter amount? For instance if it's in a database, add a date field. Check to see if the date is more than 24 hours old before displaying the current counter. If it is then update the database and make the counter number 0. If it's not older than 24 hours, just do

RE: [PHP] W2K Install Problem

2001-04-14 Thread Jeff Oien
I got it to work. I would still like to know how to open a command window in W2K though. I had a reference to d:/php4/ instead of d:/php/ which is where I have it. Jeff Oien > When I try to run a PHP script through a Web browser it just > displays the code. I did a clean install of W2K and inst

[PHP] Selected Radio Buttons

2001-04-14 Thread Jordan Elver
Hi, I think I'm being stupid. Why won't this code work. The $article_active variable is showing y when I echo it? if($article_active == 'y') { echo"Yes"; } else { echo"Yes"; } if($article_active == 'n') { echo"No"; } else { echo"No"; } Thanks, Jor

[PHP] help on something simple?

2001-04-14 Thread Andrew Durk
I can get connected to my host's MySQL database w/o error, but I cannot seem to do anything after that. I do: $db = mysql_connect("localhost", "username"); mysql_select_db("subsurface_net",$db); No problem, but if I do this: $result = mysql_query("SELECT * FROM customer_genre",$db); I eventuall

[PHP] counter reseting help!

2001-04-14 Thread McShen
hi I am writing a small counter for my site. But i am not sure how to reset the counter every 24h. How should i do it? any suggestions would be much appreaciated! -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAI

[PHP] Explain recordset

2001-04-14 Thread Mike P
I'm trying to figure out the way recordsets are handled with php and mysql.After I issue a query to the Db with $result = mysql_query ($query) is the recordset contained in $result or is this just a pointer.I want a persistant recordset on the client computer that can be manipulated without go

[PHP] W2K Install Problem

2001-04-14 Thread Jeff Oien
When I try to run a PHP script through a Web browser it just displays the code. I did a clean install of W2K and installed Apache. I copied the php.ini to the WINNT and system folders. Not sure where to go from here. BTW how do you open a command window in W2K? Thanks. Jeff Oien -- PHP General

Re: [PHP] Sessions?

2001-04-14 Thread Plutarck
Ahh. I reread your post and now I see what you were originally asking. Yes, sessions are the best way to handle it then. The variables "live" by sending a specially augmented header to the client. The header sort of "sticks" to the client so that their session ID is automatically sent in their r

Re: [PHP] htaccess question

2001-04-14 Thread Peter Van Dijck
Also, I am trying to find a way to get this to work: within the directory I'm in, 1/5/2/3 should be rewritten to index.php?a=1&b=5&c=2&d=3 I'm sure lots of people have done this before, but the Apache examples don't seem to include this. Where can I find a working example? Thanks! Peter >Hi,

Re: [PHP] sorting multi-dimensional arrays

2001-04-14 Thread Plutarck
The easiest way is probably to just use a for loop. For instance (no pun intended...well, maybe just a little one): $imax = sizeof($joke); for ($i = 0; $i < $imax; $i++) { if (sizeof($joke[$i]) > 1) { sort($joke[$i]); } } That will handle the sorting of any two-dimensional

[PHP] htaccess question

2001-04-14 Thread Peter Van Dijck
Hi, i installed Apache, PHP and mySQL on winNT. I am trying to get htaccess files to work. I created a .htaccess file in a directory with this line in it: errordocument 404 /404.php I changed the httpd.conf file for apache and restarted apache like this: # AllowOverride None AllowOverride All B

Re: [PHP] CLASSES AND OBJECTS..

2001-04-14 Thread Plutarck
Nope, I'm afraid not. Currently PHP will support single level inheritance only. So A can extend B, but C cannot extend B. You will need to create a class of B to extend it with C. I suppose PHP may one day support it, but I am guessing that the Zend API can't currently handle it. I think it will

[PHP] CLASSES AND OBJECTS..

2001-04-14 Thread alberto
Anyone know if one day PHP will support multiple inheritance? I think it's very important... For example, will PHP support this code: class A extends B, extends C { } where B and C are classes? Thanks! Alberto -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail

[PHP] A slightly amusing, though mostly dangerous, endless loop

2001-04-14 Thread Plutarck
This is a bug which was apparently fixed in v 4.0.4pl1 at least, but it still present in 4.0.3 I just found it kind of amusing and it makes a nice warning. Consider this: print_r($GLOBALS); That's it. It prints all the variables available, however part of it is an array called GLOBALS. Which

[PHP] Abnormal performance of PHP_MSSQL70.DLL

2001-04-14 Thread Jia Li
hi, thank you for taking time reading this email. i experienced an abnormal happening from my php_MSSQL70.dll. My computer config: AMD 850+SDRAM 256 OS: MS Windows 2000 SERVER + sp1 HTTPD Server : Apache 1.3.19 PHP version : 4.0.4 MSSQL version : 2000 i altered the Extension part of the php.ini

[PHP] session

2001-04-14 Thread E K L
Hi, Is there anybody can help to do this: My web site has 3 pages :a.php, b.php and c.php. I want to capture the session in those 3 pages. Without an id, visitor can't view my page. When visitors leave the site, thier session should be removed. The problem is how to remove the session

[PHP] Big sites running PHP

2001-04-14 Thread Phil Driscoll
For those who need to convince their bosses that PHP (+mysql +apache) is up to the job, the following (recently slashdotted) link may be useful: http://www.webtechniques.com/archives/2001/05/hong/ Cheers -- Phil Driscoll Dial Solutions +44 (0)113 294 5112 http://www.dialsolutions.com http://www.

Re: [PHP] Forcing Case

2001-04-14 Thread Christian Reiniger
On Saturday 14 April 2001 09:15, you wrote: > Is there any way to force case...like if I have a string and want it to > appear in all lowercase (or uppercase, God forbid)? http://www.php.net/strtolower -- Christian Reiniger LGDC Webmaster (http://sunsite.dk/lgdc/) ...10001000110101011010101101

[PHP] user info?

2001-04-14 Thread Ramiro Radjiman
Hi there, I'm just wondering if there is a method to extract user specific info when this user connects to the site. U user must have a handle, but i don't want him to login. So i thaught if i can get specific userinfo from the client, this info would be his handle to walk trough the site. If h

Re: [PHP] header( )

2001-04-14 Thread Christian Reiniger
On Saturday 14 April 2001 03:47, you wrote: > On 11 Apr 2001 08:12:20 -0700 AD in php.general, Chris Lee said: > >I'll post you a simple HTTP auth script. but you should realize = > >something about header() > > > >client -> server > >server -> client > > > >the client sends some HTTP request to

[PHP] Any one have PHP voteBOOTH source code...?!?

2001-04-14 Thread news.php.net
hello... anyone know where i can downlaod voteBOOTH.php w/ the image viewer?! or does anyone have it that you can send to me..? thanxz! -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To co

RE: [PHP] Forcing Case

2001-04-14 Thread James Moore
RTFM: http://www.php.net/manual/en/function.strtoupper.php http://www.php.net/manual/en/function.strtolower.php http://www.php.net/manual/en/function.ucfirst.php - James > -Original Message- > From: midget2000x [mailto:[EMAIL PROTECTED]] > Sent: 14 April 2001 08:16 > To: [EMAIL PROTECTE

[PHP] PHP for Apache 2.0

2001-04-14 Thread Patrick Dunford
/ Ill-gotten treasures are of no value, but righteousness delivers from death. -- Proverbs 10:2 http://www.heartlight.org/cgi-shl/todaysverse.cgi?day=20010414 === Created by Mail2Sig - http://pdunford.godzone.net.nz/software

[PHP-CVS] cvs: php4 /ext/dbx dbx_pgsql.c /ext/pgsql pgsql.c

2001-04-14 Thread Rui Hirokawa
hirokawaSat Apr 14 03:32:14 2001 EDT Modified files: /php4/ext/dbx dbx_pgsql.c /php4/ext/pgsql pgsql.c Log: deleted warning output in dbx/pgsql. Index: php4/ext/dbx/dbx_pgsql.c diff -u php4/ext/dbx/dbx_pgsql.c:1.5 php4/ext/dbx/dbx_pgsql.c

[PHP-CVS] cvs: php4 / TODO-4.1.txt

2001-04-14 Thread Thies C. Arntzen
thies Sat Apr 14 03:30:05 2001 EDT Modified files: /php4 TODO-4.1.txt Log: . Index: php4/TODO-4.1.txt diff -u php4/TODO-4.1.txt:1.2 php4/TODO-4.1.txt:1.3 --- php4/TODO-4.1.txt:1.2 Fri Apr 13 16:52:15 2001 +++ php4/TODO-4.1.txt Sat Apr 14 03:3

[PHP] Installing PHP 4 as rpm on RedHat 6.2 !!

2001-04-14 Thread Mohamedou
Hello All, I have already php 3.0.18 installed on my RH 6.2 box. I want to install PHP 4 now. But if I still the following message: [root@proxy mohamedou]# rpm -Uvh php-4.0.4pl1-3.i386.rpm error: failed dependencies: libdb-3.1.so is needed by php-4.0.4pl1-3 libgd.so.1.8 is neede

  1   2   >