[PHP] How to limit source IP in PHP

2012-09-12 Thread Tonix (Antonio Nati)
Is there a way to force a PHP script to bind to a prefixed IP? Actually, while you can assign more IPs to Apache for listening, assigning domains to specific IPs, it looks like any PHP script can freely choose which IP to bind. Instead I'd love some domains are permitted to open connections o

Re: [PHP] How to use wsdl files?

2012-08-30 Thread Matijn Woudt
On Thu, Aug 30, 2012 at 4:44 PM, Matijn Woudt wrote: > On Thu, Aug 30, 2012 at 2:57 PM, Michelle Konzack > wrote: >> Hello Experts, >> >> I am coding an Online Shop and need to include a VAT validation for the >> Europe Community. The Form can be found here: >> >>

Re: [PHP] How to use wsdl files?

2012-08-30 Thread Matijn Woudt
On Thu, Aug 30, 2012 at 2:57 PM, Michelle Konzack wrote: > Hello Experts, > > I am coding an Online Shop and need to include a VAT validation for the > Europe Community. The Form can be found here: > > > > However, there is a SOAP A

[PHP] How to use wsdl files?

2012-08-30 Thread Michelle Konzack
Hello Experts, I am coding an Online Shop and need to include a VAT validation for the Europe Community. The Form can be found here: However, there is a SOAP API:

Re: [PHP] How to catch an exception using SoapClient.

2012-08-15 Thread Ellis Antaya
like any other exception ... using a try catch block ;) Ellis 110010100001 " Unfortunately, no one can be told what The Matrix is. You have to see it for yourself. " twitter.com/floverdevel facebook.com/ellis.antaya google.com/profiles/ellis.antaya linkedin.com/in/ellisantaya On Mon, Aug 6

[PHP] How to best set per-site PHP session storage under suPHP/WordPress?

2012-08-12 Thread Philip Amadeo Saeli
I'm administering WordPress sites under suPHP on a CentOS LAMP server and would like to know how I can set PHP to keep the session files under the WP user's dir without having do duplicate the entire php.ini file for each WP site while still maintaining adequate security. The problems I'm encounte

[PHP] How to catch an exception using SoapClient.

2012-08-06 Thread James Newman
I was wondering how I'd catch an exception using SoapClient. $data = array( 'Particular'=>'Payment for stuff', 'Email' =>'e mail address', 'CardNumber'=>', 'CardType' =>'MC', 'CardExpiry'=>'0423', 'CardHolderName'=>'James Newman', 'CardCSC' =>'111', 'StoreCard' =>'true' );

Re: [PHP] How to write and read serial or parallel port

2012-07-26 Thread Lester Caine
Alex Nikitin wrote: So for serial for example, you can just open the port up and work with it like a socket; read/write binary data. As far as parallel port goes, trickier, you may need to call out to an external program, or write a module if you need direct interaction in php. Real question is w

Re: [PHP] How to write and read serial or parallel port

2012-07-26 Thread viper
many thanks! i'll try all your solutions to find the best one! On Thu, Jul 26, 2012 at 2:37 PM, Alex Nikitin wrote: > Real question is > why in the world would you want to use PHP for this to begin with. I > mean sure you can write your own vfat implementation in PHP, etc, etc, > but it doesn't m

Re: [PHP] How to write and read serial or parallel port

2012-07-26 Thread Curtis Maurand
Lester Caine wrote: > viper wrote: >> is it possible to write and read data on a COM or LPT port? >> is there any function or class in PHP? >> >> anyone has already done something similar? > > Talking in and out of the serial port is not too difficult but is OS > dependent, > so what are you wan

Re: [PHP] How to write and read serial or parallel port

2012-07-26 Thread Curtis Maurand
You read and write to it like any other file.  Calls on windows will be slightly different. $PRINTERPORT = fopen("/dev/lpt1", "r+"); $PRINTERPORT = fopen("lpt1", "r+"); Cheers, Curtis viper wrote: > hi all! > > is it possible to write and read data on a COM or LPT port? > is there any fu

Re: [PHP] How to write and read serial or parallel port

