Re: [PHP] Array into database

2002-06-12 Thread Leon Mergen


Stuart Dallas [EMAIL PROTECTED] wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
 As far as I know, serialize will handle multi-dimensional arrays. If I
were you
 I would suck it and see.

And how should I store a serialized variable in my database? As String or as
Blob?



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




[PHP] Stylesheet to query an xml file

2002-06-12 Thread William S.

I am looking for an example or an explanation
of how to set up a stylesheet so it will
enable a user to query content in an XML file.

For instance. Have an XML file with names and addresses
and the user would be able to search for a name and
get back a list of matches.

This would need to work with Sablotron, PHP,
and XSLT. I have seen examples of php scripts
inserted into html documents but none that
can deal with Sablotron doing the transformations.

-- 
Bill
Amsterdam, NL

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




[PHP] tutorials

2002-06-12 Thread Adriaan . Putter

hi 

i want to start learning this PHP, i've got the manual
but i need a kind of a starting point? any suggestions


Adriaan Putter

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




[PHP] converting some perl script to php

2002-06-12 Thread rdkurth


How can I do this in PHP. Could somebody just point me in the write
direction



  open (REQ, |$Openssl_cmd req -new -config /usr/lib/openssl.cnf 
  . -key $cert_dir/key -days $days -out $cert_dir/request 12) ||
  return MSG_error(ssl_cant_gen_request);

print REQ USER_INFO;
$subject{'C'}
$subject{'ST'}
$subject{'L'}
$subject{'O'}
$subject{'OU'}
$subject{'CN'}
$subject{'Email'}
USER_INFO
;
   close REQ;

  

-- 
Best regards,
 rdkurth  mailto:[EMAIL PROTECTED]


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




RE: [PHP] tutorials

2002-06-12 Thread Niklas Lampén

Well, it depends on how well you know the basics of programming. If
you're a total newbie, first of all learn how you use variables,
conditional statements and loops. Without these you're powerless! :)

One way is to just create a simple form on one page and then try
thingies you can do with the values sent from that form.

If you need a tutorial, try searching google with php tutorial.. :)


Niklas


-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] 
Sent: 12. kesäkuuta 2002 10:17
To: [EMAIL PROTECTED]
Subject: [PHP] tutorials


hi 

i want to start learning this PHP, i've got the manual
but i need a kind of a starting point? any suggestions


Adriaan Putter

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

###
This message has been scanned by F-Secure Anti-Virus for Internet Mail.
For more information, connect to http://www.F-Secure.com/

###
This message has been scanned by F-Secure Anti-Virus for Internet Mail.
For more information, connect to http://www.F-Secure.com/

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




RE: [PHP] tutorials

2002-06-12 Thread Adriaan . Putter

im not a newbie programmer, not all the stuff

just want something on standards on PHP and how
to start a script, or something to start with in
the end i will use the manual on all the functions
just need some basics on PHP...





-Original Message-
From: Niklas Lampén [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, June 12, 2002 10:01 AM
To: Php-General
Subject: RE: [PHP] tutorials


Well, it depends on how well you know the basics of programming. If
you're a total newbie, first of all learn how you use variables,
conditional statements and loops. Without these you're powerless! :)

One way is to just create a simple form on one page and then try
thingies you can do with the values sent from that form.

If you need a tutorial, try searching google with php tutorial.. :)


Niklas


-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] 
Sent: 12. kesäkuuta 2002 10:17
To: [EMAIL PROTECTED]
Subject: [PHP] tutorials


hi 

i want to start learning this PHP, i've got the manual
but i need a kind of a starting point? any suggestions


Adriaan Putter

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

###
This message has been scanned by F-Secure Anti-Virus for Internet Mail.
For more information, connect to http://www.F-Secure.com/

###
This message has been scanned by F-Secure Anti-Virus for Internet Mail.
For more information, connect to http://www.F-Secure.com/

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




[PHP] get results twice for UPDATE and INSERT

2002-06-12 Thread Tommi Trinkaus

Hi everybody,

i installed php(4.2)/mysql(2.2.3) on my local server and when i send a query
using UPDATE or INSERT to the database, i almost got the results twice.
When i put the same Database on a public webserver (hosteurope), everythin
works fine.
What is the mistake?

thank you for any answer, tommi



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




RE: [PHP] tutorials

2002-06-12 Thread SP

Here are some tutorials:
http://www.devshed.com/Server_Side/PHP/
http://www.phpbuilder.com/
http://www.phpdeveloper.org/tutorial.php

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: June 12, 2002 4:06 AM
To: [EMAIL PROTECTED]
Subject: RE: [PHP] tutorials


im not a newbie programmer, not all the stuff

just want something on standards on PHP and how
to start a script, or something to start with in
the end i will use the manual on all the functions
just need some basics on PHP...





-Original Message-
From: Niklas Lampén [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, June 12, 2002 10:01 AM
To: Php-General
Subject: RE: [PHP] tutorials


Well, it depends on how well you know the basics of programming. If
you're a total newbie, first of all learn how you use variables,
conditional statements and loops. Without these you're powerless! :)

One way is to just create a simple form on one page and then try
thingies you can do with the values sent from that form.

If you need a tutorial, try searching google with php tutorial.. :)


Niklas


-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: 12. kesäkuuta 2002 10:17
To: [EMAIL PROTECTED]
Subject: [PHP] tutorials


hi

i want to start learning this PHP, i've got the manual
but i need a kind of a starting point? any suggestions


Adriaan Putter

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

###
This message has been scanned by F-Secure Anti-Virus for Internet Mail.
For more information, connect to http://www.F-Secure.com/

###
This message has been scanned by F-Secure Anti-Virus for Internet Mail.
For more information, connect to http://www.F-Secure.com/

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP] Postgres query problem

2002-06-12 Thread 1LT John W. Holmes

Double check that  you have a.title, and not just title by itself. Two
tables must have a title column, so make sure  you specify which one you
mean.

---John Holmes...

- Original Message -
From: Aaron [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Wednesday, June 12, 2002 12:40 AM
Subject: [PHP] Postgres query problem


 I have a sql quer like this :  select a.title AS bugga, b.id AS asdf
 FROM tableone AS a FULL JOIN tabletwo AS b ON(a.title=b.filething)

 anyway, thats a test query which is slightly smaller then the one I
 want. BUT when i use it from the command console in postgres, it works
 no problem

 but in php it complains about ambiguos column title..   so I dont
 know what I can do about it.


 --
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, visit: http://www.php.net/unsub.php



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




RE: [PHP] Installation and/or configuration problems w 4.2.1 on N T

2002-06-12 Thread George Pitcher


Ed,
 
That's possible. I'm on NT running IIS4. I've followed all the guide without any 
success. This site is due to go live and take over from one in my office in the next 2 
weeks.
 
Help please someone?
 
George 
  Lazor, Ed [EMAIL PROTECTED] wrote: I don't know the answer, but... It sounds 
almost like a server configuration
issue. Almost as if the web server (Apache?) doesn't have the php extension
configured correctly.

-Original Message-
From: George Pitcher [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, June 11, 2002 3:48 AM
To: [EMAIL PROTECTED]
Subject: [PHP] Installation and/or configuration problems w 4.2.1 on NT


Hi all,

I have PHP running happily on three of my servers (NT/2000/Linux) and need
to set it up on NT on a server 400 miles away. I have remote access to the
server.

I have followed the instructions for both the ISAPI version and the CGI
version with no success.

This is the error message I get when I try to call phpinfo.php:

HTTP Error 401
401.3 Unauthorized: Unauthorized due to ACL on resource

I'm now just about to start pulling my hair out, so can someone help before
I'm totally bald.


This message is intended for the sole use of the individual and entity to
whom it is addressed, and may contain information that is privileged,
confidential and exempt from disclosure under applicable law. If you are
not the intended addressee, nor authorized to receive for the intended
addressee, you are hereby notified that you may not use, copy, disclose or
distribute to anyone the message or any information contained in the
message. If you have received this message in error, please immediately
advise the sender by reply email and delete the message. Thank you very
much. 


-
Relive the FIFA World Cup goals with exclusive video highlights!

http://fifaworldcup.yahoo.com/fc/en


[PHP] checking some presence lines continuously using php

2002-06-12 Thread Uma Shankari T.



Hello,

  Can anyone please tell me how to do the following...

I am having one text file..by checking some presence lines continuously i
have to extract that line and manipulate them..how i will do this..Can
anyone please suggest me how do i go about with this...

For example

First: ..
Second: ..
Third: ..

Some matters

First: ..
Second: ..
Third: ..

Some matters

like this.

I have to check the First,Second,Third exist continuously and then  i have
retrieve that lines from the file and also the some matters

How do i go about with this.




Thanks  Regards,
Uma


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




[PHP] Re: Email with PHP.

2002-06-12 Thread Septic Flesh

Well I reinstalled the latest php with sendmail installed this time and it
works...

Thanks..


--


Sapilas@/dev/pinkeye


Septic Flesh [EMAIL PROTECTED] wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
 Well I have install the second version from the end :) .. in a slack box
 with the latest apache server..

 I tried to use the mail() function and it says that:

  Warning: mail() is not supported in this PHP build in . . . . .

 Well I notice that I haven't got sendmail installed, and so I installed
it.

 I also configures the php.ini file to use sendmail.

 DO I NEED 2:

 1. reinstall php with any special flag to use mail() function ??
 2. or do I need to do anything else.??


 Thanks in advance..

 --
 

 Sapilas@/dev/pinkeye

 





-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




[PHP] Re: WHAT IS NEW to PHP 4.2.1

2002-06-12 Thread Septic Flesh

Thanks .it was the
registers_global = Off..

But how on earth we can implement a better way ? I mean how to move
variables around safely ?


--


Sapilas@/dev/pinkeye


Septic Flesh [EMAIL PROTECTED] wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
 Well I have jsut updates to the latest PHP version..

 I was running a shopping catalog that now does not work with the new
 update..

 I access the Database to get

 1). a list of available Product categories. (that works)
 2). then from the selected category I get the available products that are
in
 this category. does not work...

 In the URL i get the filename.php?cat_id=1

 but that 1 seems not readable..

 Any idea ?



 --
 

 Sapilas@/dev/pinkeye

 





-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP] checking some presence lines continuously using php

2002-06-12 Thread 1LT John W. Holmes

I don't understand what you want at all, but you can use fopen() to open
your file and read it from there...

www.php.net/fopen

---John Holmes...

- Original Message -
From: Uma Shankari T. [EMAIL PROTECTED]
To: PHP [EMAIL PROTECTED]
Sent: Wednesday, June 12, 2002 6:46 AM
Subject: [PHP] checking some presence lines continuously using php




 Hello,

   Can anyone please tell me how to do the following...

 I am having one text file..by checking some presence lines continuously i
 have to extract that line and manipulate them..how i will do this..Can
 anyone please suggest me how do i go about with this...

 For example

 First: ..
 Second: ..
 Third: ..

 Some matters

 First: ..
 Second: ..
 Third: ..

 Some matters

 like this.

 I have to check the First,Second,Third exist continuously and then  i have
 retrieve that lines from the file and also the some matters

 How do i go about with this.




 Thanks  Regards,
 Uma


 --
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, visit: http://www.php.net/unsub.php



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




[PHP] Fw: Hosting_submission

2002-06-12 Thread The_RadiX

Well anybody who wants to join Liam Mackenzie's hosting...


Here's the touching response I got... 



.. Shows a great deal of maturity... Thankfully he doesn't start some sort of 
hosting company...


After all customers would be very very upset if there was some kind of publicity stunt 
against his company. wouldn't they?


* snigger snigger *


:)... me threatening?? pfft. no.. how could you think that...


Anyway read the email I got back below.. Notice the lovely name he cooked up for the 
From address... very cute..




- Original Message - 
From: Fuck You 
To: The_RadiX 
Sent: Tuesday, June 11, 2002 6:50 AM
Subject: Re: Hosting_submission


No!


  - Original Message - 
  From: website 
  To: Liam Mackenzie ([EMAIL PROTECTED])
  Sent: Monday, June 10, 2002 11:26 PM
  Subject: Hosting_submission


  User registered with these details...

Real Name The_RadiX 
Username spectrum 
Domain operationenigma.org  
Password 1ReRqipo78 
Email [EMAIL PROTECTED] 




[PHP] Help with forms data please

2002-06-12 Thread Bret L Conard

I need to send the data from a form without taking the surfer to that page. 
ie: 
form on ' formPage.php '
with
form name='foo' method='post' action='../newUser.php'
but leave the user on ' formPage.php'
Any way to do that?

Thanks



[PHP] convert encoding from unicode to EUC-JP

2002-06-12 Thread Simon De Deyne

Hi,

