[PHP] Php5 with .Net webservices

2005-01-17 Thread Michael Leung
Hi all, Does any one try to .net webservices by PHP5? yours, Michael -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] php5 threadsafe / apache2 mpm=worker

2005-01-17 Thread Rasmus Lerdorf
On Fri, 14 Jan 2005, Jason Morehouse wrote: > Just wondering if anyone is using the apache worker module with php? > > I've complied php5 with zend threadsafe support, and apache2 with the > MPM worker module on a Linux box. Everything seems sweet. > mysqli_thread_safe() reports true... anyone kno

Re: [PHP] Best method for threading?

2005-01-17 Thread Rasmus Lerdorf
On Wed, 12 Jan 2005, Galen wrote: > I'm working on a web spider application where the server has > considerable latency in serving the information I require, but > simultaneous requests do not have a significant performance hit. I have > a nice little class that handles all the sessions, cookies, e

[PHP] $_POST

2005-01-17 Thread Andrew Maxwell
When you submit something, and you want to make sure that the user inputs all of the info, is there an easier way to do it than this: if ((!$_POST[name]) || !$_POST[pass]) || (!$_POST[blah])) { etc. } is there an easy way to check if all of the varibles have data in them? ~Andrew -- PHP Ge

[PHP] Re: $_POST

2005-01-17 Thread Adam Hubscher
Andrew Maxwell wrote: When you submit something, and you want to make sure that the user inputs all of the info, is there an easier way to do it than this: if ((!$_POST[name]) || !$_POST[pass]) || (!$_POST[blah])) { etc. } is there an easy way to check if all of the varibles have data in them?

Re: [PHP] $_POST

2005-01-17 Thread Ville Mattila
Andrew Maxwell wrote: When you submit something, and you want to make sure that the user inputs all of the info, is there an easier way to do it than this: One method I've done that is to create an array with the required field names, then loop it through and check whether they all have a value.

Re: [PHP] $_POST

2005-01-17 Thread Andrew Maxwell
Thats exactly what i need. Thanks a ton. ~Andrew On Mon, 17 Jan 2005 10:58:07 +0200, Ville Mattila <[EMAIL PROTECTED]> wrote: > Andrew Maxwell wrote: > > When you submit something, and you want to make sure that the user > > inputs all of the info, is there an easier way to do it than this: > >

Re: [PHP] $_POST

2005-01-17 Thread Rasmus Lerdorf
Andrew Maxwell wrote: When you submit something, and you want to make sure that the user inputs all of the info, is there an easier way to do it than this: if ((!$_POST[name]) || !$_POST[pass]) || (!$_POST[blah])) { etc. } is there an easy way to check if all of the varibles have data in them?

[PHP] Obtaining the base dir of a file in a web server

2005-01-17 Thread Juan Antonio Garrido
Hi everybody: I use this sentence ($htmlFile = $_SERVER['DOCUMENT_ROOT'] ) for obtaining the complete route of a file in my web server, but  inserts a white space to final char and i need remove it. I use the trim function but it continue there. How can i remove it? Can it be anohter char? --

Re: [PHP] php editor

2005-01-17 Thread Benjamin Edwards
Or you could get phpeclipse for free which is a php IDE. It all depends on weather you are a web designer or a php developer. If you are both you will still want an IDE (Integrated Development Enviroment) and Probably a debugger (see my previous email about phped). If you can aford to throw y

[PHP] Javascript newsgroup

2005-01-17 Thread Ross Hulford
Hi, I need to find a good Javascript newsgroup. Thanks, Ross -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] can you solve this problem with regex ?