2012-07-26 Thread Alex Nikitin
On Thu, Jul 26, 2012 at 6:24 AM, Lester Caine wrote: > viper wrote: >> >> is it possible to write and read data on a COM or LPT port? >> is there any function or class in PHP? >> >> anyone has already done something similar? > > > Talking in and out of the serial port is not too difficult but is O

Re: [PHP] How to write and read serial or parallel port

2012-07-26 Thread Lester Caine
viper wrote: is it possible to write and read data on a COM or LPT port? is there any function or class in PHP? anyone has already done something similar? Talking in and out of the serial port is not too difficult but is OS dependent, so what are you wanting to run on? Most of the time you ar

[PHP] How to write and read serial or parallel port

2012-07-26 Thread viper
hi all! is it possible to write and read data on a COM or LPT port? is there any function or class in PHP? anyone has already done something similar? thanks, viper -- + http://vipertechnology.dyndns.org () ascii ribbon campaign - against html e-mail /\ www.asciiribbon.org - against propri

Re: [PHP] How to make a secure download ?

2012-07-08 Thread tamouse mailing lists
On Thu, Jul 5, 2012 at 10:17 AM, Gibbs wrote: > On 05/07/12 14:32, donkfat...@donkfather.eu wrote: >> >> Hi, >> >> I am trying to put a file to download. I want it secure so only the people >> having the password can access it. >> I made a page that requires a password.. if the password is correct

Re: [PHP] How to make a secure download ?

2012-07-05 Thread Gibbs
On 05/07/12 14:32, donkfat...@donkfather.eu wrote: Hi, I am trying to put a file to download. I want it secure so only the people having the password can access it. I made a page that requires a password.. if the password is correct it changes the password send it on my mail and redirects the

[PHP] How to make a secure download ?

2012-07-05 Thread donkfather
Hi, I am trying to put a file to download. I want it secure so only the people having the password can access it. I made a page that requires a password.. if the password is correct it changes the password send it on my mail and redirects the user to another script. This script searches in the

Re: [PHP] how to walk async recursively over an object, doing work (in right order) per leaf

2012-06-13 Thread Matijn Woudt
On Wed, Jun 13, 2012 at 7:03 PM, rene7705 wrote: > I'm a bit stumped on a javascript problem at the moment, I hope you > don't mind (too much) that I post it here as well, for a wider > audience.. > > My opensourced htmlMicroscope works well, except when you open a > sub-array that holds more than

Re: [PHP] How to insert a file in a class?

2012-06-01 Thread LAMP
On Jun 1, 2012, at 8:11 AM, LAMP wrote: On Jun 1, 2012, at 7:46 AM, David OBrien wrote: On Fri, Jun 1, 2012 at 8:41 AM, LAMP wrote: Hi to all. Let's say there is a class class Box { var $box_title; var $box_content; function __construct() { $this->

Re: [PHP] How to insert a file in a class?

2012-06-01 Thread ma...@behnke.biz
LAMP hat am 1. Juni 2012 um 14:41 geschrieben: > include(file.php); > $box->box_content($content); > $box->make_box(); > echo $box->get_box(); Wrong approach. Right is: $content = file_get_contents('file.php'); $box->box_content($content); Marco Behnke Dipl. Informatiker (FH), SAE Audio En

Re: [PHP] How to insert a file in a class?

2012-06-01 Thread LAMP
On Jun 1, 2012, at 7:46 AM, David OBrien wrote: On Fri, Jun 1, 2012 at 8:41 AM, LAMP wrote: Hi to all. Let's say there is a class class Box { var $box_title; var $box_content; function __construct() { $this->box = ''; } function b

Re: [PHP] How to insert a file in a class?

2012-06-01 Thread LAMP
On Jun 1, 2012, at 8:00 AM, Gibbs wrote: On 01/06/12 13:41, LAMP wrote: Hi to all. Let's say there is a class class Box { var $box_title; var $box_content; function __construct() { $this->box = ''; } function box_title($title) { $this->title = $title;

Re: [PHP] How to insert a file in a class?

2012-06-01 Thread sertcetin
file_get_contents() ? -- Ege Sertçetin Alinti LAMP Hi to all. Let's say there is a class class Box { var $box_title; var $box_content; function __construct() { $this->box = ''; } function box_title($title) {

[PHP] How to insert a file in a class?