is there a way (php function, class, or a stand alone program (non-php)
to easily convert unicode text that represents Japanese words in romaji 
into EUC_JP or SHIFT_JIS?

thanks,
Simon


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




RE: [PHP] Help with forms data please

2002-06-12 Thread Jay Blanchard

[snip]
I need to send the data from a form without taking the surfer to that page.
ie:
form on ' formPage.php '
with
form name='foo' method='post' action='../newUser.php'
but leave the user on ' formPage.php'
Any way to do that?
[/snip]

At the end of newUser.php do a header redirect, i.e.

header(Location: formPage.php); exit;

Make sure that newUser.php does not send anything to output before the
header.

HTH!

Jay



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




[PHP] bulk mail()

2002-06-12 Thread Justin French

Hi all,

I've got a mailing on a website, with email address' / names / etc in a
MySQL table.

I think there's around 120 on it at the moment.

I've been noticing a growing lag on the sending of mail though... I've got a
script which takes a message from a form, then runs a while loop through the
rows of the mailing_list table, replacing a special string with the
subscribers name, and sending using the mail() command.

However, this time, the script actually failed, with a failure when
attempting to access blah.com/foo.php (the sending script).  I have no idea
if SOME people got the email, or what, and have no idea how to check.

So, I make the assumption that as the mailing list has grown, the script
time has slowed... now it's too big (or the server was too busy) to process
all the emails before the script timed out.


If I didn't want to personalise the emails, I'm sure the script would run a
lot quicker with every address in the Bcc header, but since we personalise
each email, I can't see any option other than using mail() 200 times...  and
it's only going to get a lot worse as we climb to 1000+.

So, what options do I have?

Break the mailing list up into batches of 40 or so?  How would I implement
something like this?


Any advice / concepts / ideas welcome!


Justin French

Creative Director
http://Indent.com.au



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP] Fw: Hosting_submission

2002-06-12 Thread Liam MacKenzie

I am providing a free hosting service for PHP Developers.  This is something
that costs me a considerable amount of money and time to maintain, and I am
giving it away for free.

After being abused by you time and time again, I removed your account from
my servers and declined your request to re-join.
I think that was a fair move.

Now, if you will, please leave me alone.

Liam



- Original Message -
From: The_RadiX [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Wednesday, June 12, 2002 9:34 PM
Subject: [PHP] Fw: Hosting_submission


Well anybody who wants to join Liam Mackenzie's hosting...


Here's the touching response I got...



.. Shows a great deal of maturity... Thankfully he doesn't start some
sort of hosting company...


After all customers would be very very upset if there was some kind of
publicity stunt against his company. wouldn't they?


* snigger snigger *


:)... me threatening?? pfft. no.. how could you think that...


Anyway read the email I got back below.. Notice the lovely name he cooked up
for the From address... very cute..




- Original Message -
From: Fuck You
To: The_RadiX
Sent: Tuesday, June 11, 2002 6:50 AM
Subject: Re: Hosting_submission


No!


  - Original Message -
  From: website
  To: Liam Mackenzie ([EMAIL PROTECTED])
  Sent: Monday, June 10, 2002 11:26 PM
  Subject: Hosting_submission


  User registered with these details...

Real Name The_RadiX
Username spectrum
Domain operationenigma.org
Password 1ReRqipo78
Email [EMAIL PROTECTED]






-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




[PHP] Re: bulk mail()

2002-06-12 Thread Manuel Lemos

Hello,

On 06/12/2002 08:44 AM, Justin French wrote:
 If I didn't want to personalise the emails, I'm sure the script would run a
 lot quicker with every address in the Bcc header, but since we personalise
 each email, I can't see any option other than using mail() 200 times...  and
 it's only going to get a lot worse as we climb to 1000+.
 
 So, what options do I have?
 
 Break the mailing list up into batches of 40 or so?  How would I implement
 something like this?

Yes, if you do not absolutely need to personalize the messages, just 
send one with all recipients in Bcc:


-- 

Regards,
Manuel Lemos


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




RE: [PHP] bulk mail()

2002-06-12 Thread Niklas Lampén

One solution could be this:

You only need on page for this:

1) create an array of recipients

2) get value from array like array[$pos];

3) send mail to this receiver

4) now some javascript, unless ofcourse if $pos is bigger than
count($array): location.href = http://blah.com/foo.php?pos=?=$pos+1?


And keep some log on sending. Even simple text file will do, if you are
sending mails in some known order. Log file is very handy if cpu
crashes, or something else happens.


Niklas


-Original Message-
From: Justin French [mailto:[EMAIL PROTECTED]] 
Sent: 12. kesäkuuta 2002 14:45
To: php
Subject: [PHP] bulk mail()


Hi all,

I've got a mailing on a website, with email address' / names / etc in a
MySQL table.

I think there's around 120 on it at the moment.

I've been noticing a growing lag on the sending of mail though... I've
got a script which takes a message from a form, then runs a while loop
through the rows of the mailing_list table, replacing a special string
with the subscribers name, and sending using the mail() command.

However, this time, the script actually failed, with a failure when
attempting to access blah.com/foo.php (the sending script).  I have no
idea if SOME people got the email, or what, and have no idea how to
check.

So, I make the assumption that as the mailing list has grown, the script
time has slowed... now it's too big (or the server was too busy) to
process all the emails before the script timed out.


If I didn't want to personalise the emails, I'm sure the script would
run a lot quicker with every address in the Bcc header, but since we
personalise each email, I can't see any option other than using mail()
200 times...  and it's only going to get a lot worse as we climb to
1000+.

So, what options do I have?

Break the mailing list up into batches of 40 or so?  How would I
implement something like this?


Any advice / concepts / ideas welcome!


Justin French

Creative Director
http://Indent.com.au



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

###
This message has been scanned by F-Secure Anti-Virus for Internet Mail.
For more information, connect to http://www.F-Secure.com/

###
This message has been scanned by F-Secure Anti-Virus for Internet Mail.
For more information, connect to http://www.F-Secure.com/

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




[PHP] vars and ocibindbyname

2002-06-12 Thread Laurent Drouet


Hi everbody,

I use Php 4.0.6  with oci and when I try to use OcibindByname php function
I receive the following warning :
Warning: Call-time pass-by-reference has been deprecated .
The problem is that this function requires the use of vars

Any advice on the subject ?

Laurent Drouet


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP] Fw: Hosting_submission

2002-06-12 Thread The_RadiX

Abusing you???


I am quite sorry but I am lost as to when I abused you?


I simply had a form of service on your system and after I tried to keep
updated with what was going on I was kicked off..



If you couldn't handle the load.. Don't blame me..


I was patient.. All I wanted was a reply..


:::
:  Julien Bonastre [The-Spectrum.org CEO]
:  A.K.A. The_RadiX
:  [EMAIL PROTECTED]
:  ABN: 64 235 749 494
:  QUT Student #: 04475739
:::
- Original Message -
From: Liam MacKenzie [EMAIL PROTECTED]
To: The_RadiX [EMAIL PROTECTED]; [EMAIL PROTECTED]
Sent: Wednesday, June 12, 2002 9:49 PM
Subject: Re: [PHP] Fw: Hosting_submission


 I am providing a free hosting service for PHP Developers.  This is
something
 that costs me a considerable amount of money and time to maintain, and I
am
 giving it away for free.

 After being abused by you time and time again, I removed your account from
 my servers and declined your request to re-join.
 I think that was a fair move.

 Now, if you will, please leave me alone.

 Liam



 - Original Message -
 From: The_RadiX [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Sent: Wednesday, June 12, 2002 9:34 PM
 Subject: [PHP] Fw: Hosting_submission


 Well anybody who wants to join Liam Mackenzie's hosting...


 Here's the touching response I got...



 .. Shows a great deal of maturity... Thankfully he doesn't start some
 sort of hosting company...


 After all customers would be very very upset if there was some kind of
 publicity stunt against his company. wouldn't they?


 * snigger snigger *


 :)... me threatening?? pfft. no.. how could you think that...


 Anyway read the email I got back below.. Notice the lovely name he cooked
up
 for the From address... very cute..




 - Original Message -
 From: Fuck You
 To: The_RadiX
 Sent: Tuesday, June 11, 2002 6:50 AM
 Subject: Re: Hosting_submission


 No!


   - Original Message -
   From: website
   To: Liam Mackenzie ([EMAIL PROTECTED])
   Sent: Monday, June 10, 2002 11:26 PM
   Subject: Hosting_submission


   User registered with these details...

 Real Name The_RadiX
 Username spectrum
 Domain operationenigma.org
 Password 1ReRqipo78
 Email [EMAIL PROTECTED]






 --
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, visit: http://www.php.net/unsub.php





Re: [PHP] browser timeouts with file upload

2002-06-12 Thread Lowell Allen

 From: Dave [EMAIL PROTECTED]
 
 have created multiple file upload scripts in the past...  all work like a
 charm,
 always used with files less than a meg or two.
 
 have a use for it now where the user requires upload of a 6-10mb file and we
 are
 running into problems with browser timeouts(for obvious reasons).  We have the
 following in place
 in php code- set_time_limit(900)
 in apache conf- php_admin_value upload_max_filesize 2000
 - php_admin_value max_execution_time 900
 
 still running into situations where the browser is timing out on files in the
 8mb or higher range.  Suspect this is happening on the client site since the
 15min mark isn't anywhere close to being hit as the above permitions allow.
 browser timing out after 2-5 min.
 
 any solutions to this?  recommendations?
 
What are your php.ini-settings for post_max_size and upload_max_filesize?
I've done a site that takes uploaded files as large as 24 Mb, and the
max_execution_time is only set to 50. It seems that the several minutes it
takes for the upload to go from client to server isn't counted as execution
time because nothing is happening at the server. Perhaps whatever process
you're using for handling multiple files causes the timeout?

I'd love to hear how you resolve the problem, because I need to do a
multiple file upload system soon.

http://www.php.net/manual/en/features.file-upload.php

HTH

--
Lowell Allen


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




[PHP] forcing file downloads

2002-06-12 Thread Justin French

I know this has been discussed many times, but I've been hunting through the
archives with very little resolution on the issue.

I've found the following note in the annotated manual:


 Additional notes to my workaround on Q266305:
 
 I have tested my findings with PDF, XLS, DOC and ZIP. However JPG and GIF
 didn't make IE pop up the download box.  By changing content type from
 octet-stream to force-download (or some undefined
 type), it will work. Of course, we need to take care of other browsers
 too. Here is the improved code, hope it helps:
 
 header(Content-type: application/force-download);
 
 if (strstr($_SERVER[HTTP_USER_AGENT], MSIE))
 header(Content-Disposition: filename=$myfile .
 %20); // For IE
 else
 header(Content-Disposition: attachment; filename=$myfile);
 // For Other browsers
 
 Note: If you are using session together with this download, you will need
 to add the following line BEFORE the code above to make IE work:
 
 session_cache_limiter();


1. Is this a widely accepted practice for forcing downloads (a pop-up window
to download a file), given the problems with older versions of IE?

2. Can someone tell me what the %20 is there for?


Regards,

Justin French


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP] Fw: Hosting_submission

2002-06-12 Thread Justin French

Can we take this off list

PS: you only get what you pay for

Justin French




on 12/06/02 10:49 PM, The_RadiX ([EMAIL PROTECTED]) wrote:

 Abusing you???
 
 
 I am quite sorry but I am lost as to when I abused you?
 
 
 I simply had a form of service on your system and after I tried to keep
 updated with what was going on I was kicked off..
 
 
 
 If you couldn't handle the load.. Don't blame me..
 
 
 I was patient.. All I wanted was a reply..
 
 
 :::
 :  Julien Bonastre [The-Spectrum.org CEO]
 :  A.K.A. The_RadiX
 :  [EMAIL PROTECTED]
 :  ABN: 64 235 749 494
 :  QUT Student #: 04475739
 :::
 - Original Message -
 From: Liam MacKenzie [EMAIL PROTECTED]
 To: The_RadiX [EMAIL PROTECTED]; [EMAIL PROTECTED]
 Sent: Wednesday, June 12, 2002 9:49 PM
 Subject: Re: [PHP] Fw: Hosting_submission
 
 
 I am providing a free hosting service for PHP Developers.  This is
 something
 that costs me a considerable amount of money and time to maintain, and I
 am
 giving it away for free.
 
 After being abused by you time and time again, I removed your account from
 my servers and declined your request to re-join.
 I think that was a fair move.
 
 Now, if you will, please leave me alone.
 
 Liam
 
 
 
 - Original Message -
 From: The_RadiX [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Sent: Wednesday, June 12, 2002 9:34 PM
 Subject: [PHP] Fw: Hosting_submission
 
 
 Well anybody who wants to join Liam Mackenzie's hosting...
 
 
 Here's the touching response I got...
 
 
 
 .. Shows a great deal of maturity... Thankfully he doesn't start some
 sort of hosting company...
 
 
 After all customers would be very very upset if there was some kind of
 publicity stunt against his company. wouldn't they?
 
 
 * snigger snigger *
 
 
 :)... me threatening?? pfft. no.. how could you think that...
 
 
 Anyway read the email I got back below.. Notice the lovely name he cooked
 up
 for the From address... very cute..
 
 
 
 
 - Original Message -
 From: Fuck You
 To: The_RadiX
 Sent: Tuesday, June 11, 2002 6:50 AM
 Subject: Re: Hosting_submission
 
 
 No!
 
 
 - Original Message -
 From: website
 To: Liam Mackenzie ([EMAIL PROTECTED])
 Sent: Monday, June 10, 2002 11:26 PM
 Subject: Hosting_submission
 
 
 User registered with these details...
 
 Real Name The_RadiX
 Username spectrum
 Domain operationenigma.org
 Password 1ReRqipo78
 Email [EMAIL PROTECTED]
 
 
 
 
 
 
 --
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, visit: http://www.php.net/unsub.php
 
 
 


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




