[PHP] Re: php-general =?unknown?b?zOG5qUNETUHO3s/fuau7sLL6xrc=?=

2003-11-22 Thread L-Soft list server at LISTS.NAU.EDU (1.8d)
ÄãºÃ! Unknown command - ÄúÃ!. Try HELP. ÎÒ¹«Ë¾ÌṩCDMAÎÞÏß¹«»°²úÆ·,²úÆ·°üÀ¨CDMAת½ÓºÐ/CDMAÉÌÎñµç»°,ÓÐÒÔÏÂ4ÖÖ·þÎñ Unknown command - ÎÒ¹«Ë¾ÌÁ¹©CDMAÎÞÏß¹«»°²ÚÆ·,²ÚÆ·°ÜÀ¨CDMAת½ÓºÐ. Try HELP. ·½Ê½: Unknown command - ·½Ê½:. Try HELP. (1)Ö±½ÓÏúÊÛÎÒ¹«Ë¾Æ·ÅƵÄCDMAÎÞÏß¹«»°²úÆ·. Unknown command -

Re: [PHP] Error 1045

2003-11-22 Thread Burhan Khalid
ike strong wrote: I don't know if this is the right place to ask this, This is not the right place to ask this. Ask on a MySQL mailing list. This is php. but can anyone help me to figure out why each time I try to access my database using: c:\mysql\bin\inmysql -root -p In windows --

[PHP] Re: Running PHP for different virtual domains on different Apaches

2003-11-22 Thread Tim Garton
Philip Mak wrote: Something that I wrote recently that I thought may be of general interest for system administrators running PHP: The web server runs on port 80, with the priviledges of the username apache. On most webhosts that support PHP, this web server executes the PHP scripts. The PHP

[PHP] PHP Based Web Hosting Management

2003-11-22 Thread Nigel Jones
I am looking for a reasonable free Web Host Management System that is mainly based in PHP(so I can modify it a bit to my liking) I have used WebCP(webcp.can-host.com) but it is too buggy to be worth fixing. All suggestions welcome. _ Nigel Jones [EMAIL PROTECTED] -- PHP

Re: [PHP] Re: Running PHP for different virtual domains on different Apaches

2003-11-22 Thread Marek Kilimajer
Tim Garton wrote: Problem #2 is that the use of PHP makes each Apache process consume more memory. The process consumes more memory even when it is serving static (non-PHP) files such as a JPG. It would be more efficient to have a pool of small processes serving static files, and some larger

Re: Re[2]: [PHP] passthru gives error in httpd/error_log

2003-11-22 Thread Jesper Hansen
Then there must be some kind of restriction on the server, Is it running in chrooot enviroment. Try copying ls to a directory in the server root and try again. -- regards, Tom I've tried that too, with ls and other programs in the local directory where the script was located. And with

[PHP] Execute programs

2003-11-22 Thread Bas
How do i execute a program and leave it running and while it is running the php-script is still continued and outputs HTML when the other program is still running. I need that is works on windows. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

Re: [PHP] Execute programs

2003-11-22 Thread John Nichel
Bas wrote: How do i execute a program and leave it running and while it is running the php-script is still continued and outputs HTML when the other program is still running. I need that is works on windows. Oh, ohmanual http://www.php.net/manual/en/ref.exec.php -- By-Tor.com It's all

Re: [PHP] Execute programs

