[PHP] Execute shell script from PHP

2005-01-17 Thread Khan
Hello, I have a shell script for ading users to LDAP. It looks like this: #!/bin/bash MUID=userlogin FULLNAME="First Last" LASTNAME="Last" DOMAIN=example.org SERVER=qmail.example.org PASS=userpass cat > .ldif.tmp.$MUID << EOF dn: uid=$MUID,ou=accounts,dc=example,dc=org cn: $FULLNAME sn: $LASTNAME o

Re: [PHP] Echoing Variables Names

2005-01-17 Thread Jochem Maas
Phillip S. Baker wrote: Greetings All, I am generating some variable variables. I am interested for testing purposes in finding out the names of the variables that are actually being generated. Since I want to make sure that that my following conditional statements are working properly and the valu

Re: [PHP] Echoing Variables Names

2005-01-17 Thread John Holmes
Phillip S. Baker wrote: I am generating some variable variables. I am interested for testing purposes in finding out the names of the variables that are actually being generated. Since I want to make sure that that my following conditional statements are working properly and the values are set. So

[PHP] Re: PHP application for knowledge management?

2005-01-17 Thread Matthew Weier O'Phinney
* Murray @ PlanetThoughtful <[EMAIL PROTECTED]>: > --=_NextPart_000_0023_01C4FCA6.721CFE90 > Just wondering if anyone can recommend an open php source application > suitable for knowledge management for a small development team? We have 3 > coders with different responsibilities, but often have

[PHP] Re: Writing static file from dynamic PHP page

2005-01-17 Thread Matthew Weier O'Phinney
* Chris Bruce <[EMAIL PROTECTED]>: > I am looking for a way to write to a file what the browser would see > (raw html) when viewing a dynamic PHP page. I have numerous include > files, MySQL db queries, loops etc. and I want to generate the static > result of that file and save it as an html pag

Re: [PHP] Writing static file from dynamic PHP page

2005-01-17 Thread Bret Hughes
On Mon, 2005-01-17 at 21:16, Chris Bruce wrote: > Hi, > > I am looking for a way to write to a file what the browser would see > (raw html) when viewing a dynamic PHP page. I have numerous include > files, MySQL db queries, loops etc. and I want to generate the static > result of that file and

Re: [PHP] .Net Web services

2005-01-17 Thread Zareef Ahmed
Hi Michael, It would be helpful if you elaborate your problem with details like PHP version, OS, Service etc. It will increase the chances of a good response. zareef ahmed On Tue, 18 Jan 2005 11:06:16 +1000, Michael Leung <[EMAIL PROTECTED]> wrote: > Hi all, >I have a parameter passi

Re: [PHP] Echoing Variables Names

2005-01-17 Thread Greg Donald
On Mon, 17 Jan 2005 19:55:12 -0800, Phillip S. Baker <[EMAIL PROTECTED]> wrote: > I am generating some variable variables. Don't use variable variables, use arrays. > I am interested for testing purposes in finding out the names of the > variables that are actually being generated. Since I want t

[PHP] Echoing Variables Names

2005-01-17 Thread Phillip S. Baker
Greetings All, I am generating some variable variables. I am interested for testing purposes in finding out the names of the variables that are actually being generated. Since I want to make sure that that my following conditional statements are working properly and the values are set. So is ther

[PHP] Re: NT Auto Authentication?

2005-01-17 Thread Manuel Lemos
Hello, on 01/17/2005 11:53 PM Adrian Madrid said the following: Anybody figured out how to auto authenticate into a windows server? I need to have some users log through NT Authentication on their browser without typing their username and password. I was wondering if I could use PHP + COM or som

Fwd: [PHP] php editor

2005-01-17 Thread The Disguised Jedi
I use jEdit... www.jedit.org It understands most every language and you can even download a php parser plugin that checks your syntax when you save the file and underlines problems. I LOVE jEdit best of all, it is FREE & OPEN-SOURCE!! -- The Disguised Jedi [EMAIL PROTECTED] PHP rocks! "Kn

Re: [PHP] PHP application for knowledge management?

2005-01-17 Thread Jonel Rienton
Hi murray, I have used phpBB2, i know, it's a forum application but it does the job of storing information about my projects, the search is pretty cool, it works out of the box for me, maybe it will help you too. http://jonel.road14.com -- I not know English well, but I know 7 computer languages

