[PHP] naming convention in php?

2001-09-15 Thread saif
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 oracl

[PHP] Re: Monitoring traffic

2001-09-15 Thread John Lim
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

[PHP] Re: PHP versus ZOPE

2001-09-15 Thread John Lim
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

[PHP] code optimization

2001-09-15 Thread Christian Dechery
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 previo

Re: [PHP] How do I use a .tar file?

2001-09-15 Thread Deryck Henson
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 PROTE

[PHP] sorting multi-dimensional arrays

2001-09-15 Thread Christian Dechery
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[

Re: [PHP] How do I use a .tar file?

2001-09-15 Thread Deryck Henson
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

[PHP] PHP versus ZOPE

2001-09-15 Thread Carlos Fernando Scheidecker Antunes
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

RE: [PHP] How do I use a .tar file?

2001-09-15 Thread Jack Dempsey
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]

[PHP] Re: redirect to php problem

2001-09-15 Thread Gavin
Yes, this HTML line will redirect the browser to the php page.. 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 directl

[PHP] International Jazz Competition held on the Internet

2001-09-15 Thread Jazz Events
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:

[PHP] How do I use a .tar file?

2001-09-15 Thread Deryck Henson
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 comman

Re: [PHP] redirect to php problem

2001-09-15 Thread David Otton
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] help with some nasty recursive algorithm

2001-09-15 Thread Christian Dechery
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 |

[PHP] Please please please help!

2001-09-15 Thread Kyle Smith
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 ad

[PHP] PHP Auth problem

2001-09-15 Thread Alex Sofronie
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_U

php-general Digest 15 Sep 2001 22:16:40 -0000 Issue 878

2001-09-15 Thread php-general-digest-help
php-general Digest 15 Sep 2001 22:16:40 - Issue 878 Topics (messages 67442 through 67470): original paintings 67442 by: Boris_Lipner Re: WDDX and binary data 67443 by: Rouvas Stathis problem with a global variable as class reference 67444 by: Wolfram Kriesing Re:

Re: [PHP] Flex...

2001-09-15 Thread Meir Kriheli
On Saturday 15 September 2001 17:08, Joaquin wrote: > Hello, i ask to the listo for a problem.. and they say me that i havent > flex.. yhe error is this.. when i put ./configure to install PHP it says > ... > > checking lex output file root... ./configure: lex: command not found > configure: erro

Re: [PHP] PHP/CVS

2001-09-15 Thread Sterling Hughes
On Sat, 15 Sep 2001, Peter Gibson wrote: > $ cvs -d :pserver:[EMAIL PROTECTED]:/repository co -r "4.0.4pl1" php4 > cvs [server aborted]: Numeric tag 4.0.4pl1 contains characters other than > digits and '.' > > How do I check php-4.0.4pl1 out? > > My ~/.cvsrc file contains: > $ cat ~/.cvsrc > cvs

Re: [PHP] Re: Why doesn't this work?

2001-09-15 Thread Sterling Hughes
On Sat, 15 Sep 2001, CC Zona wrote: > In article <[EMAIL PROTECTED]>, > [EMAIL PROTECTED] (Ray Van Dolson) wrote: > > > I'm trying to do: > > > > print split("=",$testString)[0]; > > Curly braces often seem to help in situations like these. Untried, but > maybe this will do the trick for you: >

[PHP] PHP/CVS

2001-09-15 Thread Peter Gibson
$ cvs -d :pserver:[EMAIL PROTECTED]:/repository co -r "4.0.4pl1" php4 cvs [server aborted]: Numeric tag 4.0.4pl1 contains characters other than digits and '.' How do I check php-4.0.4pl1 out? My ~/.cvsrc file contains: $ cat ~/.cvsrc cvs -z9 update -d -P checkout -P diff -u Thanks... -- PHP

[PHP] Boy Makes $71,000 in 3 Weeks. You Can Too!!

2001-09-15 Thread familiesexcel
Thank you for your time and interest. Have you heard about the program on ABC's 20/20, about a 15 year old boy who made over $70,000 on the Internet? The mother of a 15 year old boy was cleaning and putting laundry away when she came across a large brown paper bag that was suspiciously buried b

Re: [PHP] if(isset($a)) vs if($a)

2001-09-15 Thread Mark
On Sat, 15 Sep 2001 13:20:59 -0700, CC Zona wrote: >In article <[EMAIL PROTECTED]>, > [EMAIL PROTECTED] (Andrew Perevodchik) wrote: > >> JD> isset checks to see if the $a variable has >> JD> been set, ie, if it exists. if($a) checks for >> JD> the truthood of $a, meaning, if it has a >> JD> non-ze

Re: [PHP] coding practices

