Re: [PHP] DAMN

2003-11-28 Thread John Nichel
- Edwin - wrote: On 2003/11/29, at 14:17, John Nichel wrote: Bronislav Klucka wrote: I've just realized I'm replaying to JeRRy only Could anybody fixt this problem by setting the Reply To header correctly? to be able to reply PHP conf. directly using Reply button?!!! Brona How many times

Re: [PHP] help with Log() function

2003-11-28 Thread Jason Wong
On Saturday 29 November 2003 06:03, Jon King wrote: > I'm having trouble getting a log formula to work. This forumla is supposed > to return the number of payment required zero out a loan balance. > print -(log(1-($B/$m)*($r/$q)))/log(1+($r/$q)); > It keeps returning a NaN. I've checked the sy

Re: [PHP] php as cgi script

2003-11-28 Thread Ivone Uribe
Thanks very much to all, Ok, I understand now.. so I need to install php as a cgi oppose to the module apache. Do you have some good page that can help me to configure and compile correctly the php as cgi? Thanks in advance, Kisses, Ivone --- Kelly Hallman <[EMAIL PROTECTED]> wrote: > On Fri, 28

Re: [PHP] DAMN

2003-11-28 Thread RT
On Fri, 2003-11-28 at 23:55, Bronislav Klucka wrote: > I've just realized I'm replaying to JeRRy only Could anybody fixt this > problem by setting the Reply To header correctly? to be able to reply PHP > conf. directly using Reply button?!!! > > Brona > > -- > PHP General Mailing List (http:

Re: [PHP] DAMN

2003-11-28 Thread - Edwin -
On 2003/11/29, at 14:54, Bronislav Klucka wrote: I would really like to stop this thread but... 1/ "What problemS"?? the two I mentioned? The first one was/is NOT a problem. 2/ I do not hawe time ro read the whole war you send me link to, I read just one mail [...] Why don't you read one more:

RE: [PHP] how to escape '\'

2003-11-28 Thread Bronislav Klučka
try "stripslashes()" Brona > -Original Message- > From: Manisha Sathe [mailto:[EMAIL PROTECTED] > Sent: Saturday, November 29, 2003 7:03 AM > To: [EMAIL PROTECTED] > Subject: [PHP] how to escape '\' > > > I have magic_quotes_gpc ON > > 'Here's is' - this comes out after HTTP post as

Re: [PHP] how to escape '\'

2003-11-28 Thread Leif K-Brooks
Manisha Sathe wrote: I have magic_quotes_gpc ON 'Here's is' - this comes out after HTTP post as 'Here\'s is' But i want to get back the original string as it is - how to change ? www.php.net/stripslashes -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php

[PHP] how to escape '\'

2003-11-28 Thread Manisha Sathe
I have magic_quotes_gpc ON 'Here's is' - this comes out after HTTP post as 'Here\'s is' But i want to get back the original string as it is - how to change ? manisha -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Static Array vs MySQL query

2003-11-28 Thread - Edwin -
Hi, On 2003/11/29, at 8:10, John Nichel wrote: Hi, I'm designing my site to use drop down menus, and am having php generate the content of the main manus, as well as the sub-menus. What I'm wondering is what the performance hit will be with putting all the menu variables into an array in a

RE: [PHP] DAMN

2003-11-28 Thread Bronislav Klucka
I would really like to stop this thread but... 1/ "What problemS"?? the two I mentioned? 2/ I do not hawe time ro read the whole war you send me link to, I read just one mail "Having read this thread, must say I wonder where is this world is going when people who consider themselves coders are "c

Re: [PHP] DAMN

2003-11-28 Thread - Edwin -
On 2003/11/29, at 14:17, John Nichel wrote: Bronislav Klucka wrote: I've just realized I'm replaying to JeRRy only Could anybody fixt this problem by setting the Reply To header correctly? to be able to reply PHP conf. directly using Reply button?!!! Brona How many times is someone going to

Re: [PHP] DAMN

2003-11-28 Thread - Edwin -
I think... On 2003/11/29, at 14:30, Bronislav Klucka wrote: I'll shut up, I didn't realized there were some flame war, but somebody should do: 1/ Fix this "Reply to" problem (mail comes from PHP conference I suppose I should reply to this conference) You just missed the point: http://marc.the

RE: [PHP] DAMN

2003-11-28 Thread Bronislav Klucka
I'll shut up, I didn't realized there were some flame war, but somebody should do: 1/ Fix this "Reply to" problem (mail comes from PHP conference I suppose I should reply to this conference) 2/ Fix the problem with non existing users (or mailboxes, where cannot be mail deliver to) I'll really shut

RE: [PHP] DAMN

2003-11-28 Thread Bronislav Klucka
Sorry, I realized it was wrong :( > -Original Message- > From: David T-G [mailto:[EMAIL PROTECTED] > Sent: Saturday, November 29, 2003 6:09 AM > To: PHP General list > Cc: Bronislav Klucka > Subject: Re: [PHP] DAMN > > > Brona -- > > You have started a new thread by taking an existing

RE: [PHP] DAMN

2003-11-28 Thread Bronislav Klucka
Till admin fix it Brona > -Original Message- > From: John Nichel [mailto:[EMAIL PROTECTED] > Sent: Saturday, November 29, 2003 6:18 AM > To: PHP Konference > Subject: Re: [PHP] DAMN > > > Bronislav Klucka wrote: > > > I've just realized I'm replaying to JeRRy only Could > anyb

Re: [PHP] DAMN

2003-11-28 Thread John Nichel
Bronislav Klucka wrote: I've just realized I'm replaying to JeRRy only Could anybody fixt this problem by setting the Reply To header correctly? to be able to reply PHP conf. directly using Reply button?!!! Brona How many times is someone going to start this flame war this month? -- By-Tor.c

Re: [PHP] DAMN

2003-11-28 Thread David T-G
Brona -- You have started a new thread by taking an existing posting and replying to it while you changed the subject. That is bad, because it breaks threading. Whenever you reply to a message, your mail client generates a "References:" header that tells all recipients which posting(s) your posti

Re: [PHP] New line problem - but for Excel

2003-11-28 Thread David T-G
Manisha -- ...and then Manisha Sathe said... % % Actually I do not have phpscript for this. I am using readymade function % from PHPMyAdmin 2.1.0. They are having option to export to csv file with % delimeter ';' (It comes on screen first and then i copy to file manually.) Ah. % % So my csv f

Re: [PHP] New line problem - but for Excel

2003-11-28 Thread Manisha Sathe
Actually I do not have phpscript for this. I am using readymade function from PHPMyAdmin 2.1.0. They are having option to export to csv file with delimeter ';' (It comes on screen first and then i copy to file manually.) So my csv fil looks like 22;33;address line1 address line2 What excel does

Re: [PHP] DAMN

2003-11-28 Thread Robert Cummings
On Fri, 2003-11-28 at 23:55, Bronislav Klucka wrote: > I've just realized I'm replaying to JeRRy only Could anybody fixt this > problem by setting the Reply To header correctly? to be able to reply PHP > conf. directly using Reply button?!!! Look before you leap! Rob. -- .---

[PHP] DAMN

2003-11-28 Thread Bronislav Klucka
I've just realized I'm replaying to JeRRy only Could anybody fixt this problem by setting the Reply To header correctly? to be able to reply PHP conf. directly using Reply button?!!! Brona -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] how can i get rid of newlines?

2003-11-28 Thread David T-G
Marek, et al -- ...and then David T-G said... % % But str_replace works for you? Interesting... I mucked about with it again and got it to work as long as I used an array for $search... I must have had a typo last time. Well, yay; I can rest easy knowing that I am using the faster function.

Re: [PHP] New line problem - but for Excel

2003-11-28 Thread David T-G
Manisha -- ...and then Manisha Sathe said... % % Just now discussion was going on for new line - the same worked for me (I % used string replace) It worked for me, too, once I got the grammar right. Must have been a typo the first time I tried an array. % % Live Server : Linux / MySQL / PHP

[PHP] New line problem - but for Excel

2003-11-28 Thread Manisha Sathe
Just now discussion was going on for new line - the same worked for me (I used string replace) Live Server : Linux / MySQL / PHP There is a field called 'Address' (textarea) - mysql stores \n for carriage return. Now from current disussion thread i know i can remove this with something like (ma

Re: [PHP] how can i get rid of newlines?

2003-11-28 Thread David T-G
Marek -- ...and then Marek Kilimajer said... % % David T-G wrote: % > % >Are you sure about that? He had % > % > "/\r\n|\n|\r" ... % % My bad, I should not aswer questions at 4:30 a.m. No problem, and I'm glad you and others do, because I'm just getting started for the long night ahead! :-)

Re: [PHP] BUG: require_once() or die(); = fatal error

2003-11-28 Thread Curt Zirzow
* Thus wrote Daevid Vincent ([EMAIL PROTECTED]): > My way, the logic is that the file *is* 'required' (whereas I view 'include' > files as optional), and I want to exit the program with a graceful message > instead of the fatal error (which doesn't really doesn't tell me what the > problem is -- "F

Re: [PHP] how can i get rid of newlines?

2003-11-28 Thread Marek Kilimajer
David T-G wrote: Are you sure about that? He had "/\r\n|\n|\r" which, once I close the search delimiter, certainly should capture a mac end-of-line... My bad, I should not aswer questions at 4:30 a.m. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/

Re: [PHP] how can i get rid of newlines?

2003-11-28 Thread David T-G
Marek -- ...and then Marek Kilimajer said... % % David T-G wrote: % > % >...and then Marek Kilimajer said... % >% % >% $string = str_replace("\n", '', $string); % > % >That didn't work for me. Interestingly enough, in light of Leif's post, % >neither did \r\n in the search pattern. Hmmph. Wel

Re: [PHP] how can i get rid of newlines?

2003-11-28 Thread Marek Kilimajer
David T-G wrote: Marek, et al -- ...and then Marek Kilimajer said... % % $string = str_replace("\n", '', $string); That didn't work for me. Interestingly enough, in light of Leif's post, neither did \r\n in the search pattern. Hmmph. Well, thank heavens once again for preg_replace() :-) Thank

Re: [PHP] how can i get rid of newlines? [SOLVED]

2003-11-28 Thread David T-G
Hi, all -- ...and then David T-G said... % ... % This tickles the back of my mind as something that I've seen before, now % that it's shown to me again... I'm going to have to go looking now that % I know the answer to see if I can find it in the archives. All I was able to find was some discus

Re: [PHP] how can i get rid of newlines? [SOLVED]

2003-11-28 Thread David T-G
Leif, et al -- ...and then Leif K-Brooks said... % % David T-G wrote: % % >I need a true nl2br function to get rid of newlines; I am accepting a % >changed ini file parameter but the newline kills me. % > % Try: % $text = preg_replace("/\r\n|\n|\r", '', $text); Aha! Sure enough, that did it.

Re: [PHP] how can i get rid of newlines?

2003-11-28 Thread David T-G
Marek, et al -- ...and then Marek Kilimajer said... % % $string = str_replace("\n", '', $string); That didn't work for me. Interestingly enough, in light of Leif's post, neither did \r\n in the search pattern. Hmmph. Well, thank heavens once again for preg_replace() :-) Thanks & HAND :-D -

Re: [PHP] how can i get rid of newlines?

2003-11-28 Thread Marek Kilimajer
$string = str_replace("\n", '', $string); David T-G wrote: Hi, all -- As has been discussed before, the nl2br function doesn't actually convert newlines to breaks but instead is more like "nl2nlbr". That is, input like this becomes input like this instead of inputlikethis -- PHP

Re: [PHP] how can i get rid of newlines?

2003-11-28 Thread Leif K-Brooks
David T-G wrote: I need a true nl2br function to get rid of newlines; I am accepting a changed ini file parameter but the newline kills me. Try: $text = preg_replace("/\r\n|\n|\r", '', $text); -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] how can i get rid of newlines?

2003-11-28 Thread David T-G
Hi, all -- As has been discussed before, the nl2br function doesn't actually convert newlines to breaks but instead is more like "nl2nlbr". That is, input like this becomes input like this instead of inputlikethis as the name would indicate. I need a true nl2br function to ge

Re: [PHP] Important notice

2003-11-28 Thread Bogdan Stancescu
John Nichel wrote: Chris W. Parker wrote: [EMAIL PROTECTED] on Wednesday, November 26, 2003 9:30 PM said: If you feel this transaction was made by our mistake, please press "No". I keep clicking "No" but nothing is happening. PLEASE HELP! Maybe it's a bug with PHP?

[PHP] Re: Static Array vs MySQL query

2003-11-28 Thread Eric
"John Nichel" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Hi, > >I'm designing my site to use drop down menus, and am having php > generate the content of the main manus, as well as the sub-menus. What > I'm wondering is what the performance hit will be with putting all the

[PHP] Static Array vs MySQL query

2003-11-28 Thread John Nichel
Hi, I'm designing my site to use drop down menus, and am having php generate the content of the main manus, as well as the sub-menus. What I'm wondering is what the performance hit will be with putting all the menu variables into an array in a config file vs storing the info in a MySQL tabl

[PHP] help with Log() function

2003-11-28 Thread Jon King
Hello, I'm having trouble getting a log formula to work. This forumla is supposed to return the number of payment required zero out a loan balance. /* n = - (LN(1-(B/m)*(r/q)))/LN(1+(r/q)) q = amount of annual payment periods r = interest rate B = principal m = payment amount n = amount payment

[PHP] IE6 Session Problem

2003-11-28 Thread CF High
Hey all. Hope this will help someone hours of useless searching. Looks like out-of-the-box winXP machines running IE6 have session cookies automatically disabled! Ug, 24 hours slogging through newsgroups to stumble across this solution myself. If you have a login based site & rely on sessio

[PHP] Re: "Bless"ing an object

2003-11-28 Thread Greg Beaver
Hi Wouter, The only disadvantage to assigning to $this is that it may not be supported in PHP 5 - php-internals discussion has described it as a bad idea. I would get beta 2 and test it out, see what happens. Incidentally, you don't need to unset new, and I would use $this =& $New; Regards,

Re: [PHP] php as cgi script

2003-11-28 Thread Kelly Hallman
On Fri, 28 Nov 2003, Nicole Lallande wrote: > Ivone -- > You are using a PERL invocation for php. PHP scripts begin the # sign is a comment in PERL - not in PHP. # also denotes a comment in PHP. Though #! is not a comment, per se. (However, if you feed the file directly to some interpreter lik

Re: [PHP] php as cgi script

2003-11-28 Thread Ivone Uribe
Hi Nicole! Thanks for your reply! I'm a little confused: Do I need to compile the php as cgi? I thought it was when you wanted to run php from commanline: as ./pruebacgi.php (Servers-CGI/Commandline) But in my case I want to call a php like that: http://xx.yy.zz/cgi-bin/pruebacgi.php and this

Re: [PHP] Forms and Arrays

2003-11-28 Thread David T-G
Dave - ...and then Dave Carrera said... % % Thank you for clearing up my rather lame explanation. % % So how can I process $_POST[dynamic-name][user-entered-value] arrays to give % me my desired output: % % fname0 = value flab0 = value fplc0 = value Do you really want a variable called $fname0

Re: [PHP] Call to undefined function: imagecreatefromjpeg()

2003-11-28 Thread Philip J. Newman
... just what i was thinking, i'll get back to them and complain. Thanks - Original Message - From: "Marek Kilimajer" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Cc: <[EMAIL PROTECTED]> Sent: Saturday, November 29, 2003 8:29 AM Subject: Re: [PHP] Call to undefined function: imagecreatef

Re: [PHP] Important notice

2003-11-28 Thread John Nichel
Chris W. Parker wrote: [EMAIL PROTECTED] on Wednesday, November 26, 2003 9:30 PM said: If you feel this transaction was made by our mistake, please press "No". I keep clicking "No" but nothing is happening. PLEASE HELP! Maybe it's a bug with PHP?? Chris. My keyboard d

Re: [PHP] Call to undefined function: imagecreatefromjpeg()

2003-11-28 Thread Marek Kilimajer
Philip J. Newman wrote: http://www.php.net/manual/en/function.imagecreatefromjpeg.php After using this code for some time it suddenly returns ... It's not suddenly, someone must have recompiled php without gd/jpg support. Fatal error: Call to undefined function: imagecreatefromjpeg() in /home/cru

[PHP] Call to undefined function: imagecreatefromjpeg()

2003-11-28 Thread Philip J. Newman
http://www.php.net/manual/en/function.imagecreatefromjpeg.php After using this code for some time it suddenly returns ... Fatal error: Call to undefined function: imagecreatefromjpeg() in /home/crushme/public_html/includes/inc_members.php on line 564 Is this the server or code that needs to

Re: [PHP] php as cgi script

2003-11-28 Thread Nicole Lallande
Ivone -- You are using a PERL invocation for php. PHP scripts begin with the # sign is a comment in PERL - not in PHP. To run php as cgi you need to install the php cgi version (as opposed to the apache modular installation.) That will allow you to run cgi scripts on the command line. http:

RE: [PHP] BUG: require_once() or die(); = fatal error

2003-11-28 Thread Daevid Vincent
Hmm... Well Rasmus, I do see your point, however it still seems to me it 'should' at least compile and work as I expect it to. My way, the logic is that the file *is* 'required' (whereas I view 'include' files as optional), and I want to exit the program with a graceful message instead of the fata

[PHP] php as cgi script

2003-11-28 Thread Ivone Uribe
Hello all! I have this problem: I need to run a php (http://xx.yy.zz/cgi-bin/pruebacgi.php) that contains that line #!/usr/local/bin/php -q I get it an error from my apache log: malformed header from script. Bad header= php [options] -r : /www/cgi-bin/pruebacgi.php I hope someone can help

RE: [PHP] Forms and Arrays

2003-11-28 Thread Ford, Mike [LSS]
On 28 November 2003 17:22, Dave Carrera wrote: > Thank you for clearing up my rather lame explanation. > > So how can I process $_POST[dynamic-name][user-entered-value] > arrays to give > me my desired output: > > fname0 = value flab0 = value fplc0 = value > fname1 = value flab1 = value fplc1 =

Re: [PHP] Buy beer and smoke at ANY age

2003-11-28 Thread David T-G
Rasmus -- ...and then [EMAIL PROTECTED] said... % ... % This is not Spam. You signed up with partner site asking for fake license info. You need to put a curfew on your lists; look what they've been out and doing! Some kids just can't be trusted, I guess. ;-D -- David T-G

Re: [PHP] Capturing $_POST variables

2003-11-28 Thread David T-G
Shaun -- ...and then Shaun said... % % I don't really need to do anything with them, just make sure they all retain % their original values... If you're going to get the original values from the submitted page anyway then you have no trust in that original value. If you need to make sure that s

RE: [PHP] Important notice

2003-11-28 Thread Chris W. Parker
[EMAIL PROTECTED] on Wednesday, November 26, 2003 9:30 PM said: > If you feel this transaction was made > by our mistake, please press "No". I keep clicking "No" but nothing is happening. PLEASE HELP! Maybe it's a bug with PHP?? Chris. -- PHP General Mailing List

RE: [PHP] Forms and Arrays

2003-11-28 Thread Dave Carrera
Thank you for clearing up my rather lame explanation. So how can I process $_POST[dynamic-name][user-entered-value] arrays to give me my desired output: fname0 = value flab0 = value fplc0 = value fname1 = value flab1 = value fplc1 = value fname2 = value flab2 = value fplc2 = value Any help our e

RE: [PHP] The clock issue in this forum!

2003-11-28 Thread Chris W. Parker
Rasmus Lerdorf on Friday, November 28, 2003 12:37 AM said: > Why are you sorting your email on the sender's timestamp and not the > arrival timestamp in your mailbox? Or is this really another thing > Outlook can't figure out? Please take note, Outlook and Outlook

[PHP] PEAR::SOAP_Client, Google API

2003-11-28 Thread Adam i Agnieszka Gasiorowski FNORD
I'm trying to get ANYTHING out of google API (for now), but it doesn't let me. I use the SOAP_Client from PEAR project and the WDSL file you get from Google when you register your key for using with their API. When I give an action wrong parameters, everything works great, i

[PHP] Buy beer and smoke at ANY age

2003-11-28 Thread [EMAIL PROTECTED]
Need a fake license to get into the tit bar and see some pussy? Visit www.photoidcards.com Too young to get your girl drunk and stick your long dong in her? Buy beer and smoke! Drive again if you got a DUI? Award winning site! www.souvenirids.com Read more here www.souvenirid.us This is not Spam. Y

[PHP] php/java/mysql programmer needed

2003-11-28 Thread Paul Godard
Hi If any one on this list has good experience in php/java/mysql programming integrated with Adobe GoLive for both Mac & Window, please contact me directly as we have a couple of projects that need that expertise. -- Kind regards, Paul. Gondwana [EMAIL PROTECTED] http://www.gondwanastudio.com

RE: [PHP] Capturing $_POST variables

2003-11-28 Thread Wouter van Vliet
Thorsten Körner wrote: > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA1 > > Hi Shaun > Am Freitag, 28. November 2003 14:41 schrieb Shaun: >> Thanks for your reply, >> >> I don't really need to do anything with them, just make sure they all >> retain their original values... > > If you are using

Re: [PHP] Mysql backup

2003-11-28 Thread Binay
Hi Rory, - Original Message - From: "Rory McKinley" <[EMAIL PROTECTED]> To: "Binay" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]> Sent: Friday, November 28, 2003 7:30 PM Subject: Re: [PHP] Mysql backup > Binay > > If the tables for both versions are MYISAM the steps are as follows: > > 1. Sto

[PHP] Question on sending PhP variable results to an HTML page to be displayed.

2003-11-28 Thread Al Costanzo
Hello, I know this may seem like the opposite approach but please let me explain the important reason I am trying to discover how to do this. Let us say you have a website www.example.com and you want to track and display information when a search engine scanned and stored the result into its da

[PHP] php/java/mysql programmer needed

2003-11-28 Thread Paul Godard
Hi If any one on this list has good experience in php/java/mysql programming integrated with Adobe GoLive for both Mac & Window, please contact me directly as we have a couple of projects that need that expertise. -- Kind regards, Paul. Gondwana [EMAIL PROTECTED] http://www.gondwanastudio.com

RE: [PHP] Forms and Arrays

2003-11-28 Thread Ford, Mike [LSS]
On 28 November 2003 14:36, Dave Carrera wrote: > Hi List, > > I have a dynamically generated form with inputs with names that > create arrays i.e.: > > > > > > The extra bits for the inputs are omitted deliberately for > this question but > exists in the form i.e.: size, value, type. > > A

RE: [PHP] Re: Capturing $_POST variables

2003-11-28 Thread Ford, Mike [LSS]
On 28 November 2003 14:21, Shaun wrote: > Thanks you for your replies, > > is there a reason why i couldn't use the following? > > $_POST = $_POST; None whatsoever -- but it's an expensive way of effectively doing nothing! (Which, I suspect, is not what you want to do.) The fact that you are e

[PHP] Forms and Arrays

2003-11-28 Thread Dave Carrera
Hi List, I have a dynamically generated form with inputs with names that create arrays i.e.: The extra bits for the inputs are omitted deliberately for this question but exists in the form i.e.: size, value, type. And these are repeated as many time as required. Thus they are generating arr

Re: [PHP] Re: Capturing $_POST variables

2003-11-28 Thread Sophie Mattoug
Shaun wrote: Thanks you for your replies, is there a reason why i couldn't use the following? $_POST = $_POST; You want to assign to the $_POST array of the third page the value of the $_POST of the seconde one ? You cannot do the way you wrote because it's not on the same page ! -- PHP Gene

[PHP] Re: Capturing $_POST variables

2003-11-28 Thread Shaun
Thanks you for your replies, is there a reason why i couldn't use the following? $_POST = $_POST; "Bogdan Stancescu" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > The only way you can send POST variables as POST variables in the next > page is by using a form. That's obvious, you

Re: [PHP] Optimizing PHP Relevancy Ranking Algorithm

2003-11-28 Thread David Otton
On Fri, 28 Nov 2003 03:26:08 -0800, you wrote: >Anybody got a few ideas on how to speed up these two sluggish lines of >code? I'm pretty much out of ideas. And if you have any other >suggestions to speed things up, I would really appreciate them too. I know nothing about your application, and I

Re: [PHP] Mysql backup

2003-11-28 Thread Rory McKinley
Binay If the tables for both versions are MYISAM the steps are as follows: 1. Stop mysql on both systems. 2. Copy the contents of the 3.23.37 data folder to the 3.23.58 data folder using your OS tools (cp, file management tools, Windows explorer etc) 3. Start mysql on both systems. HTH Rory O

[PHP] Re: .htaccess authentification problem

2003-11-28 Thread Michael Hübner
Hi Catalin, Thanks for your response. I don't wont to do it this way, because I use the apache-module providing automatic directory indexing. It is very fast and I don't have to program a directory indexing by my own. Actually my server is only a Pentium 100 and generating an index via php slows

Re: [PHP] Capturing $_POST variables

2003-11-28 Thread Thorsten Körner
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hi Shaun Am Freitag, 28. November 2003 14:41 schrieb Shaun: > Thanks for your reply, > > I don't really need to do anything with them, just make sure they > all retain their original values... If you are using a form to sent the data again to third pa

Re: [PHP] Telling GD2 Where Fonts Are

2003-11-28 Thread Pavel Jartsev
[EMAIL PROTECTED] wrote: Tom, when I switch code to: putenv('GDFONTPATH=/Macintosh HD/Fonts/'); $font = Macintosh HD/Fonts./'arial.ttf'; ... Parse error: parse error, unexpected T_STRING in /Users/stephent/Sites/php_mysql_web_dev/chapter_19/make_button.php on line 16 Whattaya make of that? Becau

[PHP] Re: Capturing $_POST variables

2003-11-28 Thread Bogdan Stancescu
The only way you can send POST variables as POST variables in the next page is by using a form. That's obvious, you can't control the browser. So either use Wouter's suggestion to send them via sessions (if you don't HAVE to have them sent over via POST), or use Sophie's suggestion to build a l

RE: [PHP] Capturing $_POST variables

2003-11-28 Thread Wouter van Vliet
Shaun wrote: > Hi, > > is it possible to capture $_POST variables sent from a > previous page so i can send them on to the next page? > > Thanks for your help. might wanna try (before any output, including spaces): $Value) $_SESSION[$Key] = $Value; But consider some checks to test if no value

