[PHP] PHP and Prolog

2005-08-20 Thread Fernando Garza
Hi, I am creating a Shell in prolog language that interacts with a Visual Prolog database format in Win32, I would like to interact with this database with PHP, just like the interaction with MySQL database, can you give me some notion or the code that need to be executed to get this done? for

[PHP] PHP and Prolog database interaction

2005-08-20 Thread Fernando Garza
Hi, I am creating a Shell in prolog language that interacts with a Visual Prolog database format in Win32, I would like to interact with this database with PHP, just like the interaction with MySQL database, can you give me some notion or the code that need to be executed to get this done? for

Re: [PHP] exec ping

2005-08-20 Thread Juan Pablo Herrera
On 8/21/05, Jasper Bryant-Greene <[EMAIL PROTECTED]> wrote: > Juan Pablo Herrera wrote: > > Thanks Jasper, > > well, i need make a explode of results of the ping. The idea is check > > a host and when the host don´ t response send a email. > > I don't explode the result of the ping. > > If it was

[PHP] SUPPORT FOR INTERACTION WITH A DATABASE

2005-08-20 Thread Fernando Garza
Hi, I am creating a Shell in prolog language that interacts with a Visual Prolog database format in Win32, I would like to interact with this database with PHP, just like the interaction with MySQL database, can you give me some notion or the code that need to be executed to get this done? for

Re: [PHP] exec ping

2005-08-20 Thread Jasper Bryant-Greene
Juan Pablo Herrera wrote: Thanks Jasper, well, i need make a explode of results of the ping. The idea is check a host and when the host don´ t response send a email. I don't explode the result of the ping. If it was me, I'd try opening a socket connection to the host instead, and check to see

Re: [PHP] apache sessions

2005-08-20 Thread Chris Shiflett
Bawt T. Eggdrop wrote: im trying to change my session backend for apache from files to mysql. is there something php provides that allows a php script to execute before each page gets loaded in apache. if not i have to edit hundreds of php files...theres gotta be an easier way. thanks. I may be

Re: [PHP] exec ping

2005-08-20 Thread Juan Pablo Herrera
On 8/21/05, Jasper Bryant-Greene <[EMAIL PROTECTED]> wrote: > Juan Pablo Herrera wrote: > > Hi all! > > I have following script: > > $comando = system('ping 168.192.0.1', $nn); > > echo $nn; > > Well, i need that only show the first ten lines of the ping and kill > > the process. > > How can i make

Re: [PHP] exec ping