[PHP] Writing static file from dynamic PHP page

2005-01-17 Thread Chris Bruce
Hi, I am looking for a way to write to a file what the browser would see (raw html) when viewing a dynamic PHP page. I have numerous include files, MySQL db queries, loops etc. and I want to generate the static result of that file and save it as an html page. I have toyed a little with output b

[PHP] anyone has successful to use a PHP SoapClient talking with .Net Web services?

2005-01-17 Thread Michael Leung
Hi all, anyone has successful to use a PHP SoapClient talking with .Net Web services? at this moment, that seem to no success for my testes. If anyone has successful to do this, please tell me. yours, Michael -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php

Re: [PHP] NT Auto Authentication?

2005-01-17 Thread Jochem Maas
Adrian Madrid wrote: Anybody figured out how to auto authenticate into a windows server? I no but... have a look at this: http://uranus.it.swin.edu.au/~jn/linux/php/php_smbauth.htm need to have some users log through NT Authentication on their browser without typing their username and password. I

[PHP] mail() function on linux

2005-01-17 Thread Nicolae Serban
I have this code to send an e-mail !!! $ok=mail($dest, $subject, $mesaj, "From: $expe\r\n" ."Reply-To: $expe\r\n" ."X-Mailer: PHP/" . phpversion()); It works on windows, i must change something to work on linux Thanks -- PHP General Mailing List (h

[PHP] NT Auto Authentication?

2005-01-17 Thread Adrian Madrid
Anybody figured out how to auto authenticate into a windows server? I need to have some users log through NT Authentication on their browser without typing their username and password. I was wondering if I could use PHP + COM or something like that but I can't find anything. I have found some s

[PHP] .Net Web services

2005-01-17 Thread Michael Leung
Hi all, I have a parameter passing problem by using PHP SOAP extension. .Net web services seem not to be read the parameters. yours, Michael -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Socket_connect producing errors that show no reason

2005-01-17 Thread Adam Hubscher
Jochem Maas wrote: Adam Hubscher wrote: The code looks like this: if(($sock = socket_create(AF_INET,SOCK_STREAM,SOL_TCP)) < 0){ print("Couldn't Create Socket: " . socket_strerror(socket_last_error()). "\n"); } socket_set_option($sock, SOL_SOCKET,SO_RCVTIMEO, array('sec' => 1, 'usec' => 0)); $

[PHP] PHP application for knowledge management?

2005-01-17 Thread Murray @ PlanetThoughtful
Hi All, Just wondering if anyone can recommend an open php source application suitable for knowledge management for a small development team? We have 3 coders with different responsibilities, but often have to cover each other if unexpected things happen. We're hoping to implement a knowledge m

Re: [PHP] Phonetic speller function

2005-01-17 Thread Jochem Maas
Dotan, Greg Donald wrote: On Mon, 17 Jan 2005 23:43:48 +0200, Dotan Cohen <[EMAIL PROTECTED]> wrote: I looked at the 'sound like' modules in php (leveshtien, soundex) but they are for comparing 2 strings, not creating a string based on what we already have. You're looking at it from the wrong end.

Re: [PHP] Socket_connect producing errors that show no reason

2005-01-17 Thread Jochem Maas
Adam Hubscher wrote: The code looks like this: if(($sock = socket_create(AF_INET,SOCK_STREAM,SOL_TCP)) < 0){ print("Couldn't Create Socket: " . socket_strerror(socket_last_error()). "\n"); } socket_set_option($sock, SOL_SOCKET,SO_RCVTIMEO, array('sec' => 1, 'usec' => 0)); $output = ''; for($i

Re: [PHP] $_POST array not being populated

2005-01-17 Thread Jochem Maas
Jay Blanchard wrote: [snip] I am new to the PHP world so don't give me too much grief if this has a simple solution. My problem is that the $_POST array is not being populated. I have created a form and the method of that form is "POST". I have started the session using session_start() but sti

Re: [PHP] php editor

2005-01-17 Thread Daniel Lahey
I use Dreamweaver and I absolutely love it. It's a bit pricey, though. In the latest newsletter from Apple Developer Connection, there is a notice about skEdit, which is only $20. It looks pretty nice, though I haven't tried it. Eclipse is very good, too, and it's free (phpEclipse is an ext

Re: [PHP] Phonetic speller function

2005-01-17 Thread Greg Donald
On Mon, 17 Jan 2005 23:43:48 +0200, Dotan Cohen <[EMAIL PROTECTED]> wrote: > I looked at the 'sound like' modules in php (leveshtien, soundex) but they are > for comparing 2 strings, not creating a string based on what we already have. You're looking at it from the wrong end. With soundex you cre

Re: [PHP] Re: PHP in MS-DOS

2005-01-17 Thread Andrew Kreps
On Mon, 17 Jan 2005 09:45:59 -0600, Shawn McKenzie <[EMAIL PROTECTED]> wrote: > Thanks, but I'm not running Windows, I'm running just MS-DOS from a > bootable floppy. Hence my question :-) > > PHP seems to actually be the php5ts.dll. Would there be binaries for > MS-DOS or is there a way to get

Re: [PHP] php editor

2005-01-17 Thread M Saleh EG
Zend Especialy with Zend 4.0 beta and Zend platform wow... that's all i'm gonna say. I had day on Zend 3.5 where I used to see .Net programmers openning Visual Studio.net and playing with their DB on their left hand panels on the same IDE and I used to say man..god help me with mySQLCC

Re: [PHP] Trouble with Apache 2.0, PHP and MySQL

2005-01-17 Thread Jason Barnett
Greg Donald wrote: On Fri, 14 Jan 2005 12:34:53 -0800, Phillip S. Baker <[EMAIL PROTECTED]> wrote: Any help here would be appreciated. Simple.. your PHP doesn't have MySQL support. Rebuild it or install the rpm or package or whatever. What kind of 'Linux box' is it? Greg is right. Also it's imp

Re: [PHP] Phonetic speller function

2005-01-17 Thread Dotan Cohen
I looked at the 'sound like' modules in php (leveshtien, soundex) but they are for comparing 2 strings, not creating a string based on what we already have. I see that str_replace supports regular expessions. Without devoting hours learning to write a regex, would it be inappropriate for me to

Re: [PHP] Re: Persistent PHP web application?

2005-01-17 Thread M Saleh EG
The answer would be Application-Scope vars wish we had it in PHP M.Saleh.E.G 97150-4779817 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Re: which is best php editor?

2005-01-17 Thread M Saleh EG
What's the purpose of your coding? Applications? Just some sort of dynamic code here n there? or Huge OOP application with a team of programmers? I started with PHPEdit, Moved to Magna and then tried Dreaweaver to communicate with designers. And then came Zend 2.5 n then Got shocked with Zend 3.5

Re: [PHP] Re: PHP5 silently throwing exceptions???

2005-01-17 Thread Gerard Samuel
Jochem Maas wrote: Jason Barnett wrote: Gerard Samuel wrote: ... I haven't checked the source on this one so I can't guarantee that what I've said above is true, but I believe it to be true. Someone correct me if I'm wrong (wouldn't be the first time ;) seems to me like you 'on the money'. I ju

[PHP] Re: PHP in MS-DOS

2005-01-17 Thread Michelle Konzack
Am 2005-01-17 16:56:12, schrieb Adrian: > DOS = 16bit > but I guess, PHP ist for 32+ bit ;) Where ist the problem ? Try to compile it with DJGPP :-) I was running BOA and some other stuff for demonstration. Maybe I put it back online. Good Luck Greetings Mic

