[PHP] Tailing Files

2002-05-05 Thread Liam MacKenzie
Hi guys, just a simple question, how would I go about displaying the last 100 lines of a log file? I know that on the command line it's: tail -n 100 access_log Is there a PHP function to do this? Cheers, Liam -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

php-general Digest 5 May 2002 06:16:17 -0000 Issue 1326

2002-05-05 Thread php-general-digest-help
php-general Digest 5 May 2002 06:16:17 - Issue 1326 Topics (messages 96072 through 96112): Re: Sessions 96072 by: Alex Francis 96080 by: John Holmes Re: How to save records from MySQL in separate files? 96073 by: John Holmes Re: Javascript function 96074

Re: [PHP] HTML to mysql - from msql to html

2002-05-05 Thread Miguel Cruz
On Sat, 4 May 2002, Mantas Kriauciunas wrote: I have hare a little problem. Well i have in the page TEXTAREA thingy and there i wrote text like that(between lines): -- foo bar more foo bar -- now i do msql_query(UPDATE.); and

Re: [PHP] Tailing a log file {!?}

2002-05-05 Thread Tom Rogers
Hi You need exec(tail -n 100 access_log,$result); $result will be an array with the output of the command. see http://www.php.net/manual/en/ref.exec.php for more info Tom At 01:51 PM 4/05/2002, Liam MacKenzie wrote: Hi guys, just a simple question, how would I go about displaying the last 100

Re: [PHP] RE: SSH

2002-05-05 Thread Miguel Cruz
On Sun, 5 May 2002, Insomniac Admin wrote: You could use popen to open a ssh process and wait to be asked for the password etc... Remember to check the RSA key pattern. My experience, at least with recent SSH versions, is that they try very hard to verify stdin is an actual pty before

Re: [PHP] Is --enable-track-vars still needed?

2002-05-05 Thread Miguel Cruz
On Sat, 4 May 2002, David Jackson wrote: Is I still recommended that config be run with the --enable-track-vars flag? Or has this been deprieciated? Recently? Does the chagnes to global vars come in to play here? I believe that has had no effect (i.e., they were always enabled) for a while

Re: [PHP] weird foreach problem when calling date or getdate function,variable does not change

2002-05-05 Thread Miguel Cruz
On Sat, 4 May 2002, Zachary Buckholz wrote: $time = getdate($array[0]); print $time[hours]:$time[minutes]:$time[seconds] = $chk_status = $resp_sec 20020504160503 -- Notice how this date/time value is updated properly each loop 20:14:7 = 200 = 2 -- Notice how

Re: [PHP] PHP compared to JSP

2002-05-05 Thread Miguel Cruz
On Sat, 4 May 2002, Pag wrote: Does PHP compile : NO Does the user loading same page for 2nd time gets better response : YES it can if caching is provided On a side not..isnt caching a bit like going against why PHP was built in the first place? I mean, information may get a bit out of

Re: [PHP] Tailing Files

2002-05-05 Thread Miguel Cruz
On Sat, 4 May 2002, Liam MacKenzie wrote: just a simple question, how would I go about displaying the last 100 lines of a log file? I know that on the command line it's: tail -n 100 access_log Is there a PHP function to do this? Not that I know of, but the process is pretty simple. Seek

[PHP] Defining PHP varibles from URL

2002-05-05 Thread webmaster
I can't seem to define a varible from the url entered into a browser. I wish to use the following code or something like it. script language="php" $file = "";//the aboveis defined from the url include "$file"; /script It could be what I was typing in the url bar.

Re: [PHP] Defining PHP varibles from URL

2002-05-05 Thread Miguel Cruz
On Sun, 5 May 2002 [EMAIL PROTECTED] wrote: I can't seem to define a varible from the url entered into a browser. I wish to use the following code or something like it. script language=php $file = ; //the above is defined from the url include $file; /script It could be what I was

Re: [PHP] weird foreach problem when calling date or getdate function,

