Re: [PHP] mysql connect function in my class

2004-04-15 Thread Aidan Lister
I suggest you take everyone's advice and use one of the thousand database abstraction objects. At the very least, look at how they are put together. This one is an excellent example: http://pear.php.net/package/DB "Andy B" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > makes sinc

Re: [PHP] mysql_fetch_array problem? O.o

2004-04-15 Thread Burhan Khalid
Jeff Ostapchuk wrote: Ok, I have no clue what version of PHP I have installed, 4.??.??, and I have like the newest version of MySQL insatlled, and PHP and MySQL work fine together, excpet when I use mysql_fetch_row($query) then I have problems, mysql_fetch_array($query) works fine, but not mysql

[PHP] OOP variables

2004-04-15 Thread Jarratt Ingram
Hello, I was wondering if somebody would mind explaining this to me, is there a big difference or requirement to pre defining variables your going to use in a class eg: class name { $var1 = ''; $var2 = ''; function blah(){ $var2 }

Re: [PHP] OOP variables

2004-04-15 Thread Richard Harb
http://www.php.net/manual/en/language.oop.php states: [quote] In PHP 4, only constant initializers for var variables are allowed. To initialize variables with non-constant values, you need an initialization function which is called automatically when an object is being constructed from the class.

[PHP] Maths not working.. or is it me?

2004-04-15 Thread Tristan . Pretty
Im trying to implement some really simply credit card encryption... I know it's not perfect, but it's a stop gap measure until I do this properly... however... To Encrypt before I put into my DB, I'm using this formula... $encrypt = $CardNumber / ($ExpiryYear * 41.9); (41.9 is just a random No to

RE: [PHP] Re: Junk characters in e-mail

2004-04-15 Thread Anders Norrbring
> Subject: [PHP] Re: Junk characters in e-mail > > Are those supposed to be the swedish characters and you get junk instead? > What does the header look like? Are you trying to have the email encoded > in > UTF - 8? Are you sending out the mail with mail or mb_send_mail? Need a > few more deta

RE: [PHP] Maths not working.. or is it me?

2004-04-15 Thread Hawkes, Richard
I don't know what you're doing wrong... But why not use base64_encode/decode, if all you're worried about is not storing the details in plain text... -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: 15 April 2004 10:59 To: [EMAIL PROTECTED] Subject: [PHP] Maths n

[PHP] Compile PHP question

2004-04-15 Thread Dave Carrera
Hi List, How do I compile php without apache, with mysql (client is installed) as cli. The reason I ask is that I would like to do some command line scripting using php as my preferred scripting language and I don’t have apache loaded on the server as this is going to be on a dedicated email serv

[PHP] Re: Compile PHP question

2004-04-15 Thread David Robley
[EMAIL PROTECTED] (Dave Carrera) wrote in news:[EMAIL PROTECTED]: > Hi List, > > How do I compile php without apache, with mysql (client is installed) > as cli. > > The reason I ask is that I would like to do some command line > scripting using php as my preferred scripting language and I don’t

[PHP] PHP editor

2004-04-15 Thread Arthur Radulescu
Hello! This might sound like a stupid question but could anyone recommand a good PHP editor... I have used some editors until now but each one has some problems... Right now I am using PHPed which is pretty good but oine of the major problems is that it does fills the tabs with spaces which will

[PHP] Re: PHP editor

2004-04-15 Thread pete M
I use dreameaver. Arthur Radulescu wrote: Hello! This might sound like a stupid question but could anyone recommand a good PHP editor... I have used some editors until now but each one has some problems... Right now I am using PHPed which is pretty good but oine of the major problems is that it d

RE: [PHP] Re: PHP editor

2004-04-15 Thread Nunners
www.chami.com/htmlkit/ Excellent product Nunners > -Original Message- > From: pete M [mailto:[EMAIL PROTECTED] > Sent: 15 April 2004 11:50 > To: [EMAIL PROTECTED] > Subject: [PHP] Re: PHP editor > > I use dreameaver. > > Arthur Radulescu wrote: > > Hello! > > > > > > This might sou

Re: [PHP] PHP editor

2004-04-15 Thread Vicente Werner
El Thursday 15 April 2004 10:28, Arthur Radulescu escribió: > Hello! > > > This might sound like a stupid question but could anyone recommand a good > PHP editor... > I have used some editors until now but each one has some problems... > > Right now I am using PHPed which is pretty good but oine of

RE: [PHP] unexpected $ in ... WTF?

2004-04-15 Thread Ford, Mike [LSS]
On 14 April 2004 21:30, Brian V Bonini wrote: > Parse error: parse error, unexpected $ in /foo/bar/foo.php4 on line > 150 Just to add to previous responses, '$' is PHP's unhelpful notation for "end of file" (think regex end-of-string anchor, if it helps!). Cheers! Mike ---

RE: [PHP] PHP version usage statistics?

2004-04-15 Thread Ford, Mike [LSS]
On 15 April 2004 06:18, Curt Zirzow wrote: > * Thus wrote Jeffrey Tavares ([EMAIL PROTECTED]): > > netcraft shows how many servers have php, but nothing specific about > > versions. Maybe I'm wrong, but I checked all over netcraft's site. > > Sorry if I put ya on a bad lead. I could have swore th

Re: [PHP] PHP editor

2004-04-15 Thread Jorge Oliveira
Hi, Filling tabs with spaces is a directive for good programming - see http://pear.php.net If you want a good editor you can try EditPlus - almost as fast as notepad :) Regards, Jorge | cloreto.com Arthur Radulescu wrote: Hello! This might sound like a stupid question but could anyone reco

RE: [PHP] Maths not working.. or is it me?

2004-04-15 Thread Ford, Mike [LSS]
On 15 April 2004 10:59, [EMAIL PROTECTED] wrote: > Im trying to implement some really simply credit card encryption... > I know it's not perfect, but it's a stop gap measure until I do this > properly... however... > > To Encrypt before I put into my DB, I'm using this formula... > $encrypt = $C

Re: [PHP] PHP editor

2004-04-15 Thread Arthur Radulescu
It might be a directive for good programming but as long as this might double the size of a resulted page this is not good for me. Thanks anyway. Arthur > Filling tabs with spaces is a directive for good programming - see > http://pear.php.net > > If you want a good editor you can try EditPlus

Re: [PHP] PHP editor

2004-04-15 Thread Robert Cummings
On Thu, 2004-04-15 at 07:14, Arthur Radulescu wrote: > It might be a directive for good programming but as long as this might > double the size of a resulted page this is not good for me. Thanks anyway. Sounds like you suffer from no-accelerator-itis. Using one of the PHP accelerators will make wh

RE: [PHP] Session confusion again :( - Thanks!

2004-04-15 Thread Ford, Mike [LSS]
On 14 April 2004 17:53, Paul Fine wrote: > Thanks guys but I have register globals ON so once the > session variable is > defined I should be able to address it without specifying $_SESSION ? I don't think the documentation is clear on this point -- it may be that the association between the glob

Re[2]: [PHP] PHP editor

2004-04-15 Thread Richard Davey
Hello Robert, Thursday, April 15, 2004, 12:34:09 PM, you wrote: RC> Sounds like you suffer from no-accelerator-itis. Using one of the PHP RC> accelerators will make whitespace concerns pointless since they operate Not everyone can do this though Rob, I certainly cannot employ any kind of PHP acc

Re: [PHP] PHP editor

2004-04-15 Thread Arthur Radulescu
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 this means a lot even

Re: [PHP] Session confusion again :( - Thanks!

2004-04-15 Thread Richard Harb
Actually for me it isn't unclear at all: The (super-) global variables are created when php starts working on your script. That pesky function/ini parameter (register_globals=on) is just a replacement for an extract() on each of the global vars just then. Whatever you do later with any of the va

RE: [PHP] PHP editor

2004-04-15 Thread electroteque
the htmlkit looks hot, although its licenced, work has a shitty copy of homesite 4 licences, i doubt i can convince them, i am using phpedit, although does it turn tabs into spaces ?? > -Original Message- > From: Arthur Radulescu [mailto:[EMAIL PROTECTED] > Sent: Thursday, April 15, 2004 9

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

2004-04-15 Thread Tariq Murtaza
Hi Gurus. Hope everyone be fine there Can someone shet some light on best web architecture (framework) based on workflow. Do you really think that MVC will do the work? and is the best architecture? Comments are welcome.. Regards, Tariq

[PHP] Re: PHP editor

2004-04-15 Thread pete M
I code with pencil and paper then scan it with OCR ;-)) Arthur Radulescu wrote: Hello! This might sound like a stupid question but could anyone recommand a good PHP editor... I have used some editors until now but each one has some problems... Right now I am using PHPed which is pretty good but

[PHP] php dateadd function?

2004-04-15 Thread Angelo Zanetti
Hi all, I have found this code that is supposedly meant to be used for a dateadd function. I only need it for the adding of days, my problem is that it doesnt validate when adding days at the end of the month. eg: march 31 and the I add 2 days is meant to return april 2. But it returns March 33.

RE: [PHP] php dateadd function?

2004-04-15 Thread Ford, Mike [LSS]
On 30 April 2004 13:23, Angelo Zanetti wrote: > Hi all, > > I have found this code that is supposedly meant to be used > for a dateadd > function. I only need it for the adding of days, my problem is that it > doesnt validate when adding days at the end of the month. eg: > > march 31 and the I a

Re: [PHP] Re: PHP editor

2004-04-15 Thread Richard Harb
Finally somebody else who does it that way Unfortunately most of the $ signs usually get messed up... So ... which ocr program do you use / recommend for that? :) Thursday, April 15, 2004, 2:12:44 PM, you wrote: > I code with pencil and paper then scan it with OCR ;-)) -- PHP General Mail