[PHP] Array questions...

2002-06-12 Thread Leon Mergen

Hello,

Assume I have the following array:

$array = array (
 apple = cherry,
 foo = bar,
 wom = bat
);

How could I easy remove the key and the value of the key foo from that
array?

Also, what is the best (and quickest) way to add a key with a value to the
end of this array?

Thanks in advance,

Leon Mergen



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




AW: [PHP] Array questions...

2002-06-12 Thread Martin Lucas

hi leon,
 
 Hello,
 
 Assume I have the following array:
 
 $array = array (
  apple = cherry,
  foo = bar,
  wom = bat
 );

 
 How could I easy remove the key and the value of the key 
 foo from that
 array?

 
unset ($array[foo]);

 Also, what is the best (and quickest) way to add a key with a 
 value to the
 end of this array?
 

$array[newkey]=newvalue;


 Thanks in advance,
 
 Leon Mergen
 
 
 
 -- 
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, visit: http://www.php.net/unsub.php
 

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




RE: [PHP] forcing file downloads

2002-06-12 Thread Jared Boelens

20% represents a space.

-Jared

-Original Message-
From: Justin French [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, June 12, 2002 9:01 AM
To: php
Subject: [PHP] forcing file downloads


I know this has been discussed many times, but I've been hunting through the
archives with very little resolution on the issue.

I've found the following note in the annotated manual:


 Additional notes to my workaround on Q266305:

 I have tested my findings with PDF, XLS, DOC and ZIP. However JPG and GIF
 didn't make IE pop up the download box.  By changing content type from
 octet-stream to force-download (or some undefined
 type), it will work. Of course, we need to take care of other browsers
 too. Here is the improved code, hope it helps:

 header(Content-type: application/force-download);

 if (strstr($_SERVER[HTTP_USER_AGENT], MSIE))
 header(Content-Disposition: filename=$myfile .
 %20); // For IE
 else
 header(Content-Disposition: attachment; filename=$myfile);
 // For Other browsers

 Note: If you are using session together with this download, you will need
 to add the following line BEFORE the code above to make IE work:

 session_cache_limiter();


1. Is this a widely accepted practice for forcing downloads (a pop-up window
to download a file), given the problems with older versions of IE?

2. Can someone tell me what the %20 is there for?


Regards,

Justin French


--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




RE: [PHP] Help with forms data please

2002-06-12 Thread Jonathan Rosenberg

How about if you just return the user to the same page?  Will
that work?

 -Original Message-
 From: Bret L Conard [mailto:[EMAIL PROTECTED]]
 Sent: Wednesday, June 12, 2002 7:33 AM
 To: [EMAIL PROTECTED]
 Subject: [PHP] Help with forms data please


 I need to send the data from a form without taking the
 surfer to that page.
 ie:
 form on ' formPage.php '
 with
 form name='foo' method='post' action='../newUser.php'
 but leave the user on ' formPage.php'
 Any way to do that?

 Thanks



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




[PHP] Else/For loop

2002-06-12 Thread Roberts, Mark

Being relatively new to php, I discovered the following after about 2 hours
of debugging last night and was wondering why???

I had the following code:

if ( $num_results = 0 )
{
echo no records found;
}
else
{
for ($i=0; $i  $num_results; $i++)
{
display record set
}
}

As a result, the for loop never executed, no matter how many records were
returned in the record set. I placed echo statements though out to determine
why the for loop was not being executed. I put an echo statement just before
the for to make sure the else condition was being met.

Finally, I just copy/pasted (literally) the for loop to just before the 'if'
statement. Much to my surprise...the for loop now works perfectly. (Except,
of course, if there are no records returned).

The duduction...for loops will not work inside else statements. The
question...why?

I think I can work around this with some different coding, but why should I
have to? I have done this same thing in java, perl and other languages...

Mark Roberts
Sr. Systems Analyst
LanApps/Web Development
The Williams Information Services Corporation
918-573-1706
[EMAIL PROTECTED]





RE: [PHP] Help with forms data please

2002-06-12 Thread Niklas Lampén

That's how I do it when I need to handle the data and return user to the
same page.
Use header(Location: blah); in the end of the handler page. Then even
'back'-button won't take user back to the handler page, and refresh
won't send data again.


Niklas

-Original Message-
From: Jonathan Rosenberg [mailto:[EMAIL PROTECTED]] 
Sent: 12. kesäkuuta 2002 16:18
To: Bret L Conard; [EMAIL PROTECTED]
Subject: RE: [PHP] Help with forms data please


How about if you just return the user to the same page?  Will that work?

 -Original Message-
 From: Bret L Conard [mailto:[EMAIL PROTECTED]]
 Sent: Wednesday, June 12, 2002 7:33 AM
 To: [EMAIL PROTECTED]
 Subject: [PHP] Help with forms data please


 I need to send the data from a form without taking the
 surfer to that page.
 ie:
 form on ' formPage.php '
 with
 form name='foo' method='post' action='../newUser.php'
 but leave the user on ' formPage.php'
 Any way to do that?

 Thanks



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

###
This message has been scanned by F-Secure Anti-Virus for Internet Mail.
For more information, connect to http://www.F-Secure.com/

###
This message has been scanned by F-Secure Anti-Virus for Internet Mail.
For more information, connect to http://www.F-Secure.com/

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP] Else/For loop

2002-06-12 Thread Justin French

Wouldn't you need 
if ( $num_results == 0 ) not
if ( $num_results = 0 )

if you do the latter, it will allways be true, because you're setting the
var...

easy mistake to make!


check out comparisons in the manual for more info.

Justin French



on 12/06/02 11:19 PM, Roberts, Mark ([EMAIL PROTECTED]) wrote:

 Being relatively new to php, I discovered the following after about 2 hours
 of debugging last night and was wondering why???
 
 I had the following code:
 
 if ( $num_results = 0 )
 {
 echo no records found;
 }
 else
 {
 for ($i=0; $i  $num_results; $i++)
 {
 display record set
 }
 }
 
 As a result, the for loop never executed, no matter how many records were
 returned in the record set. I placed echo statements though out to determine
 why the for loop was not being executed. I put an echo statement just before
 the for to make sure the else condition was being met.
 
 Finally, I just copy/pasted (literally) the for loop to just before the 'if'
 statement. Much to my surprise...the for loop now works perfectly. (Except,
 of course, if there are no records returned).
 
 The duduction...for loops will not work inside else statements. The
 question...why?
 
 I think I can work around this with some different coding, but why should I
 have to? I have done this same thing in java, perl and other languages...
 
 Mark Roberts
 Sr. Systems Analyst
 LanApps/Web Development
 The Williams Information Services Corporation
 918-573-1706
 [EMAIL PROTECTED]
 
 
 


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




RE: [PHP] Else/For loop

2002-06-12 Thread Niklas Lampén

If you still have an error there, change

if ($num_results = 0)
to
if ($num_results == 0)

See the difference? Realize the error?


Niklas


-Original Message-
From: Roberts, Mark [mailto:[EMAIL PROTECTED]] 
Sent: 12. kesäkuuta 2002 16:20
To: [EMAIL PROTECTED]
Subject: [PHP] Else/For loop


Being relatively new to php, I discovered the following after about 2
hours of debugging last night and was wondering why???

I had the following code:

if ( $num_results = 0 )
{
echo no records found;
}
else
{
for ($i=0; $i  $num_results; $i++)
{
display record set
}
}

As a result, the for loop never executed, no matter how many records
were returned in the record set. I placed echo statements though out to
determine why the for loop was not being executed. I put an echo
statement just before the for to make sure the else condition was being
met.

Finally, I just copy/pasted (literally) the for loop to just before the
'if' statement. Much to my surprise...the for loop now works perfectly.
(Except, of course, if there are no records returned).

The duduction...for loops will not work inside else statements. The
question...why?

I think I can work around this with some different coding, but why
should I have to? I have done this same thing in java, perl and other
languages...

Mark Roberts
Sr. Systems Analyst
LanApps/Web Development
The Williams Information Services Corporation
918-573-1706
[EMAIL PROTECTED]



###
This message has been scanned by F-Secure Anti-Virus for Internet Mail.
For more information, connect to http://www.F-Secure.com/

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP] Fw: Hosting_submission

2002-06-12 Thread Steve Buehler

Ok guys.  Please take this OFF THIS LIST.  Your fight, in itself, has 
nothing to do with PHP.  If you want service, than be smart and don't go to 
a free service.  If you do go to a free service, than don't expect great 
service.  Actually, if you go to a free service, you don't have a right 
(IMHO) to complain if ANY OF IT is NOT what you want.  You get what you pay 
for.  I don't know what caused the argument and don't really care.  The 
person/company that gave the free service was nice enough to do it.  At the 
first sign that you didn't like it, you should have used your brain and 
backed out of it.  It isn't like you lost any money with them.  And if you 
did loose money because your business site was cut off, than you got what 
you deserved for trying to run a commercial site on a free service.  A free 
service can go off line or kill your account anytime they want.  You ever 
hear the saying We reserve the right to refuse service to Anyone.  When 
you pay, you expect some support and to get something, when you don't pay 
for it

Steve

At 10:49 PM 6/12/2002 +1000, The_RadiX wrote:
Abusing you???


I am quite sorry but I am lost as to when I abused you?


I simply had a form of service on your system and after I tried to keep
updated with what was going on I was kicked off..



If you couldn't handle the load.. Don't blame me..


I was patient.. All I wanted was a reply..


:::
:  Julien Bonastre [The-Spectrum.org CEO]
:  A.K.A. The_RadiX
:  [EMAIL PROTECTED]
:  ABN: 64 235 749 494
:  QUT Student #: 04475739
:::
- Original Message -
From: Liam MacKenzie [EMAIL PROTECTED]
To: The_RadiX [EMAIL PROTECTED]; [EMAIL PROTECTED]
Sent: Wednesday, June 12, 2002 9:49 PM
Subject: Re: [PHP] Fw: Hosting_submission


  I am providing a free hosting service for PHP Developers.  This is
something
  that costs me a considerable amount of money and time to maintain, and I
am
  giving it away for free.
 
  After being abused by you time and time again, I removed your account from
  my servers and declined your request to re-join.
  I think that was a fair move.
 
  Now, if you will, please leave me alone.
 
  Liam
 
 
 
  - Original Message -
  From: The_RadiX [EMAIL PROTECTED]
  To: [EMAIL PROTECTED]
  Sent: Wednesday, June 12, 2002 9:34 PM
  Subject: [PHP] Fw: Hosting_submission
 
 
  Well anybody who wants to join Liam Mackenzie's hosting...
 
 
  Here's the touching response I got...
 
 
 
  .. Shows a great deal of maturity... Thankfully he doesn't start some
  sort of hosting company...
 
 
  After all customers would be very very upset if there was some kind of
  publicity stunt against his company. wouldn't they?
 
 
  * snigger snigger *
 
 
  :)... me threatening?? pfft. no.. how could you think that...
 
 
  Anyway read the email I got back below.. Notice the lovely name he cooked
up
  for the From address... very cute..
 
 
 
 
  - Original Message -
  From: Fuck You
  To: The_RadiX
  Sent: Tuesday, June 11, 2002 6:50 AM
  Subject: Re: Hosting_submission
 
 
  No!
 
 
- Original Message -
From: website
To: Liam Mackenzie ([EMAIL PROTECTED])
Sent: Monday, June 10, 2002 11:26 PM
Subject: Hosting_submission
 
 
User registered with these details...
 
  Real Name The_RadiX
  Username spectrum
  Domain operationenigma.org
  Password 1ReRqipo78
  Email [EMAIL PROTECTED]
 
 
 
 
 
 
  --
  PHP General Mailing List (http://www.php.net/)
  To unsubscribe, visit: http://www.php.net/unsub.php
 


--
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.
ow3



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




RE: [PHP] Else/For loop

2002-06-12 Thread Christoph Starkmann

Hi Mark!

 Being relatively new to php, I discovered the following after 
 about 2 hours
 of debugging last night and was wondering why???
 
 I had the following code:
 
 if ( $num_results = 0 )
 {
   echo no records found;
 }
 else
 {
   for ($i=0; $i  $num_results; $i++)
   {
   display record set
   }
 }
 
 As a result, the for loop never executed, no matter how many 
 records were
 returned in the record set. I placed echo statements though 
 out to determine
 why the for loop was not being executed. I put an echo 
 statement just before
 the for to make sure the else condition was being met.
 
 Finally, I just copy/pasted (literally) the for loop to just 
 before the 'if'
 statement. Much to my surprise...the for loop now works 
 perfectly. (Except,
 of course, if there are no records returned).
 
 The duduction...for loops will not work inside else statements. The
 question...why?

I guess this would be the end of all PHP-programming ;)
Of course you can place any correct block of code inside any other
correct block of code.
But, i your case $num_results IS zero. Just place an echo statement 
inside the if block ;)

