Re: [PHP] how to execute Exe file in system

2012-02-17 Thread Negin Nickparsa
Oops no! it shows this one: string(100) 'C:/Program\' is not recognized as an internal or external command, operable program or batch file. On Fri, Feb 17, 2012 at 4:10 PM, Negin Nickparsa nickpa...@gmail.comwrote: ok sorry,I tried yours It generates Null. On Fri, Feb 17, 2012 at 4:06 PM,

Re: [PHP] how to execute Exe file in system

2012-02-17 Thread Negin Nickparsa
Stuart I changed it to this one:$cmd = 'C:/Program\\Files/ Now it tells: string(43) The system cannot find the path specified. On Fri, Feb 17, 2012 at 4:12 PM, Negin Nickparsa nickpa...@gmail.comwrote: Oops no! it shows this one: string(100) 'C:/Program\' is not recognized as an internal

Re: [PHP] how to execute Exe file in system

2012-02-17 Thread Stuart Dallas
On 17 Feb 2012, at 12:42, Negin Nickparsa wrote: Oops no! it shows this one: string(100) 'C:/Program\' is not recognized as an internal or external command, operable program or batch file. Change the \\ in the commands to just a single \ but leave the space after it. On Fri, Feb 17, 2012

Re: [PHP] how to execute Exe file in system

2012-02-17 Thread Negin Nickparsa
this one: $cmd = 'C:/Program\ Files/GAMS23.7/gams.exe'.' '.escapeshellarg('C:/Program Files/GAMS23.7/trnsport_php.gms').' 21'; GENERATES: string(100) 'C:/Program\' is not recognized as an internal or external command, operable program or batch file. Change the \\ in the commands to just a

Re: [PHP] how to execute Exe file in system

2012-02-17 Thread Stuart Dallas
On 17 Feb 2012, at 12:53, Negin Nickparsa wrote: this one: $cmd = 'C:/Program\ Files/GAMS23.7/gams.exe'.' '.escapeshellarg('C:/Program Files/GAMS23.7/trnsport_php.gms').' 21'; GENERATES: string(100) 'C:/Program\' is not recognized as an internal or external command, operable program

Re: [PHP] how to execute Exe file in system

2012-02-17 Thread Negin Nickparsa
I can't move Gams because it has many dll files which should be in there. gams.exe should be execute in that path file in program Files one time I tried to do it and when It shows me missing files I copy pasted many files but It needs many other files which I regretted so it is not possible. I

Re: [PHP] how to execute Exe file in system

2012-02-17 Thread Negin Nickparsa
I read about The useless command may be like c: or cd. Example: system('c: C:\Program Files\... parameter 1 parameter 2'); exec('c: C:\Program Files\... parameter 1 parameter 2'); in php manual But I didn't know how to work with it It doesn't use any back slashes On Fri, Feb 17, 2012 at

Re: [PHP] how to execute Exe file in system