2002-05-05 Thread Kyle Gibson
Those numbers don't look like timestamps to me (as they can't be larger than about 4294967296). What they look like is the result of some imp or perhaps even a gremlin breaking into your code and smooshing together yearmonthdayhourminutesecond, then trying to PRETEND it's a timestamp.

Re: [PHP] weird foreach problem when calling date or getdate function,

2002-05-05 Thread Miguel Cruz
On Sun, 5 May 2002, Kyle Gibson wrote: Those numbers don't look like timestamps to me (as they can't be larger than about 4294967296). What they look like is the result of some imp or perhaps even a gremlin breaking into your code and smooshing together yearmonthdayhourminutesecond, then

Re: [PHP] Tailing a log file {!?}

2002-05-05 Thread Liam MacKenzie
OK, I did this and it does nothing but cause a loop and crash my browser... ? exec(tail -n 100 /www/logs/access.log,$result); for ($i=0; $i$result; $i++) { echo $resultBR; } ? What's the problem with that? Cheers, Liam - Original Message - From: Tom Rogers [EMAIL PROTECTED] To:

RE: [PHP] Defining PHP varibles from URL

2002-05-05 Thread David Freeman
-Original Message- script language=php $file = ; //the above is defined from the url include $file; /script It could be what I was typing in the url bar. file.php?file=foobar.inc -Original Message- Hmm, so you define $file in your url as foobar.inc and then, in the page itself

Re: [PHP] $HTTP_SERVER_VARS

2002-05-05 Thread Mike Gohlke
Kyle, Here's a quote I found on Usenet: http://groups.google.com/groups?selm=aec2ace8.0204180402.4c562696%40posting.google.comoutput=gplain --- paste --- I think I found out what this HTTP_WEFERER is all about... I was working on a perl script having this problem. Some PCs (Client) running that

Re: [PHP] Tailing a log file {!?}

2002-05-05 Thread Jason Wong
On Saturday 04 May 2002 15:32, Liam MacKenzie wrote: OK, I did this and it does nothing but cause a loop and crash my browser... ? exec(tail -n 100 /www/logs/access.log,$result); for ($i=0; $i$result; $i++) { echo $resultBR; } ? What's the problem with that? An infinite loop most

Re: [PHP] Tailing a log file {!?}

2002-05-05 Thread Liam MacKenzie
It returns nothing It's got me stumped - Original Message - From: Jason Wong [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Sunday, May 05, 2002 5:58 PM Subject: Re: [PHP] Tailing a log file {!?} On Saturday 04 May 2002 15:32, Liam MacKenzie wrote: OK, I did this and it does nothing

Re: [PHP] Tailing a log file {!?}

2002-05-05 Thread Liam MacKenzie
Sorry, I should have included this in the first email... Here's my full code. Page is called like this: log.php?open=access.loglen=150 = PRE FONT SIZE=2 COLOR=#00 FACE=Tahoma ? echo BExcecuting:/B tail -n $len

Re: [PHP] Tailing a log file {!?}

2002-05-05 Thread Jason Wong
On Saturday 04 May 2002 16:09, Liam MacKenzie wrote: Sorry, I should have included this in the first email... [snip] When I call the page, I get the expected at the top: Excecuting: tail -n 150 /www/hosting/domains/lanolot/logs/error.log Displaying the last 150 lines of error.log... But

Re: [PHP] Tailing a log file {!?}

2002-05-05 Thread Liam MacKenzie
$cmd = exec(tail -n $len /www/hosting/domains/lanolot/logs/$open, $result); echo $cmd; Still returns nothing under the top text. All log files are chmodded 644 and are owned by the web server. The paths to the files are correct. I've run out of ideas =( Thanks - Original Message -

Re: [PHP] Tailing a log file {!?}