Very frequent error ;)

if ($num_results = 0) indeed is an asignment, no comparison.
Better use == if you want to compare thingies...

 I think I can work around this with some different coding, 
 but why should I
 have to? I have done this same thing in java, perl and other 
 languages...

Yes, also with == ;)
 
Cheers,

Kiko

-- 
It's not a bug, it's a feature.
christoph starkmann
mailto:[EMAIL PROTECTED]
http://www.gruppe-69.com/
ICQ: 100601600
-- 

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




RE: [PHP] Else/For loop

2002-06-12 Thread Roberts, Mark

Thanks to everyone who replied. Of course it should be '=='. I was too
focused on why the for was not working and overlooked the obvious.

Mark Roberts
Sr. Systems Analyst
LanApps/Web Development
The Williams Information Services Corporation
918-573-1706
[EMAIL PROTECTED]



-Original Message-
From: Christoph Starkmann [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, June 12, 2002 8:27 AM
To: Roberts, Mark; '[EMAIL PROTECTED]'
Subject: RE: [PHP] Else/For loop


Hi Mark!

 Being relatively new to php, I discovered the following after 
 about 2 hours
 of debugging last night and was wondering why???
 
 I had the following code:
 
 if ( $num_results = 0 )
 {
   echo no records found;
 }
 else
 {
   for ($i=0; $i  $num_results; $i++)
   {
   display record set
   }
 }
 
 As a result, the for loop never executed, no matter how many 
 records were
 returned in the record set. I placed echo statements though 
 out to determine
 why the for loop was not being executed. I put an echo 
 statement just before
 the for to make sure the else condition was being met.
 
 Finally, I just copy/pasted (literally) the for loop to just 
 before the 'if'
 statement. Much to my surprise...the for loop now works 
 perfectly. (Except,
 of course, if there are no records returned).
 
 The duduction...for loops will not work inside else statements. The
 question...why?

I guess this would be the end of all PHP-programming ;)
Of course you can place any correct block of code inside any other
correct block of code.
But, i your case $num_results IS zero. Just place an echo statement 
inside the if block ;)

Very frequent error ;)

if ($num_results = 0) indeed is an asignment, no comparison.
Better use == if you want to compare thingies...

 I think I can work around this with some different coding, 
 but why should I
 have to? I have done this same thing in java, perl and other 
 languages...

Yes, also with == ;)
 
Cheers,

Kiko

-- 
It's not a bug, it's a feature.
christoph starkmann
mailto:[EMAIL PROTECTED]
http://www.gruppe-69.com/
ICQ: 100601600
-- 

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




[PHP] XML with PHP?

2002-06-12 Thread Scott Fletcher

Hey!

   Which PHP option should I use for compiling with the XML support.  I'm
using the standard XML support on the web and I found there are 4 or 5
different PHP option for XML.  Which should I use?  The example of the XML
is ..

-- clip --
?xml version=1.0 encoding=UTF-8?
NetConnectRequest xmlns=http://www.; ...
 BDHosts11/DBHosts
  Products
CreditProfile
 blah, blah, etc.
/CreditProfile
  /Products
-- clip --

Thanks,
 FletchSOD



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP] Unlink question more or less

2002-06-12 Thread Tom Ray

Any word on when glob() will be in the production version?

thanks for the help Miquel.


- Original Message -
From: Miguel Cruz [EMAIL PROTECTED]
To: Tom Ray [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Sent: Wednesday, June 12, 2002 2:01 AM
Subject: Re: [PHP] Unlink question more or less


 On Tue, 11 Jun 2002, Tom Ray wrote:
  I want to use unlink() to delete a wildcard, but at the moment I keep
  getting parse errors. Here's what happening:
 
  I'm mucking around with some login stuff, when a user logs in it writes
  a flat file that collects some information about them, the flat file is
  created with the name username.dateyeartime Now each time they log in I
  want to delete that file and replace it with the new file that has the
  latest dateyeartime ending on it. I've tried unlink (username.*); but
  that returns an error. Is there a way for unlink() to recongize
  wildcards? If not how would I do this?

 Once glob() makes it into the production version,

   foreach(glob('*') as $f) unlink($f);

 Until then, use system('rm *'); or a readdir loop.

 unlink() is not the rm command. It's a system call that deletes a specific
 named file.

 miguel




-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP] get results twice for UPDATE and INSERT

2002-06-12 Thread Analysis Solutions

Hi Tommi:

On Wed, Jun 12, 2002 at 10:54:16AM +0200, Tommi Trinkaus wrote:
 
 i installed php(4.2)/mysql(2.2.3) on my local server and when i send a query
 using UPDATE or INSERT to the database, i almost got the results twice.
 When i put the same Database on a public webserver (hosteurope), everythin
 works fine.

Without seeing your script, allow me to guess.  Register_globals is turned
on for the public webserver and turned off on your local server.  Then,
you have some control/conditional statement or something that doesn't take
that into consideration, so the condition evaluates to true/false twice, 
so it executes the query twice.

And, no, at this point, don't show us the code.  Check out what I'm
talking about regarding register_globals, carefully examine and then test
your code.

--Dan

-- 
   PHP classes that make web design easier
SQL Solution  |   Layout Solution   |  Form Solution
sqlsolution.info  | layoutsolution.info |  formsolution.info
 T H E   A N A L Y S I S   A N D   S O L U T I O N S   C O M P A N Y
 4015 7 Av #4AJ, Brooklyn NY v: 718-854-0335 f: 718-854-0409

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP] apache/oracle/php

2002-06-12 Thread Michael P. Carel

Yes Miguel, i've set all the required environment to the .bash_profile for
the user oracle.
What im wondering are , i've also installed oracle/php/apache in AIX server
and my php scripts with ora function just work. But for the RedHat Linux i
should run apache as oracle/dba. I've also set all the required enviroment
in my php scripts. Heres the sample:

PutEnv(ORACLE_SID=oracle);
PutEnv(ORACLE_BASE=/home/oracle);
PutEnv(ORACLE_HOME=/home/oracle/OraHome1);
PutEnv(LD_LIBRARY_PATH=$ORACLE_HOME/lib);
$connection=Ora_Logon(system,manager);

This will only works if apache runs oracle/dba.



Mike

- Original Message -
From: Miguel Cruz [EMAIL PROTECTED]
To: Michael P. Carel [EMAIL PROTECTED]
Cc: php [EMAIL PROTECTED]
Sent: Wednesday, June 12, 2002 2:12 PM
Subject: Re: [PHP] apache/oracle/php


 On Tue, 11 Jun 2002, Michael P. Carel wrote:
  Is there anyone who could give me some reasons why does my php script
with
  oracle function does'nt work if i run apache as nobody/nobody?
 
  My script only work if i run apache as oracle/dba.

 Maybe your environment variables (ORA_BASE, etc.) are getting set in user
 oracle's .login file.

 miguel


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




[PHP] Call for Papers: International PHP Conference 2002

2002-06-12 Thread Björn Schotte

Dear Sirs/ Madams, dear friends, 

the PHP Center and the Software  Support Verlag are pleased to announce the
International PHP Conference 2002 in Frankfurt, Germany. Like last year, for
the first International PHP Conference, we want to present an interesting
and various programme to the international PHP Community. We are happy to
ask you to submit your proposals for the session programme.


The dates for the conference are: 

Pre conference with whole day tutorials (3 hours / 2x3 hours): Nov. 3 and 4, 2002
Conference: Nov. 5 and 6, 2002


The Topics: 

- General PHP 
- PHP  Business
- PHP  Databases 
- PHP Design
- PHP Extensions
- PHP  XML 
- PHP-GTK
- Start Up


Call for Papers: 

If you want to present your talks at this unique event, please submit your proposals
to us. 

At

   http://www.phpconference.de/2002/kt/input/
   
you will find a form where you can submit your proposals. 

Deadline for submitting the abstracts is July 5, 2002

You will be informed whether your suggestions have been accepted or not
until July, 10. All session contents will be published in a conference book
after the conference.  The writing guidelines for this will be sent to you
when your suggestions have been accepted by the Conference Board. Please
note that we can only accept sessions proposals if contributions for the
conference book are available by Oct. 4, 2002.


 Structure of the Sessions: 

The sessions are 75 min. long (incl. discussion at the end of the lecture). 
It is possible to split a session in an introduction and a continuing
part.  The language of the presentation can be either English or German.

 Target groups: 

- project managers
- software developers
- IT managers
- web designers and web administrators
- PHP enthusiasts 

Notice: 

1. Travel expenses and lodging will be covered by us. 
2. Every speaker will have free access to all pre conference tutorials 
and conference sessions. 
3. Every speaker should present at least two sessions. 
Those of you who want to present only one session, please contact the
Conference Board at [EMAIL PROTECTED]
4. Speaker who will cover a pre conference tutorial will be paid extra
5. Email to the conference board should be in english. 


 Contact: 
Software  Support Verlag GmbH
Frank Stepan
Kennedyallee 87
60596 Frankfurt 

phone: +49 (0) 69 63 00 89 0
fax: +49 (0) 69 63 00 89 89
email: [EMAIL PROTECTED]

-- 
PHP-Support * realitätsnahe Performance-Messungen mit Code-Analyse
Webapplikationsentwicklung * PHP-Schulungen * Consulting

 0700-THINKPHP -*- [EMAIL PROTECTED]

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP] forcing file downloads

2002-06-12 Thread Mark Gallagher

Justin French wrote:
snip force code /

  1. Is this a widely accepted practice for forcing downloads (a pop-up 
window
 to download a file), given the problems with older versions of IE?

I believe so.

Sad, really :o).  Y'see, what you're doing is forcing your own 
preferences on the user (usually against their will) which is a Bad 
Thing.  Also, what are you going to do if the user's got a way of 
handling the MIME-type that you didn't expect?  They could be trying to 
open up force/downloads in their text editor, but *want* to have the 
file in question (say, a .pdf) open up somewhere else.

Okay, so I spend too much time involved in web design, where the f-word 
is considered rude.

 2. Can someone tell me what the %20 is there for?

You can try typing http://www.foo.net/bar/of soap/he he he/ and it may 
work in some browsers.  The %20 (I forget the exact explanation, sorry) 
is basically code for the space.  All browsers understand 
http://www.foo.net/bar/of%20soap/he%20he%20he/

HTH


-- 
Mark Gallagher




-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP] forcing file downloads

2002-06-12 Thread cal

 Justin French wrote:
 snip force code /

   1. Is this a widely accepted practice for forcing downloads (a pop-up
 window
  to download a file), given the problems with older versions of IE?

 I believe so.

Don't.


  2. Can someone tell me what the %20 is there for?

 You can try typing http://www.foo.net/bar/of soap/he he he/ and it may
 work in some browsers.  The %20 (I forget the exact explanation, sorry)
 is basically code for the space.  All browsers understand
 http://www.foo.net/bar/of%20soap/he%20he%20he/
20 is the hex code for a space.  When the url get 'URLENCODED' any non-valid
characters get converted to hex. In some (broken?) browsers a space in the
URL may work but it's generally not a good idea.

=C=

*
* Cal Evans
* Techno-Mage
* http://www.calevans.com
*




-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP] forcing file downloads

2002-06-12 Thread Dan Hardiker

 2. Can someone tell me what the %20 is there for?
 The %20 (I forget the exact explanation, sorry)
 is basically code for the space.

% in a URL means thats its gonna be followed by a 2 digit hex number
referencing directly to the ascii table.

20 is the hex equivelant for  . You could rewrite http://; as
%68%74%74%70%3a%2f%2f.
-- 
Dan Hardiker [[EMAIL PROTECTED]]
ADAM Software  Systems Engineer
First Creative Ltd



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP] Compare 2 resultsets of db-query

2002-06-12 Thread Danny Kruitbosch

Analysis  Solutions wrote:
 Hey Danny:
 
 On Mon, Jun 10, 2002 at 10:09:12PM +0200, Danny Kruitbosch wrote:
 
Query1: SELECT FIELD1, COUNT(FIELD2) AS TOTAL from TABLE GROUP BY FIELD1
Query2: SELECT FIELD1, COUNT(FIELD2) AS SUB from TABLE WHERE FIELD2=1 
GROUP BY FIELD1

Now I want to print a table that prints the values of FIELD1, TOTAL and 
 SUB.

Query 1 returns more rows as query 2. Field1 is the same in both queries 
so I should be able to 'link' the results of both queries together.

 
 I'm wondering exactly what you're trying to do.  It may be possible to do 
 in one well crafted query.  Why limit the second query only to items where 
 Field2 = 1?  What's in FIELD1 and FIELD2?
 
 Also, I assume you want each row of your HTML table to have the FIELD1, 
 TOTAL and SUB fields in them, right?
 
 --Dan
 
 

