Page 1 of 2

Total noob question

Posted: Fri Jan 14, 2005 12:19 pm
by PHP noob
Lol its probably somin really stupid, since i have only just learnt the basics of php but every time i try to write a script and save it in notepad, it turns into a Microsoft Picture it Document :? (As shown in the ss)

Image

I think its probably the way im saving it, so the ss shows how i normally do it, please tell me if im doing it wrong

Image

Posted: Fri Jan 14, 2005 12:27 pm
by feyd
notepad typically will assume a .txt extension, no matter what name you put in the filename field. So it'll add that if it's not there.

Getting around this issue is fairly simple.. put double quotes around the filename you use. Although I've never had it save as a picture it file, whatever that is..

I'd suggest you get a "real" code editor, such as those talked about in the General forum's thread on Editors: viewtopic.php?t=6288

Posted: Fri Jan 14, 2005 12:44 pm
by PHP noob
are there any free ones you would recommend?

Posted: Fri Jan 14, 2005 12:49 pm
by Deemo
all the info you need to know can be found in the post feyd give you

Posted: Fri Jan 14, 2005 1:14 pm
by PHP noob
I downloaded it and its still happenin...
wot is going wrong? :evil:

Image[/img]

Posted: Fri Jan 14, 2005 1:23 pm
by feyd
it's possible that .php has been mapped to picture it. I haven't ever used it, so I have no idea the file extensions it uses..

[edit] yep.. I just searched through the documentation to picture it, .php is a picture it and photo something file in it..

Posted: Fri Jan 14, 2005 3:34 pm
by PHP noob
ah, thankyou

Do you know a specific way to change that, or should i just mess around with some buttons to try and do it?

Posted: Fri Jan 14, 2005 3:37 pm
by JAM
Is it just me, or is the SS gone? ( I sometimes manage adblock wrong hosts =) ) Without it i can only guess whats happening here, so if my reply is way bad, sorry.

Hold shift down, right click a .php file. Choose "Open With", select a software of choise and mark the checkbox at the bottom?

Posted: Fri Jan 14, 2005 3:43 pm
by feyd
all three screens are there for me..

Posted: Fri Jan 14, 2005 11:57 pm
by JAM
I was right... http://*.exs.cx/* was blocked for some reason. I guess I wasn't to much way off.

Posted: Sat Jan 15, 2005 3:50 am
by PHP noob
Nope, that only seems to open the file with the program, not actually change the type of file it is... (If that makes sense :? )
But i cant seem to see this checkbox, so mayb it mite work if i could

Thanks for tryin to help anyway

Posted: Sat Jan 15, 2005 9:20 am
by feyd
okay.. there are 2 ways to change which program opens what and when.

First way (Windows XP):
  1. right-click a file who's type you wish to change.
  2. select "properties"
  3. You should now see an icon, which is next to the filename. Under this is "Type of File" and "Opens With".
  4. Click "change" next to "opens with"
  5. select the program you wish to open the file in
More advanced way:
  1. open "Windows Explorer": Start > Accessories > Windows Explorer
  2. Once open, select Tools > Folder Options
  3. Click the "File Types" tab
  4. Find "PHP" in the extensions list
  5. Once selected, you should see a description of the current settings below.
  6. Click "Advanced"
  7. You can now edit the individual options for opening the file, like "edit" and "open"

Posted: Sat Jan 15, 2005 12:48 pm
by PHP noob
OMG its still not working :evil:

Image

But it is still a...

Image

Ive tried loads of things too, like deletin all the files i want to be php and doing them again, restorin them back to Picture It! files and then tryin to turn them into PHP and all little things like that... :?:

Posted: Sat Jan 15, 2005 12:56 pm
by feyd
so it's still mapped to Picture It, and not just using Picture It's icon for it?

Even after a restart (it could happen) ..

You might want to see if you have something like "restore extensions" enabled in Picture It, as well... I'm running out of ideas.

Posted: Mon Jan 17, 2005 10:19 am
by AngusL
Try going to Tools -> Folder Options -> Uncheck Hide extensions for known file types.

Just to check the file extension is correct.