2002-05-05 Thread Jason Wong
On Saturday 04 May 2002 16:25, Liam MacKenzie wrote: $cmd = exec(tail -n $len /www/hosting/domains/lanolot/logs/$open, $result); echo $cmd; Still returns nothing under the top text. All log files are chmodded 644 and are owned by the web server. The paths to the files are correct.

Re: [PHP] Tailing a log file {!?}

2002-05-05 Thread Liam MacKenzie
I have PHP's safe mode enabled, can't use backticks. And no I can't disable it, I'm hosting a few hundred sites =) I looked up return_var in the manual and got nothing, had a read of return() but don't quite understand how that would benefit what's happening. Could you please give an example?

Re: [PHP] Tailing a log file {!?}

2002-05-05 Thread Tom Rogers
Hi The following works for me, give it a try with the correct path. ? exec(tail -n 50 /usr/local/apache/logs/access_log,$result); echo count($result). results returned. br; if(count($result) 0){ foreach($result as $line){ echo $line.br; } } ? Tom At 06:25

Re: [PHP] Tailing a log file {!?}

2002-05-05 Thread Jason Wong
On Saturday 04 May 2002 16:43, Liam MacKenzie wrote: I have PHP's safe mode enabled, can't use backticks. And no I can't disable it, I'm hosting a few hundred sites =) I looked up return_var in the manual and got nothing, had a read of return() but don't quite understand how that would

Re: [PHP] Tailing a log file {!?}

2002-05-05 Thread Liam MacKenzie
That doesn't work either! Something's going on here... - Original Message - From: Tom Rogers [EMAIL PROTECTED] To: Liam MacKenzie [EMAIL PROTECTED]; [EMAIL PROTECTED] Sent: Sunday, May 05, 2002 6:49 PM Subject: Re: [PHP] Tailing a log file {!?} Hi The following works for me, give it

Re: [PHP] Tailing a log file {!?}

2002-05-05 Thread Dave Raven
check directory rights. If need be, passwd the user and give it a shell. then try on the console as the webserver user to tail the file. - Original Message - From: Liam MacKenzie [EMAIL PROTECTED] To: [EMAIL PROTECTED]; Tom Rogers [EMAIL PROTECTED] Sent: Saturday, May 04, 2002 11:26 AM

[PHP] Initializing a db $var and retrieving a required CONSTANT

2002-05-05 Thread Dreamriver.com
Hi Folks, Two questions: 1) Initializing a db $var What's the best way to code $dbvar, which is coming from a database query, given the new superglobals: $data = mysql_fetch_array(); $dbvar = stripslashes($data['someFieldName']); Is there a newer or better way to initialize $dbvar? 2)

Re: [PHP] Defining PHP varibles from URL

2002-05-05 Thread Teemu Pentinsaari
It could be what I was typing in the url bar. file.php?file=foobar.inc 1) Try include $_GET['file']; 2) Let me know where your server is so I can go to http://your.server/file.php?file=/etc/passwd miguel You might want to use .php file extension and /include/ directory to

[PHP] questions about a self-made mini chat

2002-05-05 Thread The_RadiX
Try telling the frame (text one) to go to a location. instead of just refreshing.. It may just work... :) I think that annoying click only occurs on refresh/reload not actually going there.. ::: : Julien Bonastre [The-Spectrum.org CEO] : A.K.A.

[PHP] Mail server

2002-05-05 Thread Diana Castillo
Does anyone know of a free mail server to install on a linux server that works better than fmail? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Is --enable-track-vars still needed?

