> He did say he did /not/ want to invoke it from a browser :)
I didn't think that PHP could run w/o one though, so my idea was to use a
text browser, have it run the script, then exit out. As I said, I was
probably wrong ;)
Sabre
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe
php-general Digest 6 May 2002 06:27:45 - Issue 1328
Topics (messages 96166 through 96206):
Re: SSH
96166 by: Kyle Gibson
96187 by: Richard Archer
96188 by: Kyle Gibson
help!!!
96167 by: J. H.
96168 by: Austin Marshall
96171 by: George Nicolae
On Monday 06 May 2002 13:59, Julian wrote:
> > 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?
Yes, full instructions in the manual.
> no such thing as .exe in S
> 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
> 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
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
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!
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 f
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 = str_replace("\
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 --->
>? footer code ?>
This code simply posts the form and uses javascript to validate form
contents before sub
> 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 ac
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 .htacce
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 someth
Is there a tail util for NT/W2K?
.b
> -Original Message-
> From: Dave Raven [mailto:[EMAIL PROTECTED]]
> Sent: 05 May 2002 10:33
> To: Liam MacKenzie; [EMAIL PROTECTED]; Tom Rogers
> Subject: Re: [PHP] Tailing a log file {!?}
>
>
> check directory rights.
>
> If need be, passwd the user
> 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(
> 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 includ
> 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
--
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 fi
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
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","",$myrow[3]);
>
> now i am having problems with spaces
>
> text is:
> ---
> b
> 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
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
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 m
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
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 ne
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
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, i
> 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.
ht
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 mo
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
""
and this one
When using the co
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","",$myrow[3]);
>
> now i am having problems with spaces
>
> text is:
> --
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
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","",$myrow[3]);
now i am having problems with spaces
text is:
---
bla bla bla foo
---
a
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
>
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 anywhe
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] fu
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]> wr
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 boos
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
500
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.y
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 Mailing
> 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-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 Rog
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 Genera
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 unsubscri
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 w
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'v
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', s
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
>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 Maili
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 "" . $array[1] . "";
---John Holmes...
>
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 "Your city does n
> 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
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
--
PHP
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.* newsgro
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
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.
Also
>
> file.php?file=inc.foobar.php
> -
> include("include/$file");
>
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 (http:
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: [EM
Hi!
I'm writing a download queueing script, and it works quite well, except
for one thing: I'm unable to determine the amount of data actually transfered to the
client.
The script sends a portion of a file (eg. 10 kb) and waits for a second, this
way achieving a transfer rate of 10 kb/s. The pr
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
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 w
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
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 w
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
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. T
> > 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/ direct
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) retri
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
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,
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 woul
Hi
The following works for me, give it a try with the correct path.
";
if(count($result) > 0){
foreach($result as $line){
echo $line."";
}
}
?>
Tom
At 06:25 PM 4/05/2002, Liam MacKenzie wrote:
>$cmd = exec("tail -n $len /www/hosting/domains/lanolot/logs/$open
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?
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 cor
$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 --
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...
>
>
Sorry, I should have included this in the first email...
Here's my full code. Page is called like this:
log.php?open=access.log&len=150
=
Excecuting: tail -n $len
/www/hosting/domains/lanolot/logs/$open ";
echo "Displaying the last $len lin
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 n
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 "$result";
> }
> ?>
>
> What's the problem with that?
An infinite
Kyle,
Here's a quote I found on Usenet:
http://groups.google.com/groups?selm=aec2ace8.0204180402.4c562696%40posting.google.com&output=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
-Original Message-
$file = "";
//the above is defined from the url
include "$file";
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 you take change $file
OK, I did this and it does nothing but cause a loop and crash my browser...
";
}
?>
What's the problem with that?
Cheers,
Liam
- Original Message -
From: "Tom Rogers" <[EMAIL PROTECTED]>
To: "Liam MacKenzie" <[EMAIL PROTECTED]>;
<[EMAIL PROTECTED]>
Sent: Sunday, May 05, 2002 4:35 PM
S
82 matches
Mail list logo