Re: [PHP] encrypted urls, mcrypt and mod_rewrite

2006-02-23 Thread Dan Rossi
Yes somehow in this case apache is treating the urlencoded string of a forward slash as a forward slash and so isnt matching the rule properly. On 23/02/2006, at 9:58 PM, Jared Williams wrote: Subject: Re: [PHP] encrypted urls, mcrypt and mod_rewrite Somehow this part of the string is a

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

2006-02-23 Thread IG
Chris wrote: 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

[PHP] Calling API on Windows?

2006-02-23 Thread HoWang Wang
Dear all, I have a question on w32api ( http://hk.php.net/manual/en/ref.w32api.php ). I'm developing a command line program with PHP on windows, and I want to call some API. But I cannot found the dll required for the w32api extension. I'm using PHP/5.0.5, does anyone have an idea? Or there is

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

2006-02-23 Thread Duncan Hill
On Thursday 23 February 2006 11:49, IG wrote: IG wrote: Is it possible to alter a subject line (or body for that matter) of an email in a pop3 mailbox? Thanks- I completely see your point. How do antispam filters work on client's computers? They seem to have no problem with adding to

Re: [PHP] How secure is this?

2006-02-23 Thread Björn Bartels
Yo, tedd... [David Tulloh] Your example fails for me, Firefox and Mozilla. The rpc.php file doesn't seem to return anything. [/David Tulloh] ...it does the same for me... ok, on that way a bot will never get your mail-adr... ;) [David Tulloh] To answer your question though, a bot is capable of

[PHP] Re: auto download

2006-02-23 Thread Jens Kleikamp
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] How secure is this?

2006-02-23 Thread tedd
Björn, and David said: Yo, tedd... [David Tulloh] Your example fails for me, Firefox and Mozilla. The rpc.php file doesn't seem to return anything. [/David Tulloh] ...it does the same for me... ok, on that way a bot will never get your mail-adr... ;) LOL Björn David: The current site

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

2006-02-23 Thread Jochem Maas
George Pitcher wrote: 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, personally I'd rather stick my head in a blender than use webmin to edit such conf files. (no I wouldn't but you get the point

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

2006-02-23 Thread George Pitcher
Jochem, personally I'd rather stick my head in a blender than use webmin to edit such conf files. (no I wouldn't but you get the point hopefully) how are you restarting apache? possibly your being told that the restart occured but really your being lied to ... try doing it 'manually':

Re: [PHP] How secure is this?

2006-02-23 Thread matt stone
On 2/22/06, tedd [EMAIL PROTECTED] wrote: PS: This site works for: Opera 8.5+, Safari, Netscape 7.2+, Mozillia 1.6+, FireFox 1.0.7+, Konqueror 3.4.0+, and IE 5+ (except Mac) Doesn't work for me firefox 1.0.3 on fedora core 3. FYI, javascript consoles outputs: Error:

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

2006-02-23 Thread John Nichel
George Pitcher wrote: Jochem, personally I'd rather stick my head in a blender than use webmin to edit such conf files. (no I wouldn't but you get the point hopefully) how are you restarting apache? possibly your being told that the restart occured but really your being lied to ... try doing

[PHP] File database, a href= works, but direct url access in address bar doesn't

2006-02-23 Thread Mathieu Dumoulin
I got a really weird and annoying problem: I have a file database that people can access, depending of the file status (pending, active, deleted) i allow access to it from different people. For example, pending is available only to owner and admins, active is avail to everyone and delete is

[PHP] Re: File database, a href= works, but direct url access in addressbar doesn't

2006-02-23 Thread Mathieu Dumoulin
Update update update I tried with mozilla firefox and it worked fine, i just need to find out now what IE does that makes this process fail. If any of you have an idea that could help me solve my problem don't hesitate cause i need to find a solution. -- PHP General

[PHP] Re: auto download

2006-02-23 Thread Mathieu Dumoulin
If your page is already displayed and you want to auto start a link, its not done via PHP, its done via javascript to open a new window towards one of those links. Nothing prevents you from outputting javascript yourself from PHP, give it a try its really fun to build dynamic javascript

[PHP] Re: File database, a href= works, but direct url access in addressbardoesn't

2006-02-23 Thread Barry
Mathieu Dumoulin wrote: Update update update I tried with mozilla firefox and it worked fine, i just need to find out now what IE does that makes this process fail. If any of you have an idea that could help me solve my problem don't hesitate cause i need to find a

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

2006-02-23 Thread Roy Souther
I have been doing something to that affect in the past. The problem with that is that every time a newer version of the CMS program is released I have to go around to about 50 files and add that hack again. I want to reduce the manual labour needed to maintain these web site. Thanks for

[PHP] databases, loops and tables oh my...

