php-general Digest 4 Mar 2013 17:09:59 -0000 Issue 8148
Topics (messages 320376 through 320382):
Re: Introduction ... !
320376 by: Ravi Gehlot
Open form in new window
320377 by: John Taylor-Johnston
320378 by: Maciek Sokolewicz
320379 by: Terry Ally (Gmail)
320380 by: Maciek Sokolewicz
320381 by: Terry Ally (Gmail)
Re: Very Large File Splatter
320382 by: Richard Quadling
Administrivia:
To subscribe to the digest, e-mail:
php-general-digest-subscr...@lists.php.net
To unsubscribe from the digest, e-mail:
php-general-digest-unsubscr...@lists.php.net
To post to the list, e-mail:
php-gene...@lists.php.net
----------------------------------------------------------------------
--- Begin Message ---
Hello Nick,
Welcome to the list. I joined the list awhile back then unsubscribed for
no apparent reason. This list was very active years ago. I came back about
a few months ago just as a watcher. I didn't really post or participate at
all. I guess, there are a lot of watchers "only" people here. They receive
digest e-mails; they just don't participate in any way. Then, there are
those who lost their jobs due to the recession and so they dropped off the
list as well. There are a lot of developers unemployed. I would imagine
that other developers didn't keep up with the changes. PHP has come a long
way as far as Object Oriented Programming is concerned. There have been
many discussions about Design Patterns and extending existing classes. So a
lot has changed in the last 5 years.
I do believe that the list will pick up again.
Welcome back,
Ravi.
On Fri, Mar 1, 2013 at 10:57 AM, Nick Whiting <prg...@gmail.com> wrote:
> Hello PHP'ers!
>
> Just thought I would introduce myself to the mailing list since I've worked
> with PHP for almost 10 years now and yet haven't really been community
> active ...
>
> I've developed quite a few open-source projects over the years that I hope
> someone here will find as useful as I have ... they are all hosted on
> Github @prggmr.
>
> XPSPL - Signal Processor in PHP
> docpx - PHP Documentation Generator for Sphinx
>
> Again Hello Everyone!
>
> Cheers!
> --
> Nickolas Whiting - prggmr.org
> - Remember to write less code that does more faster -
>
--- End Message ---
--- Begin Message ---
I have many different submit button.
<input value="Update" type="submit">
<input name="DPRmode" value="Enter Data" type="submit">
When php processes value="Enter Data", I would like to open a new
window, but only if I click this one.
Possible? I knw ther is an HTML target="" thingy. Can PHP do anything magic?
--- End Message ---
--- Begin Message ---
On 4-3-2013 6:44, John Taylor-Johnston wrote:
I have many different submit button.
<input value="Update" type="submit">
<input name="DPRmode" value="Enter Data" type="submit">
When php processes value="Enter Data", I would like to open a new
window, but only if I click this one.
Possible? I knw ther is an HTML target="" thingy. Can PHP do anything
magic?
No, it can't. PHP is a *serverside* language, while opening a new window
is fully *clientside*. You could, after recieving the form submission,
send back a redirect which opens in a new window; but far easier would
be to use javascript which would open a new window on submission instead.
PHP is definitly the wrong choice for things like opening browser windows.
--- End Message ---
--- Begin Message ---
You could echo HTML code e.g.
<form action="result.php" method="post">
Number: <input id="quantity" type="text" />
*<button type="button" onclick="OpenWindow()">Submit</button>*
</form>
or include it as one of your form attributes:
*<form action="demo_form.asp" method="get" target="_blank">*
First name: <input type="text" name="fname"><br>
Last name: <input type="text" name="lname"><br>
<input type="submit" value="Submit">
</form>
On 4 March 2013 07:16, Maciek Sokolewicz <maciek.sokolew...@gmail.com>wrote:
> On 4-3-2013 6:44, John Taylor-Johnston wrote:
>
>> I have many different submit button.
>> <input value="Update" type="submit">
>> <input name="DPRmode" value="Enter Data" type="submit">
>>
>> When php processes value="Enter Data", I would like to open a new
>> window, but only if I click this one.
>>
>> Possible? I knw ther is an HTML target="" thingy. Can PHP do anything
>> magic?
>>
>> No, it can't. PHP is a *serverside* language, while opening a new window
> is fully *clientside*. You could, after recieving the form submission, send
> back a redirect which opens in a new window; but far easier would be to use
> javascript which would open a new window on submission instead.
>
> PHP is definitly the wrong choice for things like opening browser windows.
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>
--
*Terry Ally*
Twitter.com/terryally
Facebook.com/terryally
~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~
To print or not to print this email is the environmentally-searching
question!
Which has the highest ecological cost? A sheet of paper or constantly
switching on your computer and connecting to the Internet to read your
email?
--- End Message ---
--- Begin Message ---
On 4 March 2013 09:32, Terry Ally (Gmail) <terrya...@gmail.com> wrote:
> You could echo HTML code e.g.
Which is still purely HTML and has nothing whatsoever to do with PHP.
>
> <form action="result.php" method="post">
> Number: <input id="quantity" type="text" />
> <button type="button" onclick="OpenWindow()">Submit</button>
> </form>
>
> or include it as one of your form attributes:
>
> <form action="demo_form.asp" method="get" target="_blank">
> First name: <input type="text" name="fname"><br>
> Last name: <input type="text" name="lname"><br>
> <input type="submit" value="Submit">
> </form>
Again, pure HTML, and no PHP involved. Specifically, the (asp??) page
called in the form action handler will never even be aware of the fact
that the page was opened in a new window, or at least was supposed to.
--- End Message ---
--- Begin Message ---
I was using an example and NOT intended to show ASP.
On 4 March 2013 08:35, Maciek Sokolewicz <maciek.sokolew...@gmail.com>wrote:
> On 4 March 2013 09:32, Terry Ally (Gmail) <terrya...@gmail.com> wrote:
> > You could echo HTML code e.g.
> Which is still purely HTML and has nothing whatsoever to do with PHP.
>
> >
> > <form action="result.php" method="post">
> > Number: <input id="quantity" type="text" />
> > <button type="button" onclick="OpenWindow()">Submit</button>
> > </form>
> >
> > or include it as one of your form attributes:
> >
> > <form action="demo_form.asp" method="get" target="_blank">
> > First name: <input type="text" name="fname"><br>
> > Last name: <input type="text" name="lname"><br>
> > <input type="submit" value="Submit">
> > </form>
> Again, pure HTML, and no PHP involved. Specifically, the (asp??) page
> called in the form action handler will never even be aware of the fact
> that the page was opened in a new window, or at least was supposed to.
>
--
*Terry Ally*
Twitter.com/terryally
Facebook.com/terryally
~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~
To print or not to print this email is the environmentally-searching
question!
Which has the highest ecological cost? A sheet of paper or constantly
switching on your computer and connecting to the Internet to read your
email?
--- End Message ---
--- Begin Message ---
On 22 February 2013 21:04, Brian Smither <bhsmit...@gmail.com> wrote:
> PHP 5.4.4-TS-VC9 on Windows XP SP3 NTFS non-system drive with 18GB free.
>
> I dare not try to replicate this. As such, I cannot firmly place the blame on
> PHP.
>
> I have peppered a PHP application with a call to a function which
> appends-only to a logfile the parameters passed to it. Each pass of the
> application creates many MB of content.
>
> It is conceivable that I ran out of hard drive space.
>
> When that which what I was working on seemed to be acting very weird, I
> rebooted the computer only to see thousands of lines scroll by from Windows
> repairing the file system.
>
> I discovered logfile contents in many dozens of files. The timestamp and
> filesize of the damaged files were not changed. Only the contents replaced
> with slices of the logfile.
>
> Again, I'm not going to try to 'intentionally' replicate this, so I ask:
>
> Has PHP's interface with the NTFS file sub-system ever been reported to
> splatter a file across the contents of a drive?
At this stage, the safest option is a restore from your backups.
Cross linked files often mean the tail end of one of the cross linked
files is now orphaned.
--- End Message ---