2012-06-01 Thread LAMP
Hi to all. Let's say there is a class class Box { var $box_title; var $box_content; function __construct() { $this->box = ''; } function box_title($title) { $this->title = $title; } functi

Re: [PHP]How to handle E_ERROR,E_PARSE with a user defined function

2012-05-23 Thread Yuchen Wang
From: Yuchen Wang [mailto:phob...@gmail.com] > > Sent: Tuesday, May 22, 2012 10:19 PM > > To: php-general Maillist > > Subject: [PHP]How to handle E_ERROR,E_PARSE with a user defined function > > > > Hi all, > > > > How to handle E_ERROR,E_PARSE with a user de

RE: [PHP]How to handle E_ERROR,E_PARSE with a user defined function

2012-05-23 Thread ma...@behnke.biz
> -Original Message- > From: Yuchen Wang [mailto:phob...@gmail.com] > Sent: Tuesday, May 22, 2012 10:19 PM > To: php-general Maillist > Subject: [PHP]How to handle E_ERROR,E_PARSE with a user defined function > > Hi all, > > How to handle E_ERROR,E_PARSE w

RE: [PHP]How to handle E_ERROR,E_PARSE with a user defined function

2012-05-22 Thread admin
-Original Message- From: Yuchen Wang [mailto:phob...@gmail.com] Sent: Tuesday, May 22, 2012 10:19 PM To: php-general Maillist Subject: [PHP]How to handle E_ERROR,E_PARSE with a user defined function Hi all, How to handle E_ERROR,E_PARSE with a user defined function ? -- *Yuchen Wang

[PHP]How to handle E_ERROR,E_PARSE with a user defined function

2012-05-22 Thread Yuchen Wang
Hi all, How to handle E_ERROR,E_PARSE with a user defined function ? -- *Yuchen Wang*

Re: [PHP] How to send XML requests from PHP?

2012-05-08 Thread Matijn Woudt
On Tue, May 8, 2012 at 7:50 PM, Michelle Konzack wrote: > Hello *, > > I have to implement an interface which must access a Domain-Registration > API.  From the manual I have for example: > > 8<-- > Example 2.8. Contact Update:val

Re: [PHP] How to send XML requests from PHP?

2012-05-08 Thread Jim Lucas
On 05/08/2012 10:50 AM, Michelle Konzack wrote: Hello *, I have to implement an interface which must access a Domain-Registration API. From the manual I have for example: 8<-- Example 2.8. Contact Update:valid(change password)

[PHP] How to send XML requests from PHP?