2003-11-22 Thread Bas
John Nichel [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Bas wrote: How do i execute a program and leave it running and while it is running the php-script is still continued and outputs HTML when the other program is still running. I need that is works on windows. Oh,

Re: [PHP] Execute programs

2003-11-22 Thread John Nichel
Bas wrote: John Nichel [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Bas wrote: How do i execute a program and leave it running and while it is running the php-script is still continued and outputs HTML when the other program is still running. I need that is works on windows. Oh,

php-general Digest 22 Nov 2003 14:28:50 -0000 Issue 2430

2003-11-22 Thread php-general-digest-help
php-general Digest 22 Nov 2003 14:28:50 - Issue 2430 Topics (messages 170644 through 170667): Re: looking for some software (helpdesk, intranet) 170644 by: Tim Garton 170653 by: Jason Wong Re: question about security 170645 by: Chris W. Parker 170647 by:

[PHP] An Application Server in PHP

2003-11-22 Thread Luca Mariano
Hi guys, some times ago I started a project called PHPlet with this purpose: implement an application server where phplet can be deployed. phplet are just like Java servlets, they have init(), destroy() and service() methods; they run into the phplet container, from which they receive an

[PHP] Textfields dont fully populate

2003-11-22 Thread PAUL FERRIE
Hello again guys This week i have been on here and made a few posts regarding a small admin site app http://thor.ancilenetworks.co.uk/~pferrie/vinrev/adm/myadmin.html Most of it is now working thank god, but still have have problems fully populating the textfields when i go to edit a record.

[PHP] Re: Textfields dont fully populate

2003-11-22 Thread Bas
Paul Ferrie [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Hello again guys This week i have been on here and made a few posts regarding a small admin site app http://thor.ancilenetworks.co.uk/~pferrie/vinrev/adm/myadmin.html Most of it is now working thank god, but still

[PHP] Re: Textfields dont fully populate

2003-11-22 Thread PAUL FERRIE
Sorry m8 i am a total newbie to php+html, I dont get these problems with PHP+Flash Here is the code i am using to return the edit page with the data. $result = mysql_query(SELECT * FROM $tablename WHERE id= $id)or die(brther was an errorbr tablename:= $tablenamebr

Re: [PHP] looking for some software (helpdesk, intranet)

2003-11-22 Thread Patrick
At 03:49 PM 11/21/2003 -0800, Chris W. Parker wrote: I'm looking for some helpdesk software and some intranet software with a MySQL backend. I use OneOrZero's helpdesk software for a couple of sites. Here's the website: http://helpdesk.oneorzero.com/ It's not perfect, but it's free. Plus their

Re: [PHP] Java and PHP

2003-11-22 Thread Raditha Dissanayake
hi The same way that you invoke any other system binary with backticks, exec etc like this: `java javasystem -scenario`; NOTE: using java objects directly in PHP is a different kettle of fish altogether, there are some interesting articles on that topic on many web sites including

[PHP] Re: Textfields dont fully populate

2003-11-22 Thread Bas
Just change your code to: $result = mysql_query(SELECT * FROM $tablename WHERE id= $id)or die(brther was an errorbr tablename:= $tablenamebr row id:= $id); if ($myrow = mysql_fetch_array($result)) { echo form method='post'

[PHP] Re: Textfields dont fully populate

2003-11-22 Thread PAUL FERRIE
Thank you Bas, i cant believe that once again it has been down to simple syntx cheers Bas [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] b1.pair.com... Just change your code to: $result = mysql_query(SELECT * FROM $tablename WHERE id= $id)or die(brther was an errorbr

[PHP] Form with browse for file to upload ftp

2003-11-22 Thread PAUL FERRIE
Getting bit of a regular on here :) I am hoping that someone can point me to a script that allows me to attach a file to be uploaded to a set dir. I have already got the form built, except for a browse file option. The form is part of this admin area

Re: [PHP] Form with browse for file to upload ftp

2003-11-22 Thread Nathan Taylor
There is nothing special to be done with the form itself for it to support file uploading aside from supply a browse field: input type=file name=file As for uploading it, here's some untested code: if(!empty($_FILES['file']['tmp_name'])) { $name = strtolower(eregi_replace('#| |\?|!', '',

Re: [PHP] Form with browse for file to upload ftp

2003-11-22 Thread Nathan Taylor
There is nothing special to be done with the form itself for it to support file uploading aside from supply a browse field: input type=file name=file As for uploading it, here's some untested code: if(!empty($_FILES['file']['tmp_name'])) { $name = strtolower(eregi_replace('#| |\?|!', '',

Re: [PHP] Form with browse for file to upload ftp

2003-11-22 Thread Nathan Taylor
Oh and also, don't forget to set: enctype=multipart/form-data in the form tag. Nathan - Original Message - From: Nathan Taylor To: PAUL FERRIE ; [EMAIL PROTECTED] Sent: Saturday, November 22, 2003 2:20 PM Subject: Re: [PHP] Form with browse for file to upload ftp There is

[PHP] Php ignores if statement

2003-11-22 Thread Pieter
I recently started coding online and i have the weirdest response, my code is: ?php include 'function.inc'; echo $idbr; print (gettype($id)); if ($id = add ) { echo is add; exit; } if ($id = own ) { echo id is own; exit; } if ($id = all ) { echo id is all; exit; } ? $id in

Re: [PHP] Php ignores if statement

2003-11-22 Thread RT
On Sat, 2003-11-22 at 13:57, Pieter wrote: I recently started coding online and i have the weirdest response, my code is: ?php include 'function.inc'; echo $idbr; print (gettype($id)); if ($id = add ) { echo is add; exit; } if ($id = own ) { echo id is

Re: [PHP] Php ignores if statement

2003-11-22 Thread John Nichel
Pieter wrote: I recently started coding online and i have the weirdest response, my code is: ?php include 'function.inc'; echo $idbr; print (gettype($id)); if ($id = add ) { echo is add; exit; } snip '=' sets value. '==' checks equality.

Re: [PHP] Form with browse for file to upload ftp

2003-11-22 Thread PAUL FERRIE
I am getting this error once i run the script Warning: move_uploaded_file(img/matrix.jpg): failed to open stream: Permission denied in /blah/blah Do i need to set the chmod of the img folder? Cheers Paul Nathan Taylor [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] There is nothing

RE: [PHP] Form with browse for file to upload ftp

2003-11-22 Thread Bronislav Kluka
User executing the script (www-data or nobody or some other user) has to vave the permission to wotk with this directory. Brona I am getting this error once i run the script Warning: move_uploaded_file(img/matrix.jpg): failed to open stream: Permission denied in /blah/blah Do i need to

Re: [PHP] Form with browse for file to upload ftp

2003-11-22 Thread PAUL FERRIE
eh? Bronislav kluèka [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] User executing the script (www-data or nobody or some other user) has to vave the permission to wotk with this directory. Brona I am getting this error once i run the script Warning:

Re: [PHP] Form with browse for file to upload ftp

2003-11-22 Thread Eugene Lee
On Sat, Nov 22, 2003 at 08:18:30PM -, PAUL FERRIE wrote: : : Bronislav kluèka [EMAIL PROTECTED] wrote in message : news:[EMAIL PROTECTED] : : User executing the script (www-data or nobody or some other user) has to : vave the permission to wotk with this directory. : : eh? I think he

Re: [PHP] Form with browse for file to upload ftp

2003-11-22 Thread Martin Hudec
Hello, He said that you have to check under which user/group is your webserver running (webserver is handling the scripts)... and then set the correct file/directory permissions on that /blah/blah directory.. yes u have to set at least chmod but look to chown also... On Saturday 22

Re: [PHP] Form with browse for file to upload ftp

2003-11-22 Thread John Nichel
PAUL FERRIE wrote: I am getting this error once i run the script Warning: move_uploaded_file(img/matrix.jpg): failed to open stream: Permission denied in /blah/blah Do i need to set the chmod of the img folder? Cheers Paul snip The user or group that your webserver is running as (default for

[PHP] Re: Form with browse for file to upload ftp

2003-11-22 Thread PAUL FERRIE
Got it working :) thanks for the help Paul Paul Ferrie [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Getting bit of a regular on here :) I am hoping that someone can point me to a script that allows me to attach a file to be uploaded to a set dir. I have already got the form

Re: [PHP] Php ignores if statement

2003-11-22 Thread Chris Shiflett
--- Pieter [EMAIL PROTECTED] wrote: I recently started coding online and i have the weirdest response, my code is: if ($id = add ) When you convert the string add to a boolean, it equates to true. I'm assuming you want to be using a conditional expression rather than an assignment

[PHP] SQLITE

2003-11-22 Thread Bronislav Kluka
Hi, I've got questions: I've got sqlite like PHP module (under windows). I tried this: a)execute script 1 (selecting from some table), it tooks 2 minutes b)execute script 2 , it tooks 3 minutes c)execute them both at the same time (from different browser windows), both of

Re: [PHP] SQLITE

2003-11-22 Thread Chris Shiflett
--- Bronislav_Kluèka [EMAIL PROTECTED] wrote: Hi, I've got questions: I only noticed one. I've got sqlite like PHP module (under windows). I tried this: a)execute script 1 (selecting from some table), it tooks 2 minutes b)execute script 2 , it tooks 3 minutes c)execute them both at the same