Re: [PHP] question about a cron job

2005-01-17 Thread Jochem Maas
Michael Sims wrote: Jochem Maas wrote: Michael Sims wrote: "Additionally, cron checks each minute to see if its spool directory's modtime (or the modtime on /etc/crontab) has changed, and if it has, cron will then examine the modtime on all crontabs and reload those which have changed. Thus cr

Re: [PHP] use php to determine user OS

2005-01-17 Thread Graham Anderson
thanks :) On Jan 16, 2005, at 6:05 PM, Greg Donald wrote: $_SERVER[ 'HTTP_USER_AGENT' ] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] $_POST array not being populated

2005-01-17 Thread Jay Blanchard
[snip] I am new to the PHP world so don't give me too much grief if this has a simple solution. My problem is that the $_POST array is not being populated. I have created a form and the method of that form is "POST". I have started the session using session_start() but still nothing. When I

[PHP] Re: question about a cron job

2005-01-17 Thread Al
Al wrote: I've got a question about the following cronjob. #At 3:01 our time, run backups 1 0 * * * /usr/local/bin/php /www/r/rester/htdocs/auto_backup/back_em_up.php >/www/r/rester/htdocs/auto_backup/cron.log 2>&1 #At 3:02 clean up sessions folder 2 0 * * * (find /www/r/rester/htdocs/sessions/

