Re: [PHP] Good Hosting company

2003-06-17 Thread Cornelius Engelbrecht
I have been very happy with Zentrifugal. com. They let you host multiple domains for $99 per year. You can have up to 10 sub-domains, 10 parked domains and 10 add-on domains. All these additional domains share the same account resources. My problem with other hosting companies has always been t

[PHP] Debuging PHP script

2003-06-17 Thread Skon Lapamnuaypol
Hi, I installed v-webmail on the PHP engine to enable web mail client access. Every installation step was going well. But, I found a problem when the application was using for awhile. My webmail can display the login page, but when I entered login/password and press submit. I got an error display t

Re: [PHP] MySQL Connection

2003-06-17 Thread Lars Torben Wilson
On Tue, 2003-06-17 at 18:19, [EMAIL PROTECTED] wrote: > Hello, This seems not to be working, I am using win2000 and a newbie. please > simplify this process. > > ERROR 1045: Access denied for user: '@127.0.0.1' (Using password: NO) > mysql> GRANT ALL PRIVILEGES ON *.* TO [EMAIL PROTECTED] > -

[PHP] Add new loadable module in php

2003-06-17 Thread Skon Lapamnuaypol
Hi, I'm newbie in PHP and tried to install webmail appliction on PHP engine. That webmail require a module IMAP,but my engine haven't have it yet. I tried to put a "extenstion = imap.so" in php.ini. But, the application still can't detect this module. Can I add php module without recompile PHP sour

Re: [PHP] Quick SQL Question

2003-06-17 Thread Greg Donald
> Here it is: > > SELECT penpals.username, penpals.zoneid, penpals_photos.album, > penpals_photos.rating, zones.zone_id, zones.zone_code, > penpals_photos.filename, penpals.city > FROM penpals, penpals_photos, zones > WHERE penpals.username = penpals_photos.album AND penpals_photos.rating != > 'X

Re: [PHP] Quick SQL Question

2003-06-17 Thread Vernon
Here it is: SELECT penpals.username, penpals.zoneid, penpals_photos.album, penpals_photos.rating, zones.zone_id, zones.zone_code, penpals_photos.filename, penpals.city FROM penpals, penpals_photos, zones WHERE penpals.username = penpals_photos.album AND penpals_photos.rating != 'X' AND penpals.zon

Re: [PHP] MySQL Connection

2003-06-17 Thread daniel
this is a mysql specific question i think u have to go flush privileges; after you do that > Hello, This seems not to be working, I am using win2000 and a newbie. > please simplify this process. > > ERROR 1045: Access denied for user: '@127.0.0.1' (Using password: NO) > mysql> GRANT ALL PRIVILEGE

Re: [PHP] Quick SQL Question

2003-06-17 Thread Greg Donald
> I'm using the "ORDER BY RAND() LIMIT 0,1" to give be a random record from a > recordset but it seems like it puts a real heavy load on the server. Is > there a better way to pull a random record from a database? I used order by rand() with MySQL quite often and do not notice any load issues wi

Re: [PHP] MySQL Connection

2003-06-17 Thread moses . johnson
Hello, This seems not to be working, I am using win2000 and a newbie. please simplify this process. ERROR 1045: Access denied for user: '@127.0.0.1' (Using password: NO) mysql> GRANT ALL PRIVILEGES ON *.* TO [EMAIL PROTECTED] -> IDENTIFIED BY 'cludiana' WITH GRANT OPTION; ERROR 1045: Access d

[PHP] Quick SQL Question

2003-06-17 Thread Vernon
I'm using the "ORDER BY RAND() LIMIT 0,1" to give be a random record from a recordset but it seems like it puts a real heavy load on the server. Is there a better way to pull a random record from a database? Thanks -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http:/

Re: [PHP] MySQL Connection

2003-06-17 Thread Lars Torben Wilson
On Tue, 2003-06-17 at 17:13, [EMAIL PROTECTED] wrote: > Hello, > > Would be grateful if someone couldkindly point me in the right direction. Check the MySQL documentation. You also might want to ask on the MySQL mailing list. http://www.mysql.com/doc/en/Default_privileges.html http://www.mys

[PHP] MySQL Connection

2003-06-17 Thread moses . johnson
Hello, Would be grateful if someone couldkindly point me in the right direction. Whenever I try to connect to mysql server, I get these messsage back 1. mysql> GRANT ALL PRIVILEGES ON *.* TO moses@"%" IDENTIFIED BY "cludiana"; ERROR 1045: Access denied for user: '@127.0.0.1' (Using password: NO)

Re: [PHP] Redirecting to index.php from index.html

