Click here to Skip to main content
15,881,173 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I already have an xampp and text editor notepad++ installed on my pc, but for some reason my pc cant open .php files or it cant recognize it..i can't launch it on my browser. And the icon is a default unknown file when it should be like a default browser or text editor icon?

Anybody knows how to solve this ?

Thanks,
Posted
Comments
LAMBERT Georges 4-Mar-23 11:26am    
$location = fopen("c:/Projects/PHP/c.csv", "r") or die("Unable to open file!");
echo $location;
fclose($location);
not run

1 solution

In Windows Explorer, right click on a .php file and select Properties. You can then change the default application for the file type.
 
Share this answer
 
Comments
Ronni2013 30-Mar-13 5:28am    
i tried to launch in chrome, but it only shows the source code instead of what the actual program is..

< ?php //code
? >
..it shows me that
Richard MacCutchan 30-Mar-13 5:40am    
That is what it is supposed to do.
Ronni2013 30-Mar-13 6:21am    
i thought it was like an .html, i see, i kinda figured out how it works now

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900