Rasmus Lerdorf wrote:
> What does it do? Using connection_status() in a script that doesn't
> ignore user aborts is pretty useless.
Regardless of whether I use ignore(0) or ignore(1), the script keeps going
after the user has hit stop. The apache error-log is then full of:
(32)Broken pipe: core
Jeff Harris wrote:
> I'm just guessing here, because you didn't give us the desired result,
> but how about:
> if (connection_status() ) break;
Yeah, that would do about the same.
The expected result is for the script to stop running once the client
disconnects.
/Per
--
Per Jessen, Zuri
Are the logs saying anything? Or if you run php from command line?
Steve Yates wrote:
Starting with a working site (FreeBSD 4.7, Apache 1.3.27) using PHP 4.3.0
and the latest Zend Optimizer, I upraded to PHP 4.3.2. Afterwards, phpinfo
() did not show the Optimizer as loaded. Reinstalling Optimi
Hi
The proto type is not correct.
array ldap_get_values(link_identifier ,
result_entry_identifier, string attribute);
^
try this
1) connect
2) bind
3) search
4) get_entries // this the step you are missing
5) get_values
regards
CVR
Can anyone tell me what i
> -Original Message-
> From: Alex Earl [mailto:[EMAIL PROTECTED]
> Sent: 12 June 2003 21:13
>
> > Jumping in a little late here, but what about is_numeric()?
> > Haven't tried it, but the php manual for is_int says:
> > Note: To test if a variable is a number or a numeric
> string (such
> -Original Message-
> From: Amanda McComb [mailto:[EMAIL PROTECTED]
> Sent: 12 June 2003 22:21
>
> Is there a way to make a variable not exist? There are several places
> where I test (!$variable), and I want to be able to change the
> variable to pass that test, even though it exists, u
> -Original Message-
> From: Johnny Martinez [mailto:[EMAIL PROTECTED]
> Sent: 13 June 2003 00:49
>
> Will this work for $_GET as well?
Yup.
> -Original Message-
> From: Jason Wong [mailto:[EMAIL PROTECTED]
> Sent: Thursday, June 12, 2003 2:14 PM
>
> if ($_POST) { do_something
does anyone know if there are any advantages/disadvantages as far as
performance to using one of the following methods for gettting xml
responses?
1) get
2)normal post with php
3)curl
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Hi,
Has anyone managed to get the php printer functions to work on a network
printer. My code is connecting to the printer but .
Warning: couldn't allocate new print job in
c:\inetpub\wwwroot\phpprinter\print2.php on line 32
test.bmp
Warning: couldn't start a new page in
c:\inetpub\wwwroot\ph
Thanks Bobby!
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Why don't you write your own test function since it's
getting so hard to find one. All you have to do is check
if the string only has number characters.
I would say this is a simple task!
Good luck,
Rafael
On Thu, 12 Jun 2003 13:13:28 -0700 (MST)
"Alex Earl" <[EMAIL PROTECTED]> wrote:
> Jumping
I have an error in a PHP script Im working with.
Here is information about my PHP: http://kalk.snerpa.is/test.php
The error describes like this: After the size of the page that the
script is writing reaches 16 KB it just stop process.
Do somone out there know what the problem could be?
Best
Is it possible to change the Return-Path header in PHP on linux? I have
seen all the posts about setting it in the php.ini with the -f switch to
sendmail. But I need to set it based on the person logged into the
page? Right now the Return-Path is set to a default that gets sent to
me (the admini
Hi NG,
Does any og you know why it's not possible to use the syntax:
when you can use this:
it would be a nice feature when mixing xml and php ...
--
>> ulrik - ulrik(@)lazy.dk
excuse of the day : Domain controller not responding
from bofh : http://www.cs.wisc.edu/~ballard/bofh/
--
Hello,
On 06/12/2003 02:32 PM, Diana wrote:
I totally agree with your first sentence *grin*.
Anyways, I won`t be able to use your class because my
server is kind of "locked" in their network, meaning I
don`t have the possibility to connect outside, only to
their servers (NT servers). And as Exchan
My understanding of this (am still a newbie though) is that the
is a short tag that assignes the $variable directly to a
"print/echo" command. You can use the other way by just adding
Hope this helps.
-Original Message-
From: Ulrik NIelsen [mailto:[EMAIL PROTECTED]
Sent: Friday, June 13
> -Original Message-
> From: Ulrik NIelsen [mailto:[EMAIL PROTECTED]
> Sent: 13 June 2003 13:25
>
> Does any og you know why it's not possible to use the syntax:
>
>
>
> when you can use this:
>
>
This has been discussed more than once by the PHP developers, and the decision has
alw
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Hi
Check out the following code:
When i use imagettftext() i httpd child process always crashes with signal 11
and in 20% requests it doesn't serve the image.
If i use imagestring() everything works okay, with no crashes at all..
Any ideas?
sys
Hi all,
Sending multiple emails using PHP - as BCC or multiple mail() commands -
takes quite long; usually over 50 seconds for 10 addresses.
While sending these messages the browser won't show anything else but a
blank page, which is not a very exciting internetexperience for people using
my maili
Are you sending these in a loop?
Write out something as each mail is sent, the email address is useful, plus
an OK or FAIL depending on what mail() returned.
Also, don't enclose this in a table as on some browsers nothing will
display until the closing table tag is received.
You might also inv
Mike Ford wrote:
This has been discussed more than once by the PHP developers, and the
decision has always been not to adopt it. I think you can safely
file it in the "Won't Fix" category (there may even be a Feature
Request at bugs.php.net marked as such).
bugger ;) I would have loved this fe
Hi List
I recently installed 4.3.1 and enabled the magic_quotes_gpc to deal with
quotes in mysql inserts.
However, I think I have run into a problem that might be related, and
was wondering if there is an easy way to fix it:
I have a script that gets user input from a drop-down, on the action
pa
addslashes
(PHP 3, PHP 4 )
addslashes -- Quote string with slashes
Description
string addslashes ( string str)
Returns a string with backslashes before characters that need to be quoted
in database queries etc. These characters are single quote ('), double quote
("), backslash (\) and NUL (the N
Hi Awlad
Yes, I know addslashes(), but that's the point, I would rather NOT want
to go and have to use addslashes() to all my extracted vars as there are
almost a hundred vars, and I douldn't want to go and have to add
addslashes($var1), addlsashes($var2), ., addslashes($var100) UNLESS
it is th
> I recently installed 4.3.1 and enabled the magic_quotes_gpc to deal with
> quotes in mysql inserts.
>
> However, I think I have run into a problem that might be related, and
> was wondering if there is an easy way to fix it:
>
> I have a script that gets user input from a drop-down, on the acti
It seems that some php versions have difficulties with the fgets() function.
On php 4.3.2 it works fine, but other versions report warnings.
fgets($f);
Warning: Wrong parameter count for fgets() in
/var/www/Xprotector/include/base.inc.php on line 70
If I change fgets to
fgets($f, 4096);
it w
Thanks, it was there right infront of me...
Just as a matter of interest, are there security/performance issues with
this setting as well as the magic_quotes_gpc or other oddities that it
could cause?
On Fri, 2003-06-13 at 15:54, CPT John W. Holmes wrote:
> > I recently installed 4.3.1 and enable
extract from php.ini file
<<
; Allow the tags are recognized.
; NOTE: Using short tags should be avoided when developing applications or
; libraries that are meant for redistribution, or deployment on PHP
; servers which are not under your control, because short tags may not
; be supported on the
Hello everybody.
I have the following class method:
function HTTPValidator($method)
{
$this->data = ${'_'.$method};
$this->rules= array();
$this->required = array();
}
data, rules and required are arrays. The parameter
$method can have the values: GET or POST. I'm trying
to sto
Yes, there is a performance hit. And the oddity is (if set globaly in
php.ini) you have to stripslashes() everything you want to echo to the
browser. So I would recomend you to ini_set() magic_quotes_runtime on
right before this process and then turn it off.
Petre Agenbag wrote:
Thanks, it was
From the manual:
Note: The length parameter became optional in PHP 4.2.0, if omitted, it
would assume 1024 as the line length. As of PHP 4.3, omitting length
will keep reading from the stream until it reaches the end of the line.
If the majority of the lines in the file are all larger than 8KB,
hi there , i am about to build a shopping cart which will interact with a
paypal payment system , the cart will use sessions to store the items and
basket information before checking out and posting to the paypal form , what
i'd like to know is would the cart require a login system to track users a
Hi,
I am using W2000pro. I have Apache 1.3.2 and Mysql 4 servers. I am using PHP
4.2.3.
I have an EXE file. When I run it from command line it works perfect. But
with PHP system command I got this error message.
Untrapped exception :Access violation at address 0049403A in module
run.exe'. Read o
The EXE file has been made by Delphi 6. A command line tool. (as far as I
know)
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
I want to do one of those redirect pages where a php script prints HTML
saying "sorry we're not here, we're redirecting you to the right location"
and then after about 2-3 seconds a new location header gets printed and you
are transported to the new location. I see this everywhere but don't know
ho
echo ob_get_level(); returns 1
but the next line:
ob_end_clean(); returns
Notice: ob_end_clean() [ref.outcontrol]: failed to delete buffer default
output handler.
Any ideas?
Thanks!
Shawn
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
On Fri, 13 Jun 2003 12:22:44 -0400, Carl Furst wrote:
>How do you do this?
Use JavaScript. :)
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
sorry, It´s only a test!!
try a delayed javascript redirect. location header must be in the header
whichprevents your visitor from seeing html...thats irritating. i miss the
ASP "response.redirect" which can be placed anywhere
J
-Original Message-
From: Carl Furst [mailto:[EMAIL PROTECTED]
Sent: Friday, June 13, 2
Build a JavaScript and have it execute as the document loads... i.e. in the
body tag with an onLoad event...
the header function in php will not do anything if you have sent output
already
-Original Message-
From: Carl Furst [mailto:[EMAIL PROTECTED]
Sent: June 13, 2003 9:23 AM
To: [EMAI
I miss the response.redirect in Python and DTML which can be placed
anywhere as well.
Michael
On Friday 13 June 2003 10:28 am, Johnny Martinez wrote:
> try a delayed javascript redirect. location header must be in the header
> whichprevents your visitor from seeing html...thats irritating. i mis
Javascript.. bah humbug. :)
Carl, you can avoid these issues by using output buffering allowing you to
call header() whever you want in your script.
- Kevin
- Original Message -
From: "Johnny Martinez" <[EMAIL PROTECTED]>
To: "'Carl Furst'" <[EMAIL PROTECTED]>
Cc: <[EMAIL PROTECTED]>
On 2003-06-13 10:54-0600, Kevin Stone wrote:
> Carl, you can avoid these issues by using output buffering allowing you to
> call header() whever you want in your script.
This will not solve the OP's problem; the header will still be output
first, and the client will be immediately redirected. I a
On Fri, 13 Jun 2003 10:54:39 -0600, Kevin Stone wrote:
>Javascript.. bah humbug. :)
>
>Carl, you can avoid these issues by using output buffering allowing you to
>call header() whever you want in your script.
But he doesn't get to see the printed info - so it's basically the same
difference. I
- Original Message -
From: "Zak Johnson" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, June 13, 2003 11:00 AM
Subject: Re: [PHP] Redirects in PHP
> On 2003-06-13 10:54-0600, Kevin Stone wrote:
> > Carl, you can avoid these issues by using output buffering allowing you
to
> >
It's like a meta tag...
JavaScript version:
function deelay(secs)
{
setTimeout("goto_url()",secs*1000)
}
function goto_url()
{
location.href="FILE.PHP"
}
"Carl Furst" <[EMAIL PROTECTED]> skrev i meddelandet
news:[EMAIL PROTECTED]
> I want to do one of those redirect pages where a php script prin
Read the following:
http://us2.php.net/fsockopen
http://www.zend.com/manual/ref.stream.php
-Original Message-
From: Jason Paschal [mailto:[EMAIL PROTECTED]
Sent: Thursday, June 12, 2003 8:48 AM
To: [EMAIL PROTECTED]; [EMAIL PROTECTED]
Subject: Re: [PHP] General question...
ppl, you're
Search engines frown on using meta refresh because of
abuse problems. Some engines won't index the page
period and all of them penalize you at the very least.
While it will work as you described, you're sacrificing
search engine positioning to use it. You need to weigh
the trade-offs
Mich
On 2003-06-13 10:34-0600, Michael wrote:
> Search engines frown on using meta refresh because of
> abuse problems. Some engines won't index the page
> period and all of them penalize you at the very least.
> While it will work as you described, you're sacrificing
> search engine positioning
You're absolutely right. Thus, the need for a server-side
redirect. You can use meta refresh as long as the time is
set to around 10 seconds without being penalized. I
guess you could include a message that you are going to
be transferred in 10 seconds, then provide a link for the
impatient
php-general Digest 13 Jun 2003 17:39:40 - Issue 2115
Topics (messages 151331 through 151385):
Re: Gettnig PHP code out of a DB?
151331 by: Ignatius Teo
151332 by: Ben Houlton
151333 by: Leif K-Brooks
Re: How do I capture a POST responce
151334 by: Ralph
Re:
I don't know of any, but is there a "good" alternative?
-Original Message-
From: Zak Johnson [mailto:[EMAIL PROTECTED]
Sent: Friday, June 13, 2003 1:31 PM
To: [EMAIL PROTECTED]
Subject: Re: [PHP] Redirects in PHP
On 2003-06-13 10:34-0600, Michael wrote:
> Search engines frown on using me
I can understand the abuse, but this page wouldn't need to be indexed on any
search engines really.. but I it's an important consideration.
Thanks!
Thanks to everyone!
Carl.
-Original Message-
From: Michael [mailto:[EMAIL PROTECTED]
Sent: Friday, June 13, 2003 12:35 PM
To: Zak Johnson;
You can do the cheesy: This page has moved. Please click this link.
heheh
J
-Original Message-
From: Carl Furst [mailto:[EMAIL PROTECTED]
Sent: Friday, June 13, 2003 10:43 AM
To: [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Subject: RE: [PHP] Redirects in PHP
I can understand the abuse, but
At 19:00 13.06.2003, Zak Johnson said:
[snip]
>This will not solve the OP's problem; the header will still be output
>first, and the client will be immediately redirected. I am curious
>though; why is everyone suggesting to use JavaScript when the following
But is this the type of stuff that gets penalized in Search Engines or no?
-Original Message-
From: Ernest E Vogelsinger [mailto:[EMAIL PROTECTED]
Sent: Friday, June 13, 2003 1:47 PM
To: Zak Johnson
Cc: [EMAIL PROTECTED]
Subject: Re: [PHP] Redirects in PHP
At 19:00 13.06.2003, Zak Johnso
I run PHP via a simple-minded webserver which sets up some environment
variables and then calls my php scripts (which begin with a
"#!/usr/local/bin/php" line). My scripts must handle all the headers,
including the HTTP status header. My standard included file contains
"header($_SERVER['SERVER_PR
Hello List,
The issue appears to be that no rows are being found with mysql_num_rows using the SQL
LIMIT offset. There should be rows found. Further, all processing just halts, and no
query is shown as per the code here:
// RUN THE QUERY TO RETRIEVE EACH FOUND RECORD
$queryResultHandle = mysql_
Can you give us the query too?
Alex
> Hello List,
> The issue appears to be that no rows are being found with mysql_num_rows
> using the SQL LIMIT offset. There should be rows found. Further, all
> processing just halts, and no query is shown as per the code here:
>
>
> // RUN THE QUERY TO RETRI
Hello everyone,
I am trying to execute a simple query using $_POST variables, so
that variable poisoning is not possible. note: I have register_globals
ON on my site. I am getting the error shown below . Please advise ...
as I can't seem to figure out why !
// connect to the BD/Table et
Amen; machine-translators are no good for something that you don't want
confused.
ie- english "season" could be "sazon" or "estacion" in Spanish, which mean
two different things.
Jake
"Joel Rees" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> > Hello all mailing-list people, I need
On 2003-06-13 14:15-0400, Pushpinder Singh Garcha wrote:
> I am trying to execute a simple query using $_POST variables, so
> that variable poisoning is not possible. note: I have register_globals
> ON on my site. I am getting the error shown below . Please advise ...
> as I can't seem to f
[snip]
$sql1 = "INSERT INTO `contacts`
VALUES (
$_POST['company'],
$_POST['pri_name'],
$_POST['sec_name'],
$_POST['assistant_1'],
$_PO
I have a script that creates a php file based on user input. I need this newly
created file to have write permissions - chmod 777. How can I have the script create
the file with these permissions already set? Is this possible?
Thanks,
Matt
> I have a script that creates a php file based on user input. I need this
> newly created file to have write permissions - chmod 777. How can I have
> the script create the file with these permissions already set? Is this
> possible?
>
> Thanks,
>
> Matt
How are you creating the file? fopen()
uh, could it be...
http://us3.php.net/manual/en/function.chmod.php
-Original Message-
From: Matt Palermo [mailto:[EMAIL PROTECTED]
Sent: Friday, June 13, 2003 1:36 PM
To: [EMAIL PROTECTED]
Subject: [PHP] create a chmod'd file
I have a script that creates a php file based on user input.
On Friday, June 13, 2003, at 02:22 PM, Zak Johnson wrote:
$_POST variables are still subject to poisoning; in your case, SQL
injection.
How is variable poisoning possible when using $_POST ?? I always felt
that the php compiler should check to see if the variable was part of
the POST Global arr
I am using the fopen(), then using fwrite() to write text to it. After this
I am trying this command which doesn't work:
chmod($filename, 0777);
But, this doesn't work, and I'm not sure how to go about chmod'ing the file
for these permissions so that it can be changed later on.
Matt
- Orig
[snip]
I am using the fopen(), then using fwrite() to write text to it. After
this I am trying this command which doesn't work:
chmod($filename, 0777);
But, this doesn't work, and I'm not sure how to go about chmod'ing the
file for these permissions so that it can be changed later on.
[/snip]
I know this is a PHP forum, but this is really urgent!!
A close friend of mine has got many trouble with this problem while
developing a Java chat. Any help would be really appreciated.
Thanks
David.
Problem is as follows:
I'm programming an applet java chat but I have a big problem and I do
On 2003-06-13 14:42-0400, Pushpinder Singh Garcha wrote:
> How is variable poisoning possible when using $_POST ?? I always felt
> that the php compiler should check to see if the variable was part of
> the POST Global array. At least this is is what I thought about the
> $_POST global array.
On Saturday 14 June 2003 02:43, Matt Palermo wrote:
> I am using the fopen(), then using fwrite() to write text to it. After
> this I am trying this command which doesn't work:
>
> chmod($filename, 0777);
>
> But, this doesn't work, and I'm not sure how to go about chmod'ing the file
> for these p
On Saturday 14 June 2003 02:19, Jacob Marble wrote:
> Amen; machine-translators are no good for something that you don't want
> confused.
> ie- english "season" could be "sazon" or "estacion" in Spanish, which mean
> two different things.
Never mind translation, "season" in English has more than o
It just doesn't chmod the file. It doesn't produce errors except for later
on in the script when it says it can't access the file with write
permissions (but it should already be chmod'd by then). Thanks.
Matt
- Original Message -
From: "Jason Wong" <[EMAIL PROTECTED]>
To: <[EMAIL PROTE
On Saturday 14 June 2003 03:01, Matt Palermo wrote:
> It just doesn't chmod the file. It doesn't produce errors except for later
> on in the script when it says it can't access the file with write
> permissions (but it should already be chmod'd by then). Thanks.
If chmod() fails I'm pretty sure
On Fri, 13 Jun 2003 10:38:39 +0200, Marek Kilimajer wrote:
>Are the logs saying anything? Or if you run php from command line?
Sorry should have made that clear. Apache's error log does not show any
reference to PHP or Zend, nor does /var/log/messages. Is there another
place I should look?
>Fr
[snip]
It just doesn't chmod the file. It doesn't produce errors except for
later on in the script when it says it can't access the file with write
permissions (but it should already be chmod'd by then). Thanks.
[/snip]
What are the permissions of the script producing the file? Does it have
the
On Saturday 14 June 2003 01:55, Global I.S. S.A. wrote:
> The issue appears to be that no rows are being found with mysql_num_rows
> using the SQL LIMIT offset. There should be rows found. Further, all
> processing just halts, and no query is shown as per the code here:
>
>
> // RUN THE QUERY TO R
This is not exactly a bug report, because i am not sure where problem
is.
I am using PHP4.3.1 on Win2000/IIS.
I am setting a custom error handler through:
set_error_handler(array(&$objError, 'handleError')); where $objError
is an instance of an error handling class.
Then, i trigger a user error
-Original Message-
From: Douglas Douglas
To: [EMAIL PROTECTED]
To get the superglobal array ($_GET or $_POST), I try
to build these strings '_'.$method. I'm sure this part
works, PHP builds the string _GET or _POST according
to the $method parameter.
I use ${'_'.$method} to get the content
I'm trying to add a variable to the end of a directory listing.
This will give me the root directory and show me all the files
exec('ls /home/httpd/vhosts/sitename.com/httpdocs/resumes/',
$filelist);
I figured I could do this but it shows me all the files in the root of the
site not of th
[snip]
I'm trying to add a variable to the end of a directory listing.
This will give me the root directory and show me all the files
exec('ls /home/httpd/vhosts/sitename.com/httpdocs/resumes/',
$filelist);
[/snip]
Have you thought about using
http://us4.php.net/manual/en/function.opend
Hi all,
I'm new to the list and to PHP. I haven't bought a book as of yet but I've
found a number of resources that are getting me through the basics.
I am collecting data from a form. I've having no problems collecting the
data and printing it out. But...
I have a form with check boxes with 4
I figured it out. Yipppee..
Thanks
-Original Message-
From: Gregory Landry [mailto:[EMAIL PROTECTED]
Sent: Friday, June 13, 2003 4:10 PM
To: [EMAIL PROTECTED]
Subject: [PHP] forms question -- simple
Hi all,
I'm new to the list and to PHP. I haven't bought a book as of yet but I'v
--- gregory landry <[EMAIL PROTECTED]> wrote:
> I figured it out. Yipppee..
>
> Thanks
>
> -Original Message-
> From: Gregory Landry [mailto:[EMAIL PROTECTED]
> Sent: Friday, June 13, 2003 4:10 PM
> To: [EMAIL PROTECTED]
> Subject: [PHP] forms question -- simple
>
>
> Hi all,
>
The following function converts minutes to years, monthes, weeks, days,
hours, minutes. For instance, 61 minutes would become "1 hour, one
minute". Before I use it, I want to make sure there are no stupid
mistakes. I can't find any, can any of you?
function min2ymwdhm($min){
$a = array();
How do I get the script to "own" the file? Are there special commands
needed for this?
Matt
-Original Message-
From: Jay Blanchard [mailto:[EMAIL PROTECTED]
Sent: Friday, June 13, 2003 3:08 PM
To: Matt Palermo; [EMAIL PROTECTED]
Subject: RE: [PHP] create a chmod'd file
[snip]
It just d
> The following function converts minutes to years, monthes, weeks, days,
> hours, minutes. For instance, 61 minutes would become "1 hour, one
> minute". Before I use it, I want to make sure there are no stupid
> mistakes. I can't find any, can any of you?
> function min2ymwdhm($min){
> $a =
Read the bottom of the email messages, it tells you how to unsubscribe.
Alex
> --- gregory landry <[EMAIL PROTECTED]> wrote:
>> I figured it out. Yipppee..
>>
>> Thanks
>>
>> -Original Message-
>> From: Gregory Landry [mailto:[EMAIL PROTECTED]
>> Sent: Friday, June 13, 2003 4:10 PM
>
What is the umask()? What is that used for? How do I set that up
right?
Matt
-Original Message-
From: Jason Wong [mailto:[EMAIL PROTECTED]
Sent: Friday, June 13, 2003 3:08 PM
To: [EMAIL PROTECTED]
Subject: Re: [PHP] create a chmod'd file
On Saturday 14 June 2003 03:01, Matt Palermo wr
Matt Palermo wrote:
I need this newly created file to have write permissions - chmod 777.
First, if you just need to write to it, don't chmod it to 777 (you're
giving rwx across the board doing that). Who needs to write to the
file? The webserver only? Then set the permissions to 600, assuming
Already have, and it seems to work fine. Fairly hard to test though,
since the human brain has a hard time converting number of minutes into
years/monthes/weeks/days/hours/minutes.
Alex Earl wrote:
Why not just try it?
Alex
--
The above message is encrypted with double rot13 encoding. An
I have a mem var $myoutput I would like to pipe it to the input of a
shell_exec command.
I tried shell_exec("command < $myoutput") however this is not quite right.
Anybody have any ideas??
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Like $myoutput=`command`; ?
"Tim T" <[EMAIL PROTECTED]> skrev i meddelandet
news:[EMAIL PROTECTED]
> I have a mem var $myoutput I would like to pipe it to the input of a
> shell_exec command.
>
> I tried shell_exec("command < $myoutput") however this is not quite
right.
> Anybody have any ideas??
maybe try exec?
$instruction = "$myOutput > command ";
# for piping (as I recall) I used to do the input from the right, but I
don't think that will make a difference
exec ($instruction);
Bobby
exec ("command
"Tim T" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> I have a mem var $
Oh, sorry, I missunderstood you... You want $myoutput to be the programs
input, not the output of the program... Hmm... Look into popen(), fputs()
and fclose()...
"Tim T" <[EMAIL PROTECTED]> skrev i meddelandet
news:[EMAIL PROTECTED]
> I have a mem var $myoutput I would like to pipe it to the input
If $myoutput is "foo", it will attempt to get input from a file named
"foo". Use "command | $myoutput" instead.
Tim T wrote:
I have a mem var $myoutput I would like to pipe it to the input of a
shell_exec command.
I tried shell_exec("command < $myoutput") however this is not quite right.
Anybo
Ok, last reply from me I think... Must read until I know for sure before I
post...
http://se.php.net/manual/en/function.proc-open.php seems to be just what you
need!
"Tim T" <[EMAIL PROTECTED]> skrev i meddelandet
news:[EMAIL PROTECTED]
> I have a mem var $myoutput I would like to pipe it to the i
i'm runnig into a random problem of having all the headers being
displayed instead on the actual web page in mozilla, Ie doesn't seem to
suffer from this, when using header("location: www.url.com"); this is
happening randomly. has anybody seen this or have a fix?
-deno
i'm running:
php 4.3.
You could always try header("Location: www.url.com"); (uppercase)...
"Deno Vichas" <[EMAIL PROTECTED]> skrev i meddelandet
news:[EMAIL PROTECTED]
> i'm runnig into a random problem of having all the headers being
> displayed instead on the actual web page in mozilla, Ie doesn't seem to
> suffer fro
1 - 100 of 129 matches
Mail list logo