[PHP] IE can't download, FF can: SSL ? Need special headers?

2009-05-22 Thread Dee Ayy
The following code has been working for about 6 years. The only change I am aware of is that now it is being served from a server requiring SSL to access it. header("Content-type: $type"); header("Content-length: $size"); header("Content-Disposition: attachment; filename=\"$name\""); echo $data;

Re: [PHP] IE can't download, FF can: SSL ? Need special headers?

2009-05-22 Thread Dee Ayy
Kyle, Well I guess that is good news. But I don't trust these headers since the filename is not being set. But that was even before this IE issue. Bastien, I don't understand how I could "save the file to the hard disk" from IE. But yes, I save the file (it gets saved as my_php_file.php on the

Re: [PHP] IE can't download, FF can: SSL ? Need special headers?

2009-05-22 Thread Dee Ayy
I went with this, modified from http://php.he.net/readfile docs example 1: header('Content-Description: File Transfer'); header('Content-Type: '.$type); header('Content-Disposition: attachment; filename='.basename($name)); header('Content-Transfer-Encoding: binary'); header('Expires: 0'); header('

Re: [PHP] IE can't download, FF can: SSL ? Need special headers?

2009-05-22 Thread Dee Ayy
Acceptable results, but could be better. basename works correctly for only Safari (filenames with spaces are correct). FF truncates the name starting with the first space. IE puts an underscore in place of a space. urlencode puts a plus sign in place of a space for all 3 browsers. But I've alway

Re: [PHP] urgent CSS question

2009-05-22 Thread Dee Ayy
Find the "Computed Style" and how it was inherited (cascaded). In Safari, use Web Inspector. In Firefox, use Firebug. In Internet Explorer, use DebugBar. All free as in $0. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] IE can't download, FF can: SSL ? Need special headers?

2009-05-22 Thread Dee Ayy
>> Thoughts? >> >> -- > > what about just CamelCasing the name? no spaces. > > -- > > Bastien I've asked the user to use underscores, but they really shouldn't have to. Safari gets it right. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] IE can't download, FF can: SSL ? Need special headers?

2009-05-22 Thread Dee Ayy
On Fri, May 22, 2009 at 1:24 PM, Eddie Drapkin wrote: > or even just str_replace(' ' , '_', $name) consistent and works, no? Good one. Put it back on me rather than the browser developers. But that's in line with my requesting the user to use underscores. I'll implement this str_replace. Thank

Re: [PHP] IE can't download, FF can: SSL ? Need special headers?

2009-05-22 Thread Dee Ayy
That's what I had in my first post. What are the rest of your headers? This is what is now deployed and I consider this issue resolved, but allowing spaces in the filename across IE, FF, and Safari browsers would be the real solution. It's untested on other browsers: header('Content-Description

Re: [PHP] urgent CSS question

2009-05-22 Thread Dee Ayy
I had an id killing me the other day. Turned out I was going blind. A different font or glasses would have helped me see that I was not using the id I thought I was. Just a thought. The following are 5 different characters: iIl1! Also, the debug tools I mentioned should confirm that they have

Re: [PHP] IE can't download, FF can: SSL ? Need special headers?

2009-05-26 Thread Dee Ayy
Ashley, Don't scare me like that. I know I'm losing my eye sight, but a copy-paste-diff shows your header("Content-Disposition: attachment; filename=\"$filename\""); differs from my original post's header("Content-Disposition: attachment; filename=\"$name\""); by only the text "file". This method

Re: [PHP] IE can't download, FF can: SSL ? Need special headers?

2009-05-28 Thread Dee Ayy
Andrea and Ashley, Thanks ladies. Originally, IE claimed that the server wasn't even there (with that wacky IE error). I was lacking headers (which was fine for 6 years prior). The code below is consistent across the 3 browsers I tried (Safari, FF, IE). However, it converts spaces to underscore

Re: [PHP] Confirmation email caught by spam filter

2009-05-29 Thread Dee Ayy
Are you sure it's a PHP thing? The way I have some of my email accounts setup is that I only accept email from folks in my address book. If I just registered a new account somewhere, chances are I do not have them in my address book, so it will go to the Junk/Spam folder. If this is your issue,

Re: [PHP] Re: PHP vs ASP.NET

2009-06-01 Thread Dee Ayy
> ASP.NET is not a language. It is more like a framework that can run > multiple languages. It can run VB.NET, C# and even PHP (although it is > not usual). I'm going to shoot from a (90's?) hip on this one. Isn't ".NET" the framework, and ".NET" the language? ASP.NET uses ASP to access the .NET

Re: [PHP] PHP vs ASP.NET

2009-06-01 Thread Dee Ayy
>    "Will Assembly be replaced by LOLCODE?"  Nonsense - they're > separate entities. KTHXBYE -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Source Code Analysis

2009-06-07 Thread Dee Ayy
On Wed, Oct 22, 2008 at 4:30 PM, Dee Ayy wrote: > Thanks regarding the error_reporting.  I may have to go this route for > this specific issue. > ... > ...  And not only for this specific issue. I have another need for a SCA tool. Is there an existing tool similar to a broken link

Re: [PHP] Re: SHOULD I NOT USE "ELSE" IN IF STATEMENTS....?

2009-06-08 Thread Dee Ayy
It's for better code. Personally, I'm trying to get away from multiple return/exit paths, and practice more OOC/Eiffel-like coding (I haven't sprung for the book Object Oriented Construction yet http://archive.eiffel.com/doc/oosc/page.html ) and I'm not quite taking advantage of Design By Contract

Re: [PHP] php applications

2009-06-08 Thread Dee Ayy
tedd, You can check out MacPorts http://www.macports.org/ and the port package php5-gtk But Xcode and Interface Builder are your friends for native/fast apps. Although you probably get Cross-OS portability going the php-gtk route. -- PHP General Mailing List (http://www.php.net/) To unsubscribe

Re: [PHP] php applications

2009-06-08 Thread Dee Ayy
> I'm used to an IDE where you write code, run, and debug it. When you get it > where you want and want to create an application, then you compile the code > and there's an application -- a stand alone application -- done! You may be looking for glade http://glade.gnome.org/ It's in MacPorts as gl

Re: [PHP] key for in_array()

2009-06-08 Thread Dee Ayy
array_search in the See Also section for in_array docs? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] php applications

2009-06-08 Thread Dee Ayy
> Not as smooth as Xcode and Interface Builder eh? I had interesting results with my first custom MyApp.app bundle. >From >http://developer.apple.com/documentation/CoreFOundation/Conceptual/CFBundles/Concepts/BundleAnatomy.html#//apple_ref/doc/uid/20001119-104977-TPXREF4 I made a new folder named

[PHP] Testing "Broken Pipe" Recovery?

2009-09-22 Thread Dee Ayy
How do I intentionally break a pipe so that I can test recovering under this eventuality? I saw this post "[PHP] Pushing the limits of stream_socket_server() and stream_select()" but my intermittent broken pipe occurs with 1 client, so I don't want to to create a 252 client situation. I'm actuall

[PHP] Can't find existing file

2010-11-22 Thread Dee Ayy
1) Warning: getimagesize("./photos/HPR-130-260_HD-3070-1.jpg"): failed to open stream: No such file or directory in ... on line ... ls ./photos/HPR-130-260_HD-3070-1.jpg ./photos/HPR-130-260_HD-3070-1.jpg ls "./photos/HPR-130-260_HD-3070-1.jpg" ./photos/HPR-130-260_HD-3070-1.jpg 2) Similarly...

Re: [PHP] Can't find existing file

2010-11-22 Thread Dee Ayy
There are 2 separate issues numbered 1) and 2). #1 deals with getimagesize operating on definitely existing files verified by "ls". #2 deals with escaping spaces in the name of the file and using the exec command, which an example was given for a different file name than in #1. -- PHP General M

Re: [PHP] Can't find existing file

2010-11-22 Thread Dee Ayy
Hi Daniel, Tell me if this isn't self explanatory: cp ./photos/Nozzle\ 130\ Amp\ SS\ Alum\ 94-00994-06\ 220197.JPG "./photossized/001196-220197-0.jpg" cp: ./photos/Nozzle 130 Amp SS Alum 94-00994-06 220197.JPG: No such file or directory Thanks for trying. Usually coders c

[PHP] file_exists fun

2011-12-02 Thread Dee Ayy
The following code: $new_file = ADS_DIR_INTERNAL.'/'.$ad_info['id'].'_'.$ad_info['filename']; echo "NEW_FILE:[".$new_file."]\n"; echo "file_exists Using VAR:[".file_exists($new_file)."]\n"; echo "file

[PHP] Re: file_exists fun

2011-12-02 Thread Dee Ayy
On Fri, Dec 2, 2011 at 1:30 PM, Dee Ayy wrote: > The following code: > >                        $new_file = > ADS_DIR_INTERNAL.'/'.$ad_info['id'].'_'.$ad_info['filename']; >                        echo "NEW_FILE:[".$new_fi