FIELD 1 contains IP address pool names (not unique), field2 the status 
(0 free, 1 leased). So what I try to do is get an overview of the total
number of IP adresses in a pool and the number of leased addresses. 
There's a fourth field that contains the actual address.


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




[PHP] MSSQL/PHP Query Help

2002-06-12 Thread Michael

Hey guys...  I'm currently using PHP, FreeTDS, and Sybase libraries to
access a database on an MS SQL 2000 server.  Things are going fine, except
for my more complex queries.  Here is an example:

SELECT Servers.Name, Nics.MAC
FROM Servers INNER JOIN Nics ON Servers.ServerId = Nics.Server
WHERE (((Nics.MAC)=0002B34DA81F)) OR (((Nics.MAC)=0002B34DA76F)) OR
(((Nics.MAC)=0002B34DA32D)) OR (((Nics.MAC)=0002B34DA31D));

This query isn't even as bad as it's going to get, but I get the error:

Sybase error:  Invalid column name '0002B34DA81F'.

I get this for each Nics.MAC entry that I make.  If I don't include the
WHERE/OR statement, the query runs fine.  The query runs correctly on the
MS SQL server itself, but I can't get it to work here.

I assume that PHP just passes the query to the SQL server directly, so there
must be something that I'm missing.  Do I need to escape more than just the
quotes?  If there is anything I need to know about PHP and MS SQL before I
go on, I'd love to hear it.  ;-)


Michael


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




RE: [PHP] MSSQL/PHP Query Help

2002-06-12 Thread Leotta, Natalie (NCI/IMS)

have you tried Nics.MAC in (xxx,xxx,xxx,xxx)?  There's a lot less
room for error in that, because it's so much tidier.

-Natalie

-Original Message-
From: Michael [mailto:[EMAIL PROTECTED]] 
Sent: Wednesday, June 12, 2002 10:56 AM
To: [EMAIL PROTECTED]
Subject: [PHP] MSSQL/PHP Query Help


Hey guys...  I'm currently using PHP, FreeTDS, and Sybase libraries to
access a database on an MS SQL 2000 server.  Things are going fine, except
for my more complex queries.  Here is an example:

SELECT Servers.Name, Nics.MAC
FROM Servers INNER JOIN Nics ON Servers.ServerId = Nics.Server WHERE
(((Nics.MAC)=0002B34DA81F)) OR (((Nics.MAC)=0002B34DA76F)) OR
(((Nics.MAC)=0002B34DA32D)) OR (((Nics.MAC)=0002B34DA31D));

This query isn't even as bad as it's going to get, but I get the error:

Sybase error:  Invalid column name '0002B34DA81F'.

I get this for each Nics.MAC entry that I make.  If I don't include the
WHERE/OR statement, the query runs fine.  The query runs correctly on the
MS SQL server itself, but I can't get it to work here.

I assume that PHP just passes the query to the SQL server directly, so there
must be something that I'm missing.  Do I need to escape more than just the
quotes?  If there is anything I need to know about PHP and MS SQL before I
go on, I'd love to hear it.  ;-)


Michael


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP] Help with forms data please

2002-06-12 Thread 1LT John W. Holmes

Make the target of the form a blank window. process the form, then generate
some javascript to close the window. original window remains unchanged.

---John Holmes...

- Original Message -
From: Bret L Conard [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Wednesday, June 12, 2002 7:33 AM
Subject: [PHP] Help with forms data please


I need to send the data from a form without taking the surfer to that page.
ie:
form on ' formPage.php '
with
form name='foo' method='post' action='../newUser.php'
but leave the user on ' formPage.php'
Any way to do that?

Thanks



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




[PHP] Sudden timeouts

2002-06-12 Thread Pedro Pontes

Hello all,

I'm getting sudden timeouts in a site that makes use of sessions to keep
login information. In every page, a function is called that does:

session_set_cookie_params (1200);
session_start();

These timeouts don't seem to present any time or place pattern, they occur
randomly, before the 1200 period of inactivity, of course.

Has anyone gone through this problem already?

Thank you very much.

Pedro Alberto Pontes



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP] bulk mail()

2002-06-12 Thread 1LT John W. Holmes

Do it just like you would with prev/next links. Use LIMIT in your query to
get out 50 or so at a time. Loop through them, sending mail, then use header
to automatically redirect to the next page, incrementing the number to use
in LIMIT.

---John Holmes...

- Original Message -
From: Justin French [EMAIL PROTECTED]
To: php [EMAIL PROTECTED]
Sent: Wednesday, June 12, 2002 7:44 AM
Subject: [PHP] bulk mail()


 Hi all,

 I've got a mailing on a website, with email address' / names / etc in a
 MySQL table.

 I think there's around 120 on it at the moment.

 I've been noticing a growing lag on the sending of mail though... I've got
a
 script which takes a message from a form, then runs a while loop through
the
 rows of the mailing_list table, replacing a special string with the
 subscribers name, and sending using the mail() command.

 However, this time, the script actually failed, with a failure when
 attempting to access blah.com/foo.php (the sending script).  I have no
idea
 if SOME people got the email, or what, and have no idea how to check.

 So, I make the assumption that as the mailing list has grown, the script
 time has slowed... now it's too big (or the server was too busy) to
process
 all the emails before the script timed out.


 If I didn't want to personalise the emails, I'm sure the script would run
a
 lot quicker with every address in the Bcc header, but since we personalise
 each email, I can't see any option other than using mail() 200 times...
and
 it's only going to get a lot worse as we climb to 1000+.

 So, what options do I have?

 Break the mailing list up into batches of 40 or so?  How would I implement
 something like this?


 Any advice / concepts / ideas welcome!


 Justin French
 
 Creative Director
 http://Indent.com.au
 


 --
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, visit: http://www.php.net/unsub.php



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




[PHP] Fork and multi-thread in PHP?

2002-06-12 Thread Nathan Cassano


Hi PHP folks,
I have a program that sends out email by making socket
connection to our email server. The problem is that the program is very
slow because it has to finish talking to the email server until it can
proceed with the next email (as opposed to the mail() function that just
forks off a sendmail process). Is there a way for PHP to fork or
multi-thread to do I/O?


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




[PHP] Detecting Usernames

2002-06-12 Thread Carl Whittaker

Ive asked this question in another group with no luck so maybe you guys have
an answer.

Im looking for a way to detect the clients Win2k network username, im using
Apache2 PHP4.2.1 on a Win2K network with a domain, ive tried REMOTE_USER and
that just prints a hyphen. This whole issue has been bugging me for a while
now ive searched high and low im sure its possible because a lot of people
have said it is.

Save me from a mental breakdown!

Thanks,
Carl



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP] Fork and multi-thread in PHP?

2002-06-12 Thread Rasmus Lerdorf

That's one of the main reasons you would want to use the mail() function.
I wouldn't advise a fork() here, but if you really insist, see the pcntl
extension - http://php.net/pcntl

-Rasmus

On Wed, 12 Jun 2002, Nathan Cassano wrote:


 Hi PHP folks,
   I have a program that sends out email by making socket
 connection to our email server. The problem is that the program is very
 slow because it has to finish talking to the email server until it can
 proceed with the next email (as opposed to the mail() function that just
 forks off a sendmail process). Is there a way for PHP to fork or
 multi-thread to do I/O?


 --
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, visit: http://www.php.net/unsub.php



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP] Compare 2 resultsets of db-query

2002-06-12 Thread Analysis Solutions

On Wed, Jun 12, 2002 at 04:54:30PM +0200, Danny Kruitbosch wrote:
 Analysis  Solutions wrote:
 Hey Danny:
 
 On Mon, Jun 10, 2002 at 10:09:12PM +0200, Danny Kruitbosch wrote:
 
 Query1: SELECT FIELD1, COUNT(FIELD2) AS TOTAL from TABLE GROUP BY FIELD1
 Query2: SELECT FIELD1, COUNT(FIELD2) AS SUB from TABLE WHERE FIELD2=1 
 GROUP BY FIELD1
 
 FIELD 1 contains IP address pool names (not unique), field2 the status 
 (0 free, 1 leased). So what I try to do is get an overview of the total
 number of IP adresses in a pool and the number of leased addresses. 
 There's a fourth field that contains the actual address.

0 and 1 in FIELD2?  That makes this a piece of cake!  All you need is one
query.  In Query1, do a SUM(FIELD2)  rather than COUNT(FIELD2).  Forget 
about Query2.

--Dan

-- 
   PHP classes that make web design easier
SQL Solution  |   Layout Solution   |  Form Solution
sqlsolution.info  | layoutsolution.info |  formsolution.info
 T H E   A N A L Y S I S   A N D   S O L U T I O N S   C O M P A N Y
 4015 7 Av #4AJ, Brooklyn NY v: 718-854-0335 f: 718-854-0409

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




[PHP] sending 1000 emails to subscribed members via php?

2002-06-12 Thread andy

Hi there,

I am wondering whats wrong with my php script. I am trying to write a
newsletter to 150 members. Therefore I did seperate the adresses with a ,
After about 1 minute php gave up telling me mail has failed.

Is there a restriction on sening mail via mail(xx) via php?

Anyway what do I do if I would have 1 members. This might take lots of
cpu?! So I would like to keep it via my webinterface, but be able to email
to all members.

Thank you for your advice guys,

Andy



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




[PHP] Re: sending 1000 emails to subscribed members via php?

2002-06-12 Thread andy

additional comment:

some did recieve the email, some did not.
does anybody know a good solution?

andy


Andy [EMAIL PROTECTED] schrieb im Newsbeitrag
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
 Hi there,

 I am wondering whats wrong with my php script. I am trying to write a
 newsletter to 150 members. Therefore I did seperate the adresses with a ,
 After about 1 minute php gave up telling me mail has failed.

 Is there a restriction on sening mail via mail(xx) via php?

 Anyway what do I do if I would have 1 members. This might take lots of
 cpu?! So I would like to keep it via my webinterface, but be able to email
 to all members.

 Thank you for your advice guys,

 Andy





-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




[PHP] Re: sending 1000 emails to subscribed members via php?

2002-06-12 Thread Leon Mergen


Andy [EMAIL PROTECTED] wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
  Anyway what do I do if I would have 1 members. This might take lots
of
  cpu?! So I would like to keep it via my webinterface, but be able to
email
  to all members.

Hello Andy,

My suggestion is to just make a HTML file, do an auto-refresh or sth to the
url with a variable ?start=$x , and make that refresh after 2 seconds...
your php script sends emails to 25 people per cycle, and you just walk away
from your computer and let it run for a few minutes...

I do that for my mailing list which is over 30,000 people large...

If you don't have the time to build something like that, there's always the
BCC option ;)

Hope this helps you.

Regards,

Leon Mergen



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP] Re: sending 1000 emails to subscribed members via php?

2002-06-12 Thread Scott

Is your mail server timing out?  Do you need to put a set_time_limit() at
the top of your script?  Another possibiity is to only send a few at a 
time, some ISP's do not permit more than a set amount of messages to leave 
per minute.




On Wed, 12 Jun 2002, andy wrote:

 additional comment:
 
 some did recieve the email, some did not.
 does anybody know a good solution?
 
 andy
 
 
 Andy [EMAIL PROTECTED] schrieb im Newsbeitrag
 [EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
  Hi there,
 
  I am wondering whats wrong with my php script. I am trying to write a
  newsletter to 150 members. Therefore I did seperate the adresses with a ,
  After about 1 minute php gave up telling me mail has failed.
 
  Is there a restriction on sening mail via mail(xx) via php?
 
  Anyway what do I do if I would have 1 members. This might take lots of
  cpu?! So I would like to keep it via my webinterface, but be able to email
  to all members.
 
  Thank you for your advice guys,
 
  Andy
 
 
 
 
 
 

-- 

Scott Parks www.scottah.com
[EMAIL PROTECTED]   www.extoncommunications.com

Now Playing:  

Madonna - Holiday

Server Uptime: 183 days



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP] sending 1000 emails to subscribed members via php?

2002-06-12 Thread Duncan Hill

On Wed, 12 Jun 2002, andy wrote:

 Hi there,
 
 I am wondering whats wrong with my php script. I am trying to write a
 newsletter to 150 members. Therefore I did seperate the adresses with a ,
 After about 1 minute php gave up telling me mail has failed.

Why re-invent the wheel when there are perfectly good mailing list managers 
like Majordomo2, Listproc etc available?

-- 

Sapere aude
My mind not only wanders, it sometimes leaves completely.
Never attribute to malice that which can be adequately explained by stupidity.


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




[PHP] small problem

2002-06-12 Thread savaidis


Where in config have I to change something  to make Apache understand
/root/index.php as /root/   ?

Thanks

Makis


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




[PHP] Array Sorting

2002-06-12 Thread Steve Buehler

I have looked through php.net and the books that I have and I am confused, 
so I hope that someone can help me out here.  I am trying to sort an array 
that I have.  I use a while statement to fill the array:
$teams[++$i][team_id]=$row-team_id;
$teams[$i][name]=$row1-name;
$teams[$i][team_sea_id]=$row-team_sea_id;