2006-02-23 Thread Jason Gerfen
Not sure about this one, I am trying to execute a SQL query to retrieve records then loop over the records and display X amount per line. Any help is appreciated. $sql = @mysql_query( SELECT * FROM subnets, $db ); $num = @mysql_num_rows( $sql ); $subnets .= table width=\100%\trtd

Re: [PHP] databases, loops and tables oh my...

2006-02-23 Thread Jochem Maas
Jason Gerfen wrote: Not sure about this one, I am trying to execute a SQL query to retrieve records then loop over the records and display X amount per line. Any X ammount of what per 'line'? db records (or elelphants)? and by line do you mean 'html table row'? assuming I got that correct,

Re: [PHP] Re: CLASS/Object lifetime - more info

2006-02-23 Thread Jochem Maas
Roger Helgesen wrote: ain't that the other way around ? I don't get the context of the question. isn't what supposed to be the otherway around? $var1=$var2 ($var1 is a copy of $var2) $var1= $var2 ($var1 is a reference to $var2) $var1='Test' echo $var2 (outputs Test) roger Jochem Maas

Re: [PHP] Re: CLASS/Object lifetime - Solution

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

Re: [PHP] Calling API on Windows?

2006-02-23 Thread Jochem Maas
Hi Ho, (7 dwarfs anyone? ;-) click this link to download php4.4.2 (not the installer version) it contains the DLL your looking for: http://hk.php.net/get/php-4.4.2-Win32.zip/from/a/mirror in the event that your using php5 then w32api is no longer available - it has been replaced with fcc:

[PHP] Re: Reading binary http post

2006-02-23 Thread Dirk Vanden Boer
Manuel Lemos schreef: 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

[PHP] Re: Reading binary http post

2006-02-23 Thread Manuel Lemos
Hello, on 02/23/2006 02:55 PM Dirk Vanden Boer said the following: The problem is that you are misleading PHP telling that you are posting form data. You need to correct the request Content-Type. It must not be application/x-www-form-urlencoded nor multipart/form-data . I think you can use

[PHP] [How-to]flatfile New system with comments

2006-02-23 Thread Nicholas Couloute
How would I make a flatfile new systen with the ability for users to comment on the news selection (no login required)? ~Nick Couloute co-owner/Web Designer Sidekick2Music.Com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

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

2006-02-23 Thread Manuel Lemos
Hello, on 02/23/2006 11:32 AM George Pitcher said the following: My apache error.log says: sh: line 1: /usr/sbin/sendmail -t: no such file or directory /usr/sbin/sendmail is not the correct sendmail program path. The correct path is /usr/lib/sendmail . It may be odd that a program is

Re: [PHP] [How-to]flatfile New system with comments

2006-02-23 Thread John Nichel
Nicholas Couloute wrote: How would I make a flatfile new systen with the ability for users to comment on the news selection (no login required)? Write the code for it. -- John C. Nichel IV Programmer/System Admin (ÜberGeek) Dot Com Holdings of Buffalo 716.856.9675 [EMAIL PROTECTED] -- PHP

RE: [PHP] [How-to]flatfile New system with comments

2006-02-23 Thread Jay Blanchard
[snip] How would I make a flatfile new systen with the ability for users to comment on the news selection (no login required)? Write the code for it. {/snip] Carefully and thoughtfully. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] [How-to]flatfile New system with comments

2006-02-23 Thread John Nichel
Nicholas Couloute wrote: LOL. I see the point your trying to make! I have made a news script before but how would I add coments to each individual new article! How would I keep it all together! and also to show only the lastest news articles! Without seeing one iota of your code, or your

RE: [PHP] [How-to]flatfile New system with comments

2006-02-23 Thread Jay Blanchard
[snip] LOL. I see the point your trying to make! I have made a news script before but how would I add coments to each individual new article! How would I keep it all together! and also to show only the lastest news articles! [/snip] See http://www.php.net/fopen and look at appending files. --

Re: [PHP] [How-to]flatfile New system with comments

2006-02-23 Thread Robert Cummings
On Thu, 2006-02-23 at 15:18, John Nichel wrote: Nicholas Couloute wrote: LOL. I see the point your trying to make! I have made a news script before but how would I add coments to each individual new article! How would I keep it all together! and also to show only the lastest news

Re: [PHP] [How-to]flatfile New system with comments

2006-02-23 Thread Jason Gerfen
John Nichel wrote: Nicholas Couloute wrote: How would I make a flatfile new systen with the ability for users to comment on the news selection (no login required)? Write the code for it. lol, too funny. The filesystem reference: http://us2.php.net/manual/en/ref.filesystem.php (this

Re: [PHP] [How-to]flatfile New system with comments

2006-02-23 Thread John Nichel
Jay Blanchard wrote: [snip] How would I make a flatfile new systen with the ability for users to comment on the news selection (no login required)? Write the code for it. {/snip] Carefully and thoughtfully. That goes for questions too. http://www.catb.org/~esr/faqs/smart-questions.html