2012-02-17 Thread Negin Nickparsa
and this One system (\c:\\program files\\myapp\\myapp.exe\ params_for_myapp); On Fri, Feb 17, 2012 at 4:36 PM, Negin Nickparsa nickpa...@gmail.comwrote: I read about The useless command may be like c: or cd. Example: system('c: C:\Program Files\... parameter 1 parameter 2'); exec('c:

Re: [PHP] how to execute Exe file in system

2012-02-17 Thread Negin Nickparsa
$cmd = system (\C:\\Program Files\\GAMS23.7\\gams.exe\ trnsport_php.gms); $out = `$cmd`; var_dump($out); It shows NULL On Fri, Feb 17, 2012 at 4:38 PM, Negin Nickparsa nickpa...@gmail.comwrote: and this One system (\c:\\program files\\myapp\\myapp.exe\ params_for_myapp); On Fri, Feb 17,

Re: [PHP] how to execute Exe file in system

2012-02-17 Thread Curtis Maurand
C:\/Program\ Files\\... --C Negin Nickparsa wrote: I can't move Gams because it has many dll files which should be in there. gams.exe should be execute in that path file in program Files one time I tried to do it and when It shows me missing files I copy pasted many files but It needs

Re: [PHP] how to execute Exe file in system

2012-02-17 Thread Negin Nickparsa
curtis what do you mean --c? On Fri, Feb 17, 2012 at 4:54 PM, Curtis Maurand cur...@maurand.com wrote: C:\/Program\ Files\\... --C Negin Nickparsa wrote: I can't move Gams because it has many dll files which should be in there. gams.exe should be execute in that path file in program

Re: [PHP] how to execute Exe file in system

2012-02-17 Thread Negin Nickparsa
Curtis I wrote this one as you said: if(system(C:\/Program\ Files\\GAMS23.7\\gams.exe \C:\/Program\ Files\GAMS23.7\trnsport_php.gms)) echo 'No Error'; else echo 'Error'; how to set the path file correct?I really need it Does anyone has a good reference showing me how to write path files in php

Re: [PHP] how to execute Exe file in system

2012-02-17 Thread Fatih P.
ERRORNULL maybe program Files which has space should have something like \ which I don't know ha? or because of Null It is correct? means false.. it cannot find the path. you have problem with path.

Re: [PHP] how to execute Exe file in system

2012-02-17 Thread Negin Nickparsa
Fatih C:\Program Files\GAMS23.7 this is where my Gams is. maybe the problem is with permissions what should I do for permissions? what shoud I do to write this path file:'( I need it! when echo system('dir') shows me files of C:\Program Files\GAMS23.7 then it shoud run the command gams.exe

Re: [PHP] how to execute Exe file in system

2012-02-17 Thread Fatih P.
On Fri, Feb 17, 2012 at 3:43 PM, Negin Nickparsa nickpa...@gmail.comwrote: Fatih C:\Program Files\GAMS23.7 this is where my Gams is. maybe the problem is with permissions what should I do for permissions? what shoud I do to write this path file:'( I need it! when echo system('dir') shows

Re: [PHP] how to execute Exe file in system

2012-02-17 Thread Negin Nickparsa
Fatih what is about another parts?

Re: [PHP] how to execute Exe file in system

2012-02-17 Thread Negin Nickparsa
it's wrong Fatih because it shows me another color in editor On Fri, Feb 17, 2012 at 5:24 PM, Negin Nickparsa nickpa...@gmail.comwrote: Fatih what is about another parts?

Re: [PHP] how to execute Exe file in system

2012-02-17 Thread Fatih P.
well then fix it. i m not using editor.

Re: [PHP] how to execute Exe file in system

2012-02-17 Thread Negin Nickparsa
:) On Fri, Feb 17, 2012 at 5:27 PM, Fatih P. fatihpirist...@gmail.com wrote: well then fix it. i m not using editor.

Re: [PHP] how to execute Exe file in system

2012-02-17 Thread Negin Nickparsa
I found the correct one: $cmd = 'C:\Progra~1\GAMS23.7\gams.exe'.' '.escapeshellarg('C:\Progra~1\GAMS23.7\trnsport_php.gms').' 21'; $out = `$cmd`; var_dump($out); It will show NULL,so No error and I am sure it is correct because If I change gams.exe to egams.exe it recognizes but It can't run

Re: [PHP] how to execute Exe file in system

2012-02-17 Thread Negin Nickparsa
I 3 myself sooo Much :) It works now like a charm I am successfully finished:D this is my SIMPLE solution no need to set path files! :D echo exec('C:\WINDOWS\system32\cmd.exe'); echo exec('gams.exe trnsport_php.gms'); It works like a charm:) On Fri, Feb 17, 2012 at 6:34 PM, Negin Nickparsa

[PHP] How to detect languages from (= LTR vs RTL)

2012-02-07 Thread Michelle Konzack
Hi colleges and gurus, I coding a whole web office and one of my problems is LTR vs RTL. If I have for exanple an E-Mail I use a div style=direction:$DIRECTION $SOME_TEXT /div but HOW can I detect the type of $SOME_TEXT from within PHP, to set $DIRECTION? (RTL or LTR)

Re: [PHP] How to detect languages from (= LTR vs RTL)

2012-02-07 Thread Ashley Sheridan
On Tue, 2012-02-07 at 09:37 +0100, Michelle Konzack wrote: Hi colleges and gurus, I coding a whole web office and one of my problems is LTR vs RTL. If I have for exanple an E-Mail I use a div style=direction:$DIRECTION $SOME_TEXT /div but HOW can I detect the type of

Re: [PHP] How to detect languages from (= LTR vs RTL)

2012-02-07 Thread Dotan Cohen
On Tue, Feb 7, 2012 at 10:37, Michelle Konzack linux4miche...@tamay-dogan.net wrote: Hi colleges and gurus, I coding a whole web office and one of my problems is LTR vs RTL. If I have for exanple an E-Mail I use a    div style=direction:$DIRECTION      $SOME_TEXT    /div but HOW can I

Re: [PHP] How to detect languages from (= LTR vs RTL)

2012-02-07 Thread Dotan Cohen
On Tue, Feb 7, 2012 at 19:31, Dotan Cohen dotanco...@gmail.com wrote: function is_strong($char) {    if (  in_array($char, $arrayOfRtlCharacters)  ) {        return RTL;    }    if (  in_array($char, $arrayOfLtrCharacters)  ) {        return LTR;    }    return FALSE; } On second