2005-08-20 Thread Jasper Bryant-Greene
Juan Pablo Herrera wrote: Hi all! I have following script: $comando = system('ping 168.192.0.1', $nn); echo $nn; Well, i need that only show the first ten lines of the ping and kill the process. How can i make it? If I understand your question correctly... $comando = system('ping -c 10 168.192

[PHP] exec ping

2005-08-20 Thread Juan Pablo Herrera
Hi all! I have following script: $comando = system('ping 168.192.0.1', $nn); echo $nn; Well, i need that only show the first ten lines of the ping and kill the process. How can i make it? Regards, JP -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub

[suspicious - maybe spam] [PHP] [suspicious - maybe spam] $BM_5aITK~$J1|MM$r%O%a%F8+$^$;$s$+(B

2005-08-20 Thread info
- $B5U!o8r:](B $B"v5U!o8r:](B - [EMAIL PROTECTED],[EMAIL PROTECTED];~Be$O=*$j$^$7$?!#Ev%5%$%H$O5U!o4uK>[EMAIL PROTECTED],[EMAIL PROTECTED]<+M3$KA*$Y$k%7%9%F%`$r:NMQ$7$F$$$^$9!#(B $B"[EMAIL PROTECTED](B $B!D(B [EMAIL PROTECTED]>DD$7$F(BOK!! [EMAIL

Re: [PHP] preg_match

2005-08-20 Thread Edin Kadibašić
Jasper Bryant-Greene wrote: > John Nichel wrote: > >> Personally, I have never used \\ in PCRE when looking for things like >> spaces (\s), word boundraries (\b), etc. and it's all worked out fine. > > > It will work fine, but only because those (\s and \b) just happen to not > be special charac

Re: [PHP] preg_match

2005-08-20 Thread Edin Kadibašić
Richard Lynch wrote: > But Perl isn't going to *SEE* \\s !!! > > PHP is going to *EAT* \\ and make \ out of it. > > That's why \ is an escape character in PHP. > > It's also an escape character in Perl/PCRE. > > Some days I think PHP's escape character should have been | or > something, just so

Re: [PHP] build sql query struture and values from form fields

2005-08-20 Thread Greg Donald
On 8/20/05, Andras Kende <[EMAIL PROTECTED]> wrote: > I would like to create the mysql insert query for my html form fields, > I have a small problem it will have an extra , at the end of $sqlstruct > And extra "" at $sqldata.. > > Anyone can give a hint ? > > > foreach ($_POST as $v

[PHP] build sql query struture and values from form fields

2005-08-20 Thread Andras Kende
Hello, I would like to create the mysql insert query for my html form fields, I have a small problem it will have an extra , at the end of $sqlstruct And extra "" at $sqldata.. Anyone can give a hint ? foreach ($_POST as $variable=>$value){ $sqlstruct.=$variable","

[PHP] apache sessions

2005-08-20 Thread Bawt T. Eggdrop
im trying to change my session backend for apache from files to mysql. is there something php provides that allows a php script to execute before each page gets loaded in apache. if not i have to edit hundreds of php files...theres gotta be an easier way. thanks. -- PHP General Mailing List (http

Re: [PHP] Re: PHP MySQL insert

2005-08-20 Thread areguera
On 8/19/05, Richard Lynch <[EMAIL PROTECTED]> wrote: > On Fri, August 19, 2005 12:56 pm, areguera wrote: > >> could you suggest something about Latin characters and portability?. > > As I understand it, or not, more likely, you want to configure your > MySQL server to use UTF-8, and your MySQL cli

[PHP] error while running com

2005-08-20 Thread sangram
Hi, i had uploaded the com application on win2003 server with word 2003 installed.It runs perfect The traffic of word files increases or other reasons the following message starts displaying. Warning: (null)(): Unable to obtain IDispatch interface for CLSID {000209FF---C000-0046}:

Re: [PHP] Week Days

2005-08-20 Thread Robert Cummings
On Sat, 2005-08-20 at 03:15, [EMAIL PROTECTED] wrote: > Rob, > > I tried your code below, but it didn't work. I put the number of week days > in $addWeekdays variable. Am I doing something wrong or is there an error in > the code? Appreciate your help! There's an error... I didn't account for

[PHP] __sleep, __wakeup and persistent connections

2005-08-20 Thread Marcus Bointon
I'm sorting out some code to handle session object storage, particularly where the objects contain DB connections. I've found lots of articles that go on about how __sleep should clean up db stuff, close connections etc and how __wakeup should reconnect, but weirdly enough I've not found a

Re: [PHP] Super globals ?

2005-08-20 Thread Wong HoWang
yes, I am asking how to start my own super global... And even a PHP beginner know that $GLOBALS is a array containing all the global variables and it is used in a function or a class. So I think no one will ask a question here which the answer is simply $GLOBALS. Any finally, thanks Jasper for t

Re: [PHP] Super globals ?

2005-08-20 Thread Jasper Bryant-Greene
Kevin Waterson wrote: This one time, at band camp, Jasper Bryant-Greene <[EMAIL PROTECTED]> wrote: Because he asked for superglobals, not globals. $GLOBALS (not $_GLOBALS) meh, force of habit happens to be an example of a superglobal. and variable can be set within its scope, so why not

Re: [PHP] preg_match

2005-08-20 Thread Jasper Bryant-Greene
John Nichel wrote: Personally, I have never used \\ in PCRE when looking for things like spaces (\s), word boundraries (\b), etc. and it's all worked out fine. It will work fine, but only because those (\s and \b) just happen to not be special characters in PHP *at this time*. It's sloppy pr

Re: [PHP] Super globals ?

2005-08-20 Thread Kevin Waterson
This one time, at band camp, Jasper Bryant-Greene <[EMAIL PROTECTED]> wrote: > Because he asked for superglobals, not globals. $GLOBALS (not $_GLOBALS) meh, force of habit > happens to be an example of a superglobal. and variable can be set within its scope, so why not use it? As we see in the ma

Re: [PHP] preg_match

2005-08-20 Thread John Nichel
Richard Lynch wrote: On Fri, August 19, 2005 7:03 am, Matthew Weier O'Phinney wrote: * John Nichel <[EMAIL PROTECTED]> : Richard Lynch wrote: On Thu, August 18, 2005 2:50 pm, Jon wrote: preg_match_all("/Charges \s\s+ $total x (.+) /siU", $single, $from_invoice); I would recommend using

Re: [PHP] Document source code for PHP5

2005-08-20 Thread Markus Fischer
Denis Gerasimov wrote: Can someone recommend a documentation tool which supports the new PHP5 syntax? PHPDocumentor (http://www.phpdoc.org/) does. I am using Zend Studio integrated version and it works fine. Then I'm wondering what I'm doing wrong because it puts interface function definiti

Re: [PHP] Super globals ?

2005-08-20 Thread Jasper Bryant-Greene
Kevin Waterson wrote: This one time, at band camp, Jasper Bryant-Greene <[EMAIL PROTECTED]> wrote: Wong HoWang wrote: Hello, I want to know that is there any way to create a super global in PHP? Only with the runkit extension. Take a look: http://www.php.net/runkit This is exactly what

Re: [PHP] Super globals ?

2005-08-20 Thread Kevin Waterson
This one time, at band camp, Jasper Bryant-Greene <[EMAIL PROTECTED]> wrote: > Wong HoWang wrote: > > Hello, I want to know that is there any way to create a super global in PHP? > > Only with the runkit extension. Take a look: > > http://www.php.net/runkit This is exactly what $_GLOBALS is for

Re: [PHP] Super globals ?

2005-08-20 Thread Jasper Bryant-Greene
Wong HoWang wrote: Hello, I want to know that is there any way to create a super global in PHP? Only with the runkit extension. Take a look: http://www.php.net/runkit Jasper -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Super globals ?

2005-08-20 Thread Wong HoWang
Dear all, Hello, I want to know that is there any way to create a super global in PHP? Please help! Thanks. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Super globals ?

2005-08-20 Thread Wong HoWang
Dear all, Hello, I want to know that is there any way to create a super global in PHP? Please help! Thanks. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Hardware Detection

2005-08-20 Thread Burhan Khalid
Saenal M wrote: Hi, Can we get information about hardware on client's PC. (e.g. hard disk, processor, keyboard, etc).? And How? anyone knows? please reply back. No, this is not possible with PHP. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/uns

Re: [PHP] Week Days

2005-08-20 Thread [EMAIL PROTECTED]
Rob, This code works great! Thank you for all of your help and everyone else who responded! On 8/18/05, Robert Cummings <[EMAIL PROTECTED]> wrote: > > On Fri, 2005-08-19 at 02:10, Jasper Bryant-Greene wrote: > > [EMAIL PROTECTED] wrote: > > > I am trying to add 3 (or a user-defined amount) w

Re: [PHP] Week Days

2005-08-20 Thread [EMAIL PROTECTED]
Rob, I tried your code below, but it didn't work. I put the number of week days in $addWeekdays variable. Am I doing something wrong or is there an error in the code? Appreciate your help! On 8/18/05, Robert Cummings <[EMAIL PROTECTED]> wrote: > > On Fri, 2005-08-19 at 02:17, Robert Cummings