Re: [PHP] Re: PHP in MS-DOS

2005-01-17 Thread Bret Hughes
On Mon, 2005-01-17 at 09:45, Shawn McKenzie wrote: > Thanks, but I'm not running Windows, I'm running just MS-DOS from a > bootable floppy. Hence my question :-) > > PHP seems to actually be the php5ts.dll. Would there be binaries for > MS-DOS or is there a way to get this working? > Must be

Re: [PHP] Trouble with Apache 2.0, PHP and MySQL

2005-01-17 Thread Greg Donald
On Fri, 14 Jan 2005 12:34:53 -0800, Phillip S. Baker <[EMAIL PROTECTED]> wrote: > Any help here would be appreciated. Simple.. your PHP doesn't have MySQL support. Rebuild it or install the rpm or package or whatever. What kind of 'Linux box' is it? -- Greg Donald Zend Certified Engineer http:

Re: [PHP] Re: Date()

2005-01-17 Thread Steve Buehler
At 08:33 PM 1/15/2005, you wrote: Torsten, Whatever the combination, it echos "February 02-2005February 02-2005February 02-2005". What is wrong with it? $week5 = "2005-02-14"; $firstDayTs = strtotime($week5); $lastDayTs = $firstDayTs + (4 * 86400); echo date('F', $firstDayTs) . ' ' . d

Re: [PHP] Re: Persistent PHP web application?

2005-01-17 Thread Xuefer Tinys
if u same serialized data into a file, and load it later unserialize, it's all the same as session handler do On Sun, 16 Jan 2005 18:59:44 +0100, Zouari Fourat <[EMAIL PROTECTED]> wrote: > but u dont need to reinitialise your variables every time the script > loads, u need just to init them once

Re: [PHP] Re: which is best php editor?

2005-01-17 Thread Greg Donald
On 17 Jan 2005 18:55:21 -, Matthew Weier O'Phinney <[EMAIL PROTECTED]> wrote: > Me, I use vim. Amen. -- Greg Donald Zend Certified Engineer http://destiney.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] question about a cron job

2005-01-17 Thread Al
Michael Sims wrote: Erwin Kerk wrote: The CRON daemon only refreshes it's job list after a job in the current list is completed. Therefore, the CRON daemon won't notice the "every-minute" job until 3.01 pm. I'm not sure I understand what you're saying above. Can you provide a pointer to document

Re: [PHP] Trouble with Apache 2.0, PHP and MySQL