Re: [PHP] Capturing $_POST variables

2003-11-28 Thread Shaun
Thanks for your reply, I don't really need to do anything with them, just make sure they all retain their original values... "Sophie Mattoug" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > foreach ($_POST as $k => $v) { > //everything you want to do > } > > Shaun wrote: > > >Hi,

Re: [PHP] Capturing $_POST variables

2003-11-28 Thread Sophie Mattoug
foreach ($_POST as $k => $v) { //everything you want to do } Shaun wrote: Hi, is it possible to capture $_POST variables sent from a previous page so i can send them on to the next page? Thanks for your help. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www

[PHP] Capturing $_POST variables

2003-11-28 Thread Shaun
Hi, is it possible to capture $_POST variables sent from a previous page so i can send them on to the next page? Thanks for your help. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Telling GD2 Where Fonts Are

2003-11-28 Thread [EMAIL PROTECTED]
Tom, when I switch code to: putenv('GDFONTPATH=/Macintosh HD/Fonts/'); $font = Macintosh HD/Fonts./'arial.ttf'; per your saying: Give the full path to the font file, I do like this $font = $path_to_font.'/font.ttf'; I get: Parse error: parse error, unexpected T_STRING in /Users/stephent/

Re: [PHP] Regular Expression Help: genreate alphanumeric, 8 chars

2003-11-28 Thread David T-G
Adam -- ...and then Adam i Agnieszka Gasiorowski FNORD said... % ... % How about, % % $password = strtolower(substr(md5(uniqid(time())), 0, 7)); Hey, that's pretty slick. Good one! Gonna have to remember that; it's an excellent trick. Thanks & HAND :-D -- David T-G

[PHP] Mysql backup

2003-11-28 Thread Binay
Hi all ! I know this is more of mysql issue than PHP but then i always get my problem solved here.. and hope the same this time also ... I have two systems. one with mysql-version: 3.23.37 other with mysql-version: 3.23.58 now i want to take the backup of 3.23.37 data and copy to 3.23.58 ... i

[PHP] ImageMagick + PHP on Win32

2003-11-28 Thread Catalin Trifu
Hi, I have downloaded and installed ImageMagick (5.5.7 Q8) in c:\imagemagick added it to %PATH% I have downloaded the latest php_imagick.dll extension from kromann.info and installed it. PHP says imagick is installed properly. However, when i am trying to run any of the exa

[PHP] Optimizing PHP Relevancy Ranking Algorithm

2003-11-28 Thread Galen
I've developed some search result ranking code and it works extremely well in terms of relevancy but needs use some help with performance. I'm already using zend optimizer and I've done some basic things to clean up the code. This helps performance quite a bit by itself, but that's not enough,

Re: [PHP] array problems

2003-11-28 Thread Eugene Lee
On Thu, Nov 27, 2003 at 08:19:02PM -0500, Curtis Maurand wrote: : On Wednesday 26 November 2003 21:53, Marek Kilimajer mumble: : > Curtis Maurand wrote: : > > Sorry, its a typo. it should be: : > > : > > $city = "Ipswitch"; : > > $city_found = 0; : > > $contentfile = fopen("content.txt", "r"); : >

[PHP] RE: "Bless"ing an object

2003-11-28 Thread Wouter van Vliet
Greg Beaver wrote: > Wouter, > > you could try this adding this method to each object you need > blessings from: > > function &bless($classname) > { > if ($classname == get_class($this)) { > return $this; > } > $vars = get_object_vars($this); > $ret = new $classname;

Re: [PHP] Does anyone have Upload meter php codes?

2003-11-28 Thread Duncan Hill
On Thursday 27 November 2003 18:21, Ryan A wrote: > > http://pear.php.net/package/HTML_Progress > > Very nice, > But seems to have a problem with Netscape Communicator 4.75 Quote: Your browser should accept DHTML feature. Last I checked, Netscape 4.x weren't very good at that. -- PHP General

RE: [PHP] .htaccess authentification problem

2003-11-28 Thread Wouter van Vliet
Michael Hübner wrote: > Hallo, > > Hope somebody can help me. > > I'm working on Linux, Apache. > > On my start-site the user can log in via inserting Username > and Password into normal formfields, which are compared with a DB. > > After this login, he can change to his own user-directory > wh

RE: [PHP] Receiving a warning... no clue how to resolve it and need help badly :(

2003-11-28 Thread Wouter van Vliet
| \./ . Aaron Wolski wrote: > *** Sorry if this is a duplicate for some on another list** > > Hi Guys, > > I need help with this code I am about to paste. It works on a > testing server running PHP 4.2.2 but not 4.3.2 > > Here is the error: > > Warning: array_merge_recursive(): recursion det

[PHP] openssl_sign and openssl_verify

2003-11-28 Thread Dietrich Heise
Hi, is there a way to create the same signature with openssl from the command line? Also I need to verify a php gererated signature at the command line. Background: Two servers, one php is compiled with --with-openssl and the other not :/ thanks Dietrich -- PHP General Mailing List (http://www

Re: [PHP] array problems

2003-11-28 Thread Marek Kilimajer
Curtis Maurand wrote: OK. That worked, thanks. Is it me, or is that rather odd behavior? It is you ;) Shouldn't array elements set within a loop be available to me outside the loop if the loop exits normally? A loop is not a function (well it is, sort of.) Should I declare the variable as

Re: [PHP] Does anyone have Upload meter php codes?

2003-11-28 Thread Raditha Dissanayake
Hi, I though megaupload at http://www.raditha.com/php/ was pretty much near the top for many search phrases that had php, progess and upload in it. Astron of BrOnX wrote: Hi everyone, i am looking for upload meter progress bar codes. I have looked up arround and the most of them needs for patchi

Re: [PHP] The clock issue in this forum!

2003-11-28 Thread Rasmus Lerdorf
Why are you sorting your email on the sender's timestamp and not the arrival timestamp in your mailbox? Or is this really another thing Outlook can't figure out? -Rasmus On Thu, 27 Nov 2003, Kim Steinhaug wrote: > Im using Outlook Express reading theese messages and I > think the newsreader wor

Re: [PHP] GD2 Fonts

2003-11-28 Thread Jason Wong
On Friday 28 November 2003 15:33, Catalin Trifu wrote: > Fonts, > > I am trying to use imageloadfont($PATH_TO_FONT . '/arial.ttf'); on a > windowze > machine. It fails without any error message. > Now, the font I use is the one from the windows Fonts/ dir. > I have also installe

Re: [PHP] array problems

2003-11-28 Thread Jason Wong
On Friday 28 November 2003 16:03, [EMAIL PROTECTED] wrote: > I think what you got is a scope problem. You are creating $content_array > in your while loop so its scope is limited to the while loop. To test this > simply do a var_dump or print_r on $content_array outside your loop and > see if it a

Re: [PHP] array problems

2003-11-28 Thread SLanger
>$city = "Ipswitch"; >$city_found = 0; >$contentfile = fopen("content.txt", "r"); >while (!feof($contentfile) && $city_found == 0); > { >$my_line = fgets($contentfile, 16384); >$content_array = explode("\t",$my_line); >if ($content_array[0] == $city) > { >$city_foun

[PHP] Re: 2 (simple?) php related questions

2003-11-28 Thread Catalin Trifu
Hi, > Whats the advantage of the above and whats the idea? > isnt it much easier (and logical) to keep track of pages if you give them a > logical name? The idea behind this approach is using MVC (MVC2) architecture which gives much more flexibility to the programmer. Usually index.ph

[PHP] Re: .htaccess authentification problem

2003-11-28 Thread Catalin Trifu
Hi, When using .htaccess files the request does not reach your scripts untill Apache has done his authentication. So, I suggest you take out the .htaccess part for authentication and deal with it only from PHP; for instance with sessions: 1. Ask for user/pass on first page and

[PHP] GD2 Fonts

2003-11-28 Thread Catalin Trifu
Fonts, I am trying to use imageloadfont($PATH_TO_FONT . '/arial.ttf'); on a windowze machine. It fails without any error message. Now, the font I use is the one from the windows Fonts/ dir. I have also installed the freetype extension. Can anyone tell me how they do it with