[PHP] Re: CLASS/Object lifetime - Solution

2006-02-22 Thread roger helgesen
function fyll_sub_konto($pv){ foreach($this-subposter AS $konto=$kt){ $kontoen= $this-subposter[$konto]; $kontoen-fyll_fra_post($pv); $kontoen-endre(); } } the line $kontoen=

Re: [PHP] Request for views on ASP/PHP/ASP.NET - please!

2006-02-22 Thread Wely E.R.
I'm waiting for the result. It would be nice of you when you post it in this list. Thanx. From: Simon O'Beirne On Monday, February 20, 2006 11:58 PM Wrote: Hi guys, A bit of an odd request. I'm in my third and final year at university, and part of an assignment requires obtaining

RE: [PHP] Nested Set Model or modified preorder tree traversal

2006-02-22 Thread Jared Williams
Hi, As your using MySQL5, I'd recommend putting all the Nested Set code in stored procedures, that way the client doesn't need to know about anything about the method, and the left, right columns never need to be retrieved. Jared I've been searching the web for the past few hours

[PHP] php 4 v php 5

2006-02-22 Thread tedd
Hi: Curt. said: PHP 4.4.2 - Released Jan 13 2006 php 5.1.2 - Released Jan 12 2006 PHP 5.0.5 - Released Sept 6 2005 I wouldn't expect any more releases of 5.0.x version. Pardon my ignorance -- I have enough problems pounding out code to spend time following what's happening at the higher

RE: [PHP] Session problems [SOLVED]

2006-02-22 Thread Dan Parry
Hi all I didn't get that many replies (thanks to those who did reply :) ) for this, so now I've figured out the problem I thought I'd share the solution just in case anyone else has the same issue: solution The problem stemmed from the way the return from UPDATE is handled and the scripts

Re: [PHP] php 4 v php 5

2006-02-22 Thread David Tulloh
tedd wrote: Hi: Curt. said: PHP 4.4.2 - Released Jan 13 2006 php 5.1.2 - Released Jan 12 2006 PHP 5.0.5 - Released Sept 6 2005 I wouldn't expect any more releases of 5.0.x version. Pardon my ignorance -- I have enough problems pounding out code to spend time following what's

[PHP] auto download

2006-02-22 Thread Benjamin Adams
I have three links. The code already auto selects one. I'm trying to take that one link and automaticly start the download. I tryed with header('location:$link'); but it tells me Warning: Cannot modify header information what would I use to start downloading? one of the link is another page so I

Re: [PHP] CLI utility

2006-02-22 Thread John Nichel
Ray Cantwell wrote: Hello again, I was wondering if any of you knew of a good command line utility for php5 on linux? The box i write on has no X-windows. Ray. A command line utility to do what? -- John C. Nichel IV Programmer/System Admin (ÜberGeek) Dot Com Holdings of Buffalo

Re: [PHP] auto download

2006-02-22 Thread John Nichel
Benjamin Adams wrote: I have three links. The code already auto selects one. I'm trying to take that one link and automaticly start the download. I tryed with header('location:$link'); but it tells me Warning: Cannot modify header information what would I use to start downloading? one of the

Re: [PHP] auto download

