Re: [PHP] Re: Binary Files :: They Keep Adding Blocks

2002-07-17 Thread Jason Wong
On Thursday 18 July 2002 13:14, vins wrote: > How do i debug. > Thats why i asked echo/print out key variables at strategic points in the code. Ensure that they contain what you expect them to contain. -- Jason Wong -> Gremlins Associates -> www.gremlins.com.hk Open Source Software Systems Int

[PHP] Re: Sessions / logins / cookies / security

2002-07-17 Thread Peter James
There's a good article on authentication at phpbuilder.com http://www.phpbuilder.com/columns/tim2505.php3 that may provide an idea or two. - Original Message - From: "Chad Day" <[EMAIL PROTECTED]> Newsgroups: php.general To: <[EMAIL PROTECTED]> Sent: Tuesday, July 16, 2002 10:30 AM

RE: [PHP] why my php can not get values from Form?

2002-07-17 Thread Balaji Ankem
Enable Rigister_globals to On in php.ini file and then try. Best Regards Balaji -Original Message- From: ram friend [mailto:[EMAIL PROTECTED]] Sent: Thursday, July 18, 2002 11:12 AM To: [EMAIL PROTECTED] Subject: [PHP] why my php can not get values from Form? hello, I have just instal

Re: [PHP] why my php can not get values from Form?

2002-07-17 Thread Jadiel Flores
Probably you don't have the Register Global turned on in your php.ini, try using $_GET['usernm'] and $_GET['passwd'] or change your php.ini At 01:41 p.m. 07/18/2002 +0800, you wrote: >hello, >I have just installed apache+php4, but my php can not get values from form? >what's wrong? >following is

[PHP] why my php can not get values from Form?

