php-general Digest 7 Feb 2011 22:06:31 -0000 Issue 7171
Topics (messages 311177 through 311185):
Re: Bilingual strtotime()
311177 by: Per Jessen
Re: String length output in php-generated response
311178 by: Richard Quadling
file upload utility ?
311179 by: Frank Bonnet
311180 by: Daniel Brown
311181 by: Frank Bonnet
311182 by: Ashley Sheridan
311183 by: Jim Lucas
311184 by: Daniel Brown
Secure monetary transactions
311185 by: Paul M Foster
Administrivia:
To subscribe to the digest, e-mail:
[email protected]
To unsubscribe from the digest, e-mail:
[email protected]
To post to the list, e-mail:
[email protected]
----------------------------------------------------------------------
--- Begin Message ---
Alexis wrote:
> So basically, the answer is no :)
> Looks like I'll simply do a replace of the French named months with
> English ones.
>
> Would have thought the length of time that PHP has been around and
> with people around the world, speaking more than just one language,
> that language support would have progressed further than it appears to
> have. Apparently not.
That's not really fair - IMO, developers of multi-lingual applications
usually keep data in a language/locale-neutral format and only
transform to language/locale-specific when the data is being presented.
strtotime() is an unusual function in that it attempts the reverse -
transform arbitrary text into data.
--
Per Jessen, Zürich (5.2°C)
--- End Message ---
--- Begin Message ---
On 6 February 2011 15:57, Florin Jurcovici <[email protected]> wrote:
> said it, Bush junior proved it
Is this actually part of the output?
--
Richard Quadling
Twitter : EE : Zend
@RQuadling : e-e.com/M_248814.html : bit.ly/9O8vFY
--- End Message ---
--- Begin Message ---
Hello
I'm searching for a utility that let our users upload a file
on a server , then generate a temporary link that point
to the real file.
As this is for internal use we don't need security, the file
can be read by anyone.
The goal is to distribute the file to our users by sending
them an email containing the address of the http temporary
link instead of sending it as an email attachement X 1000 ...
Thank you
--- End Message ---
--- Begin Message ---
On Mon, Feb 7, 2011 at 10:56, Frank Bonnet <[email protected]> wrote:
> Hello
>
> I'm searching for a utility that let our users upload a file
> on a server , then generate a temporary link that point
> to the real file.
>
> As this is for internal use we don't need security, the file
> can be read by anyone.
>
> The goal is to distribute the file to our users by sending
> them an email containing the address of the http temporary
> link instead of sending it as an email attachement X 1000 ...
Sounds great. Good luck in your Google search.
--
</Daniel P. Brown>
Network Infrastructure Manager
Documentation, Webmaster Teams
http://www.php.net/
--- End Message ---
--- Begin Message ---
On 02/07/2011 05:01 PM, Daniel Brown wrote:
On Mon, Feb 7, 2011 at 10:56, Frank Bonnet<[email protected]> wrote:
Hello
I'm searching for a utility that let our users upload a file
on a server , then generate a temporary link that point
to the real file.
As this is for internal use we don't need security, the file
can be read by anyone.
The goal is to distribute the file to our users by sending
them an email containing the address of the http temporary
link instead of sending it as an email attachement X 1000 ...
Sounds great. Good luck in your Google search.
I found nothing that's why I wrote this !!!
--- End Message ---
--- Begin Message ---
"Frank Bonnet" <[email protected]> wrote:
>On 02/07/2011 05:01 PM, Daniel Brown wrote:
>> On Mon, Feb 7, 2011 at 10:56, Frank Bonnet<[email protected]> wrote:
>>> Hello
>>>
>>> I'm searching for a utility that let our users upload a file
>>> on a server , then generate a temporary link that point
>>> to the real file.
>>>
>>> As this is for internal use we don't need security, the file
>>> can be read by anyone.
>>>
>>> The goal is to distribute the file to our users by sending
>>> them an email containing the address of the http temporary
>>> link instead of sending it as an email attachement X 1000 ...
>> Sounds great. Good luck in your Google search.
>>
>I found nothing that's why I wrote this !!!
>
>
>
>--
>PHP General Mailing List (http://www.php.net/)
>To unsubscribe, visit: http://www.php.net/unsub.php
Try googling for the following bits:
File upload form
move_uploaded_file()
file_get_contents()
That will get you going, then if you have written a script and get stuck then
you can ask us on specifics here. We don't write whole code for you.
Thanks
Ash
http://www.ashleysheridan.co.uk
--
Sent from my Android phone with K-9 Mail. Please excuse my brevity.
--- End Message ---
--- Begin Message ---
On 2/7/2011 8:03 AM, Frank Bonnet wrote:
> On 02/07/2011 05:01 PM, Daniel Brown wrote:
>> On Mon, Feb 7, 2011 at 10:56, Frank Bonnet<[email protected]> wrote:
>>> Hello
>>>
>>> I'm searching for a utility that let our users upload a file
>>> on a server , then generate a temporary link that point
>>> to the real file.
>>>
>>> As this is for internal use we don't need security, the file
>>> can be read by anyone.
>>>
>>> The goal is to distribute the file to our users by sending
>>> them an email containing the address of the http temporary
>>> link instead of sending it as an email attachement X 1000 ...
>> Sounds great. Good luck in your Google search.
>>
> I found nothing that's why I wrote this !!!
>
>
>
Frank,
Not sure what words you used, here was mine
php file upload examples
Those words resulted in these two at the top of the list
http://www.tizag.com/phpT/fileupload.php
http://www.w3schools.com/PHP/php_file_upload.asp
I briefly read each of them and they are sufficient for what you are trying to
do. All you have to do is tie in the email portion and that's that.
So, again, to google, I typed these wonderful words of wisdom.
php email example
The first result was this
http://www.w3schools.com/PHP/php_mail.asp
This will get you a very simple email script working. Personally, I would not
do it this way, but since you mention that this will be all internal, it will
probably do just fine. If you want a little more control over the email or plan
to use this to send email to outside recipients, I would recommend doing it
differently.
phpmailer
Download that package, then follow its tutorials on how to set it up and send
emails.
phpmailer examples
The first result is this
http://phpmailer.worxware.com/index.php?pg=examples
It has a variety of examples that should cover almost any scenario you can
possibly think of.
Just one thing, do not try and be a cut/paste god here. Actually take time to
read the examples and understand what they do before you put them into
production.
This will now end my "How to use Google" segment for the day.
Jim Lucas
--- End Message ---
--- Begin Message ---
On Mon, Feb 7, 2011 at 11:03, Frank Bonnet <[email protected]> wrote:
> I found nothing that's why I wrote this !!!
My point is, you only told everyone what you're trying to do. Not
once did you ask a question or mention where you're seeking guidance,
other than your ambivalence on file uploads and distribution. The
ambiguous nature of your expression makes it even more difficult: you
want a utility, not help in authoring it in PHP. This is a PHP
programming mailing list for peer-to-peer support by members of the
community, not a "tell me the name of software I can download to do
this job" group.
--
</Daniel P. Brown>
Network Infrastructure Manager
Documentation, Webmaster Teams
http://www.php.net/
--- End Message ---
--- Begin Message ---
(Sorry-- originally sent without subject.)
I have a customer who currently has his site set up this way: donors
select (on a non-secure page) the level of donation they want to donate,
provide their name and an attestation, etc. None of the data
confidential. Then they press the button, and we send them off to a
secure payment gateway operated by the merchant service company. They
take down the credit card and other information, clear the transaction,
and pass the approval/disapproval info back to my customer's website. An
email then gets fired to my customer containing all the data about the
transactions EXCEPT the confidential information, like credit card
number, etc.
In essence, my customer is not responsible for any confidential/secure
information, which is all handled by the merchant gateway.
For whatever unknown reason, my customer has been convinced they should
go with a different merchant service company. However, this company
doesn't have the same kind of secure payment pages. (Yes, they're
legitimate, but they're simply a payment processor. They don't have the
additional site to accept manual input of payment information and such.)
I've explained to my customer that, in doing this, he will need:
1) a fixed IP ($)
2) a security certificate ($)
3) an online store (as opposed to a single page he has now)
4) a whole new set of PCI responsibilities which his organization is not
prepared to fulfill. ($)
I'm certain people on this list have set up this type of system for
customers. So I have some questions:
1) Does the usual online store software (osCommerce or whatever) include
"secure" pages for acceptance of credit cards? I know they have the
capability to pass this info securely off to places like authorize.net
for processing.
2) Assuming a customer website, probably hosted in a shared hosting
environment, with appropriate ecommerce store software, how does one
deal with PCI compliance? I mean, the customer would have no control
over the data center where the site is hosted. Moreover, they would
probably have little control over the updating of insecure software, as
demanded by PCI. They likely don't have the facilities to do the type of
penetration testing PCI wants. So how could they (or how do you) deal
with the potentially hundreds of questions the PCI questionnaire asks
about all this stuff? How do you, as a programmer doing this for a
customer, handle this?
Paul
--
Paul M. Foster
http://noferblatz.com
--- End Message ---