2003-06-17 Thread David Otton
On Tue, 17 Jun 2003 12:41:34 -0600, you wrote: >I'm a relative newbie to PHP coming from the Zope/Python/DTML world. Does >anyone know of a good way, short of a javascript, to redirect from index.html >to index.php. Also, can I use PHP to test for browsers, then redirect them >to the appropr

RE: [PHP] Redirecting to index.php from index.html

2003-06-17 Thread Ralph
Well it does appear to be working because according to this error, the problem is with main.php on line 4. -Original Message- From: Michael [mailto:[EMAIL PROTECTED] Sent: Tuesday, June 17, 2003 2:27 PM To: Ralph; 'Jay Blanchard'; [EMAIL PROTECTED] Subject: Re: [PHP] Redirecting to index

Re: [PHP] max_execution_time

2003-06-17 Thread Yann Larrivee
But i think that it should stop after 30 secondes no ? Yann On Tue, 2003-06-17 at 22:35, R'twick Niceorgaw wrote: > doesn't sound like a bug to me ... after all there's something called > recursive functions ? > > - Original Message - > From: "Yann Larrivee" <[EMAIL PROTECTED]> > To: <[

Re: [PHP] Redirecting to index.php from index.html

2003-06-17 Thread Michael
Parse error: parse error, unexpected T_STRING in /path/to/file_named/main.php on line 4 Here is my actual code so you can look at it and see what I am doing something wrong. I know I must be, since I don't see how php could become so popular for site development when it appears to be so diffi

Re: [PHP] Redirecting to index.php from index.html

2003-06-17 Thread David Nicholson
Hello, This is a reply to an e-mail that you wrote on Tue, 17 Jun 2003 at 22:27, lines prefixed by '>' were originally written by you. > Oops. Typos. Try this: > if(strstr($HTTP_USER_AGENT, "Mozilla/4")){ > header("Location: http://www.mydomain.com/moz4_page.php";); > elseif(strstr($HTTP_USER

Re: [PHP] functions, opinion...

2003-06-17 Thread Hugh Bothwell
"Dvdmandt" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > > Now, where did those two paragraphs come from? A bit of experience with all > those langs and the BASIC school... I'm at the age of 14 and don't even know > math yet so (I mean, I know +, -, / and *, but not advanced stuff).

Re: [PHP] Ini_set with mutiple include directories

2003-06-17 Thread Lars Torben Wilson
On Tue, 2003-06-17 at 12:08, Mike Morton wrote: > I have an application that I set the include directory using the ini_set > (the application assumes that the client does not have access to the php.ini > files). > > I can set the first include path of course: > ini_set("include_path","/Library/Web

Re: [PHP] Form Elements - user adding dynamically

2003-06-17 Thread Nelson Goforth
Thank you for the responses re adding form elements. I will explore Javascript solutions. I've been working on a pure PHP solution - to avoid problems with older browsers - but kept running into roadblocks and wasn't sure I'd get through them. In any case most browsers no support Javascript!

RE: [PHP] Redirecting to index.php from index.html

2003-06-17 Thread Ralph
Oops. Typos. Try this: if(strstr($HTTP_USER_AGENT, "Mozilla/4")){ header("Location: http://www.mydomain.com/moz4_page.php";); } elseif(strstr($HTTP_USER_AGENT, "MSIE")){ header("Location: http://www.mydomain.com/ie_page.php";); } -Original Message- From: Michael [mailto:[EMAIL PRO

Re: [PHP] Re: refreshing fopen

2003-06-17 Thread Lars Torben Wilson
On Tue, 2003-06-17 at 14:10, Bryan Koschmann - GKT wrote: > On Tue, 17 Jun 2003, Terje Torkelsen wrote: > > > > > PHP is server-side language, so this would be possible. Would go for meta tag > > or a javascript. > > > I know, but I thought I saw somewhere there was a way to do this using > flus

RE: [PHP] Re: Difference between $_POST[foo] and $_POST['foo']?

2003-06-17 Thread Philip Olson
This is explained in the manual with tons of examples: http://www.php.net/types.string http://www.php.net/types.array http://www.php.net/types.array#language.types.array.foo-bar Regards, Philip -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/u

Re: [PHP] Ini_set with mutiple include directories

2003-06-17 Thread Mike Morton
Ah ha - the semi colon does not work - but colon does - thanks Jason! On 6/17/03 5:04 PM, "Jason Wong" <[EMAIL PROTECTED]> wrote: > On Wednesday 18 June 2003 03:08, Mike Morton wrote: >> I have an application that I set the include directory using the ini_set >> (the application assumes that th

Re: [PHP] php editor?

2003-06-17 Thread Chris Sherwood
PHPCoder Pro is a very nice development enviroment as well - Original Message - From: <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Wednesday, June 11, 2003 8:22 PM Subject: Fw: [PHP] php editor? > Try to these PHP development environment: > > * Nusphere Studio > * Zend Studio > * M

Fw: [PHP] need help on coding

2003-06-17 Thread o_j_p_p
Hello friend, the problem is the "escape sequence", tray this escape sequence: \" Solution of the problem: bye, Orlando. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Fw: [PHP] php editor?

2003-06-17 Thread o_j_p_p
Try to these PHP development environment: * Nusphere Studio * Zend Studio * Maguma Studio hello all people in the PHP mailing list, bye. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Re: refreshing fopen

2003-06-17 Thread Bryan Koschmann - GKT
On Tue, 17 Jun 2003, Terje Torkelsen wrote: > > PHP is server-side language, so this would be possible. Would go for meta tag > or a javascript. I know, but I thought I saw somewhere there was a way to do this using flush() and something else, maybe for use with a progress bar type thing? I kno

Re: [PHP] Ini_set with mutiple include directories

2003-06-17 Thread Jason Wong
On Wednesday 18 June 2003 03:08, Mike Morton wrote: > I have an application that I set the include directory using the ini_set > (the application assumes that the client does not have access to the > php.ini files). > > I can set the first include path of course: > ini_set("include_path","/Library/

[PHP] print_r recursion/depth problem

2003-06-17 Thread jef
We are developing a site with the binarycloud platform, which is completely object oriented with (sometimes) large (deep) trees of objects. Sometimes in the place where we need it, deep down, we try to use print_r on the object tree, or subtree, and the machine load average goes to the moon, and b

Re: [PHP] Problems passing variables from Javascript to PHP

2003-06-17 Thread Daniel
They're escaped with backslashes. Weird thing is, I did make a Javascript functions that converts every character to Unicode hex values preceded by %, but for some magical reason, when I use rawurldecode on the string, the apostrophes are still escaped! At the moment, this is beyond my grasp, but I

Re: [PHP] Redirecting to index.php from index.html

2003-06-17 Thread Michael
With that I get: Parse error: parse error, unexpected T_STRING in /path/to/file_named/main.php on line 4 Michael On Tuesday 17 June 2003 02:50 pm, Jay Blanchard wrote: > [snip] > If I use this on index.html, it does nothing. If I use it on index.php > I get: > > Parse error: parse error, unex

Re: [PHP] bcmod()

2003-06-17 Thread Lars Torben Wilson
On Tue, 2003-06-17 at 11:42, Thomas Bolioli wrote: > The docs (see below) for bcmod() are rather skimpy. Does anyone have a > clue as to how it works. Basically I want to do this (below code). PS: I > am new to PHP but not to programming in general. > Tom Unless you're using arbitrary-precision

RE: [PHP] Redirecting to index.php from index.html

2003-06-17 Thread Jay Blanchard
[snip] If I use this on index.html, it does nothing. If I use it on index.php I get: Parse error: parse error, unexpected '=' in /path/to/file_named/main.php on line 3 What am I doing wrong On Tuesday 17 June 2003 02:11 pm, Ralph wrote: > > if(strstr = ($HTTP_USER_AGENT, "Mozilla/4")){ >

Re: [PHP] error with null $HTTP_GET_VARS['field']

2003-06-17 Thread Lars Torben Wilson
On Tue, 2003-06-17 at 11:55, Logan McKinley wrote: > right now if a the 'field' key does not exist at all in the querystring it > returns the following error: > Notice: Undefined index: Register in c:\inetpub\wwwroot\PHP\Register.php on > line 3 > I think i can use the empty function but i pass in

Re: [PHP] Redirecting to index.php from index.html

2003-06-17 Thread Michael
If I use this on index.html, it does nothing. If I use it on index.php I get: Parse error: parse error, unexpected '=' in /path/to/file_named/main.php on line 3 What am I doing wrong On Tuesday 17 June 2003 02:11 pm, Ralph wrote: > > if(strstr = ($HTTP_USER_AGENT, "Mozilla/4")){ >header(

[PHP] Re: refreshing fopen

2003-06-17 Thread Terje Torkelsen
PHP is server-side language, so this would be possible. Would go for meta tag or a javascript. On Tue, 17 Jun 2003 22:18:56 +0200, Bryan Koschmann - Gkt wrote (in message <[EMAIL PROTECTED]>): > Hello, > > I'm wondering what the best way to go about this would be. I will be > opening a URL th

RE: [PHP] Re: Difference between $_POST[foo] and $_POST['foo']?

2003-06-17 Thread Ralph
Alternative, using concatenation: $sql = "SELECT * FROM db WHERE apple = '". $_POST['foo'] . "'"; -Original Message- From: CPT John W. Holmes [mailto:[EMAIL PROTECTED] Sent: Tuesday, June 17, 2003 7:57 AM To: [EMAIL PROTECTED]; Chris Hayes Subject: Re: [PHP] Re: Difference between $_POST

[PHP] refreshing fopen

2003-06-17 Thread Bryan Koschmann - GKT
Hello, I'm wondering what the best way to go about this would be. I will be opening a URL that outputs a csv. This csv will change every few minutes, and I would like it to be refreshed on my page. I know I can use a meta refresh, but the time will vary from 1-5 minutes, so a meta refresh will hav

RE: [PHP] Redirecting to index.php from index.html

2003-06-17 Thread Ralph
http://www.mydomain.com/moz4_page.php";) } elseif(strstr = ($HTTP_USER_AGENT, "MSIE")){ header("Location: http://www.mydomain.com/ie_page.php";) } etc... ?> My Page etc.. -Original Message- From: Michael [mailto:[EMAIL PROTECTED] Sent: Tuesday, June 17, 2003 11:42 AM To: [EMA

Re: [PHP] PHP.net Manual Magic?

2003-06-17 Thread CPT John W. Holmes
> One of the coolest things I have seen online, and some of you may not even > know this works, but if you type in the url: "http://www.php.net/foo"; > you'll be taken straight to the foo page of the php manual, if one exists. > If "foo" doesn't exist, you pull up a Google search-within-the-site pa

[PHP] Re: Password generator

2003-06-17 Thread Andrei BEJENARU
Here's a little function that could help you... It uses the ASCII table to generate the characters and it still needs to be customized for any length and to deny the use of the special characters... Don't forget to set the mt seed! function generatePassword() { $passwd = ""; while(strlen($passwd

Re: [PHP] Translate easy the language of the web site

2003-06-17 Thread Jacob Marble
Exactly, thanks. Have you guys tried those on-line translators like Google's? Another big problem is conjugated verbs in Spanish. They remind me of those wacky mad-libs books in elementary school... :-) "John Hicks" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > On Friday 13 June

[PHP] PHP.net Manual Magic?

2003-06-17 Thread Mark D Hiatt
One of the coolest things I have seen online, and some of you may not even know this works, but if you type in the url: "http://www.php.net/foo"; you'll be taken straight to the foo page of the php manual, if one exists. If "foo" doesn't exist, you pull up a Google search-within-the-site page.

[PHP] Redirecting to index.php from index.html

2003-06-17 Thread Michael
I'm a relative newbie to PHP coming from the Zope/Python/DTML world. Does anyone know of a good way, short of a javascript, to redirect from index.html to index.php. Also, can I use PHP to test for browsers, then redirect them to the appropriate page. In DTML/Python it would be : = 0> Th

[PHP] Troubleshooting mail() and sendmail

2003-06-17 Thread Daniel R. Hansen
Does anyone have any tips for general troubleshooting of mail()? The standard *nix "mail" command works fine from the command line, but php scripts that use php's mail() run very slowly -- then the mail ends up not getting send. I assume I have something misconfigured for sendmail but am not s

[PHP] Re: Installation

2003-06-17 Thread DvDmanDT
That seems bad... Get mysql 4.0.13 instead... // DvDmanDT "Anand Tomar" <[EMAIL PROTECTED]> skrev i meddelandet news:[EMAIL PROTECTED] > Hi, > > i tried installing mysql-4.1.0-alpha, apache, php4.3.2. now the issue is > that i have all the 3 application running and interacting with each other in >

[PHP] Ini_set with mutiple include directories

2003-06-17 Thread Mike Morton
I have an application that I set the include directory using the ini_set (the application assumes that the client does not have access to the php.ini files). I can set the first include path of course: ini_set("include_path","/Library/WebServer/Documents/includes"); But how do I set additional pa

[PHP] error with null $HTTP_GET_VARS['field']

2003-06-17 Thread Logan McKinley
right now if a the 'field' key does not exist at all in the querystring it returns the following error: Notice: Undefined index: Register in c:\inetpub\wwwroot\PHP\Register.php on line 3 I think i can use the empty function but i pass in 11 different variables and it seems like there must be a more

Re: [PHP] bcmod()

2003-06-17 Thread Chris Sherwood
if I read it right it looks like it returns what is the remainder as per any normal mod function so fer instance you want to get the remainder when you divide 10 by 3 (which we both know is 1) $remainder = bcmod(10,3); for example I think - Original Message - From: "Thomas Bolioli"

[PHP] bcmod()

2003-06-17 Thread Thomas Bolioli
The docs (see below) for bcmod() are rather skimpy. Does anyone have a clue as to how it works. Basically I want to do this (below code). PS: I am new to PHP but not to programming in general. Tom $i = 1; while (something true){ $modulus = the_modulus_of($i / 4); // does php do % instead of

Re: [PHP] Disaple warnings

2003-06-17 Thread David Otton
On Tue, 17 Jun 2003 19:25:39 +0200, you wrote: >I have the following code: >if (file_exists("themes/$ThemeSel/modules/$name/$mod_file.php")) { $modpath >= "themes/$ThemeSel/";} > >At home on my PC (WinXP+PHP4.3.2) this code works without warnings. >But in my office (Win2000+PHP4.3.0) I always

RE: [PHP] go through array

2003-06-17 Thread Ford, Mike [LSS]
> -Original Message- > From: Diana Castillo [mailto:[EMAIL PROTECTED] > Sent: 17 June 2003 17:43 > > I have this array: > Array ( [2] => 6 [1] => 2 [3] => 2 ) > how do I go through it and get the key and the value in this order? foreach ($array as $key=>$value) (See www.php.net/foreac

Re: [PHP] Problems passing variables from Javascript to PHP

2003-06-17 Thread David Otton
On Tue, 17 Jun 2003 17:00:26 +0200, you wrote: >I'm embedding an SQL query constructed in Javascript to an URL and opening >it in PHP where I try to execute it. I can't believe anyone hasn't jumped on this yet :) Please be very, very careful. There's a big big hole there. >Problem is, the strin

[PHP] max_execution_time

2003-06-17 Thread Yann Larrivee
Hi, i made a major programing mistake this mornning. It probably helped me to figure out a bug in PHP 5. But i would like to confirme with more people... class MyClass{ public MylClass(){ $this->MyFunc(); } private MyFunc(){ $this->MyFunc();

Re: [PHP] Naming a variable with a variable

2003-06-17 Thread R'twick Niceorgaw
$$foo or ${$foo} somethinbg like that ? http://us2.php.net/manual/en/language.variables.variable.php R'twick - Original Message - From: "Antti" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Tuesday, June 17, 2003 2:19 PM Subject: [PHP] Naming a variable with a variable > Ho can I

Re: [PHP] Naming a variable with a variable

2003-06-17 Thread Mike Migurski
>Ho can I create (name) a variable with other variables value? > >If $foo = "bar"; > >then the variable I want to create is $bar. > >How do I do this? $$foo see: http://www.php.net/manual/en/language.variables.variable.php - mic

Re: [PHP] Naming a variable with a variable

2003-06-17 Thread Mika Tuupola
On Tue, 17 Jun 2003, Antti wrote: > Ho can I create (name) a variable with other variables value? > If $foo = "bar"; > then the variable I want to create is $bar. > How do I do this? This prints "barvalue". -- Mika Tuupola http://www.appelsiini.net/~tuupola/ --

RE: [PHP] Naming a variable with a variable

2003-06-17 Thread Dan Joseph
Hi, > Ho can I create (name) a variable with other variables value? > > If $foo = "bar"; > > then the variable I want to create is $bar. $$foo = "blah"; that will set $bar equal to blah. -Dan Joseph -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: htt

Re: [PHP] mysql_errno codes

2003-06-17 Thread Don Read
On 16-Jun-2003 Thomas Hochstetter wrote: > Hi. > > [3rd try] ... where can i get mysql_error codes from? The ones that > mysql_errno returns. > You can get all the OS and MySQL error codes with: $ perror `jot 1500` | grep -v 'Unknown error' Regards, -- Don Read

[PHP] Naming a variable with a variable

2003-06-17 Thread Antti
Ho can I create (name) a variable with other variables value? If $foo = "bar"; then the variable I want to create is $bar. How do I do this? -antti -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] PHP versioning and security information

2003-06-17 Thread Fraser Campbell
Hi, I'm trying to figure out if the version of php that I am running is secure against all known exploits and I am finding that task very difficult. I haven't been able to find a security page on either http://www.php.net/ or http://www.zend.com/ My questions are: - is php 4.2.3 vulnerable t

[PHP] Disaple warnings

2003-06-17 Thread Karina S
Hello, I have the following code: if (file_exists("themes/$ThemeSel/modules/$name/$mod_file.php")) { $modpath = "themes/$ThemeSel/";} At home on my PC (WinXP+PHP4.3.2) this code works without warnings. But in my office (Win2000+PHP4.3.0) I always becom warnings for this line and in case of an

Re: [PHP] cron job

2003-06-17 Thread CPT John W. Holmes
> Is there a way to run a script (to check a table for new fields, or to > check time..etc) evrey few hours, without using programes souch as > crontab. In addition to what others have said, you don't _have_ to set up the cron job (or any scheduled job) on the same computer as your scripts. If you

Re: [PHP] cron job

2003-06-17 Thread David Nicholson
Hello, This is a reply to an e-mail that you wrote on Tue, 17 Jun 2003 at 17:59, lines prefixed by '>' were originally written by you. > Is there a way to run a script (to check a table for new fields, or to > check time..etc) evrey few hours, without using programes souch as > crontab. > Paul >

RE: [PHP] cron job

2003-06-17 Thread Jay Blanchard
[snip] Is there a way to run a script (to check a table for new fields, or to check time..etc) evrey few hours, without using programes souch as crontab. [/snip] You could run a looping script with a sleep statement in it, not a good idea though. Jay -- PHP General Mailing List (http://www.php.n

[PHP] cron job

2003-06-17 Thread Paul Marinas
Is there a way to run a script (to check a table for new fields, or to check time..etc) evrey few hours, without using programes souch as crontab. Paul GnuPG Key http://sgi.rdscv.ro/~paulm/paulm.PGP -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/uns

Re: [PHP] go through array

2003-06-17 Thread David Nicholson
Hello, This is a reply to an e-mail that you wrote on Tue, 17 Jun 2003 at 17:43, lines prefixed by '>' were originally written by you. > I have this array: > Array ( [2] => 6 [1] => 2 [3] => 2 ) > how do I go through it and get the key and the value in this order? Use the foreach construct, it

RE: [PHP] MSSQL connection

2003-06-17 Thread Wim Paulussen
At least : step 1. Does anyone know what is meant by the 'interfaces' file ? The servername argument has to be a valid servername that is defined in the 'interfaces' file. -Oorspronkelijk bericht- Van: Wim Paulussen [mailto:[EMAIL PROTECTED] Verzonden: Tuesday, June 17, 2003 5:14 PM A

[PHP] go through array

2003-06-17 Thread Diana Castillo
I have this array: Array ( [2] => 6 [1] => 2 [3] => 2 ) how do I go through it and get the key and the value in this order? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] sorting an array

2003-06-17 Thread CPT John W. Holmes
> > array[numrooms] => Array ( [3] => 2 [2] => 5 [1] => 1 ) > > I want to get a result like this: > > 2=>5 > > 3=>2 > > 1=>1 > > ( I want the keys to stay attached to the results) > > perhaps asort()? > "This function sorts an array such that array indices maintain their > correlation with the arr

[PHP] Installation

2003-06-17 Thread Anand Tomar
Hi, i tried installing mysql-4.1.0-alpha, apache, php4.3.2. now the issue is that i have all the 3 application running and interacting with each other in sync but every time i try to connect to mysql through php it gives me this error: Warning: mysql_connect(): Client does not support authent

Re: [PHP] sorting an array

2003-06-17 Thread Mark
perhaps asort()? "This function sorts an array such that array indices maintain their correlation with the array elements they are associated with." --- Diana Castillo <[EMAIL PROTECTED]> wrote: > Hi , I am trying to sort this: > array[numrooms] => Array ( [3] => 2 [2] => 5 [1] => 1 ) > I want to

[PHP] sorting an array

2003-06-17 Thread Diana Castillo
Hi , I am trying to sort this: array[numrooms] => Array ( [3] => 2 [2] => 5 [1] => 1 ) I want to get a result like this: 2=>5 3=>2 1=>1 ( I want the keys to stay attached to the results) I used this to sort it : array_multisort ($request_array['numrooms'], SORT_NUMERIC, SORT_DESC); but instead I

Re: [PHP] convert Excell to MySQL table

2003-06-17 Thread Nicolas Costes
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Le Mardi 17 Juin 2003 17:19, Adam Voigt a écrit : > If it doesn't have to be automatic, I believe you can open > an ODBC connection to the MySQL database and use the export > functionality of Excel. I may be wrong since it's been a > while since I've d

Re: [PHP] convert Excell to MySQL table

2003-06-17 Thread Adam Voigt
http://www.google.com/search?hl=en&ie=UTF-8&oe=UTF-8&q=php+excel&btnG=Google+Search The first link on google after doing a search for "php excel" looks promising. On Tue, 2003-06-17 at 11:20, Alex Shi wrote: > Yes I believe this is an excellent solution for MS planforms... > But how about UNIX/L

Re: [PHP] Basic Help

2003-06-17 Thread Jason Wong
On Tuesday 17 June 2003 21:22, Logan McKinley wrote: > You say to RTFM, are there any good resources for new users? I know > PHP.net has an extensive manual The php manual is the best resource there is, particularly for people like you who already have a background in programming. Almost all fu

Re: [PHP] convert Excell to MySQL table

2003-06-17 Thread Alex Shi
Yes I believe this is an excellent solution for MS planforms... But how about UNIX/Linux/FreeBSD based applications? Alex :[EMAIL PROTECTED] > If it doesn't have to be automatic, I believe you can open > an ODBC connection to the MySQL database and use the export > functionality of Excel. I may

RE: [PHP] MSSQL connection

2003-06-17 Thread Wim Paulussen
That's it . Thank you very much ! -Oorspronkelijk bericht- Van: Adam Voigt [mailto:[EMAIL PROTECTED] Verzonden: Tuesday, June 17, 2003 5:10 PM Aan: Wim Paulussen CC: [EMAIL PROTECTED] Onderwerp: Re: [PHP] MSSQL connection You need to turn on the MSSQL extension in your php.ini, under Win

Re: [PHP] convert Excell to MySQL table

2003-06-17 Thread Adam Voigt
If it doesn't have to be automatic, I believe you can open an ODBC connection to the MySQL database and use the export functionality of Excel. I may be wrong since it's been a while since I've done anything with Excel, but it's worth a try. On Tue, 2003-06-17 at 11:09, Alex Shi wrote: > Hello, >

[PHP] convert Excell to MySQL table

2003-06-17 Thread Alex Shi
Hello, Does any one out there happend to know a php solution to directly (without CSV) transfer an Excell spreadsheet into MySQL table? Thanks in advance! Alex -- == Cell Phone Batteries at 30-50%+ off retail prices! http://www.pocellular.com ==

[PHP] Problems passing variables from Javascript to PHP

2003-06-17 Thread Daniel
Hello =) I'm embedding an SQL query constructed in Javascript to an URL and opening it in PHP where I try to execute it. Problem is, the string arrives garbled, with all the apostrophes escaped. This must be Javascript's type of "safe url encoding", but how would I go about decoding it in PHP? I

Re: [PHP] delete files from a directory

2003-06-17 Thread Chris Hayes
At 16:42 17-6-03, you wrote: Hi, i need to delete all the files that are stored in a dir.i had try with this and nothing happen... passthru ("del $path_adjuntos.$idprod/*.* /q"); 1) http://www.php.net/passthru: "This function should be used in place of

Re: [PHP] MSSQL connection

2003-06-17 Thread Adam Voigt
You need to turn on the MSSQL extension in your php.ini, under Windows this file is probably in: c:\winnt\php.ini On Tue, 2003-06-17 at 11:01, Wim Paulussen wrote: > LS, > > I am trying to get a connection to a remote MSSQL server. > This is what I found in the online manual : > > mssql_conne

Re: [PHP] Form Elements - user adding dynamically

2003-06-17 Thread Marek Kilimajer
I should have also noted DOM is not supported in old browsers or without javascript. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] MSSQL connection

2003-06-17 Thread Wim Paulussen
LS, I am trying to get a connection to a remote MSSQL server. This is what I found in the online manual : mssql_connect() establishes a connection to a MS SQL server. The servername argument has to be a valid servername that is defined in the 'interfaces' file. This is the command given : $test

Re: [PHP] Form Elements - user adding dynamically

2003-06-17 Thread Marek Kilimajer
function newNumber(f) { var newfile=document.createElement("input"); newfile.setAttribute("type","text"); newfile.setAttribute("name","number[]"); f.appendChild(newfile); f.appendChild(document.createElement("br")); // simply add this line } You might want to

Re: [PHP] Re: Difference between $_POST[foo] and $_POST['foo']?

2003-06-17 Thread CPT John W. Holmes
> At 16:19 17-6-03, you wrote: > >$sql = 'select * from db where apple = \'' . $_POST['foo'] . '\';'; > >Like that? > you missed some quotes: > $sql = 'select * from db where apple = \''' . $_POST['foo'] . '\'"'; Go back and count the quotes again. The original post is correct as far as quotes go.

Re: [PHP] Re: Difference between $_POST[foo] and $_POST['foo']?

2003-06-17 Thread Adam Voigt
Actually I didn't. The code that I gave would result in a string like: select * from db where apple = 'blah'; For your reference: \'' means print one single quote then end the current stream. Then the . $_POST['foo'] appends the value of foo to the stream, then . '\';'; prints one more single qu

Re: [PHP] Re: Difference between $_POST[foo] and $_POST['foo']?

2003-06-17 Thread Chris Hayes
At 16:37 17-6-03, you wrote: On Tue, 2003-06-17 at 09:09, nabil wrote: > A side question along with this ,,, how can I include $_POST['foo'] in the > : > $sql ="select * from db where apple = '$_POST['foo']' "; > > without getting an error ?? > should I append it as $var= $_POST['foo']; before?

RE: [PHP] Form Elements - user adding dynamically

2003-06-17 Thread Boaz Yahav
How would you make the input boxes open one above the other instead of one after the other? Sincerely berber Visit http://www.weberdev.com/ Today!!! To see where PHP might take you tomorrow. -Original Message- From: Marek Kilimajer [mailto:[EMAIL PROTECTED] Sent: Tuesday, June 17, 200

[PHP] delete files from a directory

2003-06-17 Thread Carlos Castillo
Hi, i need to delete all the files that are stored in a dir.i had try with this and nothing happen... passthru ("del $path_adjuntos.$idprod/*.* /q"); i'll aprecciate your help thanks!, and excuse me for my english -- PHP General Mailing List (http://www.php.net/) To unsubscribe

Re: [PHP] Re: Difference between $_POST[foo] and $_POST['foo']?

2003-06-17 Thread Tom Woody
On Tue, 2003-06-17 at 09:09, nabil wrote: > A side question along with this ,,, how can I include $_POST['foo'] in the > : > $sql ="select * from db where apple = '$_POST['foo']' "; > > without getting an error ?? > should I append it as $var= $_POST['foo']; before??? > The rule of thumb I fol

Re: [PHP] Re: Difference between $_POST[foo] and $_POST['foo']?

2003-06-17 Thread Chris Hayes
At 16:19 17-6-03, you wrote: $sql = 'select * from db where apple = \'' . $_POST['foo'] . '\';'; Like that? you missed some quotes: $sql = 'select * from db where apple = \''' . $_POST['foo'] . '\'"'; > A side question along with this ,,, how can I include $_POST['foo'] in the > : > $sql ="se

Re: [PHP] REGEX Question

2003-06-17 Thread Marek Kilimajer
. matches any character except newline by default, use s modifier: preg_match("/(.*)/s", $data, $Match) Ron Dyck wrote: I need to match text between two html comment tags. I'm using: preg_match("/(.*)/", $data, $Match) Which work fine until I have carriage returns. The following doesn't match:

Re: [PHP] Form Elements - user adding dynamically

2003-06-17 Thread Marek Kilimajer
You can use DOM: Any number you like function newNumber(f) { var newfile=document.createElement("input"); newfile.setAttribute("type","text"); newfile.setAttribute("name","number[]"); f.appendChild(newfile); }












Ne

Re: [PHP] Re: Difference between $_POST[foo] and $_POST['foo']?

2003-06-17 Thread Adam Voigt
$sql = 'select * from db where apple = \'' . $_POST['foo'] . '\';'; Like that? On Tue, 2003-06-17 at 10:09, nabil wrote: > A side question along with this ,,, how can I include $_POST['foo'] in the > : > $sql ="select * from db where apple = '$_POST['foo']' "; > > without getting an error ?

[PHP] Re: Difference between $_POST[foo] and $_POST['foo']?

2003-06-17 Thread nabil
A side question along with this ,,, how can I include $_POST['foo'] in the : $sql ="select * from db where apple = '$_POST['foo']' "; without getting an error ?? should I append it as $var= $_POST['foo']; before??? Thnx Nabil "Jarmo Järvenpää" <[EMAIL PROTECTED]> wrote in message news:[EMAIL

[PHP] REGEX Question

2003-06-17 Thread Ron Dyck
I need to match text between two html comment tags. I'm using: preg_match("/(.*)/", $data, $Match) Which work fine until I have carriage returns. The following doesn't match: Nullam auctor pellentesque sem. Aenean semper. Aenean magna justo, rutrum et, consequat a, vehicula non, arcu. Mauris c

Re: [PHP] Form Elements - user adding dynamically

2003-06-17 Thread Chris Hayes
At 15:04 17-6-03, you wrote: I'm constructing an HTML form (via PHP) in which I want the user to be able to add or delete elements as needed. For instance, in a page detailing user information, the user might have one phone or several. Rather than having a set number of slots for phone numbers

  1   2   >