Re: [PHP] [How-to]flatfile New system with comments

2006-02-23 Thread Nicholas Couloute
LOL. I see the point your trying to make! I have made a news script before but how would I add coments to each individual new article! How would I keep it all together! and also to show only the lastest news articles! On Thu, 23 Feb 2006 3:04 pm, Jay Blanchard wrote: [snip] How would I

[PHP] without session variables

2006-02-23 Thread Ing. Tom�s Liendo
Hi a system that I developed and I tested in my PC and it runs to the perfection, when I upload this to the hosting server it has many problems. I think that is because the session variables don't work in the server. It is possible? How can I solve this??? Ahead of time, thank you very much,

[PHP] return node-set to stylesheet via php:function

2006-02-23 Thread kwmccabe
using: RedHat ; PHP 5.1.2 ; libxml 2.6.22 How do I return a node-set to an xsl stylesheet via php:function? I've had no difficulty returning strings, but so far xsl refuses to see the result as something I can iterate as real XML. php fragment: - // return

Re: [PHP] Re: auto download

2006-02-23 Thread Jochem Maas
Jens Kleikamp wrote: 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

[PHP] Can php.ini include another config file

2006-02-23 Thread Khai
In my development environment I have Zend Debugger / Zend Studio installed. I like to put all the directives for this into studio.ini, and include this file into the main php.ini somehow. Is this possible? Also can I put php directives into the apache httpd.conf file? Khai -- PHP General

Re: [PHP] Can php.ini include another config file

2006-02-23 Thread Richard Lynch
On Thu, February 23, 2006 4:28 pm, Khai wrote: In my development environment I have Zend Debugger / Zend Studio installed. I like to put all the directives for this into studio.ini, and include this file into the main php.ini somehow. Is this possible? I don't think so, but if it's part of

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

2006-02-23 Thread Joel Leibow
You need to check your httpd.conf and make sure the Options FollowSymLinks is set for the server. Check the apache documentation for further information. Joel Leibow Roy Souther [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] I am trying to stop PHP from resolving symlinks. I have

[PHP] base64_encode, forward slashes and mod_rewrite

2006-02-23 Thread Dan Rossi
Continueing on my prior problem, Ive discovered that base64_encode adds forward slashes in its encoded string, when its urlencoded it becomes something like /feeds/UmFuZG9tSVZd%2FMChU7sMQqdUi%2FrgYHD7 mod_rewrite doesnt seem to like the %2F in the string and fails with a 404 as it doesnt

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

2006-02-23 Thread Chris
Roy Souther wrote: I have been doing something to that affect in the past. The problem with that is that every time a newer version of the CMS program is released I have to go around to about 50 files and add that hack again. Don't make it a hack - make it how it works. I use it all over the

Re: [PHP] base64_encode, forward slashes and mod_rewrite

2006-02-23 Thread Dan Rossi
sorry Ive done it again, for anyones interest, you might have to urlencode the string twice for mod_rewrite to accept encrypted and base64_encoded strings which add slashes and ampersands into their strings. It is confirmed there is a bug in mod_rewrite and doesnt like the urlencoded %2F

[PHP] verification of mail success

2006-02-23 Thread mattias
Hi, This might be too simple or not... I'm trying to send emails from my PHP page, and while both mail() and PEAR Mail work, I'm having a hard time finding out whether a message was actually sent or not. With both mail() and PEAR Mail, an email to an invalid domain (syntactically valid) name

Re: [PHP] without session variables

2006-02-23 Thread Chris
a system that I developed and I tested in my PC and it runs to the perfection, when I upload this to the hosting server it has many problems. I think that is because the session variables don't work in the server. It is possible? How can I solve this??? What problems? You can check if

Re: [PHP] verification of mail success

2006-02-23 Thread Chris
[EMAIL PROTECTED] wrote: Hi, This might be too simple or not... I'm trying to send emails from my PHP page, and while both mail() and PEAR Mail work, I'm having a hard time finding out whether a message was actually sent or not. The short answer is 'not really'. The long answer.. If the

[PHP] Re: verification of mail success

2006-02-23 Thread Manuel Lemos
Hello, on 02/23/2006 09:22 PM [EMAIL PROTECTED] said the following: This might be too simple or not... I'm trying to send emails from my PHP page, and while both mail() and PEAR Mail work, I'm having a hard time finding out whether a message was actually sent or not. With both mail()

Re: [PHP] Re: verification of mail success

2006-02-23 Thread Mattias Thorslund
Manuel Lemos wrote: Hello, on 02/23/2006 09:22 PM [EMAIL PROTECTED] said the following: This might be too simple or not... I'm trying to send emails from my PHP page, and while both mail() and PEAR Mail work, I'm having a hard time finding out whether a message was actually sent or

