Re: [PHP] PHP not able to send email

2001-12-17 Thread Andreas Landmark

On Mon, Dec 17, 2001 at 11:48:13PM +0800, Peter wrote:
 Dec 17 12:59:16 ns sendmail[14686]: NOQUEUE: SYSERR(webuser): queuename:
 Cannot create qfMAA14686 in /var/spool/mqueue
 

Your sendmail-setup is b0rked, check permissions on /var/spool and fix
sendmail, there's nothing wrong with PHP (read: this is offtopic).

-- 
Andreas D Landmark / noXtension
When I was in school, I cheated on my metaphysics exam: I looked into
the soul of the boy sitting next to me.
-- Woody Allen

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] Online editor that edits all pages

2001-12-13 Thread Andreas Landmark

On Fri, Dec 14, 2001 at 12:11:14AM -0800, R. Lindeman wrote:
 sorry for the inconvieniance but i have to restate my question i'm looking
 for a online editor that is able to edit pages that are not on the same host
 as the editor is.
 

And how is it supposed to do that?

ftp/ssh/frontpage-ext ?

Can't think of a ootb solution that does what you want...
-- 
Andreas D Landmark / noXtension
On Monday mornings I am dedicated to the proposition that all men are
created jerks.
-- Avery

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] Get Hours/Mins/Secs between two timestamps?

2001-12-12 Thread Andreas Landmark

On Wed, Dec 12, 2001 at 11:31:25AM -, Jon Farmer wrote:
 Is there a function in PHP that will output the difference between two
 timestamps (hours/mins/secs), similar in the way that getdate() extracts
 the date of a timestamp?  Thank you.
 
 
 How about subtracting the one timestamp from the other and then devide by
 3600, with the remainder divided by 60 and the remainder is your seconds.
 

Since you asked, i guess you're not familiary with the % operator
(modulus). Read the operator section of the manual, and you'll see how
modulus is your friend...

But a better way, is to subtract one from the other and then use
gmdate() on the difference, that way you don't have to worry about
differences in excess of 60 secs...
-- 
Andreas D Landmark / noXtension
Time flies like an arrow, but fruit flies like a banana.

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] db to xls

2001-04-24 Thread Andreas Landmark

On Tue, Apr 24, 2001 at 08:37:19PM +0530, Rahul Bhide produced this golden nugget:
 Thanks Calin,
 I have already tried with the csv and the tab delimited text file  . I wanted
 to know a better option
 bye
 `Rahul

Doubt there is a more effective solution with php (unless you write a class/
function that ouputs .xls), what you could do though is probably to use ODBC
to connect excel (if it supports odbc) and connect the oracle base through
ODBC...

-- 
Andreas D. Landmark / noXtension
Fortune's Fictitious Country Song Title of the Week:
How Can I Miss You if You Won't Go Away?

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] how do I do this

2001-04-23 Thread Andreas Landmark

On Mon, Apr 23, 2001 at 04:59:49PM +0530, Adrian D'Costa produced this golden nugget:
 Hi,
 
 I have the following script.  What I want is that when I select the
 country the corresponding cities should only be listed in the second
 dropdown box.  Can some one guide me.  Right below is my table
 structure. 

If you want to do this with pure php you'll need to reload the page after
the user selects the country from the dropdownbox, to get the webbrowser
to switch the cities in the city-dropdown w/o reloading you'll need to
use javascript or similar evil measures...

-- 
Andreas D. Landmark / noXtension
A physicist is an atom's way of knowing about atoms.
-- George Wald

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] PHP ---- sort()

2001-04-23 Thread Andreas Landmark

On Mon, Apr 23, 2001 at 08:57:21AM -0400, Scott Fletcher produced this golden nugget:
 I have used the PHP sort function -- sort().  When I use sort($data,
 NUMERIC), it sort the data by Numeric order.  But it goes in ascending
 order.  Is there a way to make it go in Descending order?

Use rsort()

(and if you looked at the manual, you would've found this yourself
instead of posting to the list ;-)

-- 
Andreas D. Landmark / noXtension
There is no time like the present for postponing what you ought to be
doing.

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] Incrementing a String Name

2001-04-22 Thread Andreas Landmark

On Mon, Apr 23, 2001 at 10:58:20AM +1000, Chris Aitken produced this golden nugget:
 Hi
 
 Just a quick puzzle I cant seem to get around at the moment...
 
 Im trying to create a loop that increments the string name by a digit. For 
 example, if I had the following 4 strings submitted to a script.
 
 $name1
 $name2
 $name3
 $name4
 
 What I want to do is create a while loop that will print out the above 4 
 strings, incrementing the number part of string automatically.
 
 while($count4) {
  $count=$count+1;
  echo"$increased_string_name\n";
 }
 
 But I just cant seem to work out how to increment the string name to 
 display it.
 
 Any assistance on this would be great. I have a feeling that there is a 
 better method of attacking this but im only new to PHP and dont know it yet.
 
There is a better way...

Use an array:

$name[0]  //your $name1
$name[1] // your $name2
etc.

and then do

while($count4)
{
$count=$count+1;
echo $name[$count];
}

and there you go...
that should work just like your code would've in theory...

-- 
andreas landmark / noXtension


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] online detection

2001-04-11 Thread andreas . landmark

On Wed, Apr 11, 2001 at 08:10:22AM +0200, [EMAIL PROTECTED] produced this golden 
nugget:
  Does anyone know how to detect when a user connects to the Internet
  similar
  to ICQ?
 
 I think you mean messages on  pages like "321 user online"!
 As HTTP is a stateless protocol, you can't really know this!!!
 It's only an estimation - and you can use sessions to realize this (ask how
 many sessions are active - and end a session after a short time like 5
 minutes!)
 
 witty

There is a way to do it, _if_ the user is using an IM service, for
icq the easiest way would prolly be to use the icq module for
perl (i don't know whether there is a PHP class for icq), and then
use that to generate your page...

Mirabilis has made it possible to have the little "online" icon
if you like... check out their site for more info...

I dunno whether this is possible for AIM/etc...

-- 
andreas.landmark

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]