[PHP] RE: [PHP-DB] Re: [PHP] SQLITE

2003-11-22 Thread Bronislav Klucka
That's my code: $dbfile=db.sdb; $db=sqlite_open($dbfile); $res=sqlite_query($db,select a.*,b.* from a left join b on a.id=b.id_a where a.name like \%1%\ or b.street like \%1%\ order by cellphone); echo sqlite_num_rows($res).CRLF; sqlite_close($db); It's realy just benchmark I've done. I'm pretty

Re: [PHP] Re: Form with browse for file to upload ftp

2003-11-22 Thread Nathan Taylor
Glad to be of service. =) - Original Message - From: PAUL FERRIE To: [EMAIL PROTECTED] Sent: Saturday, November 22, 2003 3:52 PM Subject: [PHP] Re: Form with browse for file to upload ftp Got it working :) thanks for the help Paul Paul Ferrie [EMAIL PROTECTED]

[PHP] Certificate failure for (IMAP)

2003-11-22 Thread QT
Dear Sirs, I try to connect to email inbox via IMAP but I am getting folowing error: Certificate failure for xx self signed certificate: /C=--/ST=SomeState/L=SomeCity Any idea what is it mean? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

[PHP] $_GET String Edit

2003-11-22 Thread Jed R. Brubaker
Hey - this one should be simple. I am parsing some data and have $_GET variables in the URL stipulating on which record to start and how many records to display (these then get basses to the limit command in my database query). So here is the catch. I am trying to make a page navigation menu