2002-05-05 Thread David J Jackson
Miguel Cruz wrote: On Sat, 4 May 2002, David Jackson wrote: Is I still recommended that config be run with the --enable-track-vars flag? Or has this been deprieciated? Recently? Does the chagnes to global vars come in to play here? I believe that has had no effect (i.e., they were always

RE: [PHP] RE: SSH

2002-05-05 Thread Insomniac Admin
Wouldn't that be like very insecure? I wouldn't need to root the server in order to use that connection! Example Scenario: I generate a key pair from server local to server remote, and place the auth key in a 0400 moded file owned by root, but accessable by nobody (as this is the uid I will be

RE: [PHP] Mail server

2002-05-05 Thread Insomniac Admin
Qmail : www.lifewithqmail.org / www.qmail.org / http://cr.yp.to/qmail/ -Original Message- From: Diana Castillo [mailto:[EMAIL PROTECTED]] Sent: 05 May 2002 12:17 To: [EMAIL PROTECTED] Subject: [PHP] Mail server Does anyone know of a free mail server to install on a linux server that

Re: [PHP] Tailing a log file {!?}

2002-05-05 Thread Richard Archer
At 7:26 PM +1000 4/5/02, Liam MacKenzie wrote: That doesn't work either! Something's going on here... Are you fully aware of the implications of safe mode? Who owns the file you're trying to read? Who owns the PHP script being executed? What errors are you getting from the script? What errors

RE: [PHP] Initializing a db $var and retrieving a required CONSTANT

2002-05-05 Thread John Holmes
Neither of those change. You don't have to use stripslashes() on incoming DB data, unless magic_quotes_runtime is ON in php.ini. ---John Holmes... -Original Message- From: Dreamriver.com [mailto:[EMAIL PROTECTED]] Sent: Sunday, May 05, 2002 2:33 AM To: [EMAIL PROTECTED] Cc: [EMAIL

RE: [PHP] Defining PHP varibles from URL

2002-05-05 Thread John Holmes
snip file.php?file=inc.foobar.php - include(include/$file); /snip That doesn't fix anything... file.php?file=../../../etc/passwd Just a matter of a few tries to see how many directories you have to go up... ---John Holmes... -- PHP General Mailing List

RE: [PHP] RE: SSH

2002-05-05 Thread Miguel Cruz
Well, as described below, the key is read by a root-owned, sudo-gated shell script which executes a specific remote command. And of course the arguments, if any, are strictly sanitized by the shell script. So the worst someone could do is cause the premature execution of that remote command.

Re: [PHP] Defining PHP varibles from URL

2002-05-05 Thread Miguel Cruz
On Sun, 5 May 2002, Teemu Pentinsaari wrote: It could be what I was typing in the url bar. file.php?file=foobar.inc 1) Try include $_GET['file']; 2) Let me know where your server is so I can go to http://your.server/file.php?file=/etc/passwd You might want to use .php file

Re: [PHP] Mail server

2002-05-05 Thread Miguel Cruz
On Sun, 5 May 2002, Diana Castillo wrote: Does anyone know of a free mail server to install on a linux server that works better than fmail? Never heard of fmail, but qmail works a treat. Used by yahoo mail, etc. Fast and secure. The place to talk about this stuff is the comp.mail.*

[PHP] replace question

2002-05-05 Thread Josh Valerie McCormack
I'm iterating through a CSV file pulling in rows as arrays with fgetcsv and I'd like to search for patterns made up of the first two array items of each row with a space between them in a text file, and make them into links. I can't figure out how to do this, could someone help? Josh --

Re: [PHP] $HTTP_SERVER_VARS

2002-05-05 Thread Kyle Gibson
My last guess, was to turn off my Firewall (*Norton* Personal Firewall) and after that my PC returned a correct HTTP_REFERER! Exactly what I did. Funky, huh? Thanks, Kyle Gibson -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] function sql question

2002-05-05 Thread John Fishworld
I've got a small function which checks city name with post codes And because this needs to be checked in several scripts I want to have it in my common functions file and include it ! require (common_funtions.inc); and then use it if (!check_city_from_plz($t_zipcode)){ echo TRTD

RE: [PHP] replace question

2002-05-05 Thread John Holmes
Are you having trouble pulling the data out of the file, or creating the link? Do you want a link created for every row? What is the makeup of the file? Is array[0] the URL, and array[1] the desription? If it's just the link you need, that's easy... echo a href=' . $array[0] . ' . $array[1] .