[PHP] Settings to Allow Precise File Upload Bytes

2012-01-20 Thread Dee Ayy
Please advise the proper settings (Apache/PHP/HTML/MySQL/Anything else I missed) to allow a specific byte size upload and to deny 1 byte over with error reporting in LAMP/AJAX. I've heard of Flash and Gears solutions, but these require additional installs for the user -- just to know the file size

[PHP] Re: Settings to Allow Precise File Upload Bytes

2012-01-20 Thread Dee Ayy
ully downloaded the file, there is no > setting in Apache, PHP, MySQL (which has absolutely nothing to do with > uploading at all), etc. Which are all server-side and ran after the upload > has finished. > > In other words: use the Flash/Gears solution, or just decide you don't

[PHP] Re: Settings to Allow Precise File Upload Bytes

2012-01-20 Thread Dee Ayy
arrowed my specific issue down to PHP $_FILES['attachment']. Thanks for all your help Jim. On Fri, Jan 20, 2012 at 2:38 PM, Maciek Sokolewicz wrote: > Answers are inside the mail > > On 20 January 2012 21:18, Dee Ayy wrote: >> >> Obviously I don't want a Flash/G

Re: [PHP] ini_set('memory_limit', '16M')

2007-11-28 Thread Dee Ayy
On Nov 28, 2007 4:05 PM, George Pitcher <[EMAIL PROTECTED]> wrote: > Hi, > > > On one script (pulling large amount of data from mysql) I'm getting error: > > "Fatal error: Allowed memory size of 16777216 bytes exhausted..." > > I put on the beginning of the page > > ini_set('memory_limit', '64M');

Re: [PHP] Can I create flash via php?

2007-11-28 Thread Dee Ayy
Go back and read Warren's reply to you. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] date CDT CST UTC

2008-03-26 Thread Dee Ayy
Today, we are in Central Daylight Time "CDT" in Dallas, Texas, USA -- yes? "date" on: mail server: Wed Mar 26 11:45:00 CDT 2008 (CORRECT) web server: Wed Mar 26 11:45:00 CST 2008 Note CDT versus CST. "date -u" mail server: Wed Mar 26 16:45:00 UTC 2008 (CORRECT at 11:45 AM local time [Central Dayl

Re: [PHP] date CDT CST UTC

2008-04-07 Thread Dee Ayy
> Daylight Savings Time must die! Oh, by the way, thanks for your reply. So last night my clock went forward an hour on this cool DST-aware dual alarm clock radio I bought in 1999. Apparently DST rules have changed http://en.wikipedia.org/wiki/Year_2007_problem so now my clock isn't as cool any

[PHP] Source Code Analysis

2008-10-22 Thread Dee Ayy
Is there a tool that can analyze PHP source code and detect if the code is relying on register_globals still being on? Perhaps detecting if a variable has not been initialized within the code? These are my specific needs, but I'm also interested in general SCA tools and features. -- PHP General

Re: [PHP] Source Code Analysis

2008-10-22 Thread Dee Ayy
Thanks regarding the error_reporting. I may have to go this route for this specific issue. I was hoping a source code analyzer would report the same type problem, perhaps much faster than Robert's method, and without having a human attempt to test all functionality of the various PHP apps on old

[PHP] file_get_contents urlencode spaces: yeah right?

2008-11-10 Thread Dee Ayy
PHP Version 5.1.6 $contents = file_get_contents("http://user:[EMAIL PROTECTED]/some/path/htmlfile.html"); //WORKS $contents = file_get_contents("http://user:[EMAIL PROTECTED]/some/path/htmlfile with spaces.html"); //FAILS(1) $con

Re: [PHP] file_get_contents urlencode spaces: yeah right?

2008-11-10 Thread Dee Ayy
My bad. I urlencoded the %20 LOL %20 works. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] file_get_contents urlencode spaces: yeah right?

2008-11-10 Thread Dee Ayy
On Mon, Nov 10, 2008 at 5:26 PM, Dee Ayy <[EMAIL PROTECTED]> wrote: > My bad. > > I urlencoded the %20 LOL > > %20 works. > And just in time to go home. Thanks. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] file_get_contents urlencode spaces: yeah right?

2008-11-10 Thread Dee Ayy
> Have you tried to output the result of urlencode and paste the whole > thing in a browser to make sure that it works? The FF 3.0.3 browser likes http://user:[EMAIL PROTECTED]/some/path/eitherfile with spaces.ext and http://user:[EMAIL PROTECTED]/some/path/eitherfile%20with%20spaces.ext but NOT h