2005-01-17 Thread Marek Kilimajer
Phillip S. Baker wrote: Greetings all, I am runnign into a strange problem. I am working on a Linux box. Running PHP 4.2.2 Apache 2.0 And it has MySQl installed on it (not sure of the version. I ran a quick script to check to make sure the connection to the DB is working fine as this is a very secu

[PHP] Trouble with Apache 2.0, PHP and MySQL

2005-01-17 Thread Phillip S. Baker
Greetings all, I am runnign into a strange problem. I am working on a Linux box. Running PHP 4.2.2 Apache 2.0 And it has MySQl installed on it (not sure of the version. I ran a quick script to check to make sure the connection to the DB is working fine as this is a very secure connection (have to

[PHP] Re: which is best php editor?

2005-01-17 Thread Matthew Weier O'Phinney
* Qt <[EMAIL PROTECTED]>: > dear Sirs, Just a reminder... there *are* women on this group, too... ;-) > I try to use a couple of php editor, but I am not satisfied with them. Which editors did you try? With what were you unsatisfied? > Any suggestion for good php editor. One that works. Serio

Re: [PHP] Finding first/last occurrence of a substring

2005-01-17 Thread Bret Hughes
On Mon, 2005-01-17 at 09:27, Vikram Vaswani wrote: > Hi > I have a string like this: > > Just when you begin to think the wagon of Vietnam-grounded movies is grinding > to a slow halt, you’re hit squarely in the face with another one. However, > while other movies depict the gory and glory o

RE: [PHP] question about a cron job

2005-01-17 Thread Michael Sims
Jochem Maas wrote: > Michael Sims wrote: >> "Additionally, cron checks each minute to see if its spool >> directory's modtime (or the modtime on /etc/crontab) has changed, >> and if it has, cron will then examine the modtime on all crontabs >> and reload those which have changed. Thus cron nee

Re: [PHP] Re: PHP5 silently throwing exceptions???

2005-01-17 Thread Jochem Maas
Jason Barnett wrote: Gerard Samuel wrote: ... I haven't checked the source on this one so I can't guarantee that what I've said above is true, but I believe it to be true. Someone correct me if I'm wrong (wouldn't be the first time ;) seems to me like you 'on the money'. I just wanted to add tha

[PHP] Socket_connect producing errors that show no reason

2005-01-17 Thread Adam Hubscher
The code looks like this: if(($sock = socket_create(AF_INET,SOCK_STREAM,SOL_TCP)) < 0){ print("Couldn't Create Socket: " . socket_strerror(socket_last_error()). "\n"); } socket_set_option($sock, SOL_SOCKET,SO_RCVTIMEO, array('sec' => 1, 'usec' => 0)); $output = ''; for($i = 0; $i < count($fil

[PHP] $_POST array not being populated

2005-01-17 Thread Bennie Foreman
Hi, I am new to the PHP world so don't give me too much grief if this has a simple solution. My problem is that the $_POST array is not being populated. I have created a form and the method of that form is "POST". I have started the session using session_start() but still nothing. When I tr

Re: [PHP] Finding first/last occurrence of a substring

2005-01-17 Thread Jochem Maas
Vikram Vaswani wrote: Hi I have a string like this: Just when you begin to think the wagon of Vietnam-grounded movies is grinding to a slow halt, you’re hit squarely in the face with another one. However, while other movies depict the gory and glory of war and its effects, this centres on the

Re: [PHP] question about a cron job

2005-01-17 Thread Jochem Maas
Michael Sims wrote: Erwin Kerk wrote: The CRON daemon only refreshes it's job list after a job in the current list is completed. Therefore, the CRON daemon won't notice the "every-minute" job until 3.01 pm. I'm not sure I understand what you're saying above. Can you provide a pointer to document

[PHP] Re: PHP in MS-DOS

2005-01-17 Thread Jason Barnett
Shawn McKenzie wrote: I have not been successful with running PHP under DOS (no windows). Is this possible? TIA, Shawn For windows specific questions you are usually better off asking on the php-windows list. Yes this is possible. What is probably happening is your PHP script is executing (a

Re: [PHP] Re: PHP5 silently throwing exceptions???

2005-01-17 Thread Jason Barnett
Jochem Maas wrote: Jason Barnett wrote: Gerard Samuel wrote: I haven't checked the source on this one so I can't guarantee that what I've said above is true, but I believe it to be true. Someone correct me if I'm wrong (wouldn't be the first time ;) seems to me like you 'on the money'. I j

[PHP] Re: $_POST array not being populated

2005-01-17 Thread Jason Barnett
Bennie Foreman wrote: Hi, I am new to the PHP world so don't give me too much grief if this has a simple solution. My problem is that the $_POST array is not being populated. I have created a form and the method of that form is "POST". I have started the session using session_start() but stil

Re: [PHP] Persistance objects + importing

2005-01-17 Thread Jochem Maas
[EMAIL PROTECTED] wrote: Hi list, I am needing some advise on the best way of importing classes and persistance, I am goingto supply some code, and would like to know if sessions or share memory is the best way for it.It currently serializes and unserializes the class from a session , i speed dep

[PHP] Re: PHP in MS-DOS

2005-01-17 Thread Shawn McKenzie
Thanks, but I'm not running Windows, I'm running just MS-DOS from a bootable floppy. Hence my question :-) PHP seems to actually be the php5ts.dll. Would there be binaries for MS-DOS or is there a way to get this working? Thanks! -Shawn Jason Barnett wrote: Shawn McKenzie wrote: I have not be

[PHP] Javascript problem

2005-01-17 Thread Gregg Healy
I am trying to get the form below to make sure the file type for the upload is a pdf file. The code below checks, but doesn¹t allow even a pdf file to upload. Can anybody shed some light on this for me? Is there an easier way to do this using JS? test page