Jump to content

how to open a text file using a php script


shashiku

Recommended Posts

hi i tried the exec() to open a txt file. but iam not sure how to use it. can u pls help me

this is the code i tried

 

<?php

 

exec(" C:\wamp\www\web\hello.txt");

 

?>

 

the notepad.exe seem to run in the task manager when i run the script. but the file doesnt open.

pls correct me with the correct code

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.