2001-09-15 Thread Julio Nobrega Trabalhando
I am the type of guy that sits and code. But now I am working on a company where we sell systems to large financial entities. So, I have now to make 'prettier' stuff for high executives understand. -- Julio Nobrega A hora está chegando: http://toca.sourceforge.net "Ninety-Nine Ways To Die" <[

[PHP] Re: Why doesn't this work?

2001-09-15 Thread CC Zona
In article <[EMAIL PROTECTED]>, [EMAIL PROTECTED] (Ray Van Dolson) wrote: > I'm trying to do: > > print split("=",$testString)[0]; Curly braces often seem to help in situations like these. Untried, but maybe this will do the trick for you: print {split("=",$testString)}[0]; -- CC -- PHP

Re: [PHP] if(isset($a)) vs if($a)

2001-09-15 Thread CC Zona
In article <[EMAIL PROTECTED]>, [EMAIL PROTECTED] (Andrew Perevodchik) wrote: > JD> isset checks to see if the $a variable has > JD> been set, ie, if it exists. if($a) checks for > JD> the truthood of $a, meaning, if it has a > JD> non-zero, non-null/empty-string value, then > JD> its true, else

RE: [PHP] redirect to php problem

2001-09-15 Thread Jack Dempsey
sure look into meta refresh (search google and you'll find info) jack -Original Message- From: Nikola Veber [mailto:[EMAIL PROTECTED]] Sent: Sunday, September 16, 2001 3:57 AM To: php forum Subject: [PHP] redirect to php problem Hi ! I'm having a problem with following : I'd like to a

[PHP] redirect to php problem

2001-09-15 Thread Nikola Veber
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 -- PHP General Mailing List (http

Re: [PHP] Regex

2001-09-15 Thread Rasmus Lerdorf
preg_match('/ Hi > > How does one extract a URL from HTML like : > > > > I have an HTML file with many lines like this and I want to extract the > /abc/def/0,1234,567.html?xxx=abcde part from each one. > Assuming I can get the lines into an array, how can I extract only the > URL part? > > I trie

[PHP] Regex

2001-09-15 Thread Boaz Yahav
Hi How does one extract a URL from HTML like : I have an HTML file with many lines like this and I want to extract the /abc/def/0,1234,567.html?xxx=abcde part from each one. Assuming I can get the lines into an array, how can I extract only the URL part? I tried ereg but I'm not a wizard with

Re: [PHP] Help a newbie?

2001-09-15 Thread Andrew Hill
Apache is my vote. And change your system date, please - it's messing with my inbox sort :) Cheers, Andrew Hill OpenLink Software On Sunday, August 2, 1998, at 03:14 AM, Peter Gibson wrote: > Hi! > > Simple question... > Should I use IIS (5.0) or apache for development of PHP before I upload

Re: [PHP] coding practices

2001-09-15 Thread Ninety-Nine Ways To Die
I generally was just diving in immediately... because I was using it for smaller projects less than 1k lines of code... but now that I am building everything in PHP and becoming more proficient, and writing programs with 5k + lines of code, I am discovering a need to write at least a basic plan

Re: [PHP] Compiling php like C

2001-09-15 Thread Kunal Jhunjhunwala
Allright guys.. im sorry abt the signiture.. Regards, Kunal Jhunjhunwala - Original Message - From: "Seb Frost" <[EMAIL PROTECTED]> To: "Kunal Jhunjhunwala" <[EMAIL PROTECTED]> Sent: Saturday, September 15, 2001 9:54 PM Subject: RE: [PHP] Compiling php like C > I think you'll find Nostra

[PHP] Re: is PHP crazy, or am I?

2001-09-15 Thread Christian Dechery
thanks for all your help... I got it after a bit of REAl thinking I got what that algorithm was meant to... it wasn't really the original bubble-sort... it's a kinda of pseudo-optimized 'one'... it goes like above: function bubblesort(&$vetor,$tam) { $troca=0;

[PHP] Urgent

2001-09-15 Thread karthikeyan
Hi guys, I have installed php4.0.6 in my system, i am working on winNT environment with Apache as my web server. The php is working great, i have also enabled gd library and i am able to run some of my image program, it is great. Now i need different fonts, for that i know i need freet

Re: [PHP] Compiling php like C

2001-09-15 Thread Chris Hobbs
Kunal Jhunjhunwala wrote: >>Two brothers torn apart by Chaos, while the fortress >>endures, the great leader will succumb , The third >>big war will begin when the big city is burning" - >>- Nostradamus 1654 Would you _please_ stop posting this nonsense/hoax? http://www.snopes2.com/inboxer/hoax

Re: [PHP] Choices for root privilege

2001-09-15 Thread Chris Hobbs
Brad Hubbard wrote: > I'm in the planning stages of a smallish app that will need to run some shell > commands that generally require root privileges to run (eg: route, ifconfig, > ifup). I know this is a security nightmare but I don't really have a choice, > I have to provide this functionali

[PHP] Flex...

2001-09-15 Thread Joaquin
Hello, i ask to the listo for a problem.. and they say me that i havent flex.. yhe error is this.. when i put ./configure to install PHP it says ... checking lex output file root... ./configure: lex: command not found configure: error: cannot find output from lex; giving up i go to www

[PHP] Re: [PEAR] Re: [PHP] Re: [PEAR] problem with a global variable as class reference

2001-09-15 Thread Markus Fischer
On Sat, Sep 15, 2001 at 04:11:47PM +0200, Wolfram Kriesing wrote : > > My answer may be not well thought but ... from my knowledge, > > problems with php-gtk you can't assign references to global vars > > because this particaular declared global variable is a local > > reference to the global var

Re: [PHP] Re: [PEAR] problem with a global variable as class reference

2001-09-15 Thread Wolfram Kriesing
> My answer may be not well thought but ... from my knowledge, > problems with php-gtk you can't assign references to global vars > because this particaular declared global variable is a local > reference to the global var. as you say, i guess the "local reference to the global var" is the proble

[PHP] coding practices

2001-09-15 Thread Scott Parks
Hello- This may sound like an odd question, but I am curious about everyone's coding techniques when it comes to web projects. Do you still down and plan everything out, database connectivity, tables, etc or do you just dive in and do it? I am more of a guy who just drives in and goes to work

[PHP] Overriding PHP build-in functions

2001-09-15 Thread Robert Klinkenberg
Is it possible to override the php build-in functions without changing the PHP base distribution? We want to encode our scripts but zend is a bit expensive so we are looking to write something ourself. (encryption libs are freely available, so the main problem is changing the file open function s

[PHP] Re: [PEAR] problem with a global variable as class reference

2001-09-15 Thread Markus Fischer
My answer may be not well thought but ... from my knowledge, problems with php-gtk you can't assign references to global vars because this particaular declared global variable is a local reference to the global var. - Markus On Sat, Sep 15, 2001 at 03:38:54PM +0200, Wolfram Kriesing wrote : > i

[PHP] problem with a global variable as class reference

2001-09-15 Thread Wolfram Kriesing
i am using a global variable (curClass), which is a reference to some class, inside another class i want to change the value of this global variable, to "point" or refer to another class. but that doesnt work. am i doing something wrong??? here my code -- class temp {   functi

Re: [PHP] WDDX and binary data

2001-09-15 Thread Rouvas Stathis
Try base64_(en|de)code. -Stathis. Christopher Heschong wrote: > > Despite the fact that PHP's WDDX functions don't support a "binary" type, > most binary data comes through just fine, and in fact, the WDDX serialize > function can encode certain types of binary data, such as a null > character:

[PHP] original paintings

2001-09-15 Thread Boris_Lipner
Dear Madam and Sir, Our company, "GALLERY-A" www.gallery-a.ru , offer both modern and classical art, deals in a line of pieces of art by talented artists. Their works include original paintings, sculptures, etc., copies of masterpieces of various styles, countries and epochs, portraits m

[PHP] Login in https, site in http problem

2001-09-15 Thread Ben Edwards
We have a site which logs in using https (secure site) but the rest of the site is in http (non-secure site). We are doing this because we do not have/want to pay for a secure key. The login form posts back to itself so the whole login is in https. The problem is the session variables set i

RE: [PHP] comparing

2001-09-15 Thread Andrew Braund
How about; SELECT product, count(*) AS Total FROM table GROUP BY product ORDER BY total DESC > -Original Message- > From: Teqila MAN [mailto:[EMAIL PROTECTED]] > Sent: Saturday, 15 September 2001 16:43 > To: [EMAIL PROTECTED] > Subject: [PHP] comparing > > > Hello, > > What is the simple

Re: [PHP] Compiling php like C

2001-09-15 Thread Kunal Jhunjhunwala
http://212.67.208.211/ This wont compile my code.. i need something that will compile my code and let me distribute the compiled code. Regards, Kunal Jhunjhunwala - Original Message - From: "Jack Dempsey" <[EMAIL PROTECTED]> To: "Kunal Jhunjhunwala" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]

Re: [PHP] Compiling php like C

2001-09-15 Thread Kunal Jhunjhunwala
Hey found it :) http://212.67.208.211/ Regards, Kunal Jhunjhunwala Two brothers torn apart by Chaos, while the fortress endures, the great leader will succumb , The third big war will begin when the big city is burning" - - Nostradamus 1654 - Original Message - From: "Jack Dempsey" <[EMA

RE: [PHP] Compiling php like C

2001-09-15 Thread Jack Dempsey
yeah, i definitely agree with you, i can't/won't use it, as good as it is there was that one open source project that someone mentioned here, and i believe the developer said his results were about as good as zend...try the archives... jack -Original Message- From: Kunal Jhunjhun