RE: [PHP] PHP editor]

2004-04-15 Thread Chris W. Parker
Jorge Oliveira on Thursday, April 15, 2004 10:32 AM said: > -> for html is better using tabs because by using spaces, it will > increase output to the browser; only if you use more than one space per indent. chris. -- PHP General Mailing List (http://www.php.net

Re: [PHP] Good source of knowledge info for MySQL newbie?

2004-04-15 Thread Scott Fletcher
Well, I mean more beside this one... "Jay Blanchard" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] [snip] So, I have a question here. Do anyone of you know of a great source of knowledge somewhere on the Internet that would make this as easy as ABC for us newbie? [/snip] http:/

RE: [PHP] Good source of knowledge info for MySQL newbie?

2004-04-15 Thread Jay Blanchard
[snip] Well, I mean more beside this one... [/snip] Have you Googled? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [Re: [PHP] PHP editor]

2004-04-15 Thread Arthur Radulescu
PHP is one thing and HTML is another thing.. Check the google source code and you'll that this is how they have it... I assume the reason is to reduce the size of the page... --- > That is not correct. Since PHP and HTML engines all ignore white space > and comments it does not ma

RE: [Re: [PHP] PHP editor]

2004-04-15 Thread Jay Blanchard
[snip] PHP is one thing and HTML is another thing.. Check the google source code and you'll that this is how they have it... I assume the reason is to reduce the size of the page... [snip] Your assumption about Google would be incorrect, it has nothing to do with page size as most of their pages a

[PHP] Shell_exec

2004-04-15 Thread Peter Hansen
Hello i need some help with my battlefield livestat i have two website www.flashwebb.se and www.flashwebb.com and the help i need is on the www.flashwebb.com site You can look here http://www.flashwebb.se/bf1942live/vietnam.pl and see it on action so now i have download the php nuke and i wa

Re: [PHP] Good source of knowledge info for MySQL newbie?

2004-04-15 Thread Scott Fletcher
Yea, we have Googled. We found no result to a few problems and we found some different answers to one problem but they don't fixed the problem. This showed that we need to get a better understanding of how things work behind the scene. We know how to those things with PHP, Apache, Compiliers, etc

RE: [PHP] Good source of knowledge info for MySQL newbie?

2004-04-15 Thread Jay Blanchard
[snip] Yea, we have Googled. We found no result to a few problems and we found some different answers to one problem but they don't fixed the problem. This showed that we need to get a better understanding of how things work behind the scene. We know how to those things with PHP, Apache, Compilie

Re: [PHP] PHP editor

2004-04-15 Thread Greg Donald
On Thursday 15 April 2004 12:57 pm, Curt Zirzow wrote: > ok, then: s/[\r\n\t]//m; > > either way, you're blindly removing white space, which *does* matter > in certain cases. What case would that be? The function I posted is completely safe. I've been using it for a long time without any issues

Re: [Re: [PHP] PHP editor]

2004-04-15 Thread Arthur Radulescu
What I meant was that it is obiously that eliminating the spaces but not by a blind replacement, the new lines characters and even the tabs will reduce the size of the page which will result in a faster loading and less bandwidth consumed... And the example was google... Am I wrong with anything he

RE: [PHP] Good source of knowledge info for MySQL newbie?

2004-04-15 Thread Chris W. Parker
Scott Fletcher on Thursday, April 15, 2004 11:37 AM said: > Yea, we have Googled. We found no result to a few problems and we > found some different answers to one problem but they don't fixed the > problem. This showed that we need to get a better understanding of

Re: [Re: [PHP] PHP editor]

2004-04-15 Thread Travis Low
You are correct, but I believe the bandwidth savings is small. What I usually do for my apps is allow the admin to configure whitespace trimming. If configured, I only remove whitespace from the beginning of the line to the first non-whitespace character. This reduces the code size somewhat,

Re: [PHP] Good source of knowledge info for MySQL newbie?