2006-02-22 Thread Benjamin Adams
I have it working with javascript but the if statements are not working: ?php $num_download = rand(0,100); echo $num_download; if($num_downlaod = 50){ ? script type=text/javascript window.open('?=$conf[$links]['link1']?'); /script ?php }else if(($num_download 50) ($num_download =

[PHP] Wormux

2006-02-22 Thread yeKcim
Hello. Wormux is an opensource clone of Worms (Team17) : http://www.wormux.org. My name is CARRÉ Anthony (yeKcim) and i'm a Wormux contributor, i draw some characters (skins) for this game : http://www.wormux.org/wiki/en/skins.php. My idea is to use opensource software mascots to draw funny

Re: [PHP] Problem with mail() on Debian

2006-02-22 Thread Jochem Maas
George Pitcher wrote: Hi, I am in the process of moving from Windows (NT/XP) to Linux. I'm starting with a new small application which I have working on my Windows XP laptop. On my Linux box, I have php.ini saying: search this page for 'exim' - it should help: http://php.net/mail

[PHP] Beta Testers Wanted

2006-02-22 Thread Matt Palermo
Hey guys. I would like to first say thanks for all the help you have all given me in the past (especially in my early programming days). Once again, I would like to show my appreciation by offering an opportunity to use a new PHP program I have created. The program is called TotalXplorer.

[PHP] Altering subject of email in a pop3 mailbox

2006-02-22 Thread IG
Hi all. Tried to find this and can't find any info. I am writing a spam filter to run over multiple pop3 mail boxes which will work on keywords and Bayesian. With a very high score the filter will simply delete the email, with a med-high it will back the email in a 'bulk-mail' folder and

Re: [PHP] auto download

2006-02-22 Thread John Nichel
Benjamin Adams wrote: I have it working with javascript but the if statements are not working: ?php $num_download = rand(0,100); --- echo $num_download; if($num_downlaod = 50){ -- See a problem? -- John C. Nichel IV Programmer/System Admin (ÜberGeek) Dot Com

Re: [PHP] auto download

2006-02-22 Thread tedd
I have three links. The code already auto selects one. I'm trying to take that one link and automaticly start the download. I tryed with header('location:$link'); but it tells me Warning: Cannot modify header information what would I use to start downloading? one of the link is another page so I

[PHP] Re: array variables with or without quotes

2006-02-22 Thread Chuck Anderson
2dogs wrote: I recently encountered a situation where I had to retrieve data from a MYSQL database table with a field named include. My code looked like this: $content_result = mysql_query('SELECT * FROM calander') or die(mysql_error()); $content_row = mysql_fetch_array($content_result); if

[PHP] Conceptional question on dealing with different languages

2006-02-22 Thread janbro
Hello list, it has been a while since I've posted the last time, but now I need your help/ opinion again. I'm re-designing an existing page for an online shop which is supposed to be used in different languages. The former design was just a plan echo for an output since the page was only

RE: [PHP] Nested Set Model or modified preorder tree traversal

2006-02-22 Thread Daevid Vincent
Peter Brawley on the mySQL list pointed me at: http://www.artfulsoftware.com/mysqlbook/sampler/mysqled1ch20.html Which uses mySQL 5's procedures and such. I haven't implemented this yet, but it appears to be what I wanted for the most part. -Original Message- From: Curt Zirzow

Re: [PHP] Conceptional question on dealing with different languages

2006-02-22 Thread Philip Hallstrom
Hello list, it has been a while since I've posted the last time, but now I need your help/ opinion again. I'm re-designing an existing page for an online shop which is supposed to be used in different languages. The former design was just a plan echo for an output since the page was only

RE: [PHP] Re: array variables with or without quotes

2006-02-22 Thread Jason Karns
I believe it is because without the quotes, it is expecting a predefined constant. With the quotes, it is expecting an array key. This is why if you use a word that is not defined as a constant, php will first look for it as a constant, won't find it, then looks through the array treating it like

[PHP] (array)

2006-02-22 Thread Jay Paulson
Just came across some code I haven't seen before and can't find anything on php.net or google about it (maybe I'm not searching for the right thing?). What is the following doing? // $dataobject is holding a bunch of variables like: // $dataobject-var1 // $dataobject-var2 // etc...

Re: [PHP] (array)

2006-02-22 Thread John Nichel
Jay Paulson wrote: Just came across some code I haven't seen before and can't find anything on php.net or google about it (maybe I'm not searching for the right thing?). What is the following doing? // $dataobject is holding a bunch of variables like: // $dataobject-var1 //

Re: [PHP] (array)

2006-02-22 Thread Ray Hauge
On Wednesday 22 February 2006 15:09, John Nichel wrote: Jay Paulson wrote: Just came across some code I haven't seen before and can't find anything on php.net or google about it (maybe I'm not searching for the right thing?). What is the following doing? // $dataobject is holding a

[PHP] How secure is this?

2006-02-22 Thread tedd
Hi gang: A few days ago I posted my first attempt ajax. I posed the question Could a bot find my email address contained within the code? There was some discussion, but I wasn't sure as to what the decision was, so I made another example, which can be found at: http://www.xn--ovg.com/aja

Re: [PHP] How secure is this?

2006-02-22 Thread Björn Bartels
Hi tedd... is this enough... : http://www.xn--ovg.com/aja/rpc.php?action=start in my opinion, an img src=crt_eml_btn.php onclick=contact() is a handy way... cheers bb Hi gang: A few days ago I posted my first attempt ajax. I posed the question Could a bot find my email address contained

Re: [PHP] Altering subject of email in a pop3 mailbox

2006-02-22 Thread Chris
IG wrote: Is it possible to alter a subject line (or body for that matter) of an email in a pop3 mailbox? If it's already in the mailbox, then I highly doubt you can do this. You need to do this on the way in before it gets to the account. Consider the ramifications if you could: Anyone

[PHP] How can I stop PHP from resolving symlinks?

2006-02-22 Thread Roy Souther
I am trying to stop PHP from resolving symlinks. I have a PHP CMS that I use to host dozens of sites using Apache virtual hosting features. I need all the sites to run the exact same PHP CMS code but use their unique directories to host the different config files. The problem is that the PHP

[PHP] Case issue with eregi_replace in text highlight function

2006-02-22 Thread Nicolas Verhaeghe
Hi all! I have a text highlight function which does not behave exactly as needed. Behavior is logical but result is cumbersome. Instead of replacing the portion of the text with the same portion of text with some highlighting code added before and after, it replaces the said text with the chunk

Re: [PHP] How can I stop PHP from resolving symlinks?

2006-02-22 Thread Chris
Roy Souther wrote: How can I make PHP use the symlink and stop trying to resolve the original files? Can you try: $mydir = dirname(__FILE__); include($mydir . '/../config.php'); ? or $mydir = dirname(__FILE__); include(dirname($mydir) . '/config.php'); -- Postgresql php tutorials

Re: [PHP] Case issue with eregi_replace in text highlight function

2006-02-22 Thread Chris
Here is the function: function highlight_text($text, $highlight) { return eregi_replace($highlight, span class=highlight . $highlight . /span, $text); } In this case, if the text to highglight is: MacOS X Super Gizmo And a client searches for the string macos, the result will be: span

RE: [PHP] Case issue with eregi_replace in text highlight function

2006-02-22 Thread Nicolas Verhaeghe
That's not where the issue is. Eregi_replace conducts a case insensitive SEARCH but how the REPLACE operates has nothing to do with it. If you use ereg_replace, then it is most obviously not going to replace MacOS with span class=highlightmacos/span or even span class=highlightMacOS/span,

Re: [PHP] Case issue with eregi_replace in text highlight function

2006-02-22 Thread Chris
Nicolas Verhaeghe wrote: That's not where the issue is. Eregi_replace conducts a case insensitive SEARCH but how the REPLACE operates has nothing to do with it. If you use ereg_replace, then it is most obviously not going to replace MacOS with span class=highlightmacos/span or even span

RE: [PHP] Case issue with eregi_replace in text highlight function

2006-02-22 Thread Chrome
/) To unsubscribe, visit: http://www.php.net/unsub.php __ NOD32 1.1416 (20060222) Information __ This message was checked by NOD32 antivirus system. http://www.eset.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Issue with encrypted string created with Crypt_CBC and urls and mod_rewrite

2006-02-22 Thread Dan Rossi
hi there im having issue decoding an encoded string created with a pear package Crypt_CBC which i am encoding a uri into the string and sending to a rewrite url. The query string is not returning the encoded part of the url properly for some reason and not decoding properly. I have already

[PHP] parse_url not parsing hosts with www properly in php 5.1.2

2006-02-22 Thread Dan Rossi
Ive just discovered a strange issue where parse_url is not splitting up the url properly. in the host key its returning like //www.php.net where the url is http://www.php.net. any ideas ? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] parse_url not parsing hosts with www properly in php 5.1.2

2006-02-22 Thread Chris
Dan Rossi wrote: Ive just discovered a strange issue where parse_url is not splitting up the url properly. in the host key its returning like //www.php.net where the url is http://www.php.net. any ideas ? If the behaviour changed between versions without it being documented or noted

[PHP] [JOB] Sr PHP Developer, Boca Raton, FL | 80-125k

2006-02-22 Thread Beau Gould
Senior PHP Developer, Boca Raton, FL | 80-125k Senior PHP Developer/Lead Programmer that has a solid object-oriented analysis and design background. The new team member will be involved in the planning and development of a variety of in-house, enterprise level e-commerce and marketing

Re: [PHP] parse_url not parsing hosts with www properly in php 5.1.2

2006-02-22 Thread Dan Rossi
Ok it looks like when i exploded the urls by a comma, one has space padding, i had to trim it first, the array was coming out like host=__http path=//www.thedomain.com :\ On 23/02/2006, at 1:05 PM, Chris wrote: Dan Rossi wrote: Ive just discovered a strange issue where parse_url is not

Re: [PHP] Issue with encrypted string created with Crypt_CBC and urls and mod_rewrite

2006-02-22 Thread Dan Rossi
It also seems that any forward slash being encoded if it encodes, mod_rewrite doesnt like, therefore I have to split up the urls using parse_url, but it seems it still doesnt like the query part and some special characters like ampersands and equals ? On 23/02/2006, at 12:30 PM, Dan Rossi

RE: [PHP] Case issue with eregi_replace in text highlight function

2006-02-22 Thread Nicolas Verhaeghe
://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php __ NOD32 1.1416 (20060222) Information __ This message was checked by NOD32 antivirus system. http://www.eset.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net

[PHP] Re: array variables with or without quotes

2006-02-22 Thread 2dogs
Chuck, you are the man! I decided to reread the manual word for word but have only gotten through Strings as of last night. Thanks for zeroing me in on the right spot. txs 2dogs Chuck Anderson [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] 2dogs wrote: I recently encountered

[PHP] Re: Reading binary http post

2006-02-22 Thread Manuel Lemos
Hello, on 02/21/2006 03:40 PM Dirk Vanden Boer said the following: I have a C++ application that posts binary data to a php script that I created using libcurl. Everything works fine except when my binary data happens to start with the '' symbol. In that case I can't read the http post

Re: [PHP] HN CAPTCHA at http://www.phpclasses.org

2006-02-22 Thread Manuel Lemos
Hello, on 02/17/2006 05:10 PM tedd said the following: Manuel: Your points are well taken. A good CAPTCHA must be fuzzy. If you know other fuzzy CAPTCHA besides these, it may help to sharing that knowledge. The CAPTCHA I was primarily referring to was the image one -- however, it's

Re: [PHP] HN CAPTCHA at http://www.phpclasses.org

2006-02-22 Thread Manuel Lemos
Hello, on 02/19/2006 09:12 PM tedd said the following: Manuel: A good CAPTCHA must be fuzzy. If you know other fuzzy CAPTCHA besides these, it may help to sharing that knowledge. Try this: http://xn--ovg.com/no_bot The point of CAPTCHA is to provide something that a bot can't figure

Re: [PHP] novice with hacked email form issue

2006-02-22 Thread Manuel Lemos
Hello, on 02/21/2006 03:19 PM cKc Consultants said the following: An email form that uses a simple server side php code to send the variable values managed to send: Content-Type: multipart/alternative; boundary=5c7c7e682d991e8ec1f6825582ea2103 MIME-Version: 1.0 Subject: round a rock by

RE: [PHP] novice with hacked email form issue

2006-02-22 Thread cKc Consultants
Thanks for all of the help! Thanks for all of the help and resources! -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] How secure is this?

2006-02-22 Thread David Tulloh
Your example fails for me, Firefox and Mozilla. The rpc.php file doesn't seem to return anything. To answer your question though, a bot is capable of getting anything that a human can, probably more. It's all a question of effort. As the email scrapers get plenty of hits looking for

RE: [PHP] Problem with mail() on Debian

2006-02-22 Thread George Pitcher
Jochem, Thanks, but I tried that and it made no difference. I have found that any changes I make to php.ini are ignored, even after restarting Apache. I have been editing httpd.conf via Webmin, which for most configs works fine (and is displayed in phpinfo(), the sendmail changes are never

[PHP] encrypted urls, mcrypt and mod_rewrite

2006-02-22 Thread Dan Rossi
Hi ive been trying to find answers with no luck. I am sending a urlencoded encrypted string made with mcrypt. what is happening is there is somehow special characters that mod_rewrite doesnt like so it wont find a regex match properly with this rule RewriteRule ^feeds/(.*)$ refer.php?$1

Re: [PHP] Problem with mail() on Debian

2006-02-22 Thread Manuel Lemos
Hello, on 02/23/2006 03:55 AM George Pitcher said the following: Jochem, Thanks, but I tried that and it made no difference. I have found that any changes I make to php.ini are ignored, even after restarting Apache. I have been editing httpd.conf via Webmin, which for most configs works

Re: [PHP] encrypted urls, mcrypt and mod_rewrite

2006-02-22 Thread Dan Rossi
Somehow this part of the string is a problem, it has underscores, but there is probably other things in this. _%E5%D4%13%82%C9%DFN%5EFs%5E47%B2v%2F%D7%A4%0C%C6%9EnJ On 23/02/2006, at 6:01 PM, Dan Rossi wrote: Hi ive been trying to find answers with no luck. I am sending a urlencoded

RE: [PHP] Problem with mail() on Debian

2006-02-22 Thread George Pitcher
Manuel, I have found that any changes I make to php.ini are ignored, even after restarting Apache. I have been editing httpd.conf via Webmin, which for most configs works fine (and is displayed in phpinfo(), the sendmail changes are never displayed (always shows sendmail_path =