2005-01-17 Thread Marek Kilimajer
Zouari Fourat wrote: Hello ! My user can input values like this : 15.2 10-5 10 0 0x5 005 00 to be clear, i must extract two values from each line, each value is between 1 and 20 and seaparated with a non numeric caracter, so with lines 1,2,3 and 4 i will get : Array([0]=>15, [1]=>2); Array([0]=>10,

Re: [PHP] can you solve this problem with regex ?

2005-01-17 Thread Zouari Fourat
i found that this was better : list($ar[0], $ar[1]) = preg_split('/[^0-9]/', $string); On Mon, 17 Jan 2005 11:27:38 +0100, Marek Kilimajer <[EMAIL PROTECTED]> wrote: > Zouari Fourat wrote: > > Hello ! > > My user can input values like this : > > > > 15.2 > > 10-5 > > 10 0 > > 0x5 > > 005 > > 00 >

[PHP] $_REQUEST or $_POST?

2005-01-17 Thread gustav
Hi there! I've learned to use $_REQUEST but it seems to me that it uses any $_GEt, or $_POST. Is it better to $_POST when I'm just using $_POST? It seems like that if I want "good code", but I mean is it faster with $_POST? /G @varupiraten.se -- PHP General Mailing List (http://www.php.net/) To

[PHP] can you solve this problem with regex ?

2005-01-17 Thread Zouari Fourat
Hello ! My user can input values like this : 15.2 10-5 10 0 0x5 005 00 to be clear, i must extract two values from each line, each value is between 1 and 20 and seaparated with a non numeric caracter, so with lines 1,2,3 and 4 i will get : Array([0]=>15, [1]=>2); Array([0]=>10, [1]=>5); Array([0

[PHP] PHPED PHP IDE (wasRe: [PHP] php editor)

2005-01-17 Thread Benjamin Edwards
Whats the story with this. It seems too good to be true. A fully featured IDE/Debugger released under some sort of free software licence. The site you link to seems indicate that is is free software, it has a sourceforge.net logo at the botton. However nuspere are selling it for £299. what is

RE: [PHP] Javascript newsgroup

2005-01-17 Thread Jay Blanchard
[snip] I need to find a good Javascript newsgroup. [/snip] Are you familiar with Google? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Apache thread exploding in memory size

2005-01-17 Thread N.Z. Bear
Folks: I am experiencing a problem with httpd child processes suddenly exploding in memory size and consuming all available memory. The behavior is sudden, not gradual: within a few seconds or a minute the process swells to several orders of magnitude larger than its usual size. Listed below is

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

2005-01-17 Thread Jason Barnett
Gerard Samuel wrote: Im currently using php 5.0.3 on a dev box, trying to figure out how to correctly use exceptions in my code. Exceptions can be "A Good Thing". Per chance, I was monitoring the __autoload() function, and Im noticing that calls are being made to exception classes that I've setup.

[PHP] Re: Obtaining the base dir of a file in a web server

2005-01-17 Thread Jason Barnett
Juan Antonio Garrido wrote: Hi everybody: I use this sentence ($htmlFile = $_SERVER['DOCUMENT_ROOT'] ) for obtaining the complete route of a file in my web server, but inserts a white space to final char and i need remove it. I use the trim function but it continue there. How can i remove it? C

[PHP] question about a cron job

2005-01-17 Thread Al
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/ -name 'sess_

[PHP] Returned mail: Data format error

2005-01-17 Thread alan
Message could not be delivered -- 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 Jay Blanchard
[snip] 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/s

Re: [PHP] Obtaining the base dir of a file in a web server

2005-01-17 Thread Leif Gregory
Hello Juan, Monday, January 17, 2005, 2:23:23 AM, you wrote: JAG> I use this sentence ($htmlFile = $_SERVER['DOCUMENT_ROOT'] ) for JAG> obtaining the complete route of a file in my web server, but JAG>  inserts a white space to final char and i need remove it. I use JAG> the trim function but it c

Re: [PHP] Apache thread exploding in memory size

2005-01-17 Thread Marek Kilimajer
N.Z. Bear wrote: Folks: I am experiencing a problem with httpd child processes suddenly exploding in memory size and consuming all available memory. The behavior is sudden, not gradual: within a few seconds or a minute the process swells to several orders of magnitude larger than its usual size.

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

2005-01-17 Thread Gerard Samuel
Jason Barnett wrote: Gerard Samuel wrote: Im currently using php 5.0.3 on a dev box, trying to figure out how to correctly use exceptions in my code. Exceptions can be "A Good Thing". Per chance, I was monitoring the __autoload() function, and Im noticing that calls are being made to exception cla

Re: [PHP] question about a cron job

2005-01-17 Thread Al
Jay Blanchard wrote: [snip] 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/ht

Re: [PHP] question about a cron job

2005-01-17 Thread Erwin Kerk
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] question about a cron job

2005-01-17 Thread Michael Sims
>> #this is only for testing a new cronjob, every minute >> * * * * * /usr/local/bin/php > /www/r/rester/htdocs/phpList_cronjob/process_cronjob.php >>> /www/r/rester/htdocs/phpList_cronjob/cron.log 2>>&1 >> > > The new one doesn't seem to want to run until after 3:01 or 3:02. > Shouldn't the > seve

Re: [PHP] $_REQUEST or $_POST?

2005-01-17 Thread Chris Shiflett
--- [EMAIL PROTECTED] wrote: > I've learned to use $_REQUEST but it seems to me that it uses any > $_GEt, or $_POST. Is it better to $_POST when I'm just using > $_POST? It seems like that if I want "good code", but I mean is it > faster with $_POST? It's not faster, but it is a better practice. I

Re: [PHP] question about a cron job

2005-01-17 Thread Al
Erwin Kerk wrote: 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

[PHP] PHP in MS-DOS

2005-01-17 Thread Shawn McKenzie
I have not been successful with running PHP under DOS (no windows). Is this possible? TIA, Shawn -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

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

2005-01-17 Thread Jason Barnett
Gerard Samuel wrote: Jason Barnett wrote: Gerard Samuel wrote: I've debugged it down to this -> //try //{ $db->connect(); //} //catch(databaseException $e) //{ //throw $e; //} The ::connect() method is supposed to throw a databaseException if a connection cannot be made. In my tests, connec

[PHP] Finding first/last occurrence of a substring

2005-01-17 Thread Vikram Vaswani
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 psychology of troop

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

2005-01-17 Thread Jay Blanchard
[snip] 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 psychology of troo

Re: [PHP] question about a cron job

2005-01-17 Thread Bret Hughes
On Mon, 2005-01-17 at 09:01, Erwin Kerk wrote: > 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

RE: [PHP] question about a cron job

2005-01-17 Thread Michael Sims
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 documentation about th

Re: [PHP] PHP in MS-DOS

2005-01-17 Thread Adrian
DOS = 16bit but I guess, PHP ist for 32+ bit ;) -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: PHP in MS-DOS

2005-01-17 Thread Jason Barnett
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? Thanks! -Shawn You darn trickster... don't tell m

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

2005-01-17 Thread Gerard Samuel
Jason Barnett wrote: Gerard Samuel wrote: Jason Barnett wrote: Gerard Samuel wrote: I've debugged it down to this -> //try //{ $db->connect(); //} //catch(databaseException $e) //{ //throw $e; //} The ::connect() method is supposed to throw a databaseException if a connection cannot be made

Re: [PHP] PHP in MS-DOS

2005-01-17 Thread Mike Smith
On Mon, 17 Jan 2005 09:23:19 -0600, Shawn McKenzie <[EMAIL PROTECTED]> wrote: > I have not been successful with running PHP under DOS (no windows). Is > this possible? > > TIA, > Shawn Have you downloaded the PHP zip file and added c:\php (or wherever you extract it) to your path? Mike -- PH

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

2005-01-17 Thread Benjamin Edwards
You need to use regular expresions, I think there is a regex_replace frunction (or something like that). http://etext.lib.virginia.edu/helpsheets/regex.html is a fairly good introduction to regular expresions - learn to love them ;) >>> Vikram Vaswani <[EMAIL PROTECTED]> 01/17/05 03:27pm >>> Hi

Re: [PHP] question about a cron job

2005-01-17 Thread Jason Wong
On Monday 17 January 2005 23:19, Al wrote: > Erwin Kerk wrote: > > Al 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. Not sure if I've misunderstood what Al i

[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