2004-04-15 Thread Scott Fletcher
Is the MySQL mailing list at www.mysql.com FletchSOD "Jay Blanchard" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] [snip] Yea, we have Googled. We found no result to a few problems and we found some different answers to one problem but they don't fixed the problem. This showed

Re: [PHP] PHP editor

2004-04-15 Thread John W. Holmes
From: "Chris Boget" <[EMAIL PROTECTED]> > > function cleanFinalOutput($html){ > > $return = eregi_replace("\n", "", $html); > > $return = eregi_replace("\r", "", $return); > > return eregi_replace("\t", "", $return); > > } > > Not to be too pedantic, but you could probably reduce the above >

RE: [PHP] Good source of knowledge info for MySQL newbie?

2004-04-15 Thread Jay Blanchard
[snip] Is the MySQL mailing list at www.mysql.com [/snip] "Yes", he says, holding the young technician's hand and leading him there. "http://www.apache.org/foundation/mailinglists.html is where you'll find the Apache lists, young WeedWhacker". -- PHP General Mailing List (http://www.php.net/

Re[2]: [PHP] PHP editor

2004-04-15 Thread Richard Davey
Hello Greg, Thursday, April 15, 2004, 7:35:20 PM, you wrote: GD> All the styles and javascript work fine. HTML parsers don't give a rats ass GD> about newlines, tabs, and carriage returns so why have them.. Makes the GD> output easier to compress as well. Got to agree here, I remember "back in

Re: [Re: [PHP] PHP editor]

2004-04-15 Thread Arthur Radulescu
> You are correct, but I believe the bandwidth savings is small. > > What I usually do for my apps is allow the admin to configure whitespace > trimming. If configured, I only remove whitespace from the beginning of the > line to the first non-whitespace character. This reduces the code size > so

Re: [PHP] Good source of knowledge info for MySQL newbie?

2004-04-15 Thread Scott Fletcher
WeedWhacker??? You're strange!!! Hope the MySQL mailing list will be more than helpful. Nah, I don't need to join the Apache mailing list but thanks anyway. Apache isn't that difficult as it look. :-) We have the Apache reference book too. FletchSOD "Jay Blanchard" <[EMAIL PROTECTED]> wrote

Re: [PHP] Good source of knowledge info for MySQL newbie?

2004-04-15 Thread John Nichel
Scott Fletcher wrote: Is the MySQL mailing list at www.mysql.com *sigh* http://lists.mysql.com/ -- *** * _ __ __ __ _ * John Nichel * * | |/ /___ __ \ \/ /__ _ _| |__ ___ __ ___ _

Re: [PHP] Good source of knowledge info for MySQL newbie?

2004-04-15 Thread John Nichel
Jay Blanchard wrote: [snip] Is the MySQL mailing list at www.mysql.com [/snip] "Yes", he says, holding the young technician's hand and leading him there. "http://www.apache.org/foundation/mailinglists.html is where you'll find the Apache lists, young WeedWhacker". Okay, but where is the maili

Re: [PHP] PHP editor

2004-04-15 Thread Greg Donald
On Thursday 15 April 2004 01:49 pm, Richard Davey wrote: > The browser doesn't give a > monkeys about whitespace et all. Having said that, stripping it vs. > leaving it is virtually irrelevant too and I'm shocked why so many > skilled people on this list actually care-less about it :) There is no >

Re: [PHP] PHP editor

2004-04-15 Thread Greg Donald
On Thursday 15 April 2004 01:38 pm, John W. Holmes wrote: > Certainly don't need to fire up the regex engine. > > return str_replace(array("\r","\n","\t"),'',$html); Sweet, didn't know you pass it an array. Thx! -- Greg Donald [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/

RE: [PHP] Good source of knowledge info for MySQL newbie?

2004-04-15 Thread Jay Blanchard
[snip] Okay, but where is the mailing lists to ask about mailing lists? ;) [/snip] *sigh* https://mailing.lists.org/subscriptions.to/mailing.lists.php j/k ;) -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Socket Server problem