Everything goes in the array as it should,  so no problem there.  I just 
want to know how do I sort the array by the name column?

Thanks In Advance
Steve


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP] small problem

2002-06-12 Thread Analysis Solutions

On Wed, Jun 12, 2002 at 12:49:36PM +0300, savaidis wrote:
 
 Where in config have I to change something  to make Apache understand
 /root/index.php as /root/   ?

To make the directive specific to that directory and all directories under 
it:
   In /root make a file called .htaccess
   In that file put DirectoryIndex index.php

To make the directive apply to your entire website:
   Open the httpd.conf file (which is in the conf subdir of your
  Apache directory)
   In that file, find the existing DirectoryIndex directive and add
  index.php to the end of it.  So, it could look like
  DirectoryIndex index.html index.php

--Dan

-- 
   PHP classes that make web design easier
SQL Solution  |   Layout Solution   |  Form Solution
sqlsolution.info  | layoutsolution.info |  formsolution.info
 T H E   A N A L Y S I S   A N D   S O L U T I O N S   C O M P A N Y
 4015 7 Av #4AJ, Brooklyn NY v: 718-854-0335 f: 718-854-0409

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




RE: [PHP] XML with PHP?

2002-06-12 Thread Lazor, Ed

--xml

-Original Message-
From: Scott Fletcher [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, June 12, 2002 6:57 AM
To: [EMAIL PROTECTED]
Subject: [PHP] XML with PHP?


Hey!

   Which PHP option should I use for compiling with the XML support.  I'm
using the standard XML support on the web and I found there are 4 or 5
different PHP option for XML.  Which should I use?  The example of the XML
is ..

-- clip --
?xml version=1.0 encoding=UTF-8?
NetConnectRequest xmlns=http://www.; ...
 BDHosts11/DBHosts
  Products
CreditProfile
 blah, blah, etc.
/CreditProfile
  /Products
-- clip --

Thanks,
 FletchSOD



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
 

This message is intended for the sole use of the individual and entity to
whom it is addressed, and may contain information that is privileged,
confidential and exempt from disclosure under applicable law.  If you are
not the intended addressee, nor authorized to receive for the intended
addressee, you are hereby notified that you may not use, copy, disclose or
distribute to anyone the message or any information contained in the
message.  If you have received this message in error, please immediately
advise the sender by reply email and delete the message.  Thank you very
much.   

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




[PHP] Re: Fork and multi-thread in PHP?

2002-06-12 Thread Manuel Lemos

Hello,

On 06/12/2002 12:13 PM, Nathan Cassano wrote:
 Hi PHP folks,
   I have a program that sends out email by making socket
 connection to our email server. The problem is that the program is very
 slow because it has to finish talking to the email server until it can
 proceed with the next email (as opposed to the mail() function that just
 forks off a sendmail process). Is there a way for PHP to fork or
 multi-thread to do I/O?
 

That is not the reason why sendmail may be (or not) faster than SMTP.

Usually sendmail is faster because it directly injects the messages in 
the local mailer queue, instead of going through a TCP connection.

If you can use sendmail there isn't really a good reason to use SMTP 
instead if all you want it is speed.

-- 

Regards,
Manuel Lemos


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




[PHP] Automatic user login under NT

2002-06-12 Thread Barajas, Arturo

Greetings, everyone.

I'm new on the list (not so on PHP).

I'm stuck with a little problem, I'm trying to implement some PHP pages at work, where 
ASP is used. The platform is NT 4.0 SP6, with PHP 4.2.1.

My problem is that with ASP I can have something like 
Request.ServerVariables(LOGON_USER). I've tried using $_SERVER[LOGON_USER] but to 
no avail. Curiously, Request.ServerVariables(REMOTE_ADDR) and 
$_SERVER[REMOTE_ADDR] work like a charm.

How can I obtain the login the user entered when logged to his/her machine?

Thanks in advance.
--
Un gran saludo/Big regards...
   Arturo Barajas
   Sistemas PPG SJR
   +52 (427) 271-9100, ext. 448

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




[PHP] unset($array[value]) does not work?

2002-06-12 Thread Leon Mergen

Hello,

I am currently testing out some things with removing elements from arrays,
and I find it strange that the following statement does not work for me:

unset($array['element'])

I wrote a little test script, you can see the source at
http://www.antrophia.com/test.txt and the executable at
http://www.antrophia.com/test.php ... Now, if you look at the last part:

unset ($unserialized['foo']);
if (key_exists(foo, $unserialized)) { echo foo exists!\n; }
if (key_exists(wom, $unserialized)) { echo wom exists!\n\n; }

You will see that $unserialized['foo'] still exists! Can anyone explain me
what I'm doing wrong?

Thanks in advance,

Leon Mergen



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




[PHP] Email - Php !

2002-06-12 Thread Septic Flesh

I use the following php.ini config.

Do I need to configure the sendmail seperatly to successfully send an email
? with Linux ?

In my win32 os email works ok..but in the linux box nothing is sent..



~~php.ini

[mail function]
; For Win32 only.
SMTP = [EMAIL PROTECTED]

; For Win32 only.
sendmail_from = [EMAIL PROTECTED]

; For Unix only.  You may supply arguments as well (default:
sendmail -t -i).
  sendmail_path =/usr/sbin/sendmail -t
~~~




code
?php


if (@mail( '[EMAIL PROTECTED]', 'subject', 'kafrila opa ligo ' ))

{
echo  mail sent;
}

else
{
echo  shit nothing sent;
}

echo pemail test . . ./p;

?





Any idea ? Thanks in advance..


--


Sapilas@/dev/pinkeye





-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




[PHP] Re: Email validation

2002-06-12 Thread Pedro Pontes

function checkEmail($strEMailAddress)
{
 return eregi(^[_a-z0-9-]+(\.[_a-z0-9-]+)*@[a-z0-9-]+(\.[a-z0-9-]+)+$,
$strEMailAddress);
}

You have it now :).

Regards,


Pedro Alberto Pontes

Jeroen Timmers [EMAIL PROTECTED] wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
 Is there a simple function that validate an email adres

 Thx

 Jeroen Timmers




-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




RE: [PHP] Array into database

2002-06-12 Thread Lazor, Ed

Depends on the average size of data that you're working with.  You have to
count how many bytes each array take up.  I think the sizeof function will
do this for you.

-Ed

-Original Message-
And how should I store a serialized variable in my database? As String or as
Blob?



 

This message is intended for the sole use of the individual and entity to
whom it is addressed, and may contain information that is privileged,
confidential and exempt from disclosure under applicable law.  If you are
not the intended addressee, nor authorized to receive for the intended
addressee, you are hereby notified that you may not use, copy, disclose or
distribute to anyone the message or any information contained in the
message.  If you have received this message in error, please immediately
advise the sender by reply email and delete the message.  Thank you very
much.   

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




Re[2]: [PHP] netscape wont show form result

2002-06-12 Thread Stuart Dallas

On Wednesday, June 12, 2002 at 5:48:02 AM, you wrote:

 An 'exit' directive had secretly sneaked into the script! which caused ns to
 abort the rest of the script (as it should) while ie blissfully ignored
 it(??). Anyway it all works now. Thanks again.

Just thought I'd point out an error in your explanation. PHP is executed by the
server, not by the browser. Therefore, IE cannot have blissfully ignored an
exit directive since it never saw one. I think you've solved your problem by
coincidence rather than logic - a very bad way to write code.

-- 
Stuart


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




[PHP] Equivalent of this in php

2002-06-12 Thread rdkurth



What would be the equivalent of this in php. Mostly the open (REQ and
the print REQ USER_INFO; to the close REQ; Could somebody just point me in the write
direction.



  open (REQ, |$Openssl_cmd req -new -config /usr/lib/openssl.cnf 
  . -key $cert_dir/key -days $days -out $cert_dir/request 12) ||
  return MSG_error(ssl_cant_gen_request);

print REQ USER_INFO;
$subject{'C'}
$subject{'ST'}
$subject{'L'}
$subject{'O'}
$subject{'OU'}
$subject{'CN'}
$subject{'Email'}
USER_INFO
;
   close REQ;

  

  

-- 
Best regards,
 rdkurth  mailto:[EMAIL PROTECTED]


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




Re[2]: [PHP] Array into database

2002-06-12 Thread Stuart Dallas

On Wednesday, June 12, 2002 at 7:18:18 AM, you wrote:
 And how should I store a serialized variable in my database? As String or as
 Blob?

Since serialize returns a string, I would guess that you store it in a
mongoose. Sorry for the sarcasm, but it's getting late and that info is on the
manual page. Don't forget to run addslashes on the string before trying to
store it in the database.

-- 
Stuart


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




RE: [PHP] unset($array[value]) does not work?

2002-06-12 Thread Lazor, Ed

It is working.

The last two tests you were running weren't actually the same, which was
confusing your testing results.  I've altered the code a little for ease of
testing.  It's included below.

-Original Message-
You will see that $unserialized['foo'] still exists! Can anyone explain me
what I'm doing wrong?

--

?

$array = array (
foo = bar,
wom = bat
);

echo $array[foo] . br;
echo $array[wom] . br;

$serialized = serialize($array);

echo $serialized . br;

$unserialized = unserialize($serialized);

echo $unserialized[foo] . br;
echo $unserialized[wom] . br;

echo hr;

$keys = array_keys ($unserialized);

echo $keys[0] . br;
echo $keys[1] . br;

echo hr;

if (key_exists(foo, $unserialized)) { echo foo exists!br; }
if (key_exists(wom, $unserialized)) { echo wom exists!br; }

echo hr;
unset ($unserialized['foo']);

if (key_exists(foo, $unserialized)) { echo foo exists!br; }
if (key_exists(wom, $unserialized)) { echo wom exists!br; }

?
 

This message is intended for the sole use of the individual and entity to
whom it is addressed, and may contain information that is privileged,
confidential and exempt from disclosure under applicable law.  If you are
not the intended addressee, nor authorized to receive for the intended
addressee, you are hereby notified that you may not use, copy, disclose or
distribute to anyone the message or any information contained in the
message.  If you have received this message in error, please immediately
advise the sender by reply email and delete the message.  Thank you very
much.   

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




RE: [PHP] vars and ocibindbyname

2002-06-12 Thread Ford, Mike [LSS]

-Original Message-
From: Laurent Drouet
To: [EMAIL PROTECTED]

I use Php 4.0.6  with oci and when I try to use OcibindByname php
function
I receive the following warning :
Warning: Call-time pass-by-reference has been deprecated .
The problem is that this function requires the use of vars
--

Er -- no it doesn't.  I have loads of OCIBindByName calls that have never seen so much 
as a sniff of an .  The function definition at 
http://www.php.net/manual/en/function.ocibindbyname.php:

int OCIBindByName ( int stmt, string ph_name, mixed  variable, int length [, int 
type])

tells you that the function itself forces the 3rd parameter to be passed by reference, 
not that it has to be passed by reference in the call.  The following call is 
perfectly valid and does the job correctly:

OCIBindByName($stmt, ':NAME', $name, 255);

Cheers!

Mike

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




[PHP] Re: Equivalent of this in php

2002-06-12 Thread Philip Hallstrom

not checked, but something like:

$fp = popen(|$Openssl_cmd req -new -config /usr/lib/openssl.cnf  .
-key $cert_dir/key -days $days -out $cert_dir/request 12) || 
return(doh!);

fputs($fp, $subject['C'] . \n);
...
...
...

pclose($fp);

On Wed, 12 Jun 2002 [EMAIL PROTECTED] wrote:



 What would be the equivalent of this in php. Mostly the open (REQ and
 the print REQ USER_INFO; to the close REQ; Could somebody just point me in the 
write
 direction.



   open (REQ, |$Openssl_cmd req -new -config /usr/lib/openssl.cnf 
   . -key $cert_dir/key -days $days -out $cert_dir/request 12) ||
   return MSG_error(ssl_cant_gen_request);

 print REQ USER_INFO;
 $subject{'C'}
 $subject{'ST'}
 $subject{'L'}
 $subject{'O'}
 $subject{'OU'}
 $subject{'CN'}
 $subject{'Email'}
 USER_INFO
 ;
close REQ;





 --
 Best regards,
  rdkurth  mailto:[EMAIL PROTECTED]


 --
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, visit: http://www.php.net/unsub.php



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP] Email - Php !

2002-06-12 Thread Miguel Cruz

On Wed, 12 Jun 2002, Septic Flesh wrote:
 I use the following php.ini config.
 
 Do I need to configure the sendmail seperatly to successfully send an email
 ? with Linux ?
 
 ; For Unix only.  You may supply arguments as well (default:
 sendmail -t -i).
   sendmail_path =/usr/sbin/sendmail -t

Check to make sure that sendmail_path actually points to a sendmail 
binary. Use 'which sendmail' to figure out where it is.

miguel


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




RE: [PHP] sending 1000 emails to subscribed members via php?

2002-06-12 Thread Lazor, Ed

Kind of an off-shoot question, but has anyone created functions to interface
PHP and one of the popular mailing list management software packages like
Majordomo or Mailman?

-Original Message-
From: Miguel Cruz [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, June 12, 2002 10:29 AM
To: andy
Cc: [EMAIL PROTECTED]
Subject: Re: [PHP] sending 1000 emails to subscribed members via php?


On Wed, 12 Jun 2002, andy wrote:
 I am wondering whats wrong with my php script. I am trying to write a
 newsletter to 150 members. Therefore I did seperate the adresses with a ,
 After about 1 minute php gave up telling me mail has failed.
 
 Is there a restriction on sening mail via mail(xx) via php?
 
 Anyway what do I do if I would have 1 members. This might take lots of
 cpu?! So I would like to keep it via my webinterface, but be able to email
 to all members.

Use PHP to manage a list of subscribers that is in a format acceptable to 
your MTA (.qmail, sendmail alias file, etc.). Then you can just use one 
call to mail() and let your MTA take care of it, which is what it's made 
for (and not what PHP is made for).

miguel


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
 

This message is intended for the sole use of the individual and entity to
whom it is addressed, and may contain information that is privileged,
confidential and exempt from disclosure under applicable law.  If you are
not the intended addressee, nor authorized to receive for the intended
addressee, you are hereby notified that you may not use, copy, disclose or
distribute to anyone the message or any information contained in the
message.  If you have received this message in error, please immediately
advise the sender by reply email and delete the message.  Thank you very
much.   

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP] Detecting Usernames

2002-06-12 Thread Miguel Cruz

On Wed, 12 Jun 2002, Carl Whittaker wrote:
 Ive asked this question in another group with no luck so maybe you guys have
 an answer.
 
 Im looking for a way to detect the clients Win2k network username, im
 using Apache2 PHP4.2.1 on a Win2K network with a domain, ive tried
 REMOTE_USER and that just prints a hyphen. This whole issue has been
 bugging me for a while now ive searched high and low im sure its
 possible because a lot of people have said it is.

Run this amazing program:

  pre? var_dump($_SERVER) ?/pre

If you see your network username as one of the listed subscripts of 
$_SERVER, presto, you're in business. Otherwise I suspect you may be out 
of luck because the browser is not sending it to the server, or the server 
is not sending it to PHP.

miguel


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




[PHP] Re: Automatic user login under NT

2002-06-12 Thread Manuel Lemos

Hello,

On 06/12/2002 01:43 PM, Arturo Barajas wrote:
 Greetings, everyone.
 
 I'm new on the list (not so on PHP).
 
 I'm stuck with a little problem, I'm trying to implement some PHP pages at work, 
where ASP is used. The platform is NT 4.0 SP6, with PHP 4.2.1.
 
 My problem is that with ASP I can have something like 
Request.ServerVariables(LOGON_USER). I've tried using $_SERVER[LOGON_USER] but to 
no avail. Curiously, Request.ServerVariables(REMOTE_ADDR) and 
$_SERVER[REMOTE_ADDR] work like a charm.
 
 How can I obtain the login the user entered when logged to his/her machine?

PHP does not support NTLM authentication. ASP does it, Java does it, 
Perl does it, Python does it, but PHP don't . I don't know if and when 
it ever will because according to Rasmus Lerdorf, Windows PHP users are 
second-class citizen when it comes to support from the open source 
community.

http://news.php.net/article.php?group=php.qaarticle=5414

I don't agree and even think that it is a stupid thing to say because 
open source is not about excluding Windows users even if there are much 
less open source developers with Windows knowledge there is no point in 
making Windows users feel bad about it.

Anyway, personally I don't use Windows nor have a project that motivate 
me to add support to NTLM authentication in PHP, but if you or anybody 
has interest in doing it and know enough C, I can tell you how to write 
a PHP extension to support that. Just let me know if you are interested.

-- 

Regards,
Manuel Lemos


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




[PHP] Forum / Web Mail Combined?

2002-06-12 Thread Lazor, Ed

Ilia and I were discussing FUDForum and general forum features.  That made
me wonder... Are there forums that integrate pop3 web mail support?

-Ed

 

This message is intended for the sole use of the individual and entity to
whom it is addressed, and may contain information that is privileged,
confidential and exempt from disclosure under applicable law.  If you are
not the intended addressee, nor authorized to receive for the intended
addressee, you are hereby notified that you may not use, copy, disclose or
distribute to anyone the message or any information contained in the
message.  If you have received this message in error, please immediately
advise the sender by reply email and delete the message.  Thank you very
much.   

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP] Fw: Hosting_submission

