> hi,
>
> i've a simple question:
>
> how can i read the stuff that got piped ("|") to the php-script?
>
> i.e. "ls -l | /home/myuser/phpscript.php"
[snip]
It is the stdin of the script, you can open that file handle with fopen(
"stdin", "r" ); i believe
Slide
--
PHP General Mailing List (http:
I'm guessing perhaps you didn't upload the sound to the server when you
uploaded the webpage?
Slide
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
> header("Content-type: application/zip");
> header("Content-Disposition: attachment; filename=yourfilename.zip");
> readfile("/path/to/yourfilename.zip");
>
I have found that to make sure it works with all browsers you want to put
quotes around the filename in the content-disposition header.
hea
>
> If he wants to download, in the file downloadit.php, there is:
> header("Content-type: application/octet-stream\n");
> header("Content-Disposition: attachment; filename=mysoft-1.0-truc.zip");
> header('Cache-Control: public');
> header("Content-transfer-encoding: binary\n");
> header("Content-l
> I have text a file which contains php code. I am using it as a template
> for some other pages. I want to take everything in that file and store it
> in a string or array and then output it all to an empty file (this will
> make both files look exactly the same). I am using the
> file_get_cont
> At 6/11/2003 09:42 AM, Amanda McComb wrote:
>
> > If I have multiple forms on a page, and each form has it's own name,
> how
> > can I tell which form has submitted?
>
> By its contents.
>
Give the submit buttons different names, then you can test to see which
one is set to see which form was
Sounds like you have magic quotes turned on in your php.ini. I would check
that out.
Alex
> Will the stripslashes() remove the slashes that are supposed to be in the
> file? Because often times there are slashes in the file that need to be
> there.
>
> Matt
> - Original Message -
> From
> Sorry, I don´t know that you needed an effective snipet. And you are
> right,
> I only writed for positive integers. Try something like apply 2 type cast
> simunltaneous.
>
> if ( (string) ((int) $_POST["var_int"]) == $_POST["var_int"])
> echo "is int";
>
Why not just use the is_int() func
>>
>> > Sorry, I don´t know that you needed an effective snipet. And you are
>> > right,
>> > I only writed for positive integers. Try something like apply 2 type
> cast
>> > simunltaneous.
>> >
>> > if ( (string) ((int) $_POST["var_int"]) == $_POST["var_int"])
>> > echo "is int";
>> >
>>
>>
>
> 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 as
> form input, which is always a string), you must use is_numeric().
>
The problem with is_numeric() is that
> I have error reporting set to E_ALL, but no matter what I do, no errors
> display. Is there somewhere else in the .ini that I have to set
> something?
>
I believe there is a print_errors or show_errors directive in the php.ini
file. Check on php.net for sure.
Alex
--
PHP General Mailing List
>
> 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, under certain
> circumstances.
>
> Thanks.
>
You can unset the variable www.php.net/unset but also I wou
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
> 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()
> 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
>
16 matches
Mail list logo