2004-04-15 Thread René Fournier
I'm working through Ori Staub's excellent Socket Server tutorial (http://www.zend.com/zend/tut/tutorial-staub3.php), but can't get the sample server working. I've read the user comments and fixed a couple things, but still, no dice. Here's the error I receive: [Valhalla:~/Sites/test] rene% /usr

Re: [PHP] Good source of knowledge info for MySQL newbie?

2004-04-15 Thread Scott Fletcher
Well, this one say the website could not be found... :-) "Jay Blanchard" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] [snip] Okay, but where is the mailing lists to ask about mailing lists? ;) [/snip] *sigh* https://mailing.lists.org/subscriptions.to/mailing.lists.php j/k ;) -

Re: [PHP] Web Architecture - MVC vs Workflow (PHP)

2004-04-15 Thread Brent Baisley
MVC is a way of separating your data from your logic from your presentation. It's more of a technique than a framework, although many frameworks use the MVC technique. Aside from that, I think it is the best way of developing, especially for web based applications since the presentation layer i

RE: [PHP] Good source of knowledge info for MySQL newbie?

2004-04-15 Thread Chris W. Parker
Scott Fletcher on Thursday, April 15, 2004 12:12 PM said: > Well, this one say the website could not be found... :-) ack! | | | | \_/ > https://mailing.lists.org/subscriptions.to/mailing.lists.php > > j/k ;) /`\ | | | he was just kidd

RE: [PHP] Socket Server problem

2004-04-15 Thread Jay Blanchard
[snip] PHP Notice: Undefined variable: client in /Users/rene/Sites/test/s9.php on line 30 Here's my code: [/snip] I tried counting the lines, but could not determine which one was line 30. Is this it... if ($client[$i]['sock'] != null) $read[$i+1] = $client[$i]['sock']; If so $client is not

[PHP] inovative award

2004-04-15 Thread Andy B
just wondering if there is a website where i can find out everything needed to know on that inovation award thing... -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] inovative award

2004-04-15 Thread Jay Blanchard
[snip] just wondering if there is a website where i can find out everything needed to know on that inovation award thing... *slaps foread!* Do you people read? http://www.phpclasses.org/award/innovation/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/

Re: [PHP] PHP editor

2004-04-15 Thread Curt Zirzow
* Thus wrote Greg Donald ([EMAIL PROTECTED]): > On Thursday 15 April 2004 12:57 pm, Curt Zirzow wrote: > > ok, then: s/[\r\n\t]//m; > > > > either way, you're blindly removing white space, which *does* matter > > in certain cases. > > What case would that be? The function I posted is completely s

Re: [Re: [PHP] PHP editor]

2004-04-15 Thread Curt Zirzow
* Thus wrote Arthur Radulescu ([EMAIL PROTECTED]): > PHP is one thing and HTML is another thing.. Check the google source code > and you'll that this is how they have it... I assume the reason is to reduce > the size of the page... I very much doubt that, if they were so concerned about WS then th

Re: [PHP] Good source of knowledge info for MySQL newbie?

2004-04-15 Thread Scott Fletcher
Ugh! I have been had :-) "Chris W. Parker" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] Scott Fletcher on Thursday, April 15, 2004 12:12 PM said: > Well, this one say the website could not be found... :-) ack! | | | | \_/ > h

Re: [PHP] Good source of knowledge info for MySQL newbie?

2004-04-15 Thread Scott Fletcher
I have been had because I thought j/k that Jay meant had to do with "Sigh!" when Curt Z. asked a question... "Chris W. Parker" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] Scott Fletcher on Thursday, April 15, 2004 12:12 PM said: > Well, this one say

[PHP] alternating row color--newbie help

2004-04-15 Thread Montagna, Dan
Hi everyone, Well, I've hit all the forums and tried it a few different ways, but I still can't get this code to work. At this point it just shows me an empty table with column headings. I am new and still experimenting, but can someone tell me what is wrong here? This is pretty much straight