Re: [PHP] Re: PHP editor

2004-04-15 Thread pete M
>> Unfortunately most of the $ signs usually get messed up... Because I'm in the UK I use £ instead of $ and do a global search and replace Richard Harb wrote: Finally somebody else who does it that way Unfortunately most of the $ signs usually get messed up... So ... which ocr program do you u

RE: [PHP] php dateadd function?

2004-04-15 Thread Angelo Zanetti
Hi Mike, I actually changed the return statement to return the date in a format that is different from the mktime format, so that would explain it. thanx... -Original Message- From: Ford, Mike [LSS] [mailto:[EMAIL PROTECTED] Sent: Thursday, April 15, 2004 2:18 PM To: '[EMAIL PROTECTED]';

Re: [PHP] Compile PHP question

2004-04-15 Thread Enrico Weigelt
* 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 btw: if you're planning automated builds, you'll be maybe interested in my buildfarm project ...

RE: [PHP] php dateadd function?

2004-04-15 Thread Ford, Mike [LSS]
On 30 April 2004 13:45, Angelo Zanetti wrote: > Hi Mike, I actually changed the return statement to return > the date in a > format that is different from the mktime format, so that > would explain it. So run the mktime(), then format the resulting timestamp. Job done. Cheers! Mike --

Re: [PHP] PHP editor

2004-04-15 Thread Travis Low
XEmacs www.xemacs.org. T Arthur Radulescu wrote: Hello! This might sound like a stupid question but could anyone recommand a good PHP editor... I have used some editors until now but each one has some problems... Right now I am using PHPed which is pretty good but oine of the major problems is t

[PHP] View folders...

2004-04-15 Thread Tristan . Pretty
I'm trying to create a page where I can show all folders in a directory. I've looked on google and php.net, but have yet to find an answer... Any clues? * The information contained in this e-mail message is intended only for the

RE: [PHP] View folders...

2004-04-15 Thread Jay Blanchard
[snip] I'm trying to create a page where I can show all folders in a directory. I've looked on google and php.net, but have yet to find an answer... Any clues? [/snip] http://us2.php.net/dir -- 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 Chris Boget
> What I am looking for is something to work pretty fast, have code > autocompletion (even for functions defined in the included files like zend > does) and also code ident in a similar manner with zend studio Check out Visual Slick Edit. After using many of the more oft suggested editors, I foun

Re: [PHP] PHP Programming Innovation Award

2004-04-15 Thread Dennis Gearon
"Andy B" <[EMAIL PROTECTED]> wrote: one question though how can you tell if a class or package you are writting or want to attempt to write has ever been created before?? 99.9% of the time anything i ever thought of for classes/packages to write are either too simple or the idea has alrea

Re: [PHP] OOP variables

2004-04-15 Thread Chris Boget
> [quote] > In PHP 4, only constant initializers for var variables are allowed. To > initialize variables with non-constant values, you need an > initialization function which is called automatically when an object > is being constructed from the class. Such a function is called a > constructor (se

[PHP] Explanation of cookie behavior

2004-04-15 Thread Ryan Schefke
Gurus, I'm running a login script where the user enters login/password and if it matches what I have in my db and their account is active, I set a login cookie (login_ck) and an authentication cookie (authenticate_ck). If the login and authentication cookies are set when the user goes back to

[PHP] RE: Explanation of cookie behavior

2004-04-15 Thread Ryan Schefke
.one more note: If the user checks the "remember me" box then that's how I set the two cookes; however, if they don't click the "remember me" box then I set the cookies like this: setcookie ("authenticate_ck", "$daysRemaining"); //set cookie for active account, will terminate when browser w

Re: [PHP] Explanation of cookie behavior

2004-04-15 Thread John Nichel
Ryan Schefke wrote: setcookie ("login_ck", "$lo", time()+ "60*60*24*30", "", "", "0"); //set cookie for login, for 30days Expire is supposed to be an integer. Try... setcookie ("login_ck", "$lo", time()+ 2592000, "", "", 0); -- **

Re: [PHP] PHP Programming Innovation Award

2004-04-15 Thread Rob Adams
Hello. "Manuel Lemos" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > This award was created mainly to make potential contributors rethink > what they submit. It is probably not very useful to contribute more > template engines or MySQL database access classes if what is submitted >

Re: [PHP] PHP editor

2004-04-15 Thread Lowell Allen
What I am looking for is something to work pretty fast, have code autocompletion (even for functions defined in the included files like zend does) and also code ident in a similar manner with zend studio I just installed Zend Studio because I was able to buy it through Adobe at a discount when u

RE: [PHP] Explanation of cookie behavior

2004-04-15 Thread Ryan Schefke
John - It works now! That was it. Thanks! Ryan -Original Message- From: John Nichel [mailto:[EMAIL PROTECTED] Sent: Thursday, April 15, 2004 10:53 AM To: PHP Mailing List Subject: Re: [PHP] Explanation of cookie behavior Ryan Schefke wrote: > setcookie ("login_ck", "$lo", time()+ "60*

RE: [PHP] PHP Programming Innovation Award

2004-04-15 Thread Jay Blanchard
[snip] I started writing a SIRDS generator. (Single Image Random Dot Stereogram.) Those are the images that look like static unless you focus in front or behind them, and then you can see shapes. [/snip] That sounds cool! -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

[PHP] transformation to htm file when downloaded

2004-04-15 Thread Gabino Travassos
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 PHP code is gone. I've tried this on a few other people's sites

Re: [PHP] transformation to htm file when downloaded

2004-04-15 Thread Richard Davey
Hello Gabino, Thursday, April 15, 2004, 4:15:49 PM, you wrote: GT> seems to be the common behavior. Is there a way someone can extract my php GT> file without this transformation? In a nutshell - no. Not without your server being compromised (i.e. hacked into or misconfigured). GT> One of the

[PHP] umask() and chmod()

2004-04-15 Thread David T-G
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, and that works for creating files from scratch, but ch

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] transformation to htm file when downloaded

2004-04-15 Thread Gabino Travassos
> GT> seems to be the common behavior. Is there a way someone can extract my php > GT> file without this transformation? > > In a nutshell - no. > > Not without your server being compromised (i.e. hacked into or > misconfigured). > > GT> One of the things I'm starting with is a simple blog/guestboo

RE: [PHP] Explanation of cookie behavior

2004-04-15 Thread Ford, Mike [LSS]
On 15 April 2004 15:43, Ryan Schefke wrote: > I'm running a login script where the user enters > login/password and if it > matches what I have in my db and their account is active, I set a > login cookie (login_ck) and an authentication cookie > (authenticate_ck). If the > login and authenticati

Re[2]: [PHP] transformation to htm file when downloaded

2004-04-15 Thread Richard Davey
Hello Gabino, Thursday, April 15, 2004, 4:36:48 PM, you wrote: GT> Thanks for the quick response. I'm thinking of adding a check for the string GT> length, so someone doesn't copy and paste a dictionary into my guestbook, GT> but I'm not looking at flood control because the comments might be some

Re: [PHP] transformation to htm file when downloaded

2004-04-15 Thread Gabino Travassos
> If you are saving to SQL you can limit this from the SQL end as well > as the PHP code, but it's worth doing at the PHP level too. By contraining the size of the string to "tiny" or whatever, right? I could also use Javascript, but I like that PHP is more of an invisible hand. I'm not using myS

[PHP] mysql_query won't work!!!

2004-04-15 Thread Jeff Ostapchuk
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)){ -- PHP General Mailing List

[PHP] file upload

2004-04-15 Thread Anthony Ritter
In the following snippet, which uploads binary files to a mySQL database it works fine when Register Globals are set to ON. . mysql_connect("localhost","root","pass"); mysql_select_db("adatabase"); $data = addslashes(fread(fopen($form_data, "r"), filesize($form_data))); $result=my

Re[2]: [PHP] transformation to htm file when downloaded

2004-04-15 Thread Richard Davey
Hello Gabino, Thursday, April 15, 2004, 5:14:43 PM, you wrote: GT> I presumed that if someone ran my file.php from the server that there would GT> be some kind of transformation to render the tags before they are displayed. GT> I find it fascinating that just moving the file off the server to you

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

2004-04-15 Thread David T-G
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 some ... % > to feed to chmod() -- and apparently I can

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

2004-04-15 Thread Jay Blanchard
[snip] 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)){ [/snip] When are you g

Re: [PHP] file upload

2004-04-15 Thread David T-G
Tony (I'm guessing) -- ...and then Anthony Ritter said... % % In the following snippet, which uploads binary files to a mySQL database it % works fine when Register Globals are set to ON. ... % $data = addslashes(fread(fopen($form_data, "r"), filesize($form_data))); This line is important to not

Re: [PHP] transformation to htm file when downloaded

2004-04-15 Thread Daniel Clark
The PHP code is processed on the web server and removed. Only the HTML and images are sent back to the clients browser. > 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 Tar

[PHP] FPDF Help

2004-04-15 Thread Nathan Mealey
Anyone who is familiar with using FPDF to generate PDFs, I'd really appreciate some suggestions here: I am using the following code, virtually identical to that used in the FPDF tutorial examples. But I keep getting a parse error for the first line containing the variable $this. In the tutori

RE: [PHP] Re: Session confusion again :( - Thanks!

2004-04-15 Thread Chris W. Parker
Ligaya Turmelle on Wednesday, April 14, 2004 8:25 PM said: > Can you explode something while you are working on it?? Won't it > overwrite itself? no that will work fine. all operations right of the = happen first. hth, chris. -- PHP General Mailing List (http://w

RE: [PHP] PHP editor

2004-04-15 Thread Chris W. Parker
Arthur Radulescu 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 > they are sent to the browser... So a page of 50 k might have 100

RE: [PHP] PHP editor

2004-04-15 Thread Chris W. Parker
electroteque on Thursday, April 15, 2004 5:03 AM said: > the htmlkit looks hot, although its licenced, work has a shitty copy > of homesite 4 licences, i doubt i can convince them, i am using > phpedit, although does it turn tabs into spaces ?? html-kit is great. a

Re: [PHP] FPDF Help

2004-04-15 Thread Tom Rogers
Hi, Friday, April 16, 2004, 2:38:24 AM, you wrote: NM> Anyone who is familiar with using FPDF to generate PDFs, I'd really NM> appreciate some suggestions here: NM> I am using the following code, virtually identical to that used in the NM> FPDF tutorial examples. But I keep getting a parse error

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

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

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

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

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

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

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

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

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

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

  1   2   >