[PHP] How can I debug wsf/php in eclipse?

2012-02-06 Thread Ali Asghar Toraby Parizy
Hi. I'm developing a wsf/php web service. I'm using doc/lit messaging format and every thing is OK. But I don't know how i can debug my web services using eclipse. Although I can directly run my web service in debug mode, Unfortunately when I debug my client it never jump into web service code and

[PHP] How to correctly validate url?

2012-01-18 Thread Tanel Tammik
Hello, how to correctly validate url? now the special local characters like ÜÕÖÄ etc are allowed as well... Br, Tanel -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] How to correctly validate url?

2012-01-18 Thread Mokaddim Akm
Sent from a handheld device On 18-Jan-2012, at 4:05 PM, Tanel Tammik keevit...@gmail.com wrote: Hello, how to correctly validate url? now the special local characters like ÜÕÖÄ etc are allowed as well... The generic URI syntax mandates that new URI schemes that provide for the

Re: [PHP] How to correctly validate url?

2012-01-18 Thread Tanel Tammik
it doesn't work. please see the results: var_dump(filter_var('http://example.com', FILTER_VALIDATE_URL)); var_dump(filter_var('http://example', FILTER_VALIDATE_URL)); var_dump(filter_var('http://exämple.com', FILTER_VALIDATE_URL)); http://example should be false http://exämple.com should be

[PHP] how do you fund out if a mysql resource is empty?