RE: [PHP] function sql question

2002-05-05 Thread John Holmes
return 1; return $city_id; return $cityname; You can't return 3 values...try returning an array, instead. $ret[0] = $city_id; $ret[1] = $cityname; return $ret; or... $ret[City_ID] = $city_id; $ret[CityName] = $cityname; return $ret; ---John Holmes... -- PHP General Mailing

Re: [PHP] global variables

2002-05-05 Thread Austin Marshall
Jule wrote: Hey, i'm just wondering if there is another way to write global variables to a global.php, now i just the whole fopen etc script, where i open a file and write the sctring $number_right = [whatever number it is] to the file, but is there a different way to write it to the file

[PHP] Re: Php Sessions

2002-05-05 Thread Austin Marshall
Daniel SvanbäCk wrote: Hi I have a problem. I can't send the session_id to the next page. It worked before (when I had an old version of php, now I have 4.2.0). It can send the session_id() if it's a link, but not a header(). If it is a header I have to do this: define('MYSID',

Re: [PHP] function sql question

2002-05-05 Thread John Fishworld
duh ! yeah that makes sense ! but it doesn't work ! I've no idea why but it refuses to give any information back ! I've managed to get round this by now no loger declaring it a function but just actually requiring it where i need it require (get_city_1.inc); print_r(array_values ($city)); I've

[PHP] Please, can you help me?

2002-05-05 Thread toycat
Hello! I have a big problem and cannot find the answer anywhere, so please, help me if you can. When I use fwrite() function on webserver, it sometimes happens, that more then one user accesses the file and the result is, that the file is corrupted or truncated. A good example of this problem is

[PHP] Re: SSH

2002-05-05 Thread Kyle Gibson
I've tried this, $cmd = `ftpwho`; echo $cmd; and/or $cmd = shell_exec(ftpwho); echo $cmd; But I get this error: Warning: Cannot execute using backquotes in safe mode in test.php on line 2 -Kyle -- PHP General Mailing List (http://www.php.net/) To

Re: [PHP] Re: SSH

2002-05-05 Thread Stuart Dallas
On 5 May 2002 at 14:12, Kyle Gibson wrote: Warning: Cannot execute using backquotes in safe mode in test.php on line 2 Your ISP has safe mode turned on which means you cannot use backquotes. Read all about it at http://www.php.net/manual/en/features.safe-mode.php. -- Stuart -- PHP General

php-general Digest 5 May 2002 18:24:02 -0000 Issue 1327

2002-05-05 Thread php-general-digest-help
php-general Digest 5 May 2002 18:24:02 - Issue 1327 Topics (messages 96113 through 96165): Tailing Files 96113 by: Liam MacKenzie 96120 by: Miguel Cruz Re: HTML to mysql - from msql to html 96114 by: Miguel Cruz Re: Tailing a log file {!?} 96115 by: Tom

Re: [PHP] Re: SSH

2002-05-05 Thread Kyle Gibson
Your ISP has safe mode turned on which means you cannot use backquotes. Read all about it at http://www.php.net/manual/en/features.safe-mode.php. I am my own ISP, techically. In the php.ini file, safe mode is off. Which is why I am curious as to why this is occuring. --- ; ; Safe Mode ;

[PHP] help!!!

2002-05-05 Thread J. H.
Can anyone here help me write a simple auto shop scheduling program? Would really appreciate it if you would help me out. Jane H. __ Do You Yahoo!? Yahoo! Health - your guide to health and wellness http://health.yahoo.com -- PHP General

[PHP] Re: help!!!

2002-05-05 Thread Austin Marshall
J. H. wrote: Can anyone here help me write a simple auto shop scheduling program? Would really appreciate it if you would help me out. Jane H. __ Do You Yahoo!? Yahoo! Health - your guide to health and wellness http://health.yahoo.com

RE: [PHP] PHP compared to JSP

2002-05-05 Thread SP
Does anyone think caching should be built into php for it to edge out the competition? (like what smarty is doing) I mean a static page will always serve up faster then a dynamic one. Also even if you are getting 100 pages/sec on your database, you could cache it for 5 seconds and you save

Re: [PHP] PHP compared to JSP

2002-05-05 Thread Dennis Moore
Food for thought... There are a lot of performance issues outside of PHP... MySQL - version 4.0.x supports caching... Apache 2.0 - is now threaded... Memory is now cheap... Increase the server's memory You may also want to consider Zends Optimizer and Accelerator if you need additional

[PHP] Re: help!!!

2002-05-05 Thread George Nicolae
If you find someone pls tell him to write for me a new portal with secure user authentication and a webmail system with Oracle backend. tanx. -- Best regards, George Nicolae IT Manager ___ PaginiWeb.com - Professional Web Design www.PaginiWeb.com J. H. [EMAIL PROTECTED] wrote

RE: [PHP] function sql question

2002-05-05 Thread John Holmes
It will work; you're just doing something wrong. Do you want to fix it, or keep doing it this way? ---John Holmes... -Original Message- From: John Fishworld [mailto:[EMAIL PROTECTED]] Sent: Sunday, May 05, 2002 10:55 AM To: [EMAIL PROTECTED]; 'PHP-General' Subject: Re: [PHP]

RE: [PHP] Please, can you help me?

2002-05-05 Thread John Holmes
RTM... www.php.net/flock ---John Holmes... -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Friday, May 03, 2002 2:53 AM To: [EMAIL PROTECTED] Subject: [PHP] Please, can you help me? Hello! I have a big problem and cannot find the answer anywhere, so

RE: [PHP] Re: help!!!

2002-05-05 Thread John Holmes
And I need a PHP script to help me take over the world. It has to be fewer than 666 lines and I don't have MySQL. Also, could you write the PHP in ASP, please? ---John Holmes... -Original Message- From: George Nicolae [mailto:[EMAIL PROTECTED]] Sent: Sunday, May 05, 2002 12:25 PM

Re[2]: [PHP] HTML to mysql - from msql to html

2002-05-05 Thread Mantas Kriauciunas
Hey PHP General List, ok i solwed the problems with line breaks but i didn't use nl12br() function. i did like this: $newz = str_replace(\n,br,$myrow[3]); now i am having problems with spaces text is: --- bla bla bla foo ---

Re: [PHP] PHP compared to JSP

2002-05-05 Thread Manuel Lemos
Hello, Sp wrote: Does anyone think caching should be built into php for it to edge out the competition? (like what smarty is doing) I mean a static page will always serve up faster then a dynamic one. Also even if you are getting 100 pages/sec on your database, you could cache it for 5

Re: Re[2]: [PHP] HTML to mysql - from msql to html

2002-05-05 Thread Jason Wong
On Monday 06 May 2002 06:01, Mantas Kriauciunas wrote: Hey PHP General List, ok i solwed the problems with line breaks but i didn't use nl12br() function. i did like this: $newz = str_replace(\n,br,$myrow[3]); now i am having problems with spaces text is: --- bla bla

[PHP] Stuck using mail() in script with variable

2002-05-05 Thread Cheyenne Vermeulen
Hi all! I'm pretty green on this and i'm trying to create a form that sends a authorization mail using a few variable using the ()mail script. I have all settings correct, added the smtp right, even tested it with the following scripts wich worked fine ?php print mail ('[EMAIL PROTECTED]',

[PHP] Who's having a good hosting experience these days?

2002-05-05 Thread Marcus James Christian
Hello, My hosting service which WAS cool about 2 years ago has grown into a bloated mess of zero logic. My clients are going nuts, I'm sick of having mistakes and problems created by the hosting service be the only reason I have any problems to deal with at all!!! My clients aren't rich big

[PHP] Re: Who's having a good hosting experience these days?

2002-05-05 Thread Kyle Gibson
My clients aren't rich big money folks but I need a PHP capable host for about $11ish or less a month. Traffic is minimal, and like I say the only tech support calls I've had to make this past year were when the hosting service tweeked and freaked something thus messing it all up.

[PHP] F/U on sendmail return-path (not 4 newbies)

2002-05-05 Thread Anthony Rodriguez
I've tried the From header (4th parameter) in mail(). It doesn't work. My ISP does run Apache but I have no access to their files. Thanks! At 06:56 PM 5/3/2002 +0100, you wrote: On 3 May 2002 at 12:48, Anthony Rodriguez wrote: PROBLEM When a php script uses mail() and sendmail, if the

[PHP] Re: help!!!

2002-05-05 Thread David Jackson
Jane -- Check http://www.freshmeat.net. Keep in mind there's good and their simple. Try searching on project, store, scheduler also take a look at http://www.phprojetk.com ( or is it org). HTH, David J. H. wrote: Can anyone here help me write a simple auto shop scheduling program? Would

[PHP] Re: Php Sessions

2002-05-05 Thread Daniel Svanbäck
I'm using winxp and php.. can this be the problem. I solved the problem by donwgrade to php 4.1.0.. Austin Marshall [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... Daniel SvanbäCk wrote: Hi I have a problem. I can't send the session_id to the next page.

[PHP] mail function

2002-05-05 Thread Diana Castillo
Hi, if I use the mail function, as in : mail([EMAIL PROTECTED], My Subject, Line 1\nLine 2\nLine 3); The mail comes from Webserver How can I change the from ? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] function sql question

2002-05-05 Thread Richard Archer
At 6:34 PM +0200 5/5/02, John Fishworld wrote: John, Your mysql_db_query should contain either DBWEB (with quotes) or $DBWEB (a var). Just DBWEB is an error. Also, from the manual re: mysql_db_query Note: This function has been deprecated since PHP 4.0.6. Do not use this function. Use

Re: [PHP] Re: SSH

2002-05-05 Thread Richard Archer
At 2:29 PM -0400 5/5/02, Kyle Gibson wrote: In the php.ini file, safe mode is off. Which is why I am curious as to why this is occuring. What does phpinfo() have to say about it? ...R. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Re: SSH

2002-05-05 Thread Kyle Gibson
What does phpinfo() have to say about it? It says that the Local Value is on but the master value is off. -Kyle -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re[2]: [PHP] HTML to mysql - from msql to html

2002-05-05 Thread Miguel Cruz
On Sun, 5 May 2002, Mantas Kriauciunas wrote: Hey PHP General List, ok i solwed the problems with line breaks but i didn't use nl12br() function. i did like this: $newz = str_replace(\n,br,$myrow[3]); now i am having problems with spaces text is: --- bla bla bla

[PHP] Re: mail function

2002-05-05 Thread Austin Marshall
Diana Castillo wrote: Diana Castillo wrote: Hi, if I use the mail function, as in : mail([EMAIL PROTECTED], My Subject, Line 1\nLine 2\nLine 3); The mail comes from Webserver How can I change the from ? Just as the manual says, the 4th parameter which is optional allows you to

Re: [PHP] replace question

2002-05-05 Thread Miguel Cruz
On Sun, 5 May 2002, Josh Valerie McCormack wrote: I'm iterating through a CSV file pulling in rows as arrays with fgetcsv and I'd like to search for patterns made up of the first two array items of each row with a space between them in a text file, and make them into links. I can't figure

RE: [PHP] Who's having a good hosting experience these days?

2002-05-05 Thread David Freeman
My hosting service which WAS cool about 2 years ago has grown into a bloated mess of zero logic. Fast, Reliable, Cheap, Feature-Rich Now pick any three. In the end I guess you get what you pay for. If you can only afford a lower price host then you only get lower value. CYA, Dave --

RE: Re[2]: [PHP] HTML to mysql - from msql to html

2002-05-05 Thread David Freeman
now i am having problems with spaces text is: --- bla bla bla foo --- and shows: --- bla bla bla foo --- Plain old HTML ignores white space. You do understand this? To include what you

RE: [PHP] Please, can you help me?

2002-05-05 Thread David Freeman
I have a big problem and cannot find the answer anywhere, so please, help me if you can. When I use fwrite() function on webserver, it sometimes happens, that more then one user accesses the file and the result is, that the file is corrupted or truncated. I suspect that flock()

Re: [PHP] Who's having a good hosting experience these days?

2002-05-05 Thread Justin French
Cheap? I've been with experthost.com for around 8 months, with very little to complain about... I've got a reseller account with about 12 domains, so i'm paying around US$6each, and I think the standard is US$15each for one, $10ea for two, and then a sliding scale up to 25 domains @ $5ea or

[PHP] Register Globals workarounds

2002-05-05 Thread Justin French
Hi all, For those faced with the task of updating 100's or 1000's of pages that assumed register_globals on, I've found a couple of solutions which can work as a temporary solution whilst you re-engineer your pages (as I plan to do). 1. simple: ask your ISP to change php.ini :) 2. use a

RE: [PHP] Tailing a log file {!?}

2002-05-05 Thread David Freeman
Is there a tail util for NT/W2K? Almost certainly there will be a tool that will read the end of files. The problem will be in what you want to look at. If you want to look at log files on NT/2K then, AFAIK, they aren't actually vanilla text files so a tail util won't do the job. I'm not

[PHP] Re: Postnuke Anyone ?

2002-05-05 Thread Ricardo Fitzgerald
Kirk, Thanx for your help, I've tried with another script and it worked, I successfully retrieved variable content after issueing a POST, I had to add my code after the heather code --- ?php header code ? ?php my code ? ? footer code ? This code simply posts the form and uses javascript to

Re[3]: [PHP] HTML to mysql - from msql to html

2002-05-05 Thread Mantas Kriauciunas
Hey Miguel Cruz, Got your email on:Sunday, May 05, 2002, 3:29:49 PM writing: : MC On Sun, 5 May 2002, Mantas Kriauciunas wrote: Hey PHP General List, ok i solwed the problems with line breaks but i didn't use nl12br() function. i did like this: $newz =

Re: [PHP] Re: Who's having a good hosting experience these days?

2002-05-05 Thread olinux
php/mysql and tons of other features. The absolute best control panel I have seen. (demo on their site). Great support when needed as well. http://www.websitesource.com olinux --- Kyle Gibson [EMAIL PROTECTED] wrote: My clients aren't rich big money folks but I need a PHP capable host for

[PHP] Newbie needs compile

2002-05-05 Thread Sogno Kahlenberg
Hi there, I need to schedule to run a PHP script on server side, rather than invoke it from browser. Is there any way to compile it to .exe so it can run on Solaris/Apache environment? If yes, can you help me know how? Thanks a great deal!

RE: [PHP] Tailing a log file {!?}

2002-05-05 Thread Miguel Cruz
On Mon, 6 May 2002, .ben wrote: Is there a tail util for NT/W2K? I suspect cygwin would include one. miguel -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Newbie needs compile

2002-05-05 Thread Julian
I need to schedule to run a PHP script on server side, rather than invoke it from browser. Is there any way to compile it to .exe so it can run on Solaris/Apache environment? no such thing as .exe in Solaris ;) just chmod 755 a file and it will execute. If yes, can you help me know how?

Re: [PHP] Register Globals workarounds

2002-05-05 Thread Philip Olson
2. use a .htaccess file to change register_globals for your domain / dir, as long as your Apache config file allows it. http://www.php.net/manual/en/configuration.php As Justin stated, doing this (use of .htaccess) is possible if your host allows it. The following will work in .htaccess: