Total noob question

Ye' old general discussion board. Basically, for everything that isn't covered elsewhere. Come here to shoot the breeze, shoot your mouth off, or whatever suits your fancy.
This forum is not for asking programming related questions.

Moderator: General Moderators

PHP noob
Forum Newbie
Posts: 6
Joined: Fri Jan 14, 2005 12:13 pm

Total noob question

Post 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
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post 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
PHP noob
Forum Newbie
Posts: 6
Joined: Fri Jan 14, 2005 12:13 pm

Post by PHP noob »

are there any free ones you would recommend?
Deemo
Forum Contributor
Posts: 418
Joined: Sun Jan 18, 2004 11:48 am
Location: Washington DC

Post by Deemo »

all the info you need to know can be found in the post feyd give you
PHP noob
Forum Newbie
Posts: 6
Joined: Fri Jan 14, 2005 12:13 pm

Post by PHP noob »

I downloaded it and its still happenin...
wot is going wrong? :evil:

Image[/img]
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post 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..
PHP noob
Forum Newbie
Posts: 6
Joined: Fri Jan 14, 2005 12:13 pm

Post 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?
User avatar
JAM
DevNet Resident
Posts: 2101
Joined: Fri Aug 08, 2003 6:53 pm
Location: Sweden
Contact:

Post 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?
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post by feyd »

all three screens are there for me..
User avatar
JAM
DevNet Resident
Posts: 2101
Joined: Fri Aug 08, 2003 6:53 pm
Location: Sweden
Contact:

Post by JAM »

I was right... http://*.exs.cx/* was blocked for some reason. I guess I wasn't to much way off.
PHP noob
Forum Newbie
Posts: 6
Joined: Fri Jan 14, 2005 12:13 pm

Post 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
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post 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"
PHP noob
Forum Newbie
Posts: 6
Joined: Fri Jan 14, 2005 12:13 pm

Post 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... :?:
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post 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.
AngusL
Forum Contributor
Posts: 155
Joined: Fri Aug 20, 2004 4:28 am
Location: Falkirk, Scotland

Post by AngusL »

Try going to Tools -> Folder Options -> Uncheck Hide extensions for known file types.

Just to check the file extension is correct.
Post Reply