RE: [PHP] Compiling php like C
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 Jhunjhunwala [mailto:[EMAIL PROTECTED]] Sent: Saturday, September 15, 2001 3:27 AM To: [EMAIL PROTECTED] Subject: Re: [PHP] Compiling php like C I know about zend, but are there any other alternatives to it?? And isnt really compiling code. Plus it costs a bundle. 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" <[EMAIL PROTECTED]> To: "Kunal Jhunjhunwala" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]> Sent: Saturday, September 15, 2001 12:54 PM Subject: RE: [PHP] Compiling php like C > zend encoder (www.zend.com) and there's also an opensource project...can't > recall the name or link, but you can find it if you search the archives > > jack > > -Original Message- > From: Kunal Jhunjhunwala [mailto:[EMAIL PROTECTED]] > Sent: Saturday, September 15, 2001 3:04 AM > To: [EMAIL PROTECTED] > Subject: [PHP] Compiling php like C > > > Hi, > Has anyone done this to date?? I was thinking of compiling my programs for > better perfomance, and of course, protect the source code. Anyone have any > ideas on this issue? > Regards, > Kunal Jhunjhunwala > > > -- > 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] > > > > -- > 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] > > > -- 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] -- 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]
Re: [PHP] Compiling php like C
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" <[EMAIL PROTECTED]> To: "Kunal Jhunjhunwala" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]> Sent: Saturday, September 15, 2001 1:04 PM Subject: RE: [PHP] Compiling php like C > 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 Jhunjhunwala [mailto:[EMAIL PROTECTED]] > Sent: Saturday, September 15, 2001 3:27 AM > To: [EMAIL PROTECTED] > Subject: Re: [PHP] Compiling php like C > > > I know about zend, but are there any other alternatives to it?? And isnt > really compiling code. Plus it costs a bundle. > 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" <[EMAIL PROTECTED]> > To: "Kunal Jhunjhunwala" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]> > Sent: Saturday, September 15, 2001 12:54 PM > Subject: RE: [PHP] Compiling php like C > > > > zend encoder (www.zend.com) and there's also an opensource project...can't > > recall the name or link, but you can find it if you search the > archives > > > > jack > > > > -Original Message- > > From: Kunal Jhunjhunwala [mailto:[EMAIL PROTECTED]] > > Sent: Saturday, September 15, 2001 3:04 AM > > To: [EMAIL PROTECTED] > > Subject: [PHP] Compiling php like C > > > > > > Hi, > > Has anyone done this to date?? I was thinking of compiling my programs for > > better perfomance, and of course, protect the source code. Anyone have any > > ideas on this issue? > > Regards, > > Kunal Jhunjhunwala > > > > > > -- > > 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] > > > > > > > > -- > > 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] > > > > > > > > > -- > 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] > > > > -- > 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] > > > -- 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]
Re: [PHP] Compiling php like C
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]> Sent: Saturday, September 15, 2001 1:04 PM Subject: RE: [PHP] Compiling php like C > 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 Jhunjhunwala [mailto:[EMAIL PROTECTED]] > Sent: Saturday, September 15, 2001 3:27 AM > To: [EMAIL PROTECTED] > Subject: Re: [PHP] Compiling php like C > > > I know about zend, but are there any other alternatives to it?? And isnt > really compiling code. Plus it costs a bundle. > 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" <[EMAIL PROTECTED]> > To: "Kunal Jhunjhunwala" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]> > Sent: Saturday, September 15, 2001 12:54 PM > Subject: RE: [PHP] Compiling php like C > > > > zend encoder (www.zend.com) and there's also an opensource project...can't > > recall the name or link, but you can find it if you search the > archives > > > > jack > > > > -Original Message- > > From: Kunal Jhunjhunwala [mailto:[EMAIL PROTECTED]] > > Sent: Saturday, September 15, 2001 3:04 AM > > To: [EMAIL PROTECTED] > > Subject: [PHP] Compiling php like C > > > > > > Hi, > > Has anyone done this to date?? I was thinking of compiling my programs for > > better perfomance, and of course, protect the source code. Anyone have any > > ideas on this issue? > > Regards, > > Kunal Jhunjhunwala > > > > > > -- > > 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] > > > > > > > > -- > > 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] > > > > > > > > > -- > 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] > > > > -- > 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] > > > -- 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]
RE: [PHP] comparing
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 mod to compare values for example. (we have a mysql tabl > e) > > id -- product > 1-cola > 2 -cola > 3 - cd > 4 -cd > 5 - cola > > How to make a mysql query that wokuld print me what products i have in most. > > Teqilaman > > > -- > 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] > -- 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]
[PHP] Login in https, site in http problem
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 in https (username and ip address) are not available in http. Has anybody got any word rounds/solutions for this? Regards, Ben *+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+ * Ben Edwards [EMAIL PROTECTED] +352 091 429995 * * This Email account is protected by http://www.spamcop.net * * ALL spam is reported to ISP and there network provider * * Homepagehttp://www.gifford.co.uk/~bedwards * * i-Contact Progressive Videohttp://www.videonetwork.org * * Smashing the Corporate image http://www.subvertise.org * * Bristol's radical newshttp://www.bristle.co.uk * * Open Directory Project http://www.dmoz.org * *+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+ -- 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]
[PHP] original paintings
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 made to order. These professional artists are high-skilled graduates of educational institutions such as the Academy of Fine Arts, High School for Arts and Design and other art colleges. SITE: www.gallery-a.ru E-MAIL: [EMAIL PROTECTED] Best regards Boris Lipner, General Manager. If you want to REMOVE your E-maiIL from our Post List PLEASE send letter to [EMAIL PROTECTED] -- 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]
Re: [PHP] WDDX and binary data
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: > > But the deserialize process dos not retain these characters. Is this a > bug in PHP's implementation of WDDX, or is there perhaps a workaround > available? > > Here's some example code that shows a WDDX packet of encoded binary data. > The packet itself contains all of the binary data, including null > characters, etc. The deserialized() string, however, does not. > > > $fp = fopen("http://www.php.net/gifs/php_logo.gif","r"); > while (!feof($fp)) { > $str .= fread($fp, 4096); > } > $str = base64_encode($str); > $packet = wddx_serialize_value($str, "php_logo.gif"); > > Header("Content-Type: image/gif"); > > $str = wddx_deserialize($packet); $str = base64_decode($str); > > echo $str; > > ?> > > -- > /chris/ > > -- > 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] -- 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]
[PHP] problem with a global variable as class reference
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 { function temp() { global $curClass; $curClass = &${$classNameY}; } } - $curClass = &${classNameX}; $tempi = new temp(); # at this point $curClass still points # to the class with the name "classNameX" # not to "classNameY" as i would suppose # if i used: $curClass = $classNameY; # inside the class temp # $curClass would have the expected value # but with the "&${}" around it doenst work thanks 4 your help Wolfram Kriesing -- 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]
[PHP] Re: [PEAR] problem with a global variable as class reference
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 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 > { > function temp() > { > global $curClass; > $curClass = &${$classNameY}; > } > } > - > > $curClass = &${classNameX}; > $tempi = new temp(); > # at this point $curClass still points > # to the class with the name "classNameX" > # not to "classNameY" as i would suppose > # if i used: $curClass = $classNameY; > # inside the class temp > # $curClass would have the expected value > # but with the "&${}" around it doenst work > > thanks 4 your help > > Wolfram Kriesing > > -- > PEAR General Mailing List (http://pear.php.net/) > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > To contact the list administrators, e-mail: [EMAIL PROTECTED] -- Markus Fischer, http://guru.josefine.at/~mfischer/ EMail: [EMAIL PROTECTED] PGP Public Key: http://guru.josefine.at/~mfischer/C2272BD0.asc PGP Fingerprint: D3B0 DD4F E12B F911 3CE1 C2B5 D674 B445 C227 2BD0 -All your scripts are belong to Zend- -- 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]
[PHP] Overriding PHP build-in functions
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 so that it decodes the file while reading it from disk) Robert Klinkenberg -- 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]
[PHP] coding practices
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. Do you use spread sheets, a project program, etc? Or just screen captures to the clients? Thanks, -Scott -- 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]
Re: [PHP] Re: [PEAR] problem with a global variable as class reference
> 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 problem at least i also forgot to define the "${$classNameY}" as global if i do so then the following happens (see comments in code) class temp { function temp() { global $curClass,${"y"}; $curClass = &${"y"}; # this doenst work $curClass = ${"y"}; # this works, but it's not a reference :-( } } - $curClass = &${"x"}; $tempi = new temp(); Wolfram Kriesing -- 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]
[PHP] Re: [PEAR] Re: [PHP] Re: [PEAR] problem with a global variable as class reference
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. > > as you say, i guess the "local reference to the global var" > is the problem > > at least i also forgot to define the "${$classNameY}" as global > if i do so then the following happens (see comments in code) > > class temp > { > function temp() > { > global $curClass,${"y"}; > > $curClass = &${"y"}; # this doenst work > $curClass = ${"y"}; # this works, but it's not a reference :-( > } > } > - Good .. or bad. It's a Zend1 limitation. I'm sure Zend2 will remove this problem. > $curClass = &${"x"}; > $tempi = new temp(); Have you tried with creating a reference from the object upon instancing it? $foo = &new Object; ? - Markus -- Markus Fischer, http://guru.josefine.at/~mfischer/ EMail: [EMAIL PROTECTED] PGP Public Key: http://guru.josefine.at/~mfischer/C2272BD0.asc PGP Fingerprint: D3B0 DD4F E12B F911 3CE1 C2B5 D674 B445 C227 2BD0 -All your scripts are belong to Zend- -- 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]
[PHP] Flex...
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.gnu.com and i download " flex " i descompres it and put ./configure and then make.. but e=when i went to put make install .. it say that the file doesnt exist.. y put dir and there wa a files call " install " if anybody can help me.. please.. help... mi english is very bad... im from argentina.. Bye..and thank you -- 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]
Re: [PHP] Choices for root privilege
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 functionality through a web based interface. What is > the accepted way of accomplishing this? I've considered assigning nobody to a > privileged group, sudo, changing exec permissions (last resort). > > Opinions??? If you can live without realtime, one way of handling this is to have the httpd user write out a file with commands to be run, and a root cron job (set to run as frequently as every minute) watch for that file and act upon it when it exists. Obviously, there would be some lag, but it would be one way to handle the security side of this issue. -- ___ ____ _ Chris Hobbs / \ \/ / | | |/ ___\| __ \ Head Geek| (___ \ \ / /| | | | (___ | | | | WebMaster \___ \ \ \/ / | | | |\___ \| | | | PostMaster) | \ / | |__| |) | |__| | \/\/\/ \/|_/ http://www.silvervalley.k12.ca.us [EMAIL PROTECTED] -- 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]
Re: [PHP] Compiling php like C
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/hoaxes/predict.htm -- ___ ____ _ Chris Hobbs / \ \/ / | | |/ ___\| __ \ Head Geek| (___ \ \ / /| | | | (___ | | | | WebMaster \___ \ \ \/ / | | | |\___ \| | | | PostMaster) | \ / | |__| |) | |__| | \/\/\/ \/|_/ http://www.silvervalley.k12.ca.us [EMAIL PROTECTED] -- 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]
[PHP] Urgent
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 freetype to be installed in my system. I download freetype-2.0.4-bin.zip for windows and when i extracted the zip, it created 3 folders /bin /contrib /manifest i saw freetype.dll in bin folder and copied it into /php4/bin, but still i am not able to get my program run. Waiting for your earliest reply, With Regards, b.karthikeyan.
[PHP] Re: is PHP crazy, or am I?
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; $i=0; for($i=$tam; $i>0; $i--) { $troca=1; for($j=0; $j<$tam ;$j++) { if($vetor[$j] > $vetor[$j+1]) { $aux=$vetor[$j]; $vetor[$j]=$vetor[$j+1]; $vetor[$j+1]=$aux; $troca=$j; } } $tam=$troca; } } well... enough about that poor sorting method... :) At 16:45 14/9/2001 -0500, Richard Lynch wrote: >It's been far too long since I've done bubble sort versus Shell versus etc. > >If it's your girlfriend's homework, she should know, or know how to find >out, better than either of us... > >-- >WARNING [EMAIL PROTECTED] address is an endangered species -- Use >[EMAIL PROTECTED] >Wanna help me out? Like Music? Buy a CD: http://l-i-e.com/artists.htm >Volunteer a little time: http://chatmusic.com/volunteer.htm >- Original Message - >From: Christian Dechery <[EMAIL PROTECTED]> >To: Richard Lynch <[EMAIL PROTECTED]> >Cc: <[EMAIL PROTECTED]> >Sent: Friday, September 14, 2001 9:12 AM >Subject: Re: is PHP crazy, or am I? > > > > I must have deleted the line by accident... > > > > $trocou=true; is right below $vetor[$j+1]=$aux; > > > > would that make sense? > > > > I'm not worried about the optimization here... I want to get time results > > for bubblesort... and then I'm going to heap, quick, and others... It's > > some college homework for my girlfriend... > > > > > > At 00:07 14/09/01 -0500, you wrote: > > >function bubblesort(&$vetor,$tam) > > >{ > > > $trocou=true; > > > $i=$j=0; > > > > > > while($trocou) > > > { > > > $trocou=false; > > > > > ># You set $trocou to false here, and never reset it to true > > ># This loop will execute exactly once. > > > > > > for($j=0; $j<$tam-$i; $j++) > > > { > > > if($vetor[$j] > $vetor[$j+1]) > > > { > > > $aux=$vetor[$j]; > > > $vetor[$j]=$vetor[$j+1]; > > > $vetor[$j+1]=$aux; > > > } > > > $i++; > > > } > > > } > > >} > > > > > > > it's right right? > > > > > >No. > > > > > >As near as I can figure, you are incrementing $j and decrementing $i on > > >every iteration. > > >That would mean that even if you fixed $trocou your sort algorithm would >be > > >O(n) > > >(Actually it's exactly 1/2 n, but that's the same as O(n) for >sufficiently > > >large n.) > > > > > >Alas, that can't be correct (we wish) and is not the standard bubble >sort... > > > > > >Try this for the body: > > >for ($i = 0; $i < $tam -1; $i++){ > > > for ($j = $i + 1; $j < $tam -1; $j++){ > > > if ($vetor[$i] < $vetor[$j]){ > > > $aux = $vetor[$i]; > > > $vetor[$i] = $vetor[$j]; > > > $vetor[$j] = $aux; > > > } > > > } > > >} > > > > > >Forget the trocou bit. > > > > > > > so why when I print the array (with a for(;;) or with print_r) it >still > > > > shows me it's not ordered... I printed it INSIDE the function... >what's > > >the > > > > thing here? I'm I nuts? > > > > > >-- > > >WARNING [EMAIL PROTECTED] address is an endangered species -- Use > > >[EMAIL PROTECTED] > > >Wanna help me out? Like Music? Buy a CD: http://l-i-e.com/artists.htm > > >Volunteer a little time: http://chatmusic.com/volunteer.htm p.s: meu novo email é [EMAIL PROTECTED] . Christian Dechery (lemming) . http://www.tanamesa.com.br . Gaita-L Owner / Web Developer -- 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]
Re: [PHP] Compiling php like C
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 Nostradamus died in 1566, and someone wrote that passage > as part of their coursework on the subject a few years back > > - seb > > -Original Message- > From: Kunal Jhunjhunwala [mailto:[EMAIL PROTECTED]] > Sent: 15 September 2001 08:43 > To: Jack Dempsey > Cc: [EMAIL PROTECTED] > Subject: Re: [PHP] Compiling php like C > > > 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" <[EMAIL PROTECTED]> > To: "Kunal Jhunjhunwala" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]> > Sent: Saturday, September 15, 2001 1:04 PM > Subject: RE: [PHP] Compiling php like C > > > > 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 Jhunjhunwala [mailto:[EMAIL PROTECTED]] > > Sent: Saturday, September 15, 2001 3:27 AM > > To: [EMAIL PROTECTED] > > Subject: Re: [PHP] Compiling php like C > > > > > > I know about zend, but are there any other alternatives to it?? And isnt > > really compiling code. Plus it costs a bundle. > > 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" <[EMAIL PROTECTED]> > > To: "Kunal Jhunjhunwala" <[EMAIL PROTECTED]>; > <[EMAIL PROTECTED]> > > Sent: Saturday, September 15, 2001 12:54 PM > > Subject: RE: [PHP] Compiling php like C > > > > > > > zend encoder (www.zend.com) and there's also an opensource > project...can't > > > recall the name or link, but you can find it if you search the > > archives > > > > > > jack > > > > > > -Original Message- > > > From: Kunal Jhunjhunwala [mailto:[EMAIL PROTECTED]] > > > Sent: Saturday, September 15, 2001 3:04 AM > > > To: [EMAIL PROTECTED] > > > Subject: [PHP] Compiling php like C > > > > > > > > > Hi, > > > Has anyone done this to date?? I was thinking of compiling my programs > for > > > better perfomance, and of course, protect the source code. Anyone have > any > > > ideas on this issue? > > > Regards, > > > Kunal Jhunjhunwala > > > > > > > > > -- > > > 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] > > > > > > > > > > > > -- > > > 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] > > > > > > > > > > > > > > > -- > > 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] > > > > > > > > -- > > 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] > > > > > > > > > -- > 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] > > > --- > Incoming mail is certified Virus Free. > Checked by AVG anti-virus system (http://www.grisoft.com). > Version: 6.0.277 / Virus Database: 146 - Release Date: 05/09/2001 > > --- > Outgoing mail is certified Virus Free. > Checked by AVG anti-virus system (http://www.grisoft.com). > Version: 6.0.277 / Virus Database: 146 - Release Date: 05/09/2001 > > > -- 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]
Re: [PHP] coding practices
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 ahead of time, jotting the code as I go if I get an idea, but planning slightly ahead of time... that is. ONLY if it's a big project... I am working on one now that when finished will most likely be 15-30k lines of code by the time I am done, big project... I did just delve in... now I am discovering that may not have been the smartest thing.. I have a piece done, but will wind up trying to integrate all the other pieces around that, instead of thinking in the grand scheme from the beginning -- On Sat, 15 Sep 2001 10:03:29 Scott Parks wrote: >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. Do you use spread sheets, a >project >program, etc? Or just screen captures to the clients? > >Thanks, > >-Scott > > >-- >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 -- 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]
Re: [PHP] Help a newbie?
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 > it? -- 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]
[PHP] Regex
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 RegEx. This is what I played with but I'm not sure how I can extract only the URL If(ereg(""; } thanks berber -- 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]
Re: [PHP] Regex
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 tried ereg but I'm not a wizard with RegEx. > > This is what I played with but I'm not sure how I can extract only the > URL > > If(ereg(""; > } > > > thanks > > berber > > -- > 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] > -- 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]
[PHP] redirect to php problem
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://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]
RE: [PHP] redirect to php problem
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 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://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] -- 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]
Re: [PHP] if(isset($a)) vs if($a)
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, false. > > ... and if it's not set at all it returns a > warning unless you use "@" :( Or change the error_reporting level, or turn off display_errors (okay, technically the warning is still happening in the latter case, but IIRC that's also true of @--both simply suppress the *reporting* of the report rather than the *occurance* of the error). This is why it's best to do multiple checks and choose them carefully. Ex: if(isset($) and !empty($a) and !$a) or if(isset($) and $a===FALSE) etc. -- CC -- 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]
[PHP] Re: Why doesn't this work?
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 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]
Re: [PHP] coding practices
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" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > 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 ahead of time, jotting the code as I go if I get an idea, but planning slightly ahead of time... that is. ONLY if it's a big project... I am working on one now that when finished will most likely be 15-30k lines of code by the time I am done, big project... I did just delve in... now I am discovering that may not have been the smartest thing.. I have a piece done, but will wind up trying to integrate all the other pieces around that, instead of thinking in the grand scheme from the beginning > > > -- > > On Sat, 15 Sep 2001 10:03:29 > Scott Parks wrote: > >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. Do you use spread sheets, a > >project > >program, etc? Or just screen captures to the clients? > > > >Thanks, > > > >-Scott > > > > > >-- > >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 -- 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]
Re: [PHP] if(isset($a)) vs if($a)
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-zero, non-null/empty-string value, then >> JD> its true, else, false. >> >> ... and if it's not set at all it returns a >> warning unless you use "@" :( > >Or change the error_reporting level, or turn off display_errors >(okay, >technically the warning is still happening in the latter case, but >IIRC >that's also true of @--both simply suppress the *reporting* of the >report >rather than the *occurance* of the error). > >This is why it's best to do multiple checks and choose them >carefully. Ex: > >if(isset($) and !empty($a) and !$a) this is the same as if(!empty($a)) >or > >if(isset($) and $a===FALSE) this is the same as if(empty($a)) -- 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]
[PHP] Boy Makes $71,000 in 3 Weeks. You Can Too!!
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 beneath some clothes and a skateboard in the back of her son's closet. Her first thought was that he had robbed a bank. There was over $71,000 dollars in the bag, more than her husband made in a year!! Well, it turns out that the boy did not rob a bank. In fact, everything he did was completely legal. He had followed a little program that was sent to him in an Email and it resulted in him making over $70,000 all in the form of $5 bills. Are you curious as to how a 15 year old boy could make $71,000 in 3 weeks? Are you curious as to why all the money came in the form of several thousand $5 bills? Would you be interested to know that thousands of people have the same curiosity and after finding out what the boy did, are now following his same steps and are being successful? This is a simple, harmless and fun way to make some extra money at home. Don't Miss Your Chance To BE FINANCIALLY SECURE! Honest! It Really WORKS! And, as ABC's 20/20 discovered, it is completely legal. Read the full story about this young boy! Read about other's success! SEE HOW YOU CAN START DOING THE SAME THING TODAY!!! How would you like tons of $5 bills stuffed in your mailbox? It Really Works!!! Check out: http://www.goexcel.org/success -- 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]
[PHP] PHP/CVS
$ 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 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]
Re: [PHP] Re: Why doesn't this work?
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: > > print {split("=",$testString)}[0]; > > This won't work. Reason: PHP isn't Perl. -Sterling -- 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]
Re: [PHP] PHP/CVS
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 -z9 > update -d -P > checkout -P > diff -u > download it from php.net -Sterling -- 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]
Re: [PHP] Flex...
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: error: cannot find output from lex; giving up > > i go to www.gnu.com and i download " flex " > i descompres it and put ./configure and then make.. but e=when i went to > put make install .. it say that the file doesnt exist.. y put dir > and there wa a files call " install " if anybody can help me.. please.. > help... > mi english is very bad... im from argentina.. > Bye..and thank you What distro are you using ? You can get the compiled version for it. -- Kriheli Meir -- 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]
php-general Digest 15 Sep 2001 22:16:40 -0000 Issue 878
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: [PEAR] problem with a global variable as class reference 67445 by: Markus Fischer 67448 by: Wolfram Kriesing Overriding PHP build-in functions 67446 by: Robert Klinkenberg coding practices 67447 by: Scott Parks 67456 by: Ninety-Nine Ways To Die 67464 by: Julio Nobrega Trabalhando Re: [PEAR] Re: [PHP] Re: [PEAR] problem with a global variable as class reference 67449 by: Markus Fischer Flex... 67450 by: Joaquin 67470 by: Meir Kriheli Re: Choices for root privilege 67451 by: Chris Hobbs Re: Compiling php like C 67452 by: Chris Hobbs 67455 by: Kunal Jhunjhunwala Urgent 67453 by: karthikeyan Re: is PHP crazy, or am I? 67454 by: Christian Dechery Re: Help a newbie? 67457 by: Andrew Hill Regex 67458 by: Boaz Yahav 67459 by: Rasmus Lerdorf redirect to php problem 67460 by: Nikola Veber 67461 by: Jack Dempsey Re: if(isset($a)) vs if($a) 67462 by: CC Zona 67465 by: Mark Re: Why doesn't this work? 67463 by: CC Zona 67468 by: Sterling Hughes Boy Makes $71,000 in 3 Weeks. You Can Too!! 67466 by: familiesexcel.home.com PHP/CVS 67467 by: Peter Gibson 67469 by: Sterling Hughes 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] -- 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 made to order. These professional artists are high-skilled graduates of educational institutions such as the Academy of Fine Arts, High School for Arts and Design and other art colleges. SITE: www.gallery-a.ru E-MAIL: [EMAIL PROTECTED] Best regards Boris Lipner, General Manager. If you want to REMOVE your E-maiIL from our Post List PLEASE send letter to [EMAIL PROTECTED] 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: > > But the deserialize process dos not retain these characters. Is this a > bug in PHP's implementation of WDDX, or is there perhaps a workaround > available? > > Here's some example code that shows a WDDX packet of encoded binary data. > The packet itself contains all of the binary data, including null > characters, etc. The deserialized() string, however, does not. > > > $fp = fopen("http://www.php.net/gifs/php_logo.gif","r"); > while (!feof($fp)) { > $str .= fread($fp, 4096); > } > $str = base64_encode($str); > $packet = wddx_serialize_value($str, "php_logo.gif"); > > Header("Content-Type: image/gif"); > > $str = wddx_deserialize($packet); $str = base64_decode($str); > > echo $str; > > ?> > > -- > /chris/ > > -- > 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] 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 { function temp() { global $curClass; $curClass = &${$classNameY}; } } - $curClass = &${classNameX}; $tempi = new temp(); # at this point $curClass still points # to the class with the name "classNameX" # not to "classNameY" as i would suppose # if i used: $curClass = $classNameY; # inside the class temp # $curClass would have the expected value # but with the "&${}" around it doenst work thanks 4 your help 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. - Markus On Sat, Sep 15, 2001 at 03:38:54PM +0200, Wolfram Kriesing wrote : > i am using a global variable (curClass), > which is a reference to some class, > inside another class i want to change > the v
[PHP] PHP Auth problem
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 - -- 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]
[PHP] Please please please help!
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
[PHP] help with some nasty recursive algorithm
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... -- 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]
Re: [PHP] redirect to php problem
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 -- 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]
[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]
[PHP] International Jazz Competition held on the Internet
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 dont 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. -- 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]
[PHP] Re: redirect to php problem
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 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://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]
RE: [PHP] How do I use a .tar file?
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] -- 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]
[PHP] PHP versus ZOPE
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
Re: [PHP] How do I use a .tar file?
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 tarfile > > if it has a .tar.gz then gunzip filename > > 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 -- 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]
[PHP] sorting multi-dimensional arrays
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 -- 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]
Re: [PHP] How do I use a .tar file?
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? -- 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]
[PHP] code optimization
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 -- 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]
[PHP] Re: PHP versus ZOPE
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 -- 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]
[PHP] Re: Monitoring traffic
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 > -- 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]
[PHP] naming convention in php?
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 -- 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]