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? http://dev.mysql.com/doc

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

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 vers

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

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

[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

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

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

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

[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] 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 (PEAR::isE

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 please

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

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 d

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

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 com

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 so

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 Save ErWhy aren't there any input elements within the tag? Maybe you just condensed-out the inputs, but if your inputs aren't within the form, they won't be submitted. E.g. if you have: ... If you subm

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

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

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 value

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

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 enco

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

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

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] 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 f

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

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

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 poi

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

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 stop

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 a

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

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

[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 parsed and executed.

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 speaker

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) F

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 m

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] 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 sl

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 (yes

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 e

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

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 c

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 un

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 th

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

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 works

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. H

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 initial

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]>; Sent: Wednesday, February 07, 2007 9:39 AM Subject: Re: [PHP] Spamed? what'

Re: [PHP] Spamed?

2007-02-07 Thread Sébastien WENSKE
what's this qustion ??? where ? - Original Message - From: <[EMAIL PROTECTED]> To: 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] 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

[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