Welcome! Log In Create A New Profile

Advanced

PHP saved file opens with ??

Posted by 47639555 
Announcements Last Post
Announcement SoC Curricula 09/30/2017 01:08PM
Announcement Demarcation or scoping of examinations and assessment 02/13/2017 07:59AM
Announcement School of Computing Short Learning Programmes 11/24/2014 08:37AM
Announcement Unisa contact information 07/28/2011 01:28PM
PHP saved file opens with ??
August 28, 2012 11:35AM
hi.
i have made a mess up.
i went to notepad and wrote the page and saved it "infophp.php" it opens in word again and not in the explorer.
if you click on the file in properties under the general tab, with what must it Open with: ?
i have accidentally changed the open with and know nothing seems to work.

Please assist, i am struggling so ad i do not know how to fix this.
i will really appreciate!
Re: PHP saved file opens with ??
August 28, 2012 12:35PM
Click on the file "infophp.php" (Do not double click it) then press Shift+F10 on the menu that appears check for an option called "Open With" and select "Choose default program"
From the list of programs where you can select the correct one, there is also a checkbox with the text "Always use the selected program to open this kind of file" make sure you have that ticked.

On a side note, opening php files directly in a browser won't work. You have to run this via a web server in this case I'm pretty sure everyone uses Apache. The url should be something like
http://localhost/mysite/infophp.php and not file://c:/myphpfolder/infophp.php

If the protocol you are requesting the file from is file and not http (as per the above example) it's just going to spit out text, rather than interpret the code.

Hope that helps
Re: PHP saved file opens with ??
August 28, 2012 12:45PM
Hi,
Ive look under opens with there is no option for default program. it just gives me a list of the programs installed on my pc.
if the file is saved should the type e PHP file?

must i save it in a certain place on my c drive? or can i work from desktop..
do i have to type the url to where the file is located on my pc?

sorry to ask these dumb questions , i have been struggling so long to figure it out myself but i have failed in doing so.

thanks for the reply
avatar
Mac
Re: PHP saved file opens with ??
August 28, 2012 01:19PM
Is XAMPP or Easy PHP? running? That is the 1st question.
Re: PHP saved file opens with ??
August 28, 2012 01:34PM
Easy PHP is installed and using notepad.
avatar
Mac
Re: PHP saved file opens with ??
August 29, 2012 07:56AM
Not installed - is it running.
Re: PHP saved file opens with ??
August 29, 2012 10:52AM
then i am doing something wrong. i have installed it. must i open it? and how must it be runnig?
if i save a file in notepad as a PHP file how do i open it?
avatar
Mac
Re: PHP saved file opens with ??
August 29, 2012 12:43PM
Have you bothered to work through the home and learn tutorial, because it is all explained there in section 1.3??????
Re: PHP saved file opens with ??
August 29, 2012 03:20PM
i always work through all the tutorial letters and study materials!!!!!!!!!!!!!!!!!!!!!!!
i was just struggling and that is way i asked on this blog.
i have figured it out and my assignment is already submitted.
Thanks
avatar
Mac
Re: PHP saved file opens with ??
August 30, 2012 07:01AM
Tell us what was wrong so others can learn.
Sorry, only registered users may post in this forum.

Click here to login