2002-07-17 Thread ram friend
hello, I have just installed apache+php4, but my php can not get values from form? what's wrong? following is the code in php named file "welcome.php" I called it with http://localhost/welcome?username=&passwd=bbb i get nothing, what's wrong? -- PHP General Mailing List (http://www.php

Re: [PHP] Importing CSV File : 100000 Rows!

2002-07-17 Thread Analysis & Solutions
On Wed, Jul 17, 2002 at 10:33:50PM -0700, Thomas Edison Jr. wrote: > > Basically the problem is that i have to connect from > my localhost to my MySQL database on the > server/internet. I don't have command prompt access to > the internet database... But, if you have the mysql terminal software

Re: [PHP] querying for one specific row number

2002-07-17 Thread Justin French
For starters, this is a PHP list, not MySQL. Check out the LIMIT statement in the MySQL manual. Or, if you have a primary key field like id and you KNOW that id#2 will be there, then it's a simple SELECT * FROM mytable WHERE id='2' But in the case where id#2 has been deleted, you really want

Re: [PHP] Importing CSV File : 100000 Rows!

2002-07-17 Thread Thomas Edison Jr.
Hi, Basically the problem is that i have to connect from my localhost to my MySQL database on the server/internet. I don't have command prompt access to the internet database... --- Pradeep Dsouza <[EMAIL PROTECTED]> wrote: > > there is a way to do it from the prompt > > I use Windows but th

Re: [PHP] Importing CSV File : 100000 Rows!

2002-07-17 Thread Jason Reid
First off, does your mysql DB allow you to connect remotly (not including phpmyadmin). If so, I'd suggest www.anse.de/mysqlfront, and use that to connect to the database, and import the .csv through that. I can see the file maybe not fully uploading, due to possibly the max file size in php, as 10

[PHP] Importing CSV File : 100000 Rows!

2002-07-17 Thread Thomas Edison Jr.
Hi, I have generated a .csv file from a .dat file using a VB program. Now this .csv file needs to be imported into my mySQL Database Table on the internet, using phpMyAdmin. The problem i'm facing is that the file, while uploading, stops somewhere in the middle. The upload just gets stuck. Pos

RE: [PHP] Require some help about the date comparison

2002-07-17 Thread Manisha
Thanks to all who responded me. Actually I got confused after seeing so many commands but finally got it correct from u guys. Thanks once again. Manisha -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: Binary Files :: They Keep Adding Blocks

2002-07-17 Thread vins
How do i debug. Thats why i asked "Vins" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > Hi > I've just made this script to update a binary file for my BIND 9 DNS server. > > === > $WorkFile = "domains/db.nom.za"; > $buffer = file($W

[PHP] Re: preg_replace_callback

2002-07-17 Thread CC Zona
In article <[EMAIL PROTECTED]>, [EMAIL PROTECTED] (Rafael Fernandes) wrote: > First, sorry for my elementary english... > I need a function made for PHP3 that works like preg_replace_callback... Before preg_replace_callback() was introduced, preg_replace() used to have another an "f" modifier

[PHP] Re: Regular expression for correcting proper nouns

2002-07-17 Thread CC Zona
In article <[EMAIL PROTECTED]>, [EMAIL PROTECTED] (Henry) wrote: > I'm looking for a simple was to correct a list of proper nouns given all in > lower case! > > For example > > given $string="london paris rome"; > > I would like "London Paris Rome". > > However there is one cavet; if the wor

Re: [PHP] Creating Dynamic Variables

2002-07-17 Thread Michael Sims
On Wed, 17 Jul 2002 22:39:10 -0400, you wrote: >Hello, I have captured variables from any HTML that is POSTed to me from a >'foreach' clause. Now, possibly in this foreach clause I want to register >these name/value pairs into a session var. I have tried : >session_start(); >foreach ($HTTP_POST_V

Re: [PHP] Creating Dynamic Variables

2002-07-17 Thread Pushkar Pradhan
Try putting "" around name in session_register? > Hello, I have captured variables from any HTML that is POSTed to me from a > 'foreach' clause. Now, possibly in this foreach clause I want to register > these name/value pairs into a session var. I have tried : > session_start(); > foreach ($HTTP_P

RE: [PHP] Creating Dynamic Variables

2002-07-17 Thread Martin Towell
I think you're more after this session_start(); foreach ($HTTP_POST_VARS as $name=>$value) { $$name=$value; session_register($name); //with the $ } HTH Martin -Original Message- From: Anup [mailto:[EMAIL PROTECTED]] Sent: Thursday, July 18, 2002 12:39 PM To: [EMAIL PROTECTED] Subject: [

Re: [PHP] Format 24 hr time to 12 hr time

2002-07-17 Thread Jason Wong
On Thursday 18 July 2002 05:31, Ryan wrote: > How do you format this for example: 13:58:00 into 1:58 PM Manual > Date and Time functions -- Jason Wong -> Gremlins Associates -> www.gremlins.com.hk Open Source Software Systems Integrators * Web Design & Hosting * Internet & Intranet Applications

Re: [PHP] Binary Files :: They Keep Adding Blocks

2002-07-17 Thread Jason Wong
On Thursday 18 July 2002 06:57, vins wrote: > Hi > I've just made this script to update a binary file for my BIND 9 DNS > server. > > === > $WorkFile = "domains/db.nom.za"; > $buffer = file($WorkFile); > > $DBfile = implode($buffer, ""); > $DBfile = ereg_replace("$dom

[PHP] Creating Dynamic Variables

2002-07-17 Thread Anup
Hello, I have captured variables from any HTML that is POSTed to me from a 'foreach' clause. Now, possibly in this foreach clause I want to register these name/value pairs into a session var. I have tried : session_start(); foreach ($HTTP_POST_VARS as $name=>$value) { $name=$value; session_registe

RE: [PHP] Re: Includes vs. Functions

2002-07-17 Thread Martin Towell
> >Chris, thanks for describing your method. The reason I really dislike > >Functions in PHP is because you have to pass every variable needed by a > >function, even if that variable is global in the main script, which is a > >pain in the ass when a function needs a long string of variables. It ma

Re: [PHP] Running a PHP Script from UNIX Command Line?

2002-07-17 Thread Michael Sims
On Wed, 17 Jul 2002 16:25:10 -0600, you wrote: >Check the archives on this... > >But you need the executable php Also in the archives are discussions on how to do this using lynx, which does not require an executable PHP, but does require that the script reside somewhere in the document root of

Re: [PHP] Re: Includes vs. Functions

2002-07-17 Thread Michael Sims
On Wed, 17 Jul 2002 17:46:25 -0400, you wrote: >Chris, thanks for describing your method. The reason I really dislike >Functions in PHP is because you have to pass every variable needed by a >function, even if that variable is global in the main script, which is a >pain in the ass when a function

Re: [PHP] ErrorDocument 404 & Form

2002-07-17 Thread Michael Sims
On Thu, 18 Jul 2002 03:21:48 +0200, you wrote: > > Then again, I might not be remembering correctly, so ... > >Well it could have been it, but it doesn't work neither trying to set >the ErrorDocument into a .htaccess file. > >The problem is I am not even sure where is the trouble, and if it shoul

[PHP] Format 24 hr time to 12 hr time

2002-07-17 Thread Ryan
How do you format this for example: 13:58:00 into 1:58 PM Thanks -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Unexpected module init/shutdown behaviour

2002-07-17 Thread Jong-won Choi
Hello, I'm trying to understand module init/shutdown of PHP and Apache httpd configuration. Server version: Apache/1.3.20 (Unix) (Red-Hat/Linux) httpd.conf: StartServers 8 PHP 4.2.1 I just added log messages to init/shutdown function of XML module: PH

Re: [PHP] ErrorDocument 404 & Form

2002-07-17 Thread Fabien Penso
David a écrit : > In article <[EMAIL PROTECTED]>, [EMAIL PROTECTED] says... [...] >> but $plop won't be set, and there is no way to get the variables >> back. In POST method I won't even see the REDIRECT_QUERY_STRING at >> all. So should this work, if not why, and is there a way to fix it

Re: [PHP] how to access javascipt variables in PHP

2002-07-17 Thread Chris Garaffa
I can't think of a way to do it in the page itself... Unfortunately (there could be a way, I just can't think of it - frazzled after a day of work), but if you're using forms on your page, then set the values of some hidden form elements to the JS variables you want to use, and pass them along. Yo

RE: [PHP] missing function? array_change_key_case()

2002-07-17 Thread Jimmy Brake
yep thats it ... On Wed, 2002-07-17 at 18:02, John Holmes wrote: > Works fine for me on 4.2.1 > > You have to have at least 4.2.0, do you? > > ---John Holmes... > > > -Original Message- > > From: Jimmy Brake [mailto:[EMAIL PROTECTED]] > > Sent: Wednesday, July 17, 2002 8:53 PM > > To:

RE: [PHP] missing function? array_change_key_case()

2002-07-17 Thread John Holmes
Works fine for me on 4.2.1 You have to have at least 4.2.0, do you? ---John Holmes... > -Original Message- > From: Jimmy Brake [mailto:[EMAIL PROTECTED]] > Sent: Wednesday, July 17, 2002 8:53 PM > To: [EMAIL PROTECTED] > Subject: [PHP] missing function? array_change_key_case() > > Hi!

[PHP] missing function? array_change_key_case()

2002-07-17 Thread Jimmy Brake
Hi! When I run this command ... $foo = array_change_key_case($foo, CASE_UPPER); I get this error .. Call to undefined function: array_change_key_case() in /index.php on line 181 Yet the function (should) exist: http://www.php.net/manual/en/function.array-change-key-case.php I am runnin

Re: [PHP] ErrorDocument 404 & Form

2002-07-17 Thread David Robley
In article <[EMAIL PROTECTED]>, [EMAIL PROTECTED] says... > > Tom a écrit : > > > Actaully, neither Apache or PHP is at fault. The ErrorDocument (either in > > httpd.conf or an .htaccess file) follows absolute paths, so you are calling > > your engine.php out of the root directory of the mac

Re: [PHP] Someone Help please

2002-07-17 Thread David Robley
In article <[EMAIL PROTECTED]>, [EMAIL PROTECTED] says... > Chris: > > Geez, this is your third thread on this today... Lame. > > --Dan > > There is none deafer than (s)he who won't listen :-) -- David Robley Temporary Kiwi! Quod subigo farinam -- PHP General Mailing List (http://www.p

Re: [PHP] Of Jobs and Certs

2002-07-17 Thread Michael Hall
In my opinion, certification doesn't count for much. The Microsoft certs are proof enough of this, but even many of the Linux certs are pretty shallow when you look at what they cover and how they're tested. Most employers know that you can either do it or you can't. Anecdote: I once asked a net

Re: [PHP] Installing 4.0.6 to 4.1.1 patch

2002-07-17 Thread Miguel Cruz
On Wed, 17 Jul 2002, John Wulff wrote: > I've downloaded the 4.0.6 to 4.1.1 patch but how do i install it? Wouldn't you want to use a current version instead? miguel -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Installing 4.0.6 to 4.1.1 patch

2002-07-17 Thread John Wulff
I've downloaded the 4.0.6 to 4.1.1 patch but how do i install it? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] ErrorDocument 404 & Form

2002-07-17 Thread Fabien Penso
Tom a écrit : > Actaully, neither Apache or PHP is at fault. The ErrorDocument (either in > httpd.conf or an .htaccess file) follows absolute paths, so you are calling > your engine.php out of the root directory of the machine. So the question > is, do you have engine.php in the / folder? I

[PHP] ldap_add() - null values in fields produce an "value #0 invalid per syntax" error on ldap server

2002-07-17 Thread Ian_Ball
Hi, New to the list and hoping someone might be able to help me. I have been using PHP scripts that are to maintain a company address book with a lot of data about contacts, both inside and outside the company. The scripts, which are generating html pages and reading input values back in, have

[PHP] Binary Files :: They Keep Adding Blocks

2002-07-17 Thread vins
Hi I've just made this script to update a binary file for my BIND 9 DNS server. === $WorkFile = "domains/db.nom.za"; $buffer = file($WorkFile); $DBfile = implode($buffer, ""); $DBfile = ereg_replace("$domain.nom.za. IN NS $fqdnold[0].", "$domain.nom.za. IN NS $fqdnn

Re: [PHP] how many requests can php serve?

2002-07-17 Thread Miguel Cruz
On Wed, 17 Jul 2002, Chris Hewitt wrote: > Apache comes with ab for load testing. Maybe that will provide you with > a means of making meaningful comparisons. There will be a "php" aspect > to it, php opposed to say 3-tier java, but also things like is php a > cgi, apache module or actually com

Re: [PHP] Classes vs. Functions

2002-07-17 Thread Christopher J. Crane
Thank you for your 2 cents I am just learning and appreciate your comments. - Original Message - From: "Michael Hall" <[EMAIL PROTECTED]> To: "Chris Crane" <[EMAIL PROTECTED]> Cc: <[EMAIL PROTECTED]> Sent: Tuesday, July 16, 2002 11:13 PM Subject: Re: [PHP] Classes vs. Functions > > There

[PHP] Re: win32 mail()

2002-07-17 Thread Manuel Lemos
Hello, On 07/17/2002 10:18 AM, Val Petruchek wrote: > i mean mail() on win32 server > > my question is - how to set up SMTP > authorization in php ini > (if smtp server requires pop auth) > > is it possible or should i use direct smtp > connection? No you need to authenticate via POP3 protocol

Re: [PHP] Running a PHP Script from UNIX Command Line?

2002-07-17 Thread B i g D o g
Check the archives on this... But you need the executable php And on top of the file: example.php #!/usr/bin/php -q Then chmod the script to be executable and you can run from commandline. For cron jobs just put it in the cron file and put the path to the file... .: B i g D o g :. -

[PHP] Running a PHP Script from UNIX Command Line?

2002-07-17 Thread Zach Curtis
UNIX gurus: How can I get a PHP script to run or execute from a UNIX command line and echo the stdout back to the terminal window? For example, > execute/run??? file.php What I really want to do is create a cron job (which I do know how to create) for the script. The script doesn't really echo

Re: [PHP] Classes Constructor syntax

2002-07-17 Thread Rad0s-ław Gajewski
++>PHP does not support multiple constructors. but you can easily evade this obstacle: class A { function A($parm1,$parm2=false) { if (!$parm2) { $this->OneArgConstructor($parm1); } else { $this->TwoArg

[PHP] Re: Includes vs. Functions

2002-07-17 Thread Monty
Chris, thanks for describing your method. The reason I really dislike Functions in PHP is because you have to pass every variable needed by a function, even if that variable is global in the main script, which is a pain in the ass when a function needs a long string of variables. It makes it easie

[PHP] Re: Restart process from code?

2002-07-17 Thread Peter
You need a program to control the ASP process. This is proably some sort of command line tool and you just put whatever you would type in the commandline into the exec() function. (in quotes of course!) "Noah Spitzer-Williams" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL P

[PHP] Re: ErrorDocument 404 & Form

2002-07-17 Thread Peter
Can posting to a non existent page give a different error? I know it gives 404 on mine. Probably not much help but it's a thought! "Fabien Penso" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > Hi. > > I got a trouble I don't know if Apache or PHP is in fault.

[PHP] Re: Includes vs. Functions

2002-07-17 Thread Chris Crane
I am not sure about efficiency, myself and I often ask this without much if anything at all for a response. However, I am the opposite of you, in that I prefer to create a library file containing all the functions. To make developing the page in something like Dreamweaver or Frontpage easier, I gl

Re: [PHP] Of Jobs and Certs

2002-07-17 Thread Peter J. Schoenster
On 17 Jul 2002 at 12:55, Miguel Cruz wrote: > On Wed, 17 Jul 2002, Martin Clifford wrote: > > I'd like to get everyone's input on Jobs and Certs. I know there > > are a couple Certifications for web developers out there, such as > > the CIW and CWP certifications. > > I don't know if this is w

Re: [PHP] how to access javascipt variables in PHP

2002-07-17 Thread Martin Clifford
You can blend the two... sort of. I'm not aware of any PHP vars that hold screen information. HTH Martin

Re: [PHP] Includes vs. Functions

2002-07-17 Thread 1LT John W. Holmes
The only difference I can think of is that if you included everything at once, in function or whatever, then that's only 1 file open and read. if you're doing a bunch of includes all over the place, then your doing more file open and reads. Not sure if it really affects your script in the grand sc

Re: [PHP] how to access javascipt variables in PHP

2002-07-17 Thread 1LT John W. Holmes
You have to submit the variables back to PHP by refreshing/requesting another page. Once javascript finds the values..PHP is done executing. So have the values put into hidden elements of a form that's submitted, or tacked on to the end of a URL and redirected to another page... ---John Holmes..

Re: [PHP] Restart process from code?

2002-07-17 Thread Analysis & Solutions
On Wed, Jul 17, 2002 at 02:21:27PM -0400, Noah Spitzer-Williams wrote: > How do I end the process using exec? Is there an equivalent to NET STOP? Inside the exec(), issue whatever commands you'd type into a command line... exec('NET STOP foo'); --Dan -- PHP classes that make w

[PHP] how to access javascipt variables in PHP

2002-07-17 Thread Seppo Laukkanen
Can anybody help? I have javascript code to find out browsers width and height, but they are stored in javascript variables. How can I access them from PHP? Or is there a method to do same in PHP straightly? Thanks, Seppo -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visi

Re: [PHP] Someone Help please

2002-07-17 Thread Analysis & Solutions
Chris: Geez, this is your third thread on this today... Lame. --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

Re: [PHP] Confused about the list() function

2002-07-17 Thread Analysis & Solutions
On Wed, Jul 17, 2002 at 12:26:08PM -0400, DonPro wrote: > > $color_list = explode(",", $color); > > Now that I have a string of colors delimited by commas, I would like to > parse the string and print out all my colors. Start with turning on line wrapping in your email client... Now, your sen

[PHP] Re: sorting and searching an Array

2002-07-17 Thread Monty
This would be MUCH MUCH easier to do if this data were in a database instead of a flat file. But, to accomplish this you need to write some code using the various array functions in PHP, such as asort() and explode(), and structures such as for() and each() to eliminate the array rows that don't m

Re: [PHP] ARRAY_PUSH()

2002-07-17 Thread Analysis & Solutions
Chris: Why'd you start a second thread on this? See my reply in the "File reading help with Syntax" thread. --Dan -- PHP classes that make web design easier SQL Solution | Layout Solution | Form Solution sqlsolution.info | layoutsolution.info | formsolution.

[PHP] Includes vs. Functions

2002-07-17 Thread Monty
I generally prefer to include various blocks of code in templates using include_once() rather than load a functions library and make calls to those functions within the script. Is there a big difference in efficiency and speed of includes vs. custom functions? I like includes because it's easier

Re: [PHP] sorting and searching an Array

2002-07-17 Thread Kevin Stone
Instead of an indexed array build an associative array and sort with one of the built-in PHP functions.. $myary = array ( 'mrgouldian' => '[EMAIL PROTECTED]', 'myname'=> '[EMAIL PROTECTED]'); ksort($myary); -Kevin - Original Message - From: <[EMAIL PROTECTED]> To: "php-general" <[EMAIL

[PHP] Re: sorting and searching an Array

2002-07-17 Thread Dan Koken
Unless I'm missing something, why put it in an array. Why not just just select the data from the data base that matches your search_name and list it. Something like: SELECT e_mail, name FROM e_mail_file WHERE name = '$search_name' ORDER by name HTH. Dan. [EMAIL PROTECTED] wrote: > After I r

[PHP] Segmentation fault with Sablotron xslt_process()

2002-07-17 Thread William S.
I am getting random Segmentation faults when I use the following script. This does not happen when I run scripts that do not include the xslt_process() So I am assuming it has something to do with Sablotron and xslt. Below is also the back trace with the problem. Can anyone suggest a solution or n

[PHP] preg_replace_callback

2002-07-17 Thread Rafael Fernandes
First, sorry for my elementary english... I need a function made for PHP3 that works like preg_replace_callback... Sugestions??? -- Rafael Fernandes WebDeveloper - Aleph TI Ltda. / Matrix Internet Provider E-Mail: [EMAIL PROTECTED] Uin: 5551571 -- PHP General Mailing List (http://www.php.net/)

Re: [PHP] Printer margins

2002-07-17 Thread Paul Roberts
have a look at the @page spec in the css docs at w3c.org I use this for A4 paper, you can set the margins as well: @page{ size : "21.0cm 29.7cm "; } Paul Roberts [EMAIL PROTECTED] - Original Message - From: "Martin Towell" <[EMAIL PROTECTED]> To: "'Manuel'"

Re: [PHP] ErrorDocument 404 & Form

2002-07-17 Thread Tom Ray
Actaully, neither Apache or PHP is at fault. The ErrorDocument (either in httpd.conf or an .htaccess file) follows absolute paths, so you are calling your engine.php out of the root directory of the machine. So the question is, do you have engine.php in the / folder? If not you can put it there or

[PHP] sorting and searching an Array

2002-07-17 Thread rdkurth
After I read this file into an array (small sample of file below) I need to sorted it by the name at the end of each line and then echo out only the ones that the name equals the name in a search variable. Also could somebody recommend a PHP book that covers a lot of info on working with te

Re: [PHP] how many requests can php serve?

2002-07-17 Thread Chris Hewitt
Andy wrote: >ok .. you are right. But how about an average.. between 20 users per minute >or similar is this a common rate on this data? : > > >Is there something like a benchmark available on such thing? > Apache comes with ab for load testing. Maybe that will provide you with a means of making

Re: [PHP] Of Jobs and Certs [long]

2002-07-17 Thread Chris Hewitt
Jay Blanchard wrote: > >+1 Miguel > +2 Chris I found when hiring people in the electronics industry that those who were genuinely interested in the subject (as a hobby) and then did a course were much better for the company than those that just had lots of pieces of paper. I find that it is

Re: [PHP] how many requests can php serve?

2002-07-17 Thread Blair Colbey
Ever tried the basic ab (apache benchmark)?? It comes with the unix distro of it.. not sure about windows..YOu can test say 1000 requests with as many as you want at the same time.. Works good for load testing a group of servers behind a load balancer.. On Wed, 17 Jul 2002, Andy wrot

[PHP] RE: [PHP-WIN] CRON JOB

2002-07-17 Thread Svensson, B.A.T. (HKG)
% man crontab -Original Message- From: MAAS To: [EMAIL PROTECTED]; [EMAIL PROTECTED] Sent: 2002-07-17 14:51 Subject: [PHP-WIN] CRON JOB What do I have to do before I can run my file.php as a cron job in Linux? -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit

[PHP] imap_mail_move and imap_mail_copy

2002-07-17 Thread Jeff Schwartz
Has anyone had experience with imap_mail_move or imap_mail_copy? Can they copy or move a message from one mail server to another or only into a subfolder on the same server? Jeff __ Do You Yahoo!? Yahoo! Autos - Get free new car price quotes htt

Re: [PHP] how many requests can php serve?

2002-07-17 Thread Andy
ok .. you are right. But how about an average.. between 20 users per minute or similar is this a common rate on this data? : > - Your network connection > 100 MBit > - Your hard drive > pretty fast > - Your RAM > 256MB > - Your CPU > Celleron 900 > - Your database > mysql > - The design of your

RE: [PHP] Of Jobs and Certs [long]

2002-07-17 Thread Jay Blanchard
[snip] I don't know if this is what you want to hear, but I can tell you that as a rule, I don't hire people who advertise certifications on their resume. I've found that they correlate pretty strongly with incompetence, to the point where nothing saves me more time when filtering through resumes

Re: [PHP] Restart process from code?

2002-07-17 Thread Noah Spitzer-Williams
How do I end the process using exec? Is there an equivalent to NET STOP? - Noah - Original Message - From: "John Holmes" <[EMAIL PROTECTED]> To: "'Noah Spitzer-Williams'" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]> Sent: Wednesday, July 17, 2002 2:28 PM Subject: RE: [PH

Re: [PHP] how many requests can php serve?

2002-07-17 Thread Miguel Cruz
On Wed, 17 Jul 2002, Andy wrote: > I am wondering how many requests at one time php can serve before the site > brakes down. Someone told me that my site has been down yesterday for a > while after I did anounce it through a university email list going to 2500 > users. It depends on: - Your netw

Re: [PHP] Someone Help please

2002-07-17 Thread Chris Crane
I will try it now...Thank you. "John Holmes" <[EMAIL PROTECTED]> wrote in message 000301c22dbe$b5caacf0$b402a8c0@mango">news:000301c22dbe$b5caacf0$b402a8c0@mango... > File() will read the file into an array, each element of the array will > be a line from the file. Explode() will then split that l

RE: [PHP] Restart process from code?

2002-07-17 Thread John Holmes
So? Use exec(). Use it twice if you have to. If you can run a command on the command line, then you can run it through exec. Only difference is if the user PHP is running as can run the command. ---John Holmes... > -Original Message- > From: Noah Spitzer-Williams [mailto:[EMAIL PROTECTE

Re: [PHP] File reading help with Syntax

2002-07-17 Thread Analysis & Solutions
On Wed, Jul 17, 2002 at 10:00:29AM -0400, Chris Crane wrote: > I am getting data froma website for stock information. If I type in the > brower the URL I get a text file display list this; > > Date,Open,High,Low,Close,Volume > 16-Jul-02,7.92,8.10,7.68,7.82,605500 > 15-Jul-02,7.98,8.02,7.59,8.02,5

[PHP] how many requests can php serve?

2002-07-17 Thread Andy
Hi there, I am wondering how many requests at one time php can serve before the site brakes down. Someone told me that my site has been down yesterday for a while after I did anounce it through a university email list going to 2500 users. Maybe there is a smart artikle on that. Thanx for any he

Re: [PHP] Opening and Editing Quark Binaries

2002-07-17 Thread Miguel Cruz
On Wed, 17 Jul 2002, Justin French wrote: > I've attached a file I received with Quark 3.32, which has sample text > complete with Quark Xpress tags. XPress Tags is a great format, and easy to work with for auto-generated content. However, all you can do with it is prepare text for a single run

Re: [PHP] Restart process from code?

2002-07-17 Thread Noah Spitzer-Williams
But I would like to restart the process as in it's currently running and I want to end it and then start it again... - Noah - Original Message - From: "John Holmes" <[EMAIL PROTECTED]> To: "'Noah Spitzer-Williams'" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]> Sent:

RE: [PHP] Someone Help please

2002-07-17 Thread John Holmes
File() will read the file into an array, each element of the array will be a line from the file. Explode() will then split that line by the delimiter you choose... So something like this: $file = file("filename.txt"); foreach($file as $line) { $part = explode(',',$line); //now you have an ar

RE: [PHP] Restart process from code?

2002-07-17 Thread John Holmes
You can use exec(), as long as the user PHP is running as has permission to execute the program... ---John Holmes... > -Original Message- > From: Noah Spitzer-Williams [mailto:[EMAIL PROTECTED]] > Sent: Wednesday, July 17, 2002 1:20 PM > To: [EMAIL PROTECTED]; [EMAIL PROTECTED] > Subject

Re: [PHP] Of Jobs and Certs

2002-07-17 Thread Danny Shepherd
I agree - nothing beats a good portfolio. Danny. - Original Message - From: "Miguel Cruz" <[EMAIL PROTECTED]> To: "Martin Clifford" <[EMAIL PROTECTED]> Cc: <[EMAIL PROTECTED]> Sent: Wednesday, July 17, 2002 6:55 PM Subject: Re: [PHP] Of Jobs and Certs > On Wed, 17 Jul 2002, Martin Clif

Re: [PHP] php Similar to C in Pointer Memory Accessing or not?

2002-07-17 Thread Miguel Cruz
On Wed, 17 Jul 2002, Kondwani Spike Mkandawire wrote: > Just for interest sake, for those of you who have messed > with C know about Pointers hence probably know that > one can access stuff from Memory Locations in very wierd > ways via pointers and Arrays: > > int * ptr; > ptr = array[0]; > ptr=

Re: [PHP] Of Jobs and Certs

2002-07-17 Thread Miguel Cruz
On Wed, 17 Jul 2002, Martin Clifford wrote: > I'd like to get everyone's input on Jobs and Certs. I know there are a > couple Certifications for web developers out there, such as the CIW and > CWP certifications. I don't know if this is what you want to hear, but I can tell you that as a rule,

[PHP] ErrorDocument 404 & Form

2002-07-17 Thread Fabien Penso
Hi. I got a trouble I don't know if Apache or PHP is in fault. Let's say I got something like : ErrorDocument 404 /engine.php If I make a form which use POST and redirect to something which doesn't exist, then a phpinfo() in engine.php won't show the variables. Am I wrong thinking it should ? I

Re[2]: [PHP] remove header tags - include file

2002-07-17 Thread Asmodean
JPA> >Do you mean you want to include the file JPA> html.html but not the "..." part? JPA> Yes!!. In other words I just want show the part inside of tag of the JPA> html.html JPA> I know the answer is in a Regulars expression.. but.. i don't know much JPA> about it. JPA> At 19:08 17-07-2002

Fw: [PHP] Someone Help please

2002-07-17 Thread Kevin Stone
Parse all lines of a txt file into an array.. $ary = explode("\n", $results); -Kevin - Original Message - From: "Chris Crane" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Wednesday, July 17, 2002 11:16 AM Subject: [PHP] Someone Help please > I am getting data froma website for stoc

[PHP] Restart process from code?

2002-07-17 Thread Noah Spitzer-Williams
Is there a way to restart a process (actually the process to handle ASP pages) from code? - Noah -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] CRON JOB

2002-07-17 Thread Miguel Cruz
On Wed, 17 Jul 2002, Jay Blanchard wrote: > Look at the archives for the past couple of days, it has been covered in > some detail. Make sure to compile PHP without apsx, and for practical > purposes move the PHP executable to the /usr/local/bin directory. Then put > this as the first line of the

[PHP] Someone Help please

2002-07-17 Thread Chris Crane
I am getting data froma website for stock information. If I type in the brower the URL I get a text file display list this; Date,Open,High,Low,Close,Volume 16-Jul-02,7.92,8.10,7.68,7.82,605500 15-Jul-02,7.98,8.02,7.59,8.02,577200 12-Jul-02,7.80,8.00,7.57,7.95,411100 11-Jul-02,7.82,7.94,7.34,7.80,

Re: [PHP] remove header tags - include file

2002-07-17 Thread Juan Pablo Aqueveque
>Do you mean you want to include the file html.html but not the "..." part? Yes!!. In other words I just want show the part inside of tag of the html.html I know the answer is in a Regulars expression.. but.. i don't know much about it. At 19:08 17-07-2002, you wrote: >JPA> Hi guys, me agai

Re: [PHP] imap connection problem

2002-07-17 Thread Korbinian Schmid
the important part (without this line the script works): $mbox = imap_open ("{localhost/imap}INBOX","", ""); it`s the same without "INBOX" i also tried different downloaded mailbox scripts so i think it's a php-system problem. Latex Master <[EMAIL PROTECTED]> schrieb in im Newsbeitrag:

Re: [PHP] remove header tags - include file

2002-07-17 Thread Asmodean
JPA> Hi guys, me again. JPA> (thanks kevin, but i'm afraid you didn't understand me). JPA> After looking for untiringly in the archives I have I decide to ask again. JPA> This is my problem: JPA> I want include the file html.html inside of my file index.php, but before JPA> include it I want to

[PHP] remove header tags - include file

2002-07-17 Thread Juan Pablo Aqueveque
Hi guys, me again. (thanks kevin, but i'm afraid you didn't understand me). After looking for untiringly in the archives I have I decide to ask again. This is my problem: I want include the file html.html inside of my file index.php, but before include it I want to remove .. tags from my html.h

Re: [PHP] Confused about the list() function

2002-07-17 Thread Asmodean
D> Hi, D> I have the following situation. I have an array of colors that I would like to print out. My first course of action would be to convert the array to a string so that I can parse it. My command D> would be: D> $color_list = explode(",", $color); D> Now that I have a string of colo

RE: [PHP] Tips for better PHP, wish I read yesterday

2002-07-17 Thread Jay Blanchard
[snip] Awhile back I was asking for just what I'm reading here: http://www.php9.com/index.php/section/articles/name/PHP%20Guidelines I have come across some of this in the documentation but not in your face like it is here (and should be). Does anyone have any more links to articles like that?

Re: [PHP] Confused about the list() function

2002-07-17 Thread 1LT John W. Holmes
How do you want to parse the string? why not just echo $color_list? ---John Holmes... - Original Message - From: "DonPro" <[EMAIL PROTECTED]> To: "php list" <[EMAIL PROTECTED]> Sent: Wednesday, July 17, 2002 12:26 PM Subject: [PHP] Confused about the list() function Hi, I have the fol

  1   2   >