2012-05-08 Thread Michelle Konzack
Hello *, I have to implement an interface which must access a Domain-Registration API. From the manual I have for example: 8<-- Example 2.8. Contact Update:valid(change password) Change password from multipass to green REQUEST

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 wr

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').' 2>&1'; $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 th

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. wrote: > well then fix it. i m not using editor. >

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
it's wrong Fatih because it shows me another color in editor On Fri, Feb 17, 2012 at 5:24 PM, Negin Nickparsa wrote: > Fatih what is about another parts? >

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 Fatih P.
On Fri, Feb 17, 2012 at 3:43 PM, Negin Nickparsa wrote: > 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:

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 transpor

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
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 Negin Nickparsa
curtis what do you mean --c? On Fri, Feb 17, 2012 at 4:54 PM, Curtis Maurand 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 Files >

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 need

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 wrote: > and this One > system ("\"c:\\program files\\myapp\\myapp.exe\" params_for_myapp"); > > > On Fri, Feb 17, 2012 at 4

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 wrote: > I read about > > The useless command may be like "c:" or "cd". > > Example: > > system('c: & "C:\Program Files\..." "parameter 1" "parameter 2"'); > > exec('

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

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 trie

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').' 2>&1'; > > GENERATES: > > string(100) "'C:/Program\' is not recognized as an internal or external > command, operable

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').' 2>&1'; 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 s

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,

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 wrote: > Oops no! it shows this one: > string(100) "'C:/Program\' is not recognized as an internal or external > c

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 wrote: > ok sorry,I tried yours It generates Null. > > > On Fri, Feb 17, 2012 at 4:06 PM, Stuart Dallas

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

2012-02-17 Thread Negin Nickparsa
ok sorry,I tried yours It generates Null. On Fri, Feb 17, 2012 at 4:06 PM, Stuart Dallas wrote: > Please quote the relevant parts of the email you're replying to - your > emails have massively diminished usefulness to the archives. > > On 17 Feb 2012, at 12:21, Negin Nickparsa wrote: > > It gene

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

2012-02-17 Thread Stuart Dallas
Please quote the relevant parts of the email you're replying to - your emails have massively diminished usefulness to the archives. On 17 Feb 2012, at 12:21, Negin Nickparsa wrote: > It generates NULL My bad, try this… $cmd = 'C:/Program\\ Files/GAMS23.7/gams.exe'.' '.escapeshellarg('C:/Progr

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

2012-02-17 Thread Negin Nickparsa
ow! Thanks I got Stuart meaning Now

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

2012-02-17 Thread Negin Nickparsa
Fatih it shows this: ERRORNULL maybe program Files which has space should have something like \ which I don't know ha? or because of Null It is correct?

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

2012-02-17 Thread Vikash Kumar
backtick operator ( http://www.php.net/manual/en/language.operators.execution.php) works like shell_exec() On 17 February 2012 18:00, Negin Nickparsa wrote: > stuart $out = `$cmd`; what it will do? what is `? I didn't ever seen it >

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

2012-02-17 Thread Negin Nickparsa
stuart $out = `$cmd`; what it will do? what is `? I didn't ever seen it

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

2012-02-17 Thread Negin Nickparsa
Duken how you use " and again another " without a dot? I tried yours it says: *Warning*: system() [function.system ]: Cannot execute a blank command in *C:\Program Files\GAMS23.7\calling_gams.php* on line *23* Error

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

2012-02-17 Thread Duken Marga
I think it's wrong: system(' "C:/Program Files/GAMS23.7/gams.exe "C:/Program Files/GAMS23.7/trnsport_php.gms')) Instead, try this: system(' "C:/Program Files/GAMS23.7/gams.exe" "C:/Program Files/GAMS23.7/trnsport_php.gms" ')) It is a good practice to write full path because we don't know behaviou

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

2012-02-17 Thread Negin Nickparsa
Apache

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

2012-02-17 Thread Fatih P.
On Fri, Feb 17, 2012 at 2:19 PM, Stuart Dallas wrote: > On 17 Feb 2012, at 12:12, Negin Nickparsa wrote: > > if (($out = system(' "C:/Program Files/GAMS23.7/gams.exe "C:/Program > > Files/GAMS23.7/trnsport_php.gms')) !== FALSE) > > { > > print('Not error!'); > > printf('Output is "%s"', $out); >

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

2012-02-17 Thread Negin Nickparsa
I changed it to this one: $out = $cmd; now it shows string(85) "C:/Program Files/GAMS23.7/gams.exe "C:/Program Files/GAMS23.7/trnsport_php.gms" 2>&1"

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

2012-02-17 Thread Negin Nickparsa
It generates NULL

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

2012-02-17 Thread Stuart Dallas
On 17 Feb 2012, at 12:12, Negin Nickparsa wrote: > if (($out = system(' "C:/Program Files/GAMS23.7/gams.exe "C:/Program > Files/GAMS23.7/trnsport_php.gms')) !== FALSE) > { > print('Not error!'); > printf('Output is "%s"', $out); > } > else > { > print('Error'); > } > Fatih it shows again nothing wh

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

2012-02-17 Thread Negin Nickparsa
if (($out = system(' "C:/Program Files/GAMS23.7/gams.exe "C:/Program Files/GAMS23.7/trnsport_php.gms')) !== FALSE) { print('Not error!'); printf('Output is "%s"', $out); } else { print('Error'); } Fatih it shows again nothing why I should set the full path even when I run my file on the path I d

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

2012-02-17 Thread Fatih P.
replace \ in path with / then should work fine on windows too.

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

2012-02-17 Thread Duken Marga
Try to write full path to executable file and don't forget to bring double quote to that path. It must because "Program files" contain space and php think your program is "Program" that contain parameter "files". if(system(' "C:\Program Files\GAMS23.7\gams.exe" trnsport_php.gms') On Fri, Feb

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

2012-02-17 Thread Negin Nickparsa
I don't know what is going here!? well it shows no error but the out put is nothing and my gams when running should make a text file but by running,it doesn't happen so It has problem

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

2012-02-17 Thread Fatih P.
give the full path of trnsport_php.gms too. shell_exec should be working fine on windows as well.

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

2012-02-17 Thread Negin Nickparsa
yes it prints nothing by this code if (($out = system('C:\Program Files\GAMS23.7\gams.exe trnsport_php.gms')) !== FALSE) { print('Not error'); printf('Output is "%s"', $out); } else { print('Error'); }

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

2012-02-17 Thread ma...@behnke.biz
Negin Nickparsa hat am 17. Februar 2012 um 12:26 geschrieben: > if(system('gams.exe trnsport_php.gms')) > echo 'Not Error'; > else echo'Error'; > > it shows me Error system() Returns the last line of the command output on success, and FALSE on failure. So, lets assume your gams program does n

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

2012-02-17 Thread Negin Nickparsa
I am in windows yeah I tried this one if(shell_exec('C:\Program Files\GAMS23.7\gams.exe trnsport_php.gms')) echo 'yes' ; else echo 'no'; it wil show me no my another try: if(shell_exec('cd C:\Program Files\GAMS23.7') ) echo 'yes'; else echo 'no'; it will show me No aga

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

2012-02-17 Thread Fatih P.
On Fri, Feb 17, 2012 at 1:26 PM, Negin Nickparsa wrote: > I have a Gams application< > http://interfaces.gams-software.com/doku.php?id=env%3aspawning_gams_from_php > > > which I want to run it through php code after trying many things finally I > found that for running in commmand line I should g

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 wrote: > function is_strong($char) { >    if (  in_array($char, $arrayOfRtlCharacters)  ) { >        return "RTL"; >    } >    if (  in_array($char, $arrayOfLtrCharacters)  ) { >        return "LTR"; >    } >    return FALSE; > } > On second thought, you

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 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 > >     >      $SOME_TEXT >     > > but HOW can I detect the type of $SOME_TEXT  from  within  PHP,  to

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 > > > $SOME_TEXT > > > but HOW can I detect the type of $SOME_TEXT from withi

[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 $SOME_TEXT but HOW can I detect the type of $SOME_TEXT from within PHP, to set $DIRECTION? (RTL or LTR) correctly? And how can I do this with

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 tr

Re: [PHP] How to correctly validate url?

2012-01-18 Thread Vikash Kumar
Best way is to use filter_var: http://in2.php.net/manual/en/function.filter-var.php filter_var('http://example.com', FILTER_VALIDATE_URL) On 18 January 2012 16:58, Tanel Tammik wrote: > Does anyone have a preg expression to validate the url which includes > these special characters like ÜÕÄÖ in

Re: [PHP] How to correctly validate url?

2012-01-18 Thread Tanel Tammik
Does anyone have a preg expression to validate the url which includes these special characters like ÜÕÄÖ included? Br, Tanel 18.01.2012 12:21, Mokaddim Akm kirjutas: Sent from a handheld device On 18-Jan-2012, at 4:05 PM, Tanel Tammik wrote: Hello, how to correctly validate url? now the

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 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 representation of character

[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 find where class is used?

2012-01-06 Thread Dotan Cohen
On Fri, Jan 6, 2012 at 15:05, richard gray 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 is an array of th

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

2012-01-06 Thread Nilesh Govindarajan
On Fri, Jan 6, 2012 at 6:35 PM, richard gray wrote: > 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

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 vB_ProfileBlock_Visito

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 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" > This wor

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 applica

[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 brute-force

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

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

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

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-13 Thread Laruence
On Wed, Dec 14, 2011 at 9:27 AM, Nils Leideck 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 process ;-) > > I have

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

[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) { ["desig

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 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 > > *C:> php --ini*

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 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 > > *C:> php -

[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 have a smooth hairless skin

2011-09-03 Thread Sean Greenslade
On Sat, Sep 3, 2011 at 8:44 PM, Ashley Sheridan wrote: > > > How to have a smooth hairless skin wrote: > > >How to have a smooth hairless skin. > > Hairless in the bikini zone. > >Click here: > > > > > > > > How does one go about compiling that module from sour

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