I had to replace one PHP script with a Perl CGI script not too long ago. PHP changed the data it presents to it's scripts that describe the filename of uploaded files (via a form input). The old behaviour was to provide the whole path to the file. The new behaviour provides only the filename (ie no path). This happened in a dot release and I could not find mention of it in the changelog. This is one of the main reasons I stopped developing in PHP.
Now I had a customer who had a Java program written to upload directories at a time via HTTP POST. His clients used it and logged in to his site which kept track of the uploads via PHP's session cookies. I had to fix it ASAP and I was not about to hack away at the PHP source or keep a custom patch to PHP for all future upgrades.
I needed to get Perl to read PHP's session files to keep track of who was uploading what files.
PHP::Session made this really easy. I did however have to change a variable in the code. (save_path in Session.pm).
Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
Read Where should I post X? if you're not absolutely sure you're posting in the right place.
Please read these before you post! —
Posts may use any of the Perl Monks Approved HTML tags:
- a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
| |
For: |
|
Use: |
| & | | & |
| < | | < |
| > | | > |
| [ | | [ |
| ] | | ] |
Link using PerlMonks shortcuts! What shortcuts can I use for linking?
See Writeup Formatting Tips and other pages linked from there for more info.