php-general Digest 23 Nov 2003 03:02:09 -0000 Issue 2431

2003-11-22 Thread php-general-digest-help
php-general Digest 23 Nov 2003 03:02:09 - Issue 2431 Topics (messages 170668 through 170696): An Application Server in PHP 170668 by: Luca Mariano Textfields dont fully populate 170669 by: PAUL FERRIE 170670 by: Bas 170671 by: PAUL FERRIE 170674 by:

Re: [PHP] Execute programs

2003-11-22 Thread Eric Wood
- Original Message - If you start a program using this function and want to leave it running in the background, you have to make sure that the output of that program is redirected to a file or some other output stream or else PHP will hang until the execution of the program ends.

Re: [PHP] $_GET String Edit

2003-11-22 Thread Chris Shiflett
--- Jed R. Brubaker [EMAIL PROTECTED] wrote: I am trying to make a page navigation menu (we have all seen them, Page: 1 2 3...), and I would like to continue doing this via the URL variables. Right now, each of the page numbers is a hyper link is set like this:

Re: [PHP] $_GET String Edit

2003-11-22 Thread Jed R. Brubaker
Sorry for the confusing initial request. You were correct in assuming that I am generating URLs like: page.php?foo1=bar1foo2=bar2foo1=bar3foo2=bar4 So I suppose the consise follow-up question is how can I get a hyperlink to change one of those varibles in the string. In the past I have just

[PHP] ldap_search() question

2003-11-22 Thread Schechter, Ricky
Do I use ldap_search to authenticate users in LDAP? I can successfully search the LDAP and retrieve user's data based on a search criteria like (cn=something). If I use (password=somepass) or (userPassword=somepass) in the search criteria it comes back with no hits. How should this be done?

Re: [PHP] $_GET String Edit

2003-11-22 Thread Chris Shiflett
--- Jed R. Brubaker [EMAIL PROTECTED] wrote: Sorry for the confusing initial request. You were correct in assuming that I am generating URLs like: page.php?foo1=bar1foo2=bar2foo1=bar3foo2=bar4 So I suppose the consise follow-up question is how can I get a hyperlink to change one of those

[PHP] function that appends dollar symbol

2003-11-22 Thread Joffrey Leevy
Hi all: The money_format function does not do it for me. Is there a simple php function which appends the '$' symbol to a string value. Example $money = 30 $money = some_php_function($money) echo $money //should show $30 thanks __ Do you Yahoo!? Free

Re: [PHP] function that appends dollar symbol

2003-11-22 Thread John Nichel
Joffrey Leevy wrote: Hi all: The money_format function does not do it for me. Is there a simple php function which appends the '$' symbol to a string value. Example $money = 30 $money = some_php_function($money) echo $money //should show $30 thanks How 'bout... $money = '$' . 30; --

Re: [PHP] function that appends dollar symbol

2003-11-22 Thread Robert Cummings
On Sat, 2003-11-22 at 23:35, John Nichel wrote: Joffrey Leevy wrote: Hi all: The money_format function does not do it for me. Is there a simple php function which appends the '$' symbol to a string value. Example $money = 30 $money = some_php_function($money) echo $money

[PHP] Why MySql doesn't free space when erasing BLOB fields?

2003-11-22 Thread M
Hello, sorry this mysql question here, but I cant't answer this one. I have database with BLOB fields to hold pictures (60-90 kb each). Actually I am erasing these BLOB fields (move '' into and update rcord) to free some space from my DB, but space is not released by mysql. I verified BLOB fields

[PHP] Temporarily signing off

2003-11-22 Thread Becoming Digital
Unfortunately, I just can't keep up with the list traffic right now so I'll be unsubscribing for a bit. If anyone needs to reach me, please use this address. Thanks for all the help. Edward Dudlik Becoming Digital www.becomingdigital.com -- PHP General Mailing List (http://www.php.net/) To

RE: [PHP] Why MySql doesn't free space when erasing BLOB fields?

2003-11-22 Thread Nigel Jones
ummm Flush maybe _ Nigel Jones [EMAIL PROTECTED] -Original Message- From: M [mailto:[EMAIL PROTECTED] Sent: Sunday, November 23, 2003 5:57 PM To: [EMAIL PROTECTED] Subject: [PHP] Why MySql doesn't free space when erasing BLOB fields? Hello, sorry this mysql

Re: [PHP] Certificate failure for (IMAP)

2003-11-22 Thread Jason Wong
On Sunday 23 November 2003 18:49, QT wrote: I try to connect to email inbox via IMAP but I am getting folowing error: Certificate failure for xx self signed certificate: /C=--/ST=SomeState/L=SomeCity What code are you using? And have you studied the examples for imap_open()? -- Jason

Re: [PHP] function that appends dollar symbol

2003-11-22 Thread Ryan A
/* Hmmm, that's prepending... how about: $money = 30.'$'; or if he wants it at the beginning: $money = strrev( strrev( '30' ).'$' ); *heheh* Rob. */ Pretty damn good and didnt require the installation of Interjinn either!!! Hehehe Peace. -Ryan -- PHP General Mailing List

Re: [PHP] passthru gives error in httpd/error_log

2003-11-22 Thread Jason Wong
On Friday 21 November 2003 08:53, Jesper Hansen wrote: I'm trying to run a super simple command through passthru. Here's my test.php file: htmlbody ? passthru('ls -l'); ? /body/html It works if run directly with php test.php. When this is run from the browser, there is no output, and