Re: [PHP] Re: PHP hangs when exec'ing SSH

2005-03-12 Thread Ross Becker
Ah. Well, then my bug report is probably of no matter. Even looking further into SSH's options, there's something for controlling the TTY allocated for SSH, but it only controls what TTY SSH allocates, there is no means for turning tty allocation off completely. I was still holding out some

[PHP] Re: Table duplication

2005-03-12 Thread Jules Winnfield
Marquez Design wrote: I am trying to display information in an html table from a MySQL data base. I can do this rather easily, however, I am trying to multiply that table with as many entries there are in the database. Can someone point me in the right direction or give me an example of how I can

Re: [PHP] Question about shortening a string

2005-03-12 Thread Steve Slater
At 11:54 PM 3/11/2005, Stephen Johnson wrote: Just a quick and dirty solution - but couldn't you explode the name into an array and use the first and last array fields ? $name_array = explode( ,$name); $short_name = $name_array[0] . end($name_array); And a dozen other ways to do it I'm sure. I

Re: [PHP] incrementing a number from a text file

2005-03-12 Thread Kurt Yoder
Check out the linux utility lsof. This can be used to determine if any process has a file open. So you can use it for locking, and it is detected at the OS level. Unfortunately, it still doesn't prevent someone from editing the file whilst ignoring whether or not some other process is already

Re: [PHP] incrementing a number from a text file

2005-03-12 Thread Kurt Yoder
On Mar 11, 2005, at 3:30 AM, Kim Madsen wrote: Or better: I put my query in a link like a href=db.php?q=select+*+from+customersshow customers/a and I´ve got NO clue about the settings in the mysql db, so this gets funny a href=db.php?q=delete+from+customersshow customers/a a

[PHP] RFQ: Compile php5 for winCE 5.0 device

2005-03-12 Thread Vince
Greetings, My company is developing a CE 5.0 device, and I am searching for someone who can compile php5 and eventually mysql to run on it. If required we can supply platform builder, an sdk for our device, and even the actual hardware so you can do testing. A standard NDA will need to be

[PHP] Re: Reading directory contents

2005-03-12 Thread Jim Plush
what you need is to make a recursive function, that is a function that calls itself like function open_dir() { if(is_dir($my_dir)) { open_dir(); } else { // read files here } } basically you're saying... I'm reading the top level directory, are you a file? ok I'll

[PHP] Building PHP5 on Windows - VS.net?

2005-03-12 Thread Jim Plush
Has anyone successfully built php5 using visual studio.net ? or is VC6 still only supported? thanks, Jim -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] mail()

2005-03-12 Thread Sebastian
Hi, it appears mail() stopped working on my server. i recall it worked previously. since i haven't used mail() in a while i dont recall when it stopped working. running php 4.3.10 php.ini is default path for send mail which is the correct path for the server.. anything else i should be looking

[PHP] Eliminating CLI overhead

2005-03-12 Thread Skippy
I intend to run a lot of PHP scripts, all the time, on a Linux machine. The scripts were designed for CLI environment, since they will handle the entire management of the machine, being started by init and then effectively and completely taking over. I'm wondering whether starting up the PHP

Re: [PHP] warning question about mysql sessions concurrency

2005-03-12 Thread Josh Whiting
On Fri, Mar 11, 2005 at 09:57:46AM -0800, Richard Lynch wrote: well the trouble is not in the writing at the end of the request, which would likely only be a single query and therefore not need a transaction in itself. the trouble is the lack of locking out other requests from reading the

[PHP] Re: Building PHP5 on Windows - VS.net?

2005-03-12 Thread cshmoove
Jim, i had only minor issues, but it builds fine otherwise. Jim Plush [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Has anyone successfully built php5 using visual studio.net ? or is VC6 still only supported? thanks, Jim -- PHP General Mailing List (http://www.php.net/)

Re: [PHP] Re: Question about shortening a string

2005-03-12 Thread Jochem Maas
Ashley M. Kirchner wrote: Mário Gamito wrote: ... Does anyone knows how to do this ? ?php $parts = explode(' ', $fullName); $shortenedName = $parts[0].' '.$parts[count($parts)-1]; ? This might solve one problem. What about people who have names like 'Pablo Ricardo del Rey' where you

Re: [PHP] SimpleXML add a node

2005-03-12 Thread Jochem Maas
Richard Lynch wrote: php.net/dom ?? Like this? --- try { $dom = new DOMDocument(); $config = $dom-appendChild($dom-importNode(dom_import_simplexml($this-configXML),true)); $config-appendChild( $dom-createElement(($mode? 'softactive':'active')) ); $this-configXML = simplexml_import_dom($config); }

[PHP] Re: bulk emailer

2005-03-12 Thread Manuel Lemos
Hello, on 03/11/2005 05:48 PM Redmond Militante said the following: i need some advice on making a bulk emailer script more robust. what i'm currently doing: -using mysql_fetcharray() to loop through an array of query results -for each iteration of the loop, get an email address from the

Re: [PHP] SimpleXML add a node

2005-03-12 Thread Jochem Maas
Jochem Maas wrote: Richard Lynch wrote: php.net/dom ?? Like this? --- try { $dom = new DOMDocument(); $config = $dom-appendChild($dom-importNode(dom_import_simplexml($this-configXML),true)); $config-appendChild( $dom-createElement(($mode? 'softactive':'active')) ); $this-configXML =

Re: [PHP] mail()

2005-03-12 Thread Guillermo Rauch
Hello Sebastian, It'd very useful for those who want to help you out, a good explanation of your error. For example, you're not quoting some error or some error logs that you found related to this behavior. For instance, if you refer to: http://uk.php.net/mail You'll see there's a note

[PHP] Mailing List

2005-03-12 Thread stg
Hi I have two pages 1) A form with a rich text box and a submit button. 2) A page which receives the value from the rich text box and emails out to addresses in a column in a table For the rich text box its default value is a message saying: Click

Re: [PHP] bulk emailer

2005-03-12 Thread Leif Gregory
Hello Richard, Friday, March 11, 2005, 3:34:01 PM, you wrote: RL The mail() function is designed for quickie one-off emails, not RL sending out thousands. Hell, it can't even handle dozens, not RL reliably, at least not on some hardware/connections. I've used it to send a little over 3,000. On