[PHP] Spamed?

2007-02-07 Thread fabio
Are you a spammer? (I found your email on a spammer website!?!) -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] base64-encoding in cookies?

2007-02-07 Thread Nicholas Yim
Hello Fletcher Mattox, urlencode the string before set the cookie or replace array(' ',urlencode('/')) to array('+','/') Best regards, === At 2007-02-07, 15:59:13 you wrote: === Hi, A campus web server (not under my control) returns an authentication string in a cookie

Re: [PHP] Spamed?

2007-02-07 Thread Sébastien WENSKE
what's this qustion ??? where ? - Original Message - From: [EMAIL PROTECTED] To: php-general@lists.php.net Sent: Wednesday, February 07, 2007 9:34 AM Subject: [PHP] Spamed? Are you a spammer? (I found your email on a spammer website!?!)

Re: [PHP] Spamed?

2007-02-07 Thread Sébastien WENSKE
ok, Fabio tour computer is infected by W32/MyDoom-AR (worm) http://www.sophos.fr/security/analyses/w32mydoomar.html - Original Message - From: Sébastien WENSKE [EMAIL PROTECTED] To: [EMAIL PROTECTED]; php-general@lists.php.net Sent: Wednesday, February 07, 2007 9:39 AM Subject: Re:

Re: [PHP] PHP5 Commercial Development

2007-02-07 Thread Lars Gunther
Robert Cummings skrev: On Tue, 2007-02-06 at 23:45 +0100, Keryx Web wrote: Could you point out to me where exactly the discussion became about PHP4 versus PHP5? I seem to be smelling the red herring technique of changing the conversation focus so as to inappropriately lend credence to the

Re: [PHP] Opera advice needed!

2007-02-07 Thread William Stokes
If there's an opera expert around could you please check out the following link: http://www.fcviikingit.com/new/testimenu.php This script contacts a DB and prints out the results as javascript to the client browser. As I mentioned earlier It works ok with IE, FF, Netscape but not with Opera.

Re: [PHP] Opera advice needed!

2007-02-07 Thread Frank Arensmeier
7 feb 2007 kl. 09.50 skrev William Stokes: If there's an opera expert around could you please check out the following link: http://www.fcviikingit.com/new/testimenu.php This script contacts a DB and prints out the results as javascript to the client browser. As I mentioned earlier It

Re: [PHP] Opera advice needed!

2007-02-07 Thread William Stokes
ShitSHitSHIT!!! I had javascript disabled in Opera. The browsed just ignored it's own settings while brosing my server??? Feeling stopid. :O -W (Just costed me 3 hours) William Stokes [EMAIL PROTECTED] kirjoitti viestissä:[EMAIL PROTECTED] Thanks, I got the html sorter and the page

RE: [PHP] Opera advice needed!