Re: [PHP] Re: verification of mail success

2006-02-23 Thread Manuel Lemos
Hello, on 02/23/2006 10:52 PM Mattias Thorslund said the following: This might be too simple or not... I'm trying to send emails from my PHP page, and while both mail() and PEAR Mail work, I'm having a hard time finding out whether a message was actually sent or not. With both mail()

Re: [PHP] Re: verification of mail success

2006-02-23 Thread Chris
Yes I'm aware of the mail queue. I guess what I'm after is way to get a more detailed status message. I notice that in the mail queue, each message is given a unique ID, which I suspect could be used for my purpose, i.e. has the message been processed yet, is there a temporary or permanent

Re: [PHP] Can php.ini include another config file

2006-02-23 Thread Rasmus Lerdorf
Khai wrote: In my development environment I have Zend Debugger / Zend Studio installed. I like to put all the directives for this into studio.ini, and include this file into the main php.ini somehow. Is this possible? Also can I put php directives into the apache httpd.conf file? No, you

Re: [PHP] Calling API on Windows?

2006-02-23 Thread HoWang Wang
Hi, How can I use it? For example: [lib='user32.dll'] int MessageBoxA(int handle, char *text, char *caption, int type); How can I write this sentence? What is the format? And I want to use GetComputerNameA, what can I do? ?php $win32_idl = [lib='user32.dll'] int MessageBoxA(int handle, char

[PHP] Floored!

2006-02-23 Thread Ben Miller
If anyone has an answer for this, I would be greatly appreciative. I was trying to compare two values, the first is the total cost of products to be refunded, and the second is the original order total. To the naked eye, they both were coming out as 102.85, yet an if($Refund_Amount

[PHP] PHP Manual in PDF format

2006-02-23 Thread Kaushal Shriyan
Hi ALL I am looking out for PHP Manual in PDF Format Thanks in Advance Regards Kaushal -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Floored!

2006-02-23 Thread Ruben Rubio Rey
|What PHP versioan are u using? (Maybe a known bug?) What options did u use to compile? |Temporarily solutions ...| - round($Bar, 2) Or - intval($Bar*100)/100 | Ben Miller wrote: If anyone has an answer for this, I would be greatly appreciative. I was trying to compare two values, the

[PHP] Re: Beta Testers Wanted

2006-02-23 Thread Barry
Matt Palermo wrote: 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

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

2006-02-23 Thread Jochem Maas
Dan Rossi wrote: Ok it looks like when i exploded the urls by a comma, one has space exploding the urls??? - this list is not called 'php-psychics' for a reason. i.e. don't assume we know that you happen to have a string which contains 'urls' that you seem to explode on a comma before going on

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

2006-02-23 Thread Dan Rossi
On 23/02/2006, at 8:45 PM, Jochem Maas wrote: Dan Rossi wrote: Ok it looks like when i exploded the urls by a comma, one has space exploding the urls??? - this list is not called 'php-psychics' for a reason. i.e. don't assume we know that you happen to have a string which contains 'urls'

Re: [PHP] Beta Testers Wanted

2006-02-23 Thread Dotan Cohen
On 2/22/06, Matt Palermo [EMAIL PROTECTED] wrote: 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

Re: [PHP] encrypted urls, mcrypt and mod_rewrite

2006-02-23 Thread Jochem Maas
Dan Rossi wrote: Somehow this part of the string is a problem, it has underscores, but there is probably other things in this. give code, give the whole string. _%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

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

2006-02-23 Thread Jochem Maas
Dan Rossi wrote: On 23/02/2006, at 8:45 PM, Jochem Maas wrote: Dan Rossi wrote: Ok it looks like when i exploded the urls by a comma, one has space exploding the urls??? - this list is not called 'php-psychics' for a reason. i.e. don't assume we know that you happen to have a string

RE: [PHP] encrypted urls, mcrypt and mod_rewrite

2006-02-23 Thread Jared Williams
Subject: Re: [PHP] encrypted urls, mcrypt and mod_rewrite 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 I'd base64 encode that first then urlencode :) On

Re: [PHP] encrypted urls, mcrypt and mod_rewrite

2006-02-23 Thread Dan Rossi
Ahh thanks heaps, its working more nicely However, trying to add more data into the encrypted string which is then base64_encoded I get a slash in the string which is breaking the rewriterule like the other cases. UmFuZG9tSVYljfOW15UlfzVJV8zBtaEXPh0mPku64cowVrHo%2Fgno9LeTfwejwsmG The

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

2006-02-23 Thread IG
Thanks, Nobody Special. You like filling people with confidence. We all have to start somewhere don't we? I am starting this completely from scratch and it will be quite a while before I put this into service. However thanks for the information on mail boxes. I don't have much knowledge on