2012-01-13 Thread Haluk Karamete
$result = mysql_query($sql,$link) or die(mysql_error()); how do you find out if $sql returned any recordsets? is there a fast/super efficient way of finding this out... something along the lines of is_empty($result) type thing? -- PHP General Mailing List (http://www.php.net/) To

Re: [PHP] how do you fund out if a mysql resource is empty?

2012-01-13 Thread Stuart Dallas
On 13 Jan 2012, at 20:01, Haluk Karamete wrote: $result = mysql_query($sql,$link) or die(mysql_error()); how do you find out if $sql returned any recordsets? is there a fast/super efficient way of finding this out... something along the lines of is_empty($result) type thing? if

[PHP] How to find where class is used?

2012-01-06 Thread Dotan Cohen
In a large application that I am tasked with maintaining (vBulletin) there is a particular class that is used: vB_ProfileBlock_VisitorMessaging. I know the file that it is defined in, but I cannot find the file that actually creates a vB_ProfileBlock_VisitorMessaging object. I tried the

Re: [PHP] How to find where class is used?

2012-01-06 Thread Curtis Maurand
it will be somewhere in php's search path. you'd be better off trying search for a file of the same name. cd /usr/lib/php5 find . -iname vB_ProfileBlock* if you have locate installed, try: locate vB_ProfileBlock Cheers, Curtis On 1/6/2012 6:11 AM, Dotan Cohen wrote: In a large

Re: [PHP] How to find where class is used?

2012-01-06 Thread Nilesh Govindarajan
On Fri, Jan 6, 2012 at 5:08 PM, Curtis Maurand cur...@maurand.com wrote: it will be somewhere in php's search path.  you'd be better off trying search for a file of the same name. cd /usr/lib/php5 find . -iname vB_ProfileBlock* if you have locate installed, try: locate vB_ProfileBlock

Re: [PHP] How to find where class is used?

2012-01-06 Thread richard gray
On 06/01/2012 12:11, Dotan Cohen wrote: In a large application that I am tasked with maintaining (vBulletin) there is a particular class that is used: vB_ProfileBlock_VisitorMessaging. I know the file that it is defined in, but I cannot find the file that actually creates a

Re: [PHP] How to find where class is used?

2012-01-06 Thread Dotan Cohen
On Fri, Jan 6, 2012 at 15:05, richard gray r...@richgray.com wrote: Can you not put a debug_print_backtrace() in the class constructor? Thanks, that might have worked. In the end, I found it by grepping for VisitorMessaging instead of vB_ProfileBlock_VisitorMessaging. It turns out that there

Re: [PHP] How to use a variable variable with an array

2011-12-14 Thread FeIn
maybe something like this if you are willing to get rid of your weird array dimension delimiters (you can use a dot for that for example, see below) $a = array( a = array( b = array( c = array( d = array( e = array(

Re: [PHP] How to use a variable variable with an array

2011-12-14 Thread Nils Leideck
Hi FeIn and Laruence, On 14.12.2011, at 09:47, Nils Leideck wrote: function coolFunction( array $array, $search, $separator = ‘###' ) { [...] if ( isset( $array[$dimension] ) ) { // no more dimensions to search if ( empty( $dimensions ) ) { return $array[$dimension];

Re: [PHP] How to use a variable variable with an array

2011-12-14 Thread Robert Cummings
On 11-12-14 01:11 AM, Laruence wrote: On Wed, Dec 14, 2011 at 9:27 AM, Nils Leidecknils.leid...@leidex.net wrote: Hi Al, many thanks for your feedback. Unfortunately I don’t know the deepness of the array so I can’t use the nested foreach() idea :-( Let me try to simplify my question (which

Re: [PHP] How to use a variable variable with an array [solved]

2011-12-14 Thread Nils Leideck
Dear Robert, On 14.12.2011, at 22:02, Robert Cummings wrote: $path = ‘/path/to/data/in/my/arbitrarily/deep/array/'; $array = $someBigFatArray; $focus = $array; foreach( explode( '/', $path ) as $step ) { if ($step === '' || $step === 'CONFIGURATION’) { continue; }

[PHP] How to use a variable variable with an array

2011-12-13 Thread Nils Leideck
Hi Al, many thanks for your feedback. Unfortunately I don’t know the deepness of the array so I can’t use the nested foreach() idea :-( Let me try to simplify my question (which also helps myself to clarify my process ;-) I have a variable where the value is a string that is exactly the path

Re: [PHP] How to use a variable variable with an array

2011-12-13 Thread Laruence
On Wed, Dec 14, 2011 at 9:27 AM, Nils Leideck nils.leid...@leidex.net wrote: Hi Al, many thanks for your feedback. Unfortunately I don’t know the deepness of the array so I can’t use the nested foreach() idea :-( Let me try to simplify my question (which also helps myself to clarify my

[PHP] How to use a variable variable in an array walk?

2011-12-11 Thread Nils Leideck
Dear list, this is my first post to the PHP general list. I have an issue with a variable variable (http://php.net/manual/en/language.variables.variable.php) My use case: I have an array called $myArray. The structure is as following: array(1) { [user_interface]= array(1) { [design]=

Re: [PHP] How to know the path of `php.ini` used when call php.exe from CLI/command-line in Windows 7

2011-10-12 Thread Richard Quadling
On 11 October 2011 19:40, Nam Gi VU nam.gi...@gmail.com wrote: Hi every one, Currently when I call php --ini from CLI, I just see C:\Windows but search for this location, I cannot find any php.ini files. I'm stuck there - where is the php.ini file used by php.exe called from CLI as below

[PHP] How to know the path of `php.ini` used when call php.exe from CLI/command-line in Windows 7

2011-10-11 Thread Nam Gi VU
Hi every one, Currently when I call php --ini from CLI, I just see C:\Windows but search for this location, I cannot find any php.ini files. I'm stuck there - where is the php.ini file used by php.exe called from CLI as below *C: php --ini* Hope to hear from you! Regards, Nam

Re: [PHP] How to know the path of `php.ini` used when call php.exe from CLI/command-line in Windows 7

2011-10-11 Thread Daniel Brown
On Tue, Oct 11, 2011 at 14:40, Nam Gi VU nam.gi...@gmail.com wrote: Hi every one, Currently when I call php --ini from CLI, I just see C:\Windows but search for this location, I cannot find any php.ini files. I'm stuck there - where is the php.ini file used by php.exe called from CLI as below

[PHP] How can I check for characters in a $_POST[] variable?

2011-09-22 Thread Eric
I have this problem when using php because my computer recognizes the characters . and .. as an existing file when I use file_exists. Also I want to check $_POST[username] for characters other then A-Z a-z and 0-9. If it contains anything other then, I would like to prompt the user but I can't

Re: [PHP] How can I check for characters in a $_POST[] variable?

2011-09-22 Thread Nilesh Govindarajan
On Thu 22 Sep 2011 08:25:29 PM IST, Eric wrote: I have this problem when using php because my computer recognizes the characters . and .. as an existing file when I use file_exists. Also I want to check $_POST[username] for characters other then A-Z a-z and 0-9. If it contains anything other

Re: [PHP] How can I check for characters in a $_POST[] variable?

2011-09-22 Thread Tommy Pham
On Thu, Sep 22, 2011 at 7:55 AM, Eric eric_justin_al...@cfl.rr.com wrote: I have this problem when using php because my computer recognizes the characters . and .. as an existing file when I use file_exists. Also I want to check $_POST[username] for characters other then A-Z a-z and 0-9. If

Re: [PHP] How can I check for characters in a $_POST[] variable?

2011-09-22 Thread Igor Escobar
Use this regex: if(preg_match('/[[:punct:]]/', $_POST['username']) !== 0) { // string contains other characters, write the code } The POSIX class [:punct:] means matches any punctuation and symbols in your string and that includes [!#$%'()*+,\-./:;=?@[\\\]^_`{|}~] Regards, Igor Escobar

Re: [PHP] How can I check for characters in a $_POST[] variable?

2011-09-22 Thread Igor Escobar
Or... just use: if(preg_match('/^[A-Za-z0-9]+$/', $_POST['username']) !== 0) { // string contains other characters, write the code } You can see this regex in action here: http://regexpal.com/?flags=regex= ^%5BA-Za-z0-9%5D%2B%24input=myusername01 If you put anything different of A-Za-z0-9 the

Re: [PHP] How can I check for characters in a $_POST[] variable?

2011-09-22 Thread Robert Williams
As an alternative to the regular expression approaches already provided by others, you could also use ctype_alnum(): if (ctyp_alnum($_POST['username'])) { //username contains only letters and numbers } else { //username contains characters other than letters and numbers } //if-else Docs:

Re: [PHP] How can I check for characters in a $_POST[] variable?

2011-09-22 Thread Nilesh Govindarajan
On 09/22/2011 10:36 PM, Robert Williams wrote: As an alternative to the regular expression approaches already provided by others, you could also use ctype_alnum(): if (ctyp_alnum($_POST['username'])) { //username contains only letters and numbers } else { //username contains

Re: [PHP] How can I check for characters in a $_POST[] variable?

2011-09-22 Thread Robert Williams
[Redirecting thread back to the list for the benefit of others.] On 9/22/11 13:38, Eric eric_justin_al...@cfl.rr.com wrote: So is $_POST[username][0] appropriate or does that only work with normal variables? As far as this sort of manipulation goes, $_POST is just like any other variable.

[PHP] How to have a smooth hairless skin

2011-09-03 Thread How to have a smooth hairless skin
How to have a smooth hairless skin. Hairless in the bikini zone. Click here: http://www.removehair.tk -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] How to have a smooth hairless skin

2011-09-03 Thread Sean Greenslade
On Sat, Sep 3, 2011 at 8:44 PM, Ashley Sheridan a...@ashleysheridan.co.ukwrote: How to have a smooth hairless skin t...@lnfp.gov.cn wrote: How to have a smooth hairless skin. Hairless in the bikini zone. Click here: snippity / How does one go

Re: [PHP] How to catch an irregular end of an application?

2011-08-26 Thread Tim Streater
On 26 Aug 2011 at 01:33, Andreas maps...@gmx.net wrote: what is the best practice to catch an irregular end of an application? The browser might crash or the user closes accidently the browser window decides to jump away to his favourite bloq without loging out of my application. Is there

[PHP] How to catch an irregular end of an application?

2011-08-25 Thread Andreas
Hi, what is the best practice to catch an irregular end of an application? The browser might crash or the user closes accidently the browser window decides to jump away to his favourite bloq without loging out of my application. Is there some way to let an javascript event trigger some ajax to

[PHP] how catch a warning by file_put_contents() ?

2011-08-19 Thread Andreas
Hi, I wrote stuff with file_put_contents() in a try{} catch{} and it worked. Then I'd like to check what happens when some error occurs so I writeprotected the targetfile. Instead of getting my own message by the catch{} block I got a standard warning in the browser. Can't I catch those

Re: [PHP] how catch a warning by file_put_contents() ?

2011-08-19 Thread Simon J Welsh
On 20/08/2011, at 4:51 PM, Andreas wrote: Hi, I wrote stuff with file_put_contents() in a try{} catch{} and it worked. Then I'd like to check what happens when some error occurs so I writeprotected the targetfile. Instead of getting my own message by the catch{} block I got a standard

Re: [PHP] how catch a warning by file_put_contents() ?

2011-08-19 Thread Adam Richardson
On Sat, Aug 20, 2011 at 1:23 AM, Simon J Welsh si...@welsh.co.nz wrote: On 20/08/2011, at 4:51 PM, Andreas wrote: Hi, I wrote stuff with file_put_contents() in a try{} catch{} and it worked. Then I'd like to check what happens when some error occurs so I writeprotected the targetfile.

Re: [PHP] How do I enable $_SERVER['HTTP_X_WAP_PROFILE'] or $_SERVER['HTTP_PROFILE']

2011-08-04 Thread Stuart Dallas
On 3 Aug 2011, at 21:07, Daevid Vincent wrote: I'm working on a mobile site and from the various searches and reading (and even code fragments I've inherited for the project), they make reference to: $_SERVER['HTTP_X_WAP_PROFILE'] and a fallback $_SERVER['HTTP_PROFILE'] However, when I

[PHP] How do I enable $_SERVER['HTTP_X_WAP_PROFILE'] or $_SERVER['HTTP_PROFILE']

2011-08-03 Thread Daevid Vincent
I'm working on a mobile site and from the various searches and reading (and even code fragments I've inherited for the project), they make reference to: $_SERVER['HTTP_X_WAP_PROFILE'] and a fallback $_SERVER['HTTP_PROFILE'] However, when I hit a phpinfo(); page using both an Android MyTouch 3G

Re: [PHP] How to install pecl_http into a web hosting service

2011-07-25 Thread Jamie Krasnoo
You should be using cURL for making requests. No, you won't be able to install any pecl packages on your host. It's a free account and I doubt they will be bending over backwards for you anytime soon. If you want custom hosting, pay for a VPS account or a dedicated server. On Thu, Jul 21, 2011

Re: [PHP] How to install pecl_http into a web hosting service

2011-07-25 Thread Richard Quadling
On 25 July 2011 17:26, Jamie Krasnoo jkras...@gmail.com wrote: You should be using cURL for making requests. No, you won't be able to install any pecl packages on your host. It's a free account and I doubt they will be bending over backwards for you anytime soon. If you want custom hosting,

Re: [PHP] How to install pecl_http into a web hosting service

2011-07-25 Thread Andrew Ballard
On Mon, Jul 25, 2011 at 12:26 PM, Jamie Krasnoo jkras...@gmail.com wrote: [reordered and snipped] On Thu, Jul 21, 2011 at 8:52 PM, gato chalar dany...@gmail.com wrote: Hi list, I need to perform http requests (GET,POST) , I have readed about pecl_http package, so it seem to be what I need.

Re: [PHP] How to install pecl_http into a web hosting service

2011-07-25 Thread Jamie Krasnoo
Most hosting companies have cURL already installed and available rather than pecl_http. I probably should have said try using cURL instead of you should be using cURL. However most FREE hosting companies probably won't even have that installed due to security concerns. Jamie On Mon, Jul 25, 2011

Re: [PHP] How to install pecl_http into a web hosting service

2011-07-25 Thread gato chalar
Hi to everybody, Currently I'm using curl, it is installed in my free hosting account. On 25 July 2011 16:29, Jamie Krasnoo jkras...@gmail.com wrote: Most hosting companies have cURL already installed and available rather than pecl_http. I probably should have said try using cURL instead of

[PHP] How to install pecl_http into a web hosting service

2011-07-21 Thread gato chalar
Hi list, I need to perform http requests (GET,POST) , I have readed about pecl_http package, so it seem to be what I need. Reading further I sow some ways to install this package to a server where you have all rights and privilegies, and that's the problem; I don't know if I will be able to

[PHP] How to sum monetary variables

2011-07-18 Thread Martín Marqués
I'm building a table (which is a report that has to be printed) with a bunch of items (up to 300 in some cases) that have unitary price (stored in a numeric(9,2) field), how many there are, and the total price for each item. At the end of the table there is a total of all the items. The app is

RE: [PHP] How to sum monetary variables

2011-07-18 Thread Jasper Mulder
Date: Mon, 18 Jul 2011 19:00:52 -0300 From: martin.marq...@gmail.com To: php-general@lists.php.net Subject: [PHP] How to sum monetary variables I'm building a table (which is a report that has to be printed) with a bunch of items (up to 300 in some cases) that have unitary price (stored

Re: [PHP] How to sum monetary variables

2011-07-18 Thread Tim Streater
On 18 Jul 2011 at 23:00, Martín Marqués martin.marq...@gmail.com wrote: I'm building a table (which is a report that has to be printed) with a bunch of items (up to 300 in some cases) that have unitary price (stored in a numeric(9,2) field), how many there are, and the total price for each

Re: [PHP] How to sum monetary variables

2011-07-18 Thread Adam Richardson
2011/7/18 Martín Marqués martin.marq...@gmail.com I'm building a table (which is a report that has to be printed) with a bunch of items (up to 300 in some cases) that have unitary price (stored in a numeric(9,2) field), how many there are, and the total price for each item. At the end of the

RE: [PHP] How to sum monetary variables

2011-07-18 Thread admin
-Original Message- From: Martín Marqués [mailto:martin.marq...@gmail.com] Sent: Monday, July 18, 2011 6:01 PM To: PHP General Subject: [PHP] How to sum monetary variables I'm building a table (which is a report that has to be printed) with a bunch of items (up to 300 in some cases

Re: [PHP] How to sum monetary variables

2011-07-18 Thread Richard Quadling
2011/7/18 Martín Marqués martin.marq...@gmail.com: I'm building a table (which is a report that has to be printed) with a bunch of items (up to 300 in some cases) that have unitary price (stored in a numeric(9,2) field), how many there are, and the total price for each item. At the end of the

Re: [PHP] How to sum monetary variables

2011-07-18 Thread Adam Richardson
2011/7/18 Richard Quadling rquadl...@gmail.com 2011/7/18 Martín Marqués martin.marq...@gmail.com: Any ideas? For financial values, I use the money type. I use MS SQL, but PostgreSQL has http://www.postgresql.org/docs/9.0/interactive/datatype-money.html The version of PostgreSQL plays

Re: [PHP] How to sum monetary variables

2011-07-18 Thread Paul M Foster
On Mon, Jul 18, 2011 at 11:22:00PM +0100, Tim Streater wrote: On 18 Jul 2011 at 23:00, Martín Marqués martin.marq...@gmail.com wrote: I'm building a table (which is a report that has to be printed) with a bunch of items (up to 300 in some cases) that have unitary price (stored in a

[PHP] How to implement Authentication of UNIX users?

2011-06-27 Thread With No Name
Hello, I try to code a Webinterface to access my Server @home which has a couple of UNIX users. However, I like to have only one website where users must go to whatch the content of there Folders, which mean, I need a maping which is not the problem but how must I make the Login/Passwd process,

Re: [PHP] How to implement Authentication of UNIX users?

2011-06-27 Thread vikash . iitb
This may help: http://php.net/manual/en/book.ssh2.php Thanks, Vikash Kumar -- http://vika.sh On 27 June 2011 21:07, With No Name withnon...@tdwave.net wrote: Hello, I try to code a Webinterface to access my Server @home which has a couple of UNIX users. However, I like to have only one

Re: [PHP] How to implement Authentication of UNIX users?

2011-06-27 Thread With No Name
On Mon, June 27, 2011 5:41 pm, vikash.i...@gmail.com wrote: This may help: http://php.net/manual/en/book.ssh2.php Unfortunately not, I have only one server on my DSL and using ssh on the same host has a poor performance. I have tried it already and each download or directory change takes

Re: [PHP] How to implement Authentication of UNIX users?

2011-06-27 Thread Stuart Dallas
On Mon, Jun 27, 2011 at 5:27 PM, With No Name withnon...@tdwave.net wrote: SSH need arround 2-7 seconds to respond to a new connect. Not PHP-related, but you might want to try adding UseDNS no to your sshd_config file on the server. SSH connection delays are commonly caused by SSHd doing an

[PHP] How PHP handles memory on exit

2011-06-24 Thread Brad Lorge
Hey All, I have a question pertaining to how PHP handles the residual values in memory once a thread exits. I am working on some credit card processing logic and would like to ensure that the values I am working with are not being left to their own fortune after the application exits. Out of

Re: [PHP] How to PHP get bit depth of a given PNG image file?

2011-06-16 Thread Mattias Thorslund
On 06/15/2011 10:11 PM, Nam Gi VU wrote: Hi everyone, In PHP code, given an .png image path, I need to detect the bit-depth of that image. How can I do that? I've tried to use getImageSize() and read the bits as below sample code but it always returns '8' for 24-bits/32-bits image. Reading

Re: [PHP] How to PHP get bit depth of a given PNG image file?

2011-06-16 Thread Nam Gi VU
Thank you Mattias, I'll look at `channels` again. Regards, Nam On Thu, Jun 16, 2011 at 1:06 PM, Mattias Thorslund matt...@thorslund.uswrote: On 06/15/2011 10:11 PM, Nam Gi VU wrote: Hi everyone, In PHP code, given an .png image path, I need to detect the bit-depth of that image. How

Re: [PHP] How to PHP get bit depth of a given PNG image file?

2011-06-16 Thread Mattias Thorslund
I think the documentation is a bit unclear about the fact that colors and channels are the same thing here. The line about bits should probably say bits is the number of bits for each *channel*. Mattias On 06/15/2011 11:11 PM, Nam Gi VU wrote: Thank you Mattias, I'll look at `channels`

[PHP] How to PHP get bit depth of a given PNG image file?

2011-06-15 Thread Nam Gi VU
Hi everyone, In PHP code, given an .png image path, I need to detect the bit-depth of that image. How can I do that? I've tried to use getImageSize() and read the bits as below sample code but it always returns '8' for 24-bits/32-bits image. Please help. class Utils { //Ham de lay bits

[PHP] How to change list settings

2011-05-31 Thread Alexis
How do I change my email settings to digest please as I am fed up with receiving all this individual crap that has nothing to do with PHP whatsoever. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] How to change list settings

2011-05-31 Thread Jay Blanchard
[snip] How do I change my email settings to digest please as I am fed up with receiving all this individual crap that has nothing to do with PHP whatsoever. [/snip] http://lmgtfy.com/?q=php+mailing+list -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

Re: [PHP] How to change list settings

2011-05-31 Thread Alexis
And how exactly does that TELL me how to change settings? I have already used the automated emzlm help system but that does not say a thing on the subject On 31/05/11 08:47, Jay Blanchard wrote: [snip] How do I change my email settings to digest please as I am fed up with receiving all this

Re: [PHP] How to change list settings

2011-05-31 Thread Daniel Brown
On Tue, May 31, 2011 at 10:49, Alexis phplis...@antonakis.co.uk wrote: And how exactly does that TELL me how to change settings? I have already used the automated emzlm help system but that does not say a thing on the subject If you looked well enough, you'd not only see how to do it, but

Re: [PHP] How to change list settings

2011-05-31 Thread Alexis
Thanks for that straight forward response, shame other people cannot do likewise ;) On 31/05/11 08:56, Daniel Brown wrote: On Tue, May 31, 2011 at 10:49, Alexisphplis...@antonakis.co.uk wrote: And how exactly does that TELL me how to change settings? I have already used the automated emzlm

RE: [PHP] How to change list settings

2011-05-31 Thread Jay Blanchard
and, read and follow the instructions. http://www.php.net/unsub.php FROM THE ORIGINAL E-MAIL - -Original Message- From: Alexis Antonakis [mailto:ad...@antonakis.co.uk] Sent: Tuesday, May 31, 2011 9:56 AM To: Jay Blanchard Subject: Re: [PHP] How to change list settings On 31/05/11 08:51

RE: [PHP] How to change list settings

2011-05-31 Thread Jay Blanchard
[snip] Thanks for that straight forward response, shame other people cannot do likewise ;) [/snip] The real shame is that folks cannot RTFI :) -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] How to change list settings

2011-05-31 Thread Ashley Sheridan
On Tue, 2011-05-31 at 10:07 -0500, Jay Blanchard wrote: [snip] Thanks for that straight forward response, shame other people cannot do likewise ;) [/snip] The real shame is that folks cannot RTFI :) The real shame was that he was still top-posting even after Dan picked him up on it,

RE: [PHP] How to change list settings

2011-05-31 Thread tedd
At 5:31 PM +0100 5/31/11, Ashley Sheridan wrote: On Tue, 2011-05-31 at 10:07 -0500, Jay Blanchard wrote: [snip] Thanks for that straight forward response, shame other people cannot do likewise ;) [/snip] The real shame is that folks cannot RTFI :) The real shame was that he was still

Re: [PHP] how to use echo checkboxes in php when i don't have access to $_POST

2011-05-28 Thread Lars Nielsen
lør, 28 05 2011 kl. 13:32 +0430, skrev Negin Nickparsa: because I echo the checkboxes like this: if($num0) { echo table border=2; for($i=0;$i$num;$i++) { $row=mysql_fetch_row($result); echo tr; echotdinput type='Checkbox' name='p$i' value='yes' unchecked //td; echotd$row[0]/td;

Re: [PHP] how to use echo checkboxes in php when i don't have access to $_POST

2011-05-28 Thread Negin Nickparsa
because when the name is in echo it can't access to $_POST 4 example $_POST['p$i'] it tells me undefined variable p$i when in html we write it in form because it has post method it can set $_POST but here in php i just echo it and i can't access it maybe i am wrong but how can i correct it?

RE: [PHP] how to use echo checkboxes in php when i don't have access to $_POST

2011-05-28 Thread Jasper Mulder
Date: Sat, 28 May 2011 16:39:13 +0430 From: nickpa...@gmail.com To: l...@mit-web.dk CC: php-general@lists.php.net Subject: Re: [PHP] how to use echo checkboxes in php when i don't have access to $_POST because when the name is in echo it can't

Re: [PHP] how to use echo checkboxes in php when i don't have access to $_POST

2011-05-28 Thread Negin Nickparsa
I'm sorry that I disturbed you and the List,I tried hard to mind my punctuations but my English has weaknesses you can understand from my posts,one time I apologized.. No my problem is not with these punctuations i know them I said for example,I mean in general suppose that i have this

Re: [PHP] how to use echo checkboxes in php when i don't have access to $_POST

2011-05-28 Thread Igor Konforti
It means that array $_POST does not have a key called negin. Simple If statement before line 4 would fix this. And I agree with @Jasper Mulder. Perhaps you should try stackoverflow.comfor this kind of questions Regards On Sat, May 28, 2011 at 16:03, Negin Nickparsa nickpa...@gmail.com

<    1   2   3   4   5   6   7   8   9   10   >