2002-06-12 Thread Miguel Cruz

On Wed, 12 Jun 2002, The_RadiX wrote:
 Well anybody who wants to join Liam Mackenzie's hosting...
 
 Here's the touching response I got... 
 
 After all customers would be very very upset if there was some kind of
 publicity stunt against his company. wouldn't they?
 
 * snigger snigger *
 
 :)... me threatening?? pfft. no.. how could you think that...

It seems to me entirely inappropriate to use the list for this sort of 
personal vendetta.

If you have a problem with a free service, ask for your money back. Then
teach the provider a lesson by going and spending it somewhere else.

miguel


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




RE: [PHP] Re: Automatic user login under NT

2002-06-12 Thread Barajas, Arturo

 From: Manuel Lemos [mailto:[EMAIL PROTECTED]]

Hi, Manuel.

 I don't agree and even think that it is a stupid thing to say because 
 open source is not about excluding Windows users even if 
 there are much less open source developers with Windows knowledge
 there is no point in making Windows users feel bad about it.

Sometimes you have to deal with it. At home I use Linux, but at the office it's 
Windows, and there's nothing we can do to change it. I thought open source wasn't 
about a given OS, but rather a philosophy (?). I can develop for Windows (or BeOS or 
MacOS or whatever) and what I do can be still open source, isn't it?

OTOH, how can I (or anyone for that matter) change the mentality of a corporate user 
about open source tools with that other mentality? Being second class? My God.

I don't want a flamewar, anyway, but I think it's not the most clever way to establish 
the open source movement, IMHO.

 Anyway, personally I don't use Windows nor have a project 
 that motivate me to add support to NTLM authentication in
 PHP, but if you or anybody has interest in doing it and
 know enough C, I can tell you how to write a PHP extension
 to support that. Just let me know if you are interested.

Of course I am :^). What compiler do I need? gcc on cygwin or something? I'll have to 
dust my old C notebooks :^).

 -- 
 Regards,
 Manuel Lemos
--
Un gran saludo/Big regards...
   Arturo Barajas
   Sistemas PPG SJR
   +52 (427) 271-9100, ext. 448

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP] Forum / Web Mail Combined?

2002-06-12 Thread Jeff Lewis

Ed,

Currently none to my knowledge, however, YaBB SE 2 which is in development
has this feature roughed in already. However, it's still in development.

Jeff
- Original Message -
From: Lazor, Ed [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Wednesday, June 12, 2002 1:35 PM
Subject: [PHP] Forum / Web Mail Combined?


 Ilia and I were discussing FUDForum and general forum features.  That made
 me wonder... Are there forums that integrate pop3 web mail support?

 -Ed




 This message is intended for the sole use of the individual and entity to
 whom it is addressed, and may contain information that is privileged,
 confidential and exempt from disclosure under applicable law.  If you are
 not the intended addressee, nor authorized to receive for the intended
 addressee, you are hereby notified that you may not use, copy, disclose or
 distribute to anyone the message or any information contained in the
 message.  If you have received this message in error, please immediately
 advise the sender by reply email and delete the message.  Thank you very
 much.

 --
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, visit: http://www.php.net/unsub.php





-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




[PHP] form post

2002-06-12 Thread Kris Vose

Is there a way to post input types that are hidden  with out using a html form in 
php?  I know you can do it in java script with Form.submit().  

So... if I have three hidden fields can I post them without pressing a button that 
uses a form by using a php function?

Thanks in advance.

Kris

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




RE: [PHP] form post

2002-06-12 Thread Lazor, Ed

No, because PHP is server-side.

-Original Message-
From: Kris Vose [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, June 12, 2002 11:28 AM
To: [EMAIL PROTECTED]
Subject: [PHP] form post


Is there a way to post input types that are hidden  with out using a html
form in php?  I know you can do it in java script with Form.submit().  

So... if I have three hidden fields can I post them without pressing a
button that uses a form by using a php function?

Thanks in advance.

Kris

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
 

This message is intended for the sole use of the individual and entity to
whom it is addressed, and may contain information that is privileged,
confidential and exempt from disclosure under applicable law.  If you are
not the intended addressee, nor authorized to receive for the intended
addressee, you are hereby notified that you may not use, copy, disclose or
distribute to anyone the message or any information contained in the
message.  If you have received this message in error, please immediately
advise the sender by reply email and delete the message.  Thank you very
much.   

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




[PHP] Re: form post

2002-06-12 Thread Scott Hurring

There's no way to for PHP to say Yo, let's ride... submit that form
Client-side manipulations must be done client-side, with
javascript or something similar.


--
Scott Hurring
Systems Programmer
EAC Corporation
scott (*) eac.com
--
Kris Vose [EMAIL PROTECTED] wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
Is there a way to post input types that are hidden  with out using a html form
in php?  I know you can do it in java script with Form.submit().

So... if I have three hidden fields can I post them without pressing a button
that uses a form by using a php function?

Thanks in advance.

Kris



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP] form post

2002-06-12 Thread Chris Boget

 There's no way to for PHP to say Yo, let's ride... submit that form
 Client-side manipulations must be done client-side, with
 javascript or something similar.

But you can use a function/library called PostToHost() (or something 
like that).  Search on phpbuilder.com for it.  This issue has come up
several times on the list.

Chris



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




RE: [PHP] Equivalent of this in php

2002-06-12 Thread Jaime Bozza

PHP has heredoc capability, though it'll look a little strange since
you'll need the () around the parameters.  It's also used a little bit
differently.  Here's the code:


$fp = popen($Openssl_cmd req -new -config /usr/lib/openssl.cnf 
. -key $cert_dir/key -days $days -out $cert_dir/request
12, w);
fputs ($fp, USER_INFO
$subject[C]
$subject[ST]
$subject[L]
$subject[O]
$subject[OU]
$subject[CN]
$subject[Email]
USER_INFO
);
pclose($fp);

---

PHP uses  instead of  and does not have a ; at the end of the first
line.  Typically, (using print), the end statement would have a ;, but
since you need to close the ()'s, and since you can't have anything
*BUT* a ; following the end statement, you need to put the ); on the
next line.


Good luck!



-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] 
Sent: Wednesday, June 12, 2002 12:19 PM
To: [EMAIL PROTECTED]
Subject: [PHP] Equivalent of this in php




