Search found 16 matches

by davisaggie
Wed Nov 14, 2007 11:41 am
Forum: PHP - Code
Topic: Converting MS Word to HTML?
Replies: 2
Views: 255

Converting MS Word to HTML?

I am looking for a way to convert MS Word documents (.DOC files) to HTML using PHP. Ideally I would like to put the generated HTML into a MySQL database, and still preserve the formatting in the MS Word document. Is this even possible in PHP? I could not find anything that would do this in the PHP f...
by davisaggie
Tue Sep 11, 2007 6:33 pm
Forum: PHP - Code
Topic: require_once problems
Replies: 2
Views: 463

feyd wrote:Maybe it's the space you have before the path. :?:
D'OH!!!! Yup that was it :oops:. Thanks feyd.
by davisaggie
Tue Sep 11, 2007 6:19 pm
Forum: PHP - Code
Topic: require_once problems
Replies: 2
Views: 463

require_once problems

in my code I have: require_once("file_array.php"); file_array.php exists in my root web directory, but the script I am running is in a directory that resides in the web directory. If I run the script as is, I get the following messages: Warning: require_once(file_array.php) [function.requi...
by davisaggie
Mon Sep 10, 2007 5:55 pm
Forum: PHP - Code
Topic: Help with writing to a file
Replies: 2
Views: 284

*SOLVED* Help with writing to a file

Vlad,
Thank you so much! that did the trick.
by davisaggie
Mon Sep 10, 2007 4:51 pm
Forum: PHP - Code
Topic: Help with writing to a file
Replies: 2
Views: 284

Help with writing to a file

I need some help with writing to a file. I have a script that generates another script based on the contents of a directory. Here is the current script I am running file_array_gen.php: <?php if(($dhandle = opendir('C:\\grower')) !== false) { $file_array= array(); while(($file=readdir($dhandle))!== f...
by davisaggie
Wed Sep 05, 2007 1:06 pm
Forum: PHP - Security
Topic: file system security at a user level?
Replies: 11
Views: 3047

2) Do I need to create a separate page with this code on it for each file that can be accessed, or is there a way to put this script on a single page and pass the file name to it some how? 2) No. Use $_GET/$_POST instead. Is it possible to use either $_GET or $_POST if I am not using a form, but a ...
by davisaggie
Fri Aug 31, 2007 4:32 pm
Forum: PHP - Code
Topic: header('Location: ') problems
Replies: 8
Views: 903

Never mind question 2, I figured out about SID and how to send them. I still would like to know if using

http_redirect()

is better then

header('Location: ')

thanks,
Mike
by davisaggie
Fri Aug 31, 2007 1:11 pm
Forum: PHP - Code
Topic: header('Location: ') problems
Replies: 8
Views: 903

thanks for the tip about trying to redirect to $_SERVER['REMOTE_ADDR'] instead of $_SERVER['HTTP_REFERER']. That change fixed the first problem I was having. reading through timvw's comments I see I didn't post the most current version of my module... oops :oops: it is below. I do plan on using some...
by davisaggie
Fri Aug 31, 2007 10:52 am
Forum: PHP - Code
Topic: header('Location: ') problems
Replies: 8
Views: 903

header('Location: ') problems

I am building an authentication module (code is below) and need some help getting header('Location: ') to work. The goal for this module is to have login forms on different subdomains all use the same authentication module. If the authentication succeeds, the user will be directed to an appropriate ...
by davisaggie
Tue Aug 21, 2007 6:50 pm
Forum: Installation and Configuration
Topic: *SOLVED* httpd.config problem
Replies: 3
Views: 1052

Specifying the full path name for the directory did it. Thanks for the help.
by davisaggie
Tue Aug 21, 2007 6:23 pm
Forum: Installation and Configuration
Topic: *SOLVED* httpd.config problem
Replies: 3
Views: 1052

Thanks for the tip Vlad, I'll give that one a try.
by davisaggie
Tue Aug 21, 2007 6:05 pm
Forum: Installation and Configuration
Topic: *SOLVED* httpd.config problem
Replies: 3
Views: 1052

*SOLVED* httpd.config problem

I am trying to set up directory level authority checking for my site. I've followed the steps mentioned on the Apache doc site to modify my httpd.config file to the following: <Directory /> Options FollowSymLinks AllowOverride AuthConfig </Directory> <Directory /tatest> AllowOverride AuthConfig Auth...
by davisaggie
Tue Aug 21, 2007 11:01 am
Forum: PHP - Security
Topic: file system security at a user level?
Replies: 11
Views: 3047

Vlad, thanks for the code sample. A couple questions though: 1) Do I need the case statement if I know all the files that are going to be accessed are of the same file type? 2) Do I need to create a separate page with this code on it for each file that can be accessed, or is there a way to put this ...
by davisaggie
Tue Aug 21, 2007 10:27 am
Forum: PHP - Security
Topic: file system security at a user level?
Replies: 11
Views: 3047

Handling script. Like a PHP script to serve the files. PHP can access more of the server's file structure than the users. Could you give an example of a handling script, or point me in the right direction? I've never heard of them and most of my PHP experience has been with dealing with the output ...
by davisaggie
Mon Aug 20, 2007 7:07 pm
Forum: PHP - Security
Topic: file system security at a user level?
Replies: 11
Views: 3047

Don't give them links to the actual files. Instead, pass it through a handling script. Feyd, how would I do that? Digging around some I have found that I can use Appache to control at the directory level access to the different reports, but is there a way to trap the user id provided to appache dur...