OBEX spin files open as PHP files
AGCB
Posts: 327
There are some, not all OBEX files that only open as PHP files. I've tried all I know how to do but can't figure it out. Anyone else have this problem or know a fix or explanation?
For instance in the motor control section, 2nd page the PID objects by CRGWBR will only open in PHP.
suggestions? Thanks Aaron
For instance in the motor control section, 2nd page the PID objects by CRGWBR will only open in PHP.
suggestions? Thanks Aaron
Comments
I can view PID and PID-demo.spin as text in google-chrome and firefox just fine.
Od course the URL for those links is:
http://obex.parallax.com/sites/all/modules/pubdlcnt/pubdlcnt.php?file=http://obex.parallax.com/sites/default/files/obj/id/453/PID.spin&nid=453
and
http://obex.parallax.com/sites/all/modules/pubdlcnt/pubdlcnt.php?file=http://obex.parallax.com/sites/default/files/obj/id/453/PID-_Demo.spin&nid=453
Note the .php in there. No doubt that is confusing something.
By the way what happens? What is a PHP file supposed to look like other than plain text?
I checked in the control panel>default programs and SPIN file types are supposed to open in the propeller tool which most do.
Attached is a PHP sample.
Thanks Aaron
What has PHP got to do with anything?
When I fetch the spin source from those links with the curl program and save the HTTP headers that come back with it I see they have "Content-Type: application/pdf" which is clearly wrong.
Some how my chrome and firefox are ignoring that and displaying plain text.
This looks like a fault in the forum software.
which comes back with "Content-Type: text/html" which should be OK.
I believe this has been reported before.
Quick fix..right click on the .spin file and save as to tour computer.
save as to tour computer
Sorry. I don't know what that means.
Yes that's what I get
Edit: How I save the PHP file to a .spin or .zip file
YES. That works. Thank you very much, Dave & Heater & Publison & Ratonic Too