Open msword file through php
Moderator: General Moderators
-
neerajsingh
- Forum Newbie
- Posts: 5
- Joined: Thu Dec 31, 2009 1:44 am
Open msword file through php
Hi friends,
i have upload a msword file(like cv), name is available in database and file is available in uplooad folder, i want to open this file in my page and then edit .
what should i do???
help pls.
i have upload a msword file(like cv), name is available in database and file is available in uplooad folder, i want to open this file in my page and then edit .
what should i do???
help pls.
-
manojsemwal1
- Forum Contributor
- Posts: 217
- Joined: Mon Jun 29, 2009 4:13 am
- Location: India
Re: Open msword file through php
use opendir() and read file function
-
neerajsingh
- Forum Newbie
- Posts: 5
- Joined: Thu Dec 31, 2009 1:44 am
Re: Open msword file through php
thanks for reply..
i have use this
$dir = "upload";
if (is_dir($dir)) {
if ($dh = opendir($dir)) {
while (($file = readdir($dh)) !== false) {
echo "filename: $file : filetype: " . filetype($dir . $file) . "\n";
}
closedir($dh);
}
}
this is display all files available in upload folder. i want to display one file content and edit it.
i m testing this in localhost.
i have use this
$dir = "upload";
if (is_dir($dir)) {
if ($dh = opendir($dir)) {
while (($file = readdir($dh)) !== false) {
echo "filename: $file : filetype: " . filetype($dir . $file) . "\n";
}
closedir($dh);
}
}
this is display all files available in upload folder. i want to display one file content and edit it.
i m testing this in localhost.
-
manojsemwal1
- Forum Contributor
- Posts: 217
- Joined: Mon Jun 29, 2009 4:13 am
- Location: India
Re: Open msword file through php
Frist u check the file u want to display is it exit or not ,
then give the file path which u want to be open............
for more detail read this article may be help u
http://webcheatsheet.com/php/working_wi ... s.php#read
then give the file path which u want to be open............
for more detail read this article may be help u
http://webcheatsheet.com/php/working_wi ... s.php#read
-
neerajsingh
- Forum Newbie
- Posts: 5
- Joined: Thu Dec 31, 2009 1:44 am
Re: Open msword file through php
hi,
this code display all file in dropdown. i m working in a job site.
after click on edit or preview it's look like..... see image

this code display all file in dropdown. i m working in a job site.
after click on edit or preview it's look like..... see image

-
manojsemwal1
- Forum Contributor
- Posts: 217
- Joined: Mon Jun 29, 2009 4:13 am
- Location: India
Re: Open msword file through php
NO Image
-
neerajsingh
- Forum Newbie
- Posts: 5
- Joined: Thu Dec 31, 2009 1:44 am
Re: Open msword file through php
hi manoj,
right click and view image.
neeraj
right click and view image.
neeraj
-
manojsemwal1
- Forum Contributor
- Posts: 217
- Joined: Mon Jun 29, 2009 4:13 am
- Location: India
Re: Open msword file through php
Sorry No Image pl upload again..........
-
neerajsingh
- Forum Newbie
- Posts: 5
- Joined: Thu Dec 31, 2009 1:44 am
Re: Open msword file through php
looks like
- Attachments
-
- look.JPG (99.44 KiB) Viewed 294 times
-
- view page
- look.JPG (99.44 KiB) Viewed 294 times