Re: [PHP] umask() and chmod()

2004-04-15 Thread David T-G
Mike, et al -- Responding to your second one first... ...and then Ford, Mike [LSS] said... % % On 15 April 2004 16:26, David T-G wrote: % % > When I move_uploaded_file() a file into place, I want to give it the ... % > but chmod() needs a permissions setting rather than a umask. %

RE: [PHP] alternating row color--newbie help

2004-04-15 Thread Jay Blanchard
[snip] I'd appreciate any hints on this... [/snip] Try this (verbose) /* change the row color */ if(0 == $rc){ $colorClass = "white"; echo "\n"; $rc++; } else { $colorClass = "grey"; echo "\n"; $rc--; } -- PHP General Mailing List (http://www.p

Re: [PHP] PHP editor

2004-04-15 Thread Curt Zirzow
* Thus wrote John W. Holmes ([EMAIL PROTECTED]): > From: "Chris Boget" <[EMAIL PROTECTED]> > > > > function cleanFinalOutput($html){ > > > $return = eregi_replace("\n", "", $html); > > > $return = eregi_replace("\r", "", $return); > > > return eregi_replace("\t", "", $return); > > > } > > >

Re: [PHP] umask() and chmod()

2004-04-15 Thread David T-G
Mike -- ...and then Ford, Mike [LSS] said... % % On 15 April 2004 17:26, David T-G wrote: % % > ...and then Ford, Mike [LSS] said... % > % % > % I'm not sure, however, that this is a totally foolproof way % > of doing it, as % > % it would fail with any permission set

RE: [PHP] alternating row color--newbie help

