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

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

[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] 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

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] 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 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",

[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[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

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

[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] 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

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

[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[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

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: [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] 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

[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 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] 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] 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] 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 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

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 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

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] 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] 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] 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] 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. %

[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] 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

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: [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] 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: [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/

[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] 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

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] 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 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 ;) -

[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 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

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] 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] 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] 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 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: [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[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: [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: [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 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: [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 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 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] 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: [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] 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

[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: [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

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: [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: [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] 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: [Re: [PHP] PHP editor]

2004-04-15 Thread Jay Blanchard
[snip] 1 - By using spaces on php code, I assure that I (or others) can edit the script in any editor easily 2 - I use tabs(or no tabs at all) for html because size of output sent to browser is smaller this way. [/snip] That is not correct. Since PHP and HTML engines all ignore white space and

Re: [Re: [PHP] PHP editor]

2004-04-15 Thread Jorge Oliveira
1 - By using spaces on php code, I assure that I (or others) can edit the script in any editor easily 2 - I use tabs(or no tabs at all) for html because size of output sent to browser is smaller this way. Greg Donald wrote: On Thursday 15 April 2004 12:21 pm, Jorge Oliveira wrote: I use spa

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

2004-04-15 Thread Curt Zirzow
* Thus wrote Scott Fletcher ([EMAIL PROTECTED]): > Hi Again! > > > Problem is in the past, when we install MySQL on several different > occasion or date. We never got it to run because of different errors in > different places at different times. We got the impression that MySQL > require s

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

2004-04-15 Thread Jay Blanchard
[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://www.mysql.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.

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

2004-04-15 Thread Scott Fletcher
Hi Again! My company decided to junk DB2 from over a year ago and go with Relexus Linter. I haven't gotten around to using Linter yet because I was busy with developing a website but another employees have and wasn't satisfied with the delay in tech support, cost of support, no source of Prob

RE: [PHP] HTTP Authentication take so long, why??OT

2004-04-15 Thread Jay Blanchard
[snip] I am wondering why is the HTTP Authentication is taking so long to pop-up once the link/button is clicked. Like 2 minutes I'm using Apache and there is no PHP being used for HTTP Authentication stuffs as I thought it did. I thought one of you might know of this because of previous

Re: [Re: [PHP] PHP editor]

2004-04-15 Thread Greg Donald
On Thursday 15 April 2004 12:21 pm, Jorge Oliveira wrote: > I use spaces for php code and tabs for html. And the point of doing that is? -- Greg Donald [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] mysql_query won't work!!!

2004-04-15 Thread John Nichel
Jeff Ostapchuk wrote: ok, this same query, works EVERYWHERE ELSE, why won't it work now? it returns to me: Warning: Supplied argument is not a valid MySQL result resource $query_result = mysql_query("SELECT * FROM AotH_Users"); while ($row = mysql_fetch_array($query_result, MYSQL_NUM)){ Why don't

Re: [PHP] PHP editor

2004-04-15 Thread Curt Zirzow
* Thus wrote Greg Donald ([EMAIL PROTECTED]): > On Thursday 15 April 2004 12:32 pm, Curt Zirzow wrote: > > um.. preg_replace('/\s+/m', ' ', $html); > > > > > > btw, > > blindly removing space (even from html) isn't a wise > > thing todo. > > > > > > The function I posted only removes tabs, n

[PHP] HTTP Authentication take so long, why??

2004-04-15 Thread Scott Fletcher
Hi! I am wondering why is the HTTP Authentication is taking so long to pop-up once the link/button is clicked. Like 2 minutes I'm using Apache and there is no PHP being used for HTTP Authentication stuffs as I thought it did. I thought one of you might know of this because of previous e

Re: [PHP] PHP editor

2004-04-15 Thread Greg Donald
On Thursday 15 April 2004 12:15 pm, Chris Boget wrote: > > 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 redu

Re: [PHP] PHP editor

2004-04-15 Thread Greg Donald
On Thursday 15 April 2004 12:02 pm, Arthur Radulescu wrote: > Have already thought about this but would this not be too time consuming to > process this replacement on evey hit? > I am using a version of fast template much improved on a site which is > already very overloaded so this would mean add

Re: [PHP] PHP editor

2004-04-15 Thread Greg Donald
On Thursday 15 April 2004 12:32 pm, Curt Zirzow wrote: > um.. preg_replace('/\s+/m', ' ', $html); > > > btw, > blindly removing space (even from html) isn't a wise > thing todo. > > The function I posted only removes tabs, newlines, and carriage returns. It does not remove space characters

Re[4]: [PHP] PHP editor

2004-04-15 Thread Richard Davey
Hello Arthur, Thursday, April 15, 2004, 6:23:56 PM, you wrote: AR> I fully agree with you but as I have mentioned the first time Zend seems to AR> be to slow for fast editing... And sometimes it really takes too much from AR> the computer resources... You need a fast PC with a lot of memory (512

[PHP] SMTP Authentication with PHP

2004-04-15 Thread Mike Knittel
My SMTP server requires authentication when sending mail. How do I send SMTP authentication information when using the PHP mail() function? Thank you. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[Re: [PHP] PHP editor]

2004-04-15 Thread Jorge Oliveira
I think I am also sleeping :) My conclusion is that: -> for html is better using tabs because by using spaces, it will increase output to the browser; -> when coding php it's irrelevant because output is not parsed to browser. Jorge | cloreto.com -- PHP General Mailing List (http://www.php.net

Re: [PHP] PHP editor

2004-04-15 Thread Curt Zirzow
* Thus wrote 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 a

Re: Re[2]: [PHP] PHP editor

2004-04-15 Thread Arthur Radulescu
I fully agree with you but as I have mentioned the first time Zend seems to be to slow for fast editing... And sometimes it really takes too much from the computer resources... > I spend around 8 to 10 hours a day inside of Zend Studio (it's open > behind this email window as I type) and I couldn'

Re[2]: [PHP] PHP editor

2004-04-15 Thread Richard Davey
Hello Chris, Thursday, April 15, 2004, 6:15:55 PM, you wrote: CB> Not to be too pedantic, but you could probably reduce the above CB> to a single line function: Not to be even more pedantic, but isn't this entirely pointless anyway? Modems have long compressed ASCII streams - that 50KB of blank

[Re: [PHP] PHP editor]

2004-04-15 Thread Jorge Oliveira
1 - If we are talking about php code, it's irrelevant, in terms of size, using spaces or tabs, because they are not part of output. 2 - If, on other and, we are talking about html created by the php code, the case is completely different because output is parsed to the browser, so size will incr

Re: [PHP] PHP editor

2004-04-15 Thread Chris Boget
> i guess you didn't read the second part of my email that started after > the "ON THE OTHER HAND" line. Ok, yes, I am a retard. :) Chris -never mind me. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re[2]: [PHP] PHP editor

2004-04-15 Thread Richard Davey
Hello Lowell, Thursday, April 15, 2004, 4:00:03 PM, you wrote: LA> I just installed Zend Studio because I was able to buy it through Adobe LA> at a discount when upgrading GoLive. I've been comfortable working in LA> the source editor of GoLive, and the new version has improved support LA> for PH

Re: [PHP] transformation to htm file when downloaded

2004-04-15 Thread Curt Zirzow
* Thus wrote Gabino Travassos ([EMAIL PROTECTED]): > Hello All > > I'm just starting to get PHP, and I'm wondering about the security of the > code I write. It _seems_ that when I try to download the PHP file directly > (like using Save Target As...) it will download only as an HTML file and my >

Re[3]: [PHP] PHP editor

2004-04-15 Thread Tom Rogers
Hi, Friday, April 16, 2004, 3:06:09 AM, you wrote: TR> Hi, TR> Friday, April 16, 2004, 2:48:03 AM, you wrote: CWP>> Arthur Radulescu CWP>> on Thursday, April 15, 2004 4:48 AM said: >>> Not exactly... I was not reffering to PHP files... The white spaces >>> from a t

[PHP] Problem with livestat

2004-04-15 Thread Peter Hansen
Hello i need some help with my battlefield livestat i have to 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 wan

RE: [PHP] PHP editor

2004-04-15 Thread Chris W. Parker
Arthur Radulescu on Thursday, April 15, 2004 10:02 AM said: >> Remove all whitespace from the final HTML, then all this doesn't >> matter. [snip function] > Have already thought about this but would this not be too time > consuming to process this replacement on e

RE: [PHP] PHP editor

2004-04-15 Thread Chris W. Parker
Chris Boget on Thursday, April 15, 2004 9:59 AM said: >>> Not exactly... I was not reffering to PHP files... The white spaces >>> from a template file will make double the size of certain files when >>> they are sent to the browser... So a page of 50 k might have 100

Re: [PHP] PHP editor

2004-04-15 Thread Chris Boget
> 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 to a single line function: function cleanFinalOutput($

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

2004-04-15 Thread Ford, Mike [LSS]
On 15 April 2004 16:26, David T-G wrote: > Hi, all -- > > When I move_uploaded_file() a file into place, I want to give it the > correct permissions; by default they are 600 (rw-/---/--). I already > have the umask set correctly for any given situation in > anticipation of > creating directories

Re: [PHP] PHP editor

2004-04-15 Thread Arthur Radulescu
> Remove all whitespace from the final HTML, then all this doesn't matter. > > function cleanFinalOutput($html){ > $return = eregi_replace("\n", "", $html); > $return = eregi_replace("\r", "", $return); > return eregi_replace("\t", "", $return); > } Have already thought about this but would

Re[2]: [PHP] PHP editor

2004-04-15 Thread Tom Rogers
Hi, Friday, April 16, 2004, 2:48:03 AM, you wrote: CWP> Arthur Radulescu CWP> on Thursday, April 15, 2004 4:48 AM said: >> Not exactly... I was not reffering to PHP files... The white spaces >> from a template file will make double the size of certain files when >>

Re: [PHP] PHP editor

2004-04-15 Thread Greg Donald
On Thursday 15 April 2004 11:58 am, Chris Boget wrote: > Why does it sound totally wrong? A tab is a single character whereas > 2 spaces are 2 characters. > > 1 x 50k = 50k > 2 x 50k = 100k > > Try the following code: > > echo str_repeat( " ", 5 ); > > or > > echo str_repeat( "\t", 5

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

2004-04-15 Thread Ford, Mike [LSS]
On 15 April 2004 17:26, David T-G wrote: > Mike, et al -- > > ...and then Ford, Mike [LSS] said... > % > % On 15 April 2004 16:26, David T-G wrote: > % > % > but chmod() needs a permissions setting rather than a umask. % > > % > The challenge is in representing this as octal. With

Re: [PHP] PHP editor

2004-04-15 Thread Chris Boget
> > Not exactly... I was not reffering to PHP files... The white spaces > > from a template file will make double the size of certain files when > > they are sent to the browser... So a page of 50 k might have 100 K > > because of those white spaces instead of tabs... For a dial up > > connection t

  1   2   >