2007-02-07 Thread Edward Kay
It appears to be working fine for me using Opera 8 and 9.10 on WinXP. Have you fixed it? If not, check your preferences in Opera. You may have JS disabled for non-local sites or similar. Edward -Original Message- From: William Stokes [mailto:[EMAIL PROTECTED] Sent: 07 February 2007

Re: [PHP] Opera advice needed!

2007-02-07 Thread William Stokes
Thanks, I got the html sorter and the page now passes validation. But still with Opera 9.02 on WinXP nothing is printed out. (can see the javascript in the source code though) This must be some js shit. I just can't understand how the same script(s) work with the same client pc/browser when

Re: [PHP] Opera advice needed!

2007-02-07 Thread Robert Cummings
On Wed, 2007-02-07 at 12:16 +0200, William Stokes wrote: ShitSHitSHIT!!! I had javascript disabled in Opera. The browsed just ignored it's own settings while brosing my server??? Feeling stopid. While it works fine, I get a slew of warnings for your sloppy css since you don't give units

Re: [PHP] PHP5 Commercial Development

2007-02-07 Thread Robert Cummings
On Wed, 2007-02-07 at 09:47 +0100, Lars Gunther wrote: Robert Cummings skrev: On Tue, 2007-02-06 at 23:45 +0100, Keryx Web wrote: Could you point out to me where exactly the discussion became about PHP4 versus PHP5? I seem to be smelling the red herring technique of changing the

[PHP] JS prompt - php

2007-02-07 Thread Ryan A
Hey all! Quick question (and hopefully a simple one) I have a link on a page, when the client clicks that link it should show them a JS prompt and ask for their name (so far I have done this) When they write their name, I want that data to be sent to my php script via AJAX (yes?) so the page

Re: [PHP] Opera advice needed!

2007-02-07 Thread clive
William Stokes wrote: Hello, I just noticed when I published a new menu system that it does NOT work in the ISP hosted server. However it works ok on my test server. Here's the test I have done all in same client machine (=unchanged browser settings): works fine in opera 9.10 ubuntu edgy

Re: [PHP] JS prompt - php

2007-02-07 Thread Myron Turner
Ryan A wrote: Hey all! Quick question (and hopefully a simple one) I have a link on a page, when the client clicks that link it should show them a JS prompt and ask for their name (so far I have done this) When they write their name, I want that data to be sent to my php script via AJAX

Re: [PHP] Opera advice needed!

2007-02-07 Thread Jochem Maas
Robert Cummings wrote: On Wed, 2007-02-07 at 12:16 +0200, William Stokes wrote: ShitSHitSHIT!!! I had javascript disabled in Opera. The browsed just ignored it's own settings while brosing my server??? Feeling stopid. While it works fine, I get a slew of warnings for your sloppy css

Re: [PHP] PHP4 to PHP5 issue

2007-02-07 Thread Christopher Weldon
On Feb 5, 2007, at 2:00 PM, Jochem Maas wrote: you don't need to use the box - you can install a 2nd copy of apache and run php4 on it and use the apache ProxyPass directive to make the php4/apache setup available via the apache(2)/php5 [std] webserver. search the archives for 'ProxyPass'

Re: [PHP] JS prompt - php

2007-02-07 Thread tedd
At 5:11 AM -0800 2/7/07, Ryan A wrote: Hey all! Quick question (and hopefully a simple one) I have a link on a page, when the client clicks that link it should show them a JS prompt and ask for their name (so far I have done this) When they write their name, I want that data to be sent to

Re: [PHP] PHP4 to PHP5 issue

2007-02-07 Thread Myron Turner
Christopher Weldon wrote: You actually don't even have to run a second instance of Apache. From what I've heard of other hosting companies doing, you can use the same Apache installation and run PHP4 and PHP5 concurrently. However, the only thing you'd have to do is one of the following: 1)

Re: [PHP] PHP book reviewers wanted

2007-02-07 Thread Manuel Lemos
Hello, on 02/06/2007 01:25 PM tedd said the following: Demonstrating good English writing skills and having published good book reviews in the past gets me preference. gets me preference ??? Me get any money for this? Hey, go easy on the non-native speakers... I'm betting your

[PHP] How to parse PHP tags in a string?

2007-02-07 Thread Zak Mc Kracken
Hi all, Is there a PHP function that parses a string as it was the content of a PHP file? I have a CMS application and editors write the news items text into a text area. Since they have some knowledge of PHP, I'd like to allow them to insert ? ... ? or ?= ... ? and have the content blocks

[PHP] Sessions working/not

2007-02-07 Thread Ken Kixmoeller -- reply to [EMAIL PROTECTED]
Hey - -- - Would anyone be so kind as to un-stick my brain? I can't get sessions to work on my development machine (localhost). They work fine on my testing server (an internal IP). Development: W2K, Testing Server W2K Server, both using IIS 5, PHP 5.2. The php.ini SESSION settings are

Re: [PHP] PHP4 to PHP5 issue

2007-02-07 Thread Jochem Maas
Myron Turner wrote: Christopher Weldon wrote: You actually don't even have to run a second instance of Apache. From what I've heard of other hosting companies doing, you can use the same Apache installation and run PHP4 and PHP5 concurrently. if you use CGI for one of them then yes - but not

Re: [PHP] How to parse PHP tags in a string?

2007-02-07 Thread Satyam
- Original Message - From: Zak Mc Kracken [EMAIL PROTECTED] Hi all, Is there a PHP function that parses a string as it was the content of a PHP file? I have a CMS application and editors write the news items text into a text area. Since they have some knowledge of PHP, I'd like to

Re: [PHP] Opera advice needed!

2007-02-07 Thread Robert Cummings
On Wed, 2007-02-07 at 16:19 +0100, Jochem Maas wrote: Robert Cummings wrote: On Wed, 2007-02-07 at 12:16 +0200, William Stokes wrote: ShitSHitSHIT!!! I had javascript disabled in Opera. The browsed just ignored it's own settings while brosing my server??? Feeling stopid. While

[PHP] Re: How to parse PHP tags in a string?

2007-02-07 Thread Gregory Beaver
Zak Mc Kracken wrote: Hi all, Is there a PHP function that parses a string as it was the content of a PHP file? I have a CMS application and editors write the news items text into a text area. Since they have some knowledge of PHP, I'd like to allow them to insert ? ... ? or ?= ... ? and

Re: [PHP] All-in-one PHP Classes

2007-02-07 Thread Roman Neuhauser
# [EMAIL PROTECTED] / 2007-02-07 09:59:15 +1100: Roman Neuhauser wrote: # [EMAIL PROTECTED] / 2007-02-06 12:47:47 +0100: Have been reading posts daily for two months now on the list, and am very pleased at how informative these can be. I have noticed, many examples where one is pointed to

Re: [PHP] PHP book reviewers wanted

2007-02-07 Thread Manuel Lemos
Hello, on 02/06/2007 01:29 PM tedd said the following: Anyway, since you brought that up, I would like to clarify that this is often misunderstood issue. Nobody likes ads, including myself. Ads are obviously necessary to keep the site viable. Otherwise it would have been closed a long time

Re: [PHP] PHP book reviewers wanted

2007-02-07 Thread Manuel Lemos
Hello, on 02/07/2007 01:53 AM Richard Lynch said the following: Demonstrating good English writing skills and having published good book reviews in the past gets me preference. gets me preference ??? Me get any money for this? Hey, go easy on the non-native speakers... I'm betting your

Re: [PHP] PHP4 to PHP5 issue

2007-02-07 Thread Myron Turner
Jochem Maas wrote: Myron Turner wrote: Christopher Weldon wrote: You actually don't even have to run a second instance of Apache. From what I've heard of other hosting companies doing, you can use the same Apache installation and run PHP4 and PHP5 concurrently. if you use CGI

Re: [PHP] base64-encoding in cookies?

2007-02-07 Thread Fletcher Mattox
I wrote: A campus web server (not under my control) returns an authentication string in a cookie named AUTH. The cookie's value is an encrypted, base64 encoded string. Unfortunately, when I examine $_COOKIE['AUTH'], it is clear that all of the '+' characters have been replaced with a ' '

Re: [PHP] base64-encoding in cookies?

2007-02-07 Thread Robert Cummings
On Wed, 2007-02-07 at 13:49 -0600, Fletcher Mattox wrote: I wrote: A campus web server (not under my control) returns an authentication string in a cookie named AUTH. The cookie's value is an encrypted, base64 encoded string. Unfortunately, when I examine $_COOKIE['AUTH'], it is clear

RE: [PHP] base64-encoding in cookies?

2007-02-07 Thread Brad Fuller
-Original Message- From: Fletcher Mattox [mailto:[EMAIL PROTECTED] Sent: Wednesday, February 07, 2007 2:49 PM To: php-general@lists.php.net Subject: Re: [PHP] base64-encoding in cookies? I wrote: A campus web server (not under my control) returns an authentication string in a

RE: [PHP] base64-encoding in cookies?

2007-02-07 Thread tg-php
Exactly what I was going to mention, Brad. Here's some more info. Quoted from PHP manual for urlencode(): Returns a string in which all non-alphanumeric characters except -_. have been replaced with a percent (%) sign followed by two hex digits and spaces encoded as plus (+) signs. It is

[PHP] Sorting issue

2007-02-07 Thread Don
I have been trying to figure out how to get this to work for a couple of days. I need to sort the results of a DB query based on the hierarchy of positions within an organization. Since they are not necessarily alphabetical, the best I can come up with is to assign a numerical value in a

Re: [PHP] Sorting issue

2007-02-07 Thread tg-php
Well, kind of ugly but you can do something like this: SELECT Position, CASE Position WHEN 'CEO' THEN 1 WHEN 'COO' THEN 2 WHEN 'CFO' THEN 3 WHEN 'HR' THEN 4 ELSE 99 END AS PositionSort FROM SomeTable ORDER BY PositionSort That way you're not creating a whole new table to store the sorting

[PHP] Javascript and $_POST

2007-02-07 Thread Dan Shirah
I have a form that uses Javascript to validate form field entries, and if they are incorrect it returns an error to the user. After the Javascript processing is complete, it submits the form to my save page. However it seems that once the processing is complete and it passes to the save page,

RE: [PHP] Javascript and $_POST

2007-02-07 Thread Brad Fuller
-Original Message- From: Dan Shirah [mailto:[EMAIL PROTECTED] Sent: Wednesday, February 07, 2007 4:35 PM To: php-general Subject: [PHP] Javascript and $_POST I have a form that uses Javascript to validate form field entries, and if they are incorrect it returns an error to the

Re: [PHP] Javascript and $_POST

2007-02-07 Thread Jon Anderson
Dan Shirah wrote: And this is my Save option at the bottom of my page form name=Submit action=save.php method=post enctype=multipart/form-data table align=center border=0 cellpadding=0 cellspacing=0 width=680 tr td width=64 align=lefta href=javascript:checkForm() title=SaveSave/a/td /tr /table

Re: [PHP] Sorting issue

2007-02-07 Thread Paul Novitski
= = = Original message = = = I need to sort the results of a DB query based on the hierarchy of positions within an organization. Since they are not necessarily alphabetical, the best I can come up with is to assign a numerical value in a separate table to each position, and reference that to

Re: [PHP] Javascript and $_POST

2007-02-07 Thread Paul Novitski
At 2/7/2007 01:34 PM, Dan Shirah wrote: I have a form that uses Javascript to validate form field entries, and if they are incorrect it returns an error to the user. After the Javascript processing is complete, it submits the form to my save page. However it seems that once the processing is

Re: [PHP] Help with matching numbers 0-100

2007-02-07 Thread Jochem Maas
Richard Lynch wrote: On Sat, February 3, 2007 10:55 am, Chilling Lounge Admin wrote: I need help with matching a variable. The variable would be e.g. 0-15 , 16-30 etc. and when the variable is equal to a certain range, it would echo an image. Does anyone know what function I should use?

Re: [PHP] Re: Help with matching numbers 0-100

2007-02-07 Thread Jochem Maas
frank wrote: better make a switch statement: with case such as switch($x): that should be : switch (true) { // bla } otherwise you would be testing the boolean cast of the value of $x against the result of the expression given in the case statement ... in practice it would probably do

Re: [PHP] All-in-one PHP Classes

2007-02-07 Thread Chris
Roman Neuhauser wrote: # [EMAIL PROTECTED] / 2007-02-07 09:59:15 +1100: Roman Neuhauser wrote: # [EMAIL PROTECTED] / 2007-02-06 12:47:47 +0100: Have been reading posts daily for two months now on the list, and am very pleased at how informative these can be. I have noticed, many examples

[PHP] Find midpoint between two points

2007-02-07 Thread M5
I found a nice javascript function that takes two points of latitude and longitude and returns a midpoint. I'm now trying to rewrite in PHP, but having some problems. Here's the original javascript function, taken from http://www.movable-type.co.uk/scripts/ LatLong.html : LatLong.midPoint

Re: [PHP] All-in-one PHP Classes

2007-02-07 Thread Roman Neuhauser
# [EMAIL PROTECTED] / 2007-02-08 11:27:13 +1100: Roman Neuhauser wrote: # [EMAIL PROTECTED] / 2007-02-07 09:59:15 +1100: Roman Neuhauser wrote: # [EMAIL PROTECTED] / 2007-02-06 12:47:47 +0100: Have been reading posts daily for two months now on the list, and am very pleased at how

Re: [PHP] All-in-one PHP Classes

2007-02-07 Thread Roman Neuhauser
# [EMAIL PROTECTED] / 2007-02-08 01:14:43 +0100: 290function setOptions($db, $options) 291{ 292if (is_array($options)) { 293foreach ($options as $option = $value) { 294$test = $db-setOption($option, $value); 295if

[PHP] Text Editor for Windows?

2007-02-07 Thread Stephen
I am finding that notepad is lacking when correcting syntax errors in my php code. No line numbers. What can people recommend for use under Windows? Thanks Stephen

Re: [PHP] Text Editor for Windows?

2007-02-07 Thread Roman Neuhauser
# [EMAIL PROTECTED] / 2007-02-07 20:49:13 -0500: I am finding that notepad is lacking when correcting syntax errors in my php code. No line numbers. What can people recommend for use under Windows? gvim.exe -- How many Vietnam vets does it take to screw in a light bulb? You don't know,

RE: [PHP] Text Editor for Windows?

2007-02-07 Thread Warren Vail
I've Been using htmlkit for quite a few years now. I don't like it correcting my text on the fly (interrupts my train of thought), but it will highlight in color what type of text it thinks it is. For example when I start typing in a function name, it will change the color when what I have typed

Re: [PHP] Text Editor for Windows?

2007-02-07 Thread Ryan Fielding
Stephen wrote: I am finding that notepad is lacking when correcting syntax errors in my php code. No line numbers. What can people recommend for use under Windows? Thanks Stephen I like UltraEdit. Has everything i need and then some. syntax Highlighting, code folding, variable completion

[PHP] Re: Find midpoint between two points

2007-02-07 Thread Gregory Beaver
M5 wrote: I found a nice javascript function that takes two points of latitude and longitude and returns a midpoint. I'm now trying to rewrite in PHP, but having some problems. Here's the original javascript function, taken from http://www.movable-type.co.uk/scripts/LatLong.html :

Re: [PHP] Text Editor for Windows?

2007-02-07 Thread J R
if you want a very lightweight use notepad2[1] i use php eclipse though :) [1] http://www.flos-freeware.ch/notepad2.html On 2/8/07, Ryan Fielding [EMAIL PROTECTED] wrote: Stephen wrote: I am finding that notepad is lacking when correcting syntax errors in my php code. No line numbers.

[PHP] crazy time with str_replace()

2007-02-07 Thread jekillen
Hello; I really am trying to use this as a last resort but sometimes the solution refuses to present itself just by swearing and staring and poking around with comments and print statements. line 197: $rdata = str_replace(// \$routes[] = '';\n, \$routes['$usr'] = '../$path/in';\n// \$routes[]

[PHP] Unable to load Dynamic Link Library

2007-02-07 Thread viquar . x . shaikh
Hi I have installed Apache2Triad Apache2Triadversion 1.5.4 Apache version 2.2.0 MySQL version 5.0.18 PostgreSQL version 8.1.2 Openssl version 0.9.8a Slimftpdversion 3.18 Xmail

Re: [PHP] Unable to load Dynamic Link Library

2007-02-07 Thread Chris
[EMAIL PROTECTED] wrote: Hi I have installed Apache2Triad Apache2Triad version 1.5.4 Apache version 2.2.0 MySQL version 5.0.18 PostgreSQL version 8.1.2 Openssl version 0.9.8a Slimftpd

Re: [PHP] Unable to load Dynamic Link Library

2007-02-07 Thread viquar . x . shaikh
Hi I have installed Apache2Triad Apache2Triadversion 1.5.4 Apache version 2.2.0 MySQL version 5.0.18 PostgreSQL version 8.1.2 Openssl version 0.9.8a Slimftpdversion 3.18 Xmail

RE: [PHP] what do i need to disable

2007-02-07 Thread Don
I asked this question awhile ago and never really visited the issue till now. The response I got showed me how to disable everything, but I want to allow basic html tags. ~My original question~ My next task is disable harmful tags/scripts in a full text field. I want to store a bio type field

[PHP] PHP/MySQL Create DB user

2007-02-07 Thread Stephen
There seems to be no PHP function to create a DB user. I am trying to automate setting up virtual domains in a shared environment. Am I missing something obvious? Thanks Stephen

Re: [PHP] PHP/MySQL Create DB user

2007-02-07 Thread Chris
Stephen wrote: There seems to be no PHP function to create a DB user. It doesn't have one to create a database either... php can't do everything for you ;) I am trying to automate setting up virtual domains in a shared environment. Am I missing something obvious?