What would be the equivalent of this in php. Mostly the open (REQ and
the print REQ USER_INFO; to the close REQ; Could somebody just point
me in the write
direction.



  open (REQ, |$Openssl_cmd req -new -config
/usr/lib/openssl.cnf 
  . -key $cert_dir/key -days $days -out
$cert_dir/request 12) ||
  return MSG_error(ssl_cant_gen_request);

print REQ USER_INFO;
$subject{'C'}
$subject{'ST'}
$subject{'L'}
$subject{'O'}
$subject{'OU'}
$subject{'CN'}
$subject{'Email'}
USER_INFO
;
   close REQ;

  

  

-- 
Best regards,
 rdkurth  mailto:[EMAIL PROTECTED]


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php





-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




[PHP] Emptying a Single Array Value

2002-06-12 Thread Martin Clifford

Howdy,

If someone out there could tell me how to get rid of a single key/index pair within an 
array, it would be great.  I've tried both unset() and empty(), but both destroy the 
entire array.

Please CC me directly, as I'm on the digest.

Thanks in advance!

Martin


--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




[PHP] Querying for MAX

2002-06-12 Thread César Aracena

I’m sorry if this mensaje is posted twice. I sent it yesterdays, but
then my ISP had problems with e-mail and I lost dozens of them and don’t
know if sent OK.


Hi all,

What I’m trying to do here is not inside PHP nor MySQL books I have. I
need to query the DB to look the max result in a column. That is, if I
have affiliate members with ID going from 1 to 10, get the query to know
that the last member added was 10 so I can add member 11 without using
auto_increment, because I need to insert old members too which already
have ID numbers. Is that possible?

Thanks in advance,


Cesar Aracena mailto:[EMAIL PROTECTED] 
CE / MCSE+I
Neuquen, Argentina
+54.299.6356688
+54.299.4466621





RE: [PHP] Querying for MAX

2002-06-12 Thread Lazor, Ed

select MAX(fieldname) from table;

You can also insert data in tables with auto_increment fields to account for
yourneed to insert old member ids.

insert into tablename (ID, Name) values ('$OldID', '$Name');



-Original Message-
From: César Aracena [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, June 12, 2002 11:36 AM
To: 'PHP DB List'; PHP General List
Subject: [PHP] Querying for MAX


I'm sorry if this mensaje is posted twice. I sent it yesterdays, but
then my ISP had problems with e-mail and I lost dozens of them and don't
know if sent OK.


Hi all,

What I'm trying to do here is not inside PHP nor MySQL books I have. I
need to query the DB to look the max result in a column. That is, if I
have affiliate members with ID going from 1 to 10, get the query to know
that the last member added was 10 so I can add member 11 without using
auto_increment, because I need to insert old members too which already
have ID numbers. Is that possible?

Thanks in advance,


Cesar Aracena mailto:[EMAIL PROTECTED] 
CE / MCSE+I
Neuquen, Argentina
+54.299.6356688
+54.299.4466621


 

This message is intended for the sole use of the individual and entity to
whom it is addressed, and may contain information that is privileged,
confidential and exempt from disclosure under applicable law.  If you are
not the intended addressee, nor authorized to receive for the intended
addressee, you are hereby notified that you may not use, copy, disclose or
distribute to anyone the message or any information contained in the
message.  If you have received this message in error, please immediately
advise the sender by reply email and delete the message.  Thank you very
much.   

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




RE: [PHP] Querying for MAX

2002-06-12 Thread Leotta, Natalie (NCI/IMS)

is

select MAX(column name)

what you are looking for?  I know it works on numeric columns, I'm not sure
if it works on non-numbers, you'd have to look it up in a SQL Tutorial
somewhere.

Good luck!

-Natalie

-Original Message-
From: César Aracena [mailto:[EMAIL PROTECTED]] 
Sent: Wednesday, June 12, 2002 2:36 PM
To: 'PHP DB List'; PHP General List
Subject: [PHP] Querying for MAX


I'm sorry if this mensaje is posted twice. I sent it yesterdays, but then my
ISP had problems with e-mail and I lost dozens of them and don't know if
sent OK.


Hi all,

What I'm trying to do here is not inside PHP nor MySQL books I have. I need
to query the DB to look the max result in a column. That is, if I have
affiliate members with ID going from 1 to 10, get the query to know that the
last member added was 10 so I can add member 11 without using
auto_increment, because I need to insert old members too which already have
ID numbers. Is that possible?

Thanks in advance,


Cesar Aracena mailto:[EMAIL PROTECTED] 
CE / MCSE+I
Neuquen, Argentina
+54.299.6356688
+54.299.4466621



--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




RE: [PHP] Querying for MAX

2002-06-12 Thread César Aracena

Thanks Natalie  Ed. This Works just fine.

What I want to do, is let a person subscribe new affiliates without
having to look up what the last affiliate's number was and show the next
one in the new affiliate form.

César Aracena
IS / MCSE+I
Neuquén, NQN
(0299) 156-356688
(0299) 446-6621

 -Mensaje original-
 De: Leotta, Natalie (NCI/IMS) [mailto:[EMAIL PROTECTED]]
 Enviado el: Miércoles, 12 de Junio de 2002 03:39 p.m.
 Para: 'César Aracena'; 'PHP DB List'; PHP General List
 Asunto: RE: [PHP] Querying for MAX
 
 is
 
 select MAX(column name)
 
 what you are looking for?  I know it works on numeric columns, I'm not
 sure
 if it works on non-numbers, you'd have to look it up in a SQL Tutorial
 somewhere.
 
 Good luck!
 
 -Natalie
 
 -Original Message-
 From: César Aracena [mailto:[EMAIL PROTECTED]]
 Sent: Wednesday, June 12, 2002 2:36 PM
 To: 'PHP DB List'; PHP General List
 Subject: [PHP] Querying for MAX
 
 
 I'm sorry if this mensaje is posted twice. I sent it yesterdays, but
then
 my
 ISP had problems with e-mail and I lost dozens of them and don't know
if
 sent OK.
 
 
 Hi all,
 
 What I'm trying to do here is not inside PHP nor MySQL books I have. I
 need
 to query the DB to look the max result in a column. That is, if I have
 affiliate members with ID going from 1 to 10, get the query to know
that
 the
 last member added was 10 so I can add member 11 without using
 auto_increment, because I need to insert old members too which already
 have
 ID numbers. Is that possible?
 
 Thanks in advance,
 
 
 Cesar Aracena mailto:[EMAIL PROTECTED]
 CE / MCSE+I
 Neuquen, Argentina
 +54.299.6356688
 +54.299.4466621



--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP] Re: Automatic user login under NT

2002-06-12 Thread Manuel Lemos

Hello,

On 06/12/2002 02:48 PM, Arturo Barajas wrote:
 I don't agree and even think that it is a stupid thing to say because
 open source is not about excluding Windows users even if
 there are much less open source developers with Windows knowledge
 there is no point in making Windows users feel bad about it.
 
 
  Sometimes you have to deal with it. At home I use Linux, but at the 
office it's Windows, and there's nothing we can do to change it. I 
thought open source wasn't about a given OS, but rather a philosophy 
(?). I can develop for Windows (or BeOS or MacOS or whatever) and what I 
do can be still open source, isn't it?
 
  OTOH, how can I (or anyone for that matter) change the mentality of a 
corporate user about open source tools with that other mentality? 
Being second class? My God.
 
  I don't want a flamewar, anyway, but I think it's not the most clever 
way to establish the open source movement, IMHO.

Sure, never mind about Rasmus descrimination towards Windows users. 
Rasmus always has been bitter with users asking for support, especially 
if they want to run PHP under Windows. Rasmus opinion is just Rasmus 
opinion and by all means does not represent what the PHP and the Open 
Source community in general thinks.

PHP should stay away from the OS wars especially because a great part of 
PHP is due to its acceptance in the Windows world.

This may come to you as a surprise, but according to partial results of 
a poll that I am carrying, more than 52% of the PHP developers use 
Windows in production environments. So it is absolutely stupid that much 
users are second class citizens.

The truth is that after the blowup of the Internet bubble, many PHP 
developers had to turn to corporations that are still well dominated by 
Windows. PHP developers should be thankful of its support under Windows 
because that allowed to keep jobs still working on PHP, ie eventually 
not having to move to other languages.

Anyway, what Rasmus meant is that there are much less open source 
Windows developers which is a fact. That doesn't mean that being less 
you won't get any support from them. Rasmus just seems to love to make 
Windows users suffer for using such platform, even though many of them 
had to put up with it because they had no choice. Just ignore him.


 Anyway, personally I don't use Windows nor have a project
 that motivate me to add support to NTLM authentication in
 PHP, but if you or anybody has interest in doing it and
 know enough C, I can tell you how to write a PHP extension
 to support that. Just let me know if you are interested.
 
 
  Of course I am :^). What compiler do I need? gcc on cygwin or 
something? I'll have to dust my old C notebooks :^).

To write PHP extensions on Windows I think Visual C++ is more 
appropriate. You may find documentation to write extensions here:

http://www.php.net/manual/en/zend.php

Keep in mind that NTLM authentication can be added in such way that you 
can authenticate on Windows domain controller despite your Web server 
may be running on Linux or some other Unix platform.

As for the authentication itself, I just paste here what you need to 
know so you can start working on this.

Basically you need to know that there are two parts to be addressed: 
HTTP NTLM autentication dialog and NTLM logon in Windows domain 
controller to verify if the credentials are correct.

The second part is easier because there is already C code to implement 
it that you can borrow from Apache NTLM authetication module that uses 
the client libraries of the Samba project.

http://modntlm.sourceforge.net/

This module is meant to run under Unix, but since it is just client 
code, I think it could be made to run under Windows.

As for the HTTP NTLM authetication dialog itself that this Apache module 
also does, it is more complicated because unlike Basic authetication it 
is multi-step. In this page you may find some explanation about the 
protocolo of challenge and response messages that are exchanged between 
the client and the server:

http://www.innovation.ch/java/ntlm.html

Other than this there is the issue of authentication credentials 
caching. Since you need 3 accesses to the server to go, caching 
authetication credentials would avoid further authentication accesses to 
the domain controller. This is trickier, so it could be left for an 
optimization phase.



-- 

Regards,
Manuel Lemos


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP] bulk mail()

2002-06-12 Thread Paul Roberts

I find a few bad addresses can slow mail() down, i write to a log file if mail returns 
true or to a bad mail file if false, try the bad emails later and then take them off 
the list if still bad. you can increase your time out with set_time_limit(), i'd also 
send when the server isn't too busy.

bcc is faster but will usually end up getting binned as Spam as they are not addressed 
to the recipient and fail junk mail filters as used by hotmail.

if 1 of your 100 emails is bad the whole lot can be rejected by the server and not 
sent.

Paul Roberts
[EMAIL PROTECTED]

- Original Message - 
From: Niklas Lampén [EMAIL PROTECTED]
To: Php-General [EMAIL PROTECTED]
Sent: Wednesday, June 12, 2002 1:08 PM
Subject: RE: [PHP] bulk mail()


One solution could be this:

You only need on page for this:

1) create an array of recipients

2) get value from array like array[$pos];

3) send mail to this receiver

4) now some javascript, unless ofcourse if $pos is bigger than
count($array): location.href = http://blah.com/foo.php?pos=?=$pos+1?


And keep some log on sending. Even simple text file will do, if you are
sending mails in some known order. Log file is very handy if cpu
crashes, or something else happens.


Niklas


-Original Message-
From: Justin French [mailto:[EMAIL PROTECTED]] 
Sent: 12. kesäkuuta 2002 14:45
To: php
Subject: [PHP] bulk mail()


Hi all,

I've got a mailing on a website, with email address' / names / etc in a
MySQL table.

I think there's around 120 on it at the moment.

I've been noticing a growing lag on the sending of mail though... I've
got a script which takes a message from a form, then runs a while loop
through the rows of the mailing_list table, replacing a special string
with the subscribers name, and sending using the mail() command.

However, this time, the script actually failed, with a failure when
attempting to access blah.com/foo.php (the sending script).  I have no
idea if SOME people got the email, or what, and have no idea how to
check.

So, I make the assumption that as the mailing list has grown, the script
time has slowed... now it's too big (or the server was too busy) to
process all the emails before the script timed out.


If I didn't want to personalise the emails, I'm sure the script would
run a lot quicker with every address in the Bcc header, but since we
personalise each email, I can't see any option other than using mail()
200 times...  and it's only going to get a lot worse as we climb to
1000+.

So, what options do I have?

Break the mailing list up into batches of 40 or so?  How would I
implement something like this?


Any advice / concepts / ideas welcome!


Justin French

Creative Director
http://Indent.com.au



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

###
This message has been scanned by F-Secure Anti-Virus for Internet Mail.
For more information, connect to http://www.F-Secure.com/

###
This message has been scanned by F-Secure Anti-Virus for Internet Mail.
For more information, connect to http://www.F-Secure.com/

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php





--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP] Emptying a Single Array Value

2002-06-12 Thread Damian Harouff

This is all i've ever been able to do:

function ck_removeValueFromArray($array, $value) {

$key = array_search($value, $array);

if ($key) {

$array[$key] = ;
rsort($array); // rsort() puts blank values at the end
reset($array);
array_pop($array); //use array_pop to remove the blank


}

return $array;

}

MC Howdy,

MC If someone out there could tell me how to get rid of a single key/index pair 
within an array, it would be great.  I've tried both unset() and empty(), but both 
destroy the entire array.

MC Please CC me directly, as I'm on the digest.

MC Thanks in advance!

MC Martin


MC --
MC PHP General Mailing List (http://www.php.net/)
MC To unsubscribe, visit: http://www.php.net/unsub.php


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP] Emptying a Single Array Value

2002-06-12 Thread Philip Olson


unset() works for this, how are you using it 
exactly?  Please post a short test script 
that misbehaves for you.

  $arr = array('foo','bar');
  unset($arr[0]);

  print_r($arr); // only $arr[1] = 'bar' exists now

See also: http://www.php.net/unset
  http://www.php.net/array_splice

Regards,
Philip Olson


On Wed, 12 Jun 2002, Martin Clifford wrote:

 Howdy,
 
 If someone out there could tell me how to get rid of a single key/index pair within 
an array, it would be great.  I've tried both unset() and empty(), but both destroy 
the entire array.
 
 Please CC me directly, as I'm on the digest.
 
 Thanks in advance!
 
 Martin
 
 
 -- 
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, visit: http://www.php.net/unsub.php
 



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP] Emptying a Single Array Value

2002-06-12 Thread Kevin Stone

$nums = array ('one', 'two', 'three');
$nums = remove_array_element($nums, 1);

function remove_array_element($array, $index)
{
unset($array[$i]);  // Unset selected index
return array_values($array); // Return reindexed array
}

P.S. The empty() function returns true or false depending upon whether or
not the variable you pass to contains information, it doesn't affect the
variable.

-Kevin

- Original Message -
From: Martin Clifford [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Wednesday, June 12, 2002 12:48 PM
Subject: [PHP] Emptying a Single Array Value


 Howdy,

 If someone out there could tell me how to get rid of a single key/index
pair within an array, it would be great.  I've tried both unset() and
empty(), but both destroy the entire array.

 Please CC me directly, as I'm on the digest.

 Thanks in advance!

 Martin


 --
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, visit: http://www.php.net/unsub.php





-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




  1   2   3   >