php-general Digest 16 Sep 2001 11:04:42 -0000 Issue 879 Topics (messages 67471 through 67490): PHP Auth problem 67471 by: Alex Sofronie Please please please help! 67472 by: Kyle Smith help with some nasty recursive algorithm 67473 by: Christian Dechery Re: redirect to php problem 67474 by: David Otton 67478 by: Gavin 500 Internal Server Error 67475 by: Deryck Henson How do I use a .tar file? 67476 by: Deryck Henson 67479 by: Jack Dempsey 67481 by: Deryck Henson 67483 by: Deryck Henson International Jazz Competition held on the Internet 67477 by: Jazz Events PHP versus ZOPE 67480 by: Carlos Fernando Scheidecker Antunes 67485 by: John Lim sorting multi-dimensional arrays 67482 by: Christian Dechery code optimization 67484 by: Christian Dechery Re: Monitoring traffic 67486 by: John Lim naming convention in php? 67487 by: saif Get the row number in php-script? 67488 by: Håkan Askengren 67489 by: speedboy meta redirect explanation 67490 by: Nikola Veber Administrivia: To subscribe to the digest, e-mail: [EMAIL PROTECTED] To unsubscribe from the digest, e-mail: [EMAIL PROTECTED] To post to the list, e-mail: [EMAIL PROTECTED] ----------------------------------------------------------------------
Hi all I have a rather strange problem with php auth: i want to authenticate a user through php and validate it through imap_open function (to access his email). I send WWW-Authenticate header like this: header("WWW-Authenticate: Basic Realm=\"Private\""); After, i check for isset($PHP_AUTH_USER) and validate it through PHP. Can anyone tell me why, for a real user (it really exists), the authentication simply fails and asks me again for a username and password, without even leaving the authenticate intrinsic routine (the script just keeps telling me that the auth is failed, but WITHOUT running imap_open or any other part of the script). Why is that? If anyone has the time and the understanding, i can post the code fragment. Thanks ------------------------- Alexandru SOFRONIE [EMAIL PROTECTED] ------------------------- IT Software Dept. Omega-Tehnoton GROUP +40-93-670773 -------------------------
In php is there any way to write to the end of a line in a text document so i can set out email addresses as a list on 1 line and the ";" can be on the second... is this possible or has anyone a better way of doing this? any and all help would be appreciated (please send or cc messages to my address because im now going to watch a film... forgot what its called something about taking peoples brains out durning the night and replacing them with others!) Thank you! -lk6- http://www.StupeedStudios.f2s.com Home of the burning lego man! ICQ: 115852509 MSN: [EMAIL PROTECTED] AIM: legokiller666
I need some help with an algorithm that I'm writing to build a categories array, based on the mysql table. the table goes by: id_category, name_category, parent_category and with a simple query, with a group by and after doing a little for(;;) processing, I get the following array.. categ | parent | num_childs null 1 1 null 4 0 1 5 2 5 6 0 5 7 0 well... I have a function called CatName($id) that returns me the name of that giving its ID... so, I want from that array build a new array like this: [0]["id"] = 1 [0]["name"] = Electronics [1]["id"] = 5 [1]["name"] = Electronics/Palm [2]["id"] = 6 [2]["name"] = Electronis/Palm/WindowsCE [3]["id"] = 7 [3]["name"] = Electronis/Palm/PalmOS [3]["id"] = 4 [3]["name"] = Food preety nasty hun? I know its something recursive... but I can't figure out how to "walk" trough the array to get this kind of output... any help will be welcome.. thanks...
On Sun, 16 Sep 2001 09:57:14 +0200, you wrote: >I'm having a problem with following : I'd like to activate a php file as a home page, >but without pointing directly to it(http://www.smth.com/file.php). I'd like to know >if it is >possible to call it from a html file(index.htm for exp. ) index.php could include('file.php'); or you could redirect with header('Location...'); or a meta refresh tag. djo
Yes, this HTML line will redirect the browser to the php page.. <META http-equiv="refresh" content="0;url=file.php"> Gavin "Nikola Veber" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > Hi ! > > I'm having a problem with following : I'd like to activate a php file as a home page, > but without pointing directly to it(http://www.smth.com/file.php). I'd like to know if it is > possible to call it from a html file(index.htm for exp. ) > > Thanks > Nikola > >
I am trying to run PHP 4 on Windows with PWS. Nothing is working! I did exactly like the manual said and even tried another program(third party) to do it for me. Nothing helps! If you have any idea of what can help me, please tell me! - Deryck H - http://www.comp-u-exchange.com
I want to use and compile the source code for PHP just for some fun but have no experience what soever with TAR files. Any suggestions? - Deryck H - http://www.comp-u-exchange.com
man tar in short, if you have a file, foo.tar, tar xvf foo.tar will untar it...if its foo.tar.gz, tar zxvf foo.tar.gz will gunzip it then untar it. try searching google as well, there're some good tutorials out there jack -----Original Message----- From: Deryck Henson [mailto:[EMAIL PROTECTED]] Sent: Saturday, September 15, 2001 9:51 PM To: PHP Subject: [PHP] How do I use a .tar file? I want to use and compile the source code for PHP just for some fun but have no experience what soever with TAR files. Any suggestions? - Deryck H - http://www.comp-u-exchange.com -- 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: [EMAIL PROTECTED]
Well, I was totally stupid when I downloaded the .tar.gz file. I extracted it to a folder and opened, in notepad, the TAR file! That's pretty funny. Well, I now know how to actually decompress all the files in a tar format and use them. WinZip helps. - Deryck H - http://www.comp-u-exchange.com ----- Original Message ----- From: "Ninety-Nine Ways To Die" <[EMAIL PROTECTED]> To: "Deryck Henson" <[EMAIL PROTECTED]> Sent: Saturday, September 15, 2001 9:31 PM Subject: Re: [PHP] How do I use a .tar file? > If in *nix tar -xf <i>tarfile</i> > > if it has a .tar.gz then gunzip <i>filename</i> > > got it? > > -- > > On Sat, 15 Sep 2001 20:51:28 > Deryck Henson wrote: > >I want to use and compile the source code for PHP just for some fun but have > > >no experience what soever with TAR files. Any suggestions? > > > > > >- Deryck H > > >- http://www.comp-u-exchange.com > > > > > > > > >-- > > >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: [EMAIL PROTECTED] > > > > > > > > > Make a difference, help support the relief efforts in the U.S. > http://clubs.lycos.com/live/events/september11.asp
Sorry everyone. using Windows (as much as it SUX!). You cant really do anything and microsoft just steals your money when you buy it. I agree. Red Hat, here I come! (in about a couple weeks) - Deryck H - http://www.comp-u-exchange.com ----- Original Message ----- From: "Joaquin" <[EMAIL PROTECTED]> To: "Deryck Henson" <[EMAIL PROTECTED]> Sent: Saturday, September 15, 2001 9:55 PM Subject: Re: [PHP] How do I use a .tar file? > Ar you using UNIX or windows?
Our monthly Jazz Events "Sighting" is: The 2nd Annual Jazzconnect.com Jazz Competition has begun! We are accepting entries now through December 1st. The new and improved website interface shows the voting scores real time and keeps track of your personal voting record. Give it a test drive at: www.jazzconnect.com/competition (Vote for fun only. The actual voting begins October 1st) Enter Now! Contestants must submit a recorded performance to Jazzconnect.com. The recording will be placed on the website "competition stage" in Real Audio format. The jazz community will be able to listen to the entries and vote on-line. The winner will receive a grand prize that includes round-trip airfare to Washington, DC, deluxe hotel accommodations at the Four Seasons Hotel, and a paid gig at Washington DC's top jazz club Blues Alley that will be recorded live and pressed into a CD. The winner will receive 300 CDs to use for promotion or to sell. For a complete set of instructions on how to enter, go to: http://www.jazzconnect.com/competition/rules_main.htm Why enter? Have thousands of people hear your music. Get a link to your website or if you don’t have one, get one free! Get lots of exposure by being part of this unique event that will be covered by the media and advertised in jazz publications and around the Internet. And last but not least, WIN THE GRAND PRIZE! P.S. The actual voting begins October 1st. Enter early, the longer you're on the competition stage, the more visibility you'll get. Visit Jazzconnect at http://www.jazzconnect.com - Home to 67 jazz artists and growing fast! - Independent artist CD store - The best interactive data base of jazz musicians on the web - the "Jazzconnect Cyberunion" - Get a free link on our link page to your website or music related business - We host and design websites for as low as $20 a month which includes PROMOTION!!! To unsubscribe from our Jazz Events mailings, please reply from this email and change the subject line to REMOVE. Please press reply only to remove. Any inquiries regarding the content of this email should be sent directly to company we have chosen to mention and not Jazz Events, Inc. Thanks.
Hello all, Does anyone here ever programmed in Zope? I have been doing PHP stuff for some time now and I am glad with it because it is faster than JSP para I am now listening to good opinions about Zope so I wonder if anyone here has already compared both on a real situation. Any comments are appreciated. Thanks. Carlos Fernando Scheidecker Antunes. Linux User #207984
Andrew Kuchling is a well known Zope/Python expert who switched to something simpler. Here's why... http://www.amk.ca/python/writing/why-not-zope.html "Carlos Fernando Scheidecker Antunes" <[EMAIL PROTECTED]> wrote in message 002101c13e50$021ac860$0a505ad1@Nando4">news:002101c13e50$021ac860$0a505ad1@Nando4... Hello all, Does anyone here ever programmed in Zope? I have been doing PHP stuff for some time now and I am glad with it because it is faster than JSP para I am now listening to good opinions about Zope so I wonder if anyone here has already compared both on a real situation. Any comments are appreciated. Thanks. Carlos Fernando Scheidecker Antunes. Linux User #207984
I'm having a little trouble sorting mult-dimensional arrays by key... I looked-up the manual and found out that array_multisort() thing... but I don't think it does what I want... or I don't understand it... I have an array like this... $categories=array(); $categories[0]["id"]=1; $categories[0]["name"]="Xyz"; $categories[0]["id"]=7; $categories[0]["name"]="Lala"; $categories[0]["id"]=2; $categories[0]["name"]="Lele"; I want it sorted by "name"... the way I'm doing it right now is by using an auxiliar array that gets all the names, sorts them, and then build a new array based on that... is a better way? p.s: meu novo email é [EMAIL PROTECTED] ____________________________ . Christian Dechery (lemming) . http://www.tanamesa.com.br . Gaita-L Owner / Web Developer
I just got (1:30 AM) something that was really annoying me. I had to do it... but I got so into the "I must do it" thing I ended up doing it in an "unoptimized" way, I think. I got to this conclusion for the amount of loops I'm using and the number of lines of code. The problem is in my previous mail "help with nasty recursive algorithm"... I'm using 5 for(;;) loops, and it took 68 lines of code (including 3 small functions) to achieve it... it's kinda of too much, don't you think??? p.s: meu novo email é [EMAIL PROTECTED] ____________________________ . Christian Dechery (lemming) . http://www.tanamesa.com.br . Gaita-L Owner / Web Developer
Use performance monitor or network monitor. Regards, John "Sed" <[EMAIL PROTECTED]> wrote in message 003b01c13d59$18710bd0$0d00a8c0@mamma">news:003b01c13d59$18710bd0$0d00a8c0@mamma... > Hi, > > This is kind of off topic but I need to monitor the traffic in > kilobytes/bits on my net card adapter (in/out) or server (PHP, HTML, > etc.), do you know of any software? I'm using Win2000. > > Thanks, > SED >
hi, i want to know is there any naming convention followed in php as in c/c++/java/etc. i am puzzled how naming of variables are done in large scale projects, where codes are written by one and debug by others. best regards from saif --- [php 406, apache 1312, winme] [mysql 32321, personal oracle 8] _________________________________________________________ Do You Yahoo!? Get your free @yahoo.com address at http://mail.yahoo.com
Hi Does anybody know how to get hold of the rownumber of the current row in a php-script? (Rownumber in the actual file.) Thanks /Håkan
> Does anybody know how to get hold of the rownumber of the current row in a > php-script? > (Rownumber in the actual file.) echo __LINE__;
Hi ! Thanks for the quick answer. It works, but I was curious what does the number before the adress mean. <META http-equiv="refresh" content="??>>>0<<<??;url=file.php"> Thanks Nikola 9/16/01 4:08:08 AM, "Gavin" <[EMAIL PROTECTED]> wrote: >Yes, this HTML line will redirect the browser to the php page.. > ><META http-equiv="refresh" content="0;url=file.php"> > >Gavin > >"Nikola Veber" <[EMAIL PROTECTED]> wrote in message >[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...