The Cache: Technology Expert's Forum
 
*
Welcome, Guest. Please login or register. September 22, 2019, 07:29:08 PM

Login with username, password and session length


Pages: [1]
  Print  
Author Topic: __MACOSX  (Read 2415 times)
Phaėton
Lifer
*****
Offline Offline

Posts: 555


⎝⏠⏝⏠⎠


View Profile
« on: September 15, 2010, 07:33:43 PM »

When i see a folder like this that's seperate on a downloadable plugin or
snippet... i look in the code and don't see anything for testing environment
and selecting those particular files....

If im running MAMP do i upload the __MACOSX files because
they will have different LineEnd characters?


Macs clients arent requesting different files based on something i dont know about
requiring me to upload both are they?
Logged

When I was your age we used to walk to the TV to change the channel....  _̴ı̴̴̡̡̡ ̡͌l̡̡̡ ̡͌l̡*̡̡ ̴̡ı̴̴̡ ̡̡͡|̲̲̲͡͡͡ ̲▫̲͡ ̲̲̲͡͡π̲̲͡͡ ̲̲͡▫̲̲͡͡ ̲|̡̡̡ ̡ ̴̡ı̴̡̡
perkiset
Olde World Hacker
Administrator
Lifer
*****
Offline Offline

Posts: 10096



View Profile
« Reply #1 on: September 15, 2010, 08:46:23 PM »

Sorry meng, I am completely baffled about what you are asking.

Macs use Unix LF rather than Windows CRLF as a line end, true. However, having HTML files (for example) with either will be correctly interpreted by the local browser because whitespace is functionally ignored.

If you are uploading PHP files with CRLF in them you MAY have troubles. The PHP interpreter may well see a problem because it is not expecting a 0x0A in the file. You may wish to use a text editor to zap them - most Mac editors understand this and can help.

But your last question is about Mac *clients* - well, the header for the HTTP packet will give you directions about what the client will accept, particularly if you can send files compressed and such. In the header you can see the OS running and the user agent, which can tell you to modify your behavior based on the client. But that is strictly server side optional, as the W3C outlines are quite specific that downloaded files must be interpretable by anything ergo, all browser clients have to deal with different ends-of-line.

Man I hope that helps or at least demonstrates how vastly I missed what you're asking...
Logged

It is now believed, that after having lived in one compound with 3 wives and never leaving the house for 5 years, Bin Laden called the U.S. Navy Seals himself.
Phaėton
Lifer
*****
Offline Offline

Posts: 555


⎝⏠⏝⏠⎠


View Profile
« Reply #2 on: September 16, 2010, 12:01:02 AM »

okay thanks!

Quote
Sorry meng, I am completely baffled about what you are asking.

 damn i really tried to think out
that question too so it would make sense... im 'on the wagon' and everything!
must be the insomnia kicking in.

 ROFLMAO

so mac clients dont make any sort of request for seperate code and
if i upload the correct version corresponding to my server type it sounds
like from what you said im good... my concern that was a mac client might
request the __MACOSX file or something but it sounds like you are saying it wont.

im assuming the two different files are included
in these packages im downloading because if you
have a mac server and you cant convert between LF styles
then they give you the converted versions to upload...


you would upload the MAC osx versions of these php scripts
to a mac server and the regular ones to unix server and
(who knows what on windows lol... always something klewdgy)

So it is not likely that both need to be uploaded... im assuming
that the different versions are to be uploaded to their respective server types.

here is a small example of what im talking about...

* NiceSimpleContactForm.zip (6.94 KB - downloaded 196 times.)
Logged

When I was your age we used to walk to the TV to change the channel....  _̴ı̴̴̡̡̡ ̡͌l̡̡̡ ̡͌l̡*̡̡ ̴̡ı̴̴̡ ̡̡͡|̲̲̲͡͡͡ ̲▫̲͡ ̲̲̲͡͡π̲̲͡͡ ̲̲͡▫̲̲͡͡ ̲|̡̡̡ ̡ ̴̡ı̴̡̡
vsloathe
vim ftw!
Global Moderator
Lifer
*****
Offline Offline

Posts: 1669



View Profile
« Reply #3 on: September 16, 2010, 08:17:51 AM »

It's just a standard right now. That directory will contain helper files or whatever is needed to make it run on OSX.
Logged

hai
lamontagne
Journeyman
***
Offline Offline

Posts: 89


View Profile
« Reply #4 on: September 16, 2010, 12:35:49 PM »

I'm gonna start including a folder in all of my projects thats named "__MACOFSEX" ... that way everybody knows that the mac of sex made it...
Logged

"Long time no see. I only pray the caliber of your questions has improved." - Kevin Smith
Pages: [1]
  Print  
 
Jump to:  

Perkiset's Place Home   Best of The Cache   phpMyIDE: MySQL Stored Procedures, Functions & Triggers
Politics @ Perkiset's   Pinkhat's Perspective   
cache
mart
coder
programmers
ajax
php
javascript
Powered by MySQL Powered by PHP Powered by SMF 1.1.2 | SMF © 2006-2007, Simple Machines LLC
Seo4Smf v0.2 © Webmaster's Talks


Valid XHTML 1.0! Valid CSS!