2004-04-15 Thread Chris W. Parker
Montagna, Dan on Thursday, April 15, 2004 1:02 PM said: > Hi everyone, hi. > for($i = 0; $i < $numofrows; $i++) { > $row = mysql_fetch_array($result); //get a row from our result set > if($i % 2) { //this means if there is a remainder > echo "\n"; >

Re: [PHP] alternating row color--newbie help

2004-04-15 Thread Raquel Rice
On Thu, 15 Apr 2004 16:02:14 -0400 "Montagna, Dan" <[EMAIL PROTECTED]> wrote: > > I'd appreciate any hints on this... > > Thanks > > Dan I created a function (so I don't have to rewrite it all the time) for doing this very thing. function everyOtherRow($i, $oddColor = '#e0', $evenCol

[PHP] File upload fails over 500k

2004-04-15 Thread Gawain
Hi all, A script of mine is having problems file uploads over 500k. I've read the documentation and have written scripts previously that uploaded large files without problems. I'm sure there's something pesky that I've missed, but I can't figure out what it is. The script behaves the same way

Re: [PHP] alternating row color--newbie help

2004-04-15 Thread Daniel Clark
Are you sure there is data in "name, phonenumber, age" ?? > Well, I've hit all the forums and tried it a few different ways, but I > still > can't get this code to work. At this point it just shows me an empty > table > with column headings. I am new and still experimenting, but can someone >

[PHP] File upload fails over 500k (solved)

2004-04-15 Thread Gawain
Hi all, As usual, it's something simple. A long time ago when I had originally coded the form, I left a MAX_FILE_SIZE directive in the HTML form. I'm using templates so my code is separate from the HTML... I was so totally focused on finding a code-based solution, I forgot to look right under

Re: [PHP] alternating row color--newbie help

2004-04-15 Thread John W. Holmes
Montagna, Dan wrote: [snip] I'd appreciate any hints on this... See FAQ #38 here: http://forums.devshed.com/t25412/s.html -- ---John Holmes... Amazon Wishlist: www.amazon.com/o/registry/3BEXC84AB3A5E/ php|architect: The Magazine for PHP Professionals – www.phparch.com -- PHP General Mailing Lis

[PHP] Formatting phone numbers?

2004-04-15 Thread BOOT
Thanks for any help, even if you just suggest built in functions to look at. I'm looking for a way to take a 7 digit number and put it into xxx- format. So basically the logic is to count 3 characters into $number and insert a "-" there. Thanks! -- PHP General Mailing List (http://www.php

Re: [PHP] Formatting phone numbers?

2004-04-15 Thread Rob Ellis
On Thu, Apr 15, 2004 at 04:31:09PM -0500, BOOT wrote: > Thanks for any help, even if you just suggest built in functions to look at. > > I'm looking for a way to take a 7 digit number and put it into xxx- > format. > > So basically the logic is to count 3 characters into $number and insert a

[PHP] Re: SMTP Authentication with PHP

2004-04-15 Thread Manuel Lemos
Hello, On 04/15/2004 02:24 PM, Mike Knittel wrote: My SMTP server requires authentication when sending mail. How do I send SMTP authentication information when using the PHP mail() function? The mail() function does not support authentication. You may want to try this class that comes with a wra

Re: [PHP] Formatting phone numbers?

2004-04-15 Thread John W. Holmes
Rob Ellis wrote: On Thu, Apr 15, 2004 at 04:31:09PM -0500, BOOT wrote: >> I'm looking for a way to take a 7 digit number and put it into xxx- format. So basically the logic is to count 3 characters into $number and insert a "-" there. substr_replace($string, '-', 3, 0); Won't that replace the n

Re: [PHP] File upload fails over 500k

2004-04-15 Thread Richard Davey
Hello Gawain, Thursday, April 15, 2004, 9:47:50 PM, you wrote: G> I have no idea where the apparent 500k choke point is coming from... Any ideas? Check the MAX_FILE_SIZE setting in your upload form - some people claim it has no relevance, but they're wrong :) -- Best regards, Richard Davey h

Re: [PHP] File upload fails over 500k (solved)

2004-04-15 Thread Richard Davey
Hello Gawain, Thursday, April 15, 2004, 10:04:34 PM, you wrote: G> As usual, it's something simple. A long time ago when I had G> originally coded the form, I left a MAX_FILE_SIZE directive in the G> HTML form. I'm using templates so my code is separate from the HTML... Rats.. next time I'll re

Re[2]: [PHP] PHP editor

2004-04-15 Thread Richard Davey
Hello Greg, Thursday, April 15, 2004, 7:57:12 PM, you wrote: GD> Well at my shop more efficient = right and less efficient = wrong. Passing a potentially huge string through a replacement function for every single page doesn't really = efficient in my shop. YMMV. -- Best regards, Richard Dave

[PHP] Syntax error (missing operator) in query expression

2004-04-15 Thread AgfTech Lists
Hi All Following is the INSERT statement I am executing, snip >> INSERT INTO customer (email, password, handle, fname, lname, company, tax_id, addr1, addr2, city, state, zipcode, country, dayphone, evephone, fax, paymethod, cardname, cardnum, expmonth,expyear ,ship_addr

Re: [PHP] Syntax error (missing operator) in query expression

2004-04-15 Thread Curt Zirzow
* Thus wrote AgfTech Lists ([EMAIL PROTECTED]): > Hi All > > Following is the INSERT statement I am executing, > > > snip >> > > INSERT INTO customer (email, password, handle, fname, lname, company, > tax_id, addr1, addr2, city, state, zipcode, country, dayphone, evepho

Re: [PHP] Syntax error (missing operator) in query expression

2004-04-15 Thread Marek Kilimajer
This answers it all: http://sk.php.net/addslashes#28429 AgfTech Lists wrote: Hi All Following is the INSERT statement I am executing, snip >> INSERT INTO customer (email, password, handle, fname, lname, company, tax_id, addr1, addr2, city, state, zipcode, country, dayph

[PHP] Sending document to printer...

2004-04-15 Thread Alex Ortiz
Hi. I'm looking for some ideas to send data directly to printer, considering the user runs a browser (client side), while the PHP code runs at apache server (server side). PHP has some printing functions, but only for the Windows version. My HTML/PHP program process some input data from a form, t

Re: [PHP] PHP editor

2004-04-15 Thread Greg Donald
Richard Davey wrote: Passing a potentially huge string through a replacement function for every single page doesn't really = efficient in my shop. YMMV. We use Turke MMCache so it's not every single page. Besides that CPUs are way cheaper than bandwidth. -- Greg Donald [EMAIL PROTECTED] -- PHP Ge

Re[2]: [PHP] PHP editor

2004-04-15 Thread Richard Davey
Hello Greg, Friday, April 16, 2004, 1:44:57 AM, you wrote: >> Passing a potentially huge string through a replacement function for >> every single page doesn't really = efficient in my shop. YMMV. GD> We use Turke MMCache so it's not every single page. GD> Besides that CPUs are way cheaper than

[PHP] binary data in php

2004-04-15 Thread Anthony Ritter
Greets, Register globals are to off - however the files will not upload. At wit's end - help please! Thank all in advance. TR This file has the following Database ID: $id"; echo ""; echo "Click to view file"; MYSQL_CLOSE(); } else { // else show the fo

Re: [PHP] binary data in php

2004-04-15 Thread John W. Holmes
Anthony Ritter wrote: Greets, Register globals are to off - however the files will not upload. At wit's end - help please! Thank all in advance. TR // connect to the database // (you may have to adjust the hostname,username or password) MYSQL_CONNECT("localhost","root",

Re: [PHP] Syntax error (missing operator) in query expression

2004-04-15 Thread AgfTech Lists
Got it from there! Thanks! Regards Aman On Thu, 2004-04-15 at 18:27, Marek Kilimajer wrote: > This answers it all: http://sk.php.net/addslashes#28429 > > AgfTech Lists wrote: > > Hi All > > > > Following is the INSERT statement I am executing, > > > > > > snip >> > >

Re: [PHP] binary data in php

2004-04-15 Thread Anthony Ritter
John W. Holmes <[EMAIL PROTECTED]> wrote in message: > Remember... we're laughing with you, not at you. You forgot to call > mysql_query() in your code. :) . Hmmm... I wish it was as simple as that. I inserted the mysql_query() below but it still doesn't upload the file nor does

Re: [PHP] binary data in php

2004-04-15 Thread John W. Holmes
Anthony Ritter wrote: I inserted the mysql_query() below but it still doesn't upload the file nor does it throw an error. [snip] // Create the SQL query. $sql = "INSERT INTO binary_data SET filename = '$uploadname', filetype = '$uploadtype', description = '$uploaddesc', bin_data

[PHP] Encrypting Source

2004-04-15 Thread Clifford W. Hansen
Greetingz, We are looking for some encryption software for our PHP source code, We know of a couple but wanto find out which are good and which are not... Till We Meet Again... Clifford W. Hansen Operations Support Developer Aspivia (Pty) Ltd. +27 (0) 11 259-1150 (Switchboard) +27 (0) 11 259-10

Re: [PHP] Compile PHP question

2004-04-15 Thread Jason Wong
On Thursday 15 April 2004 20:49, Enrico Weigelt wrote: > * Dave Carrera <[EMAIL PROTECTED]> [2004-04-15 11:14:45 +0100]: > > Hi List, > > > > How do I compile php without apache, with mysql (client is installed) as > > cli. > > ./configure --enable-cli --with-mysql I believe cgi is enabled by def

Re: [PHP] Compile PHP question

2004-04-15 Thread Red Wingate
Wrong one here: http://de2.php.net/manual/en/features.commandline.php [quote] The CLI SAPI was released for the first time with PHP 4.2.0, but was still experimental and had to be explicitly enabled with --enable-cli when running ./configure. Since PHP 4.3.0 the CLI SAPI is no longer experiment

<    1   2