php-windows Digest 24 Jan 2001 22:17:29 -0000 Issue 413

Topics (messages 5187 through 5196):

Re: [PHP-DB] LDAP
        5187 by: Ben Cairns
        5188 by: Tom

Is it possible to CONVERT file formats?
        5189 by: Mike Flynn
        5191 by: Alain Samoun

File Upload can't copy file
        5190 by: Joey Garcia

Linux conection to MS Access
        5192 by: Gonzalo Vera
        5194 by: Alain Samoun
        5196 by: Gonzalo Vera

Header Expire, PHP, and browsers
        5193 by: Svemir Brkic

new script: ssLinks v1.2
        5195 by: Simon Willison

Administrivia:

To subscribe to the digest, e-mail:
        [EMAIL PROTECTED]

To unsubscribe from the digest, e-mail:
        [EMAIL PROTECTED]

To post to the list, e-mail:
        [EMAIL PROTECTED]


----------------------------------------------------------------------


It may be that you need to uncoemment the ldap line in you r php.ini file.

This is under the loadable extensions bit.

I forge the exact syntax, but I know its in there

-- Ben Cairns, Head Of Technical Operations, Intasept.com
E-Mail: [EMAIL PROTECTED]     |     Web: http://www.intasept.com





> It may be that you need to uncoemment the ldap line in you r php.ini
> file.
Ok, I have mdified the line.
I put ldap.so. But now my problem is: I haven't got any ldap.so on my
hard drive ! Argh ! How am I supposed to have that file ?

I'm in a hurry, I must have finished this work for tonigh. ;-)

Thomas
[= http://www.56k.fr.st :=]






Hey all,

We are trying to develop a system to allow people to upload meeting minutes
from our organization's meetings.  We'd like to assume no HTML knowledge on
the user's part.  The easiest method would be to ask them just to upload
plain text, or to upload their MS Word file (as they do now) and hope
everyone can read MS Word.

Ideally, however, I'd like to be able to allow them the niceities of HTML
(bold, italic, underline, big, small) without any specific file format.

Are there any systems in place to take a file such as a basic Word file and
convert its text (roughly) to HTML?  Not a whole HTML page, like as if you
exported it to HTML from Word, just the text and its properties.

If anyone knows of anything like this, it would be great.

Thanks!

-Mike Flynn


 Come the millennium month 12, in the home of the greatest power,
 the village idiot will come forth to be acclaimed the leader.
                                   (Nostradamus, 1555)
 I do know I'm ready for the job.
 And, if not, that's just the way it goes.
                                   (George W. Bush, 2000)





Yes, use COM PHP functions.

Alain
On Wed, Jan 24, 2001 at 11:24:57AM -0500, Mike Flynn wrote:
> Hey all,
> 
> We are trying to develop a system to allow people to upload meeting minutes
> from our organization's meetings.  We'd like to assume no HTML knowledge on
> the user's part.  The easiest method would be to ask them just to upload
> plain text, or to upload their MS Word file (as they do now) and hope
> everyone can read MS Word.
> 
> Ideally, however, I'd like to be able to allow them the niceities of HTML
> (bold, italic, underline, big, small) without any specific file format.
> 
> Are there any systems in place to take a file such as a basic Word file and
> convert its text (roughly) to HTML?  Not a whole HTML page, like as if you
> exported it to HTML from Word, just the text and its properties.
> 
> If anyone knows of anything like this, it would be great.
> 
> Thanks!
> 
> -Mike Flynn
> 
> 
>  Come the millennium month 12, in the home of the greatest power,
>  the village idiot will come forth to be acclaimed the leader.
>                                    (Nostradamus, 1555)
>  I do know I'm ready for the job.
>  And, if not, that's just the way it goes.
>                                    (George W. Bush, 2000)
> 
> 
> -- 
> PHP Windows Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail: [EMAIL PROTECTED]




I was using the File Upload tutorial from Julie Meloni's thickbook.com site
and it looks simple enough but I can't copy the file mainly because it is
looking in the wrong spot for the file I browsed to.  Some help would be
appreciated, I have a class that I want to teach this to.

For instance, I browse to a file at this location:
C:\WINNT\Profiles\jgarcia\Desktop\release.bat and I get the error below.
Line 41 is where I have my copy command.

Warning: Unable to create 'c:\Program Files\Apache
Group\Apache\htdocs\uploads\release.bat': No such file or directory in
c:\program files\apache group\apache\htdocs\class\uploadsuccess.php on line
41
Couldn't copy the file!


Here is my PHP code:


<?php


print "The file name is: <b>".$theFile_name."</b><br>";
print "The file size is: <b>".$theFile_size."</b><br>";
print "The file type is: <b>".$theFile_type."</b><br>";
print "The temp file name is: <b>".$theFile."</b><br>";

// if $img_name isn't empty, try to copy the file
if ($theFile_name != "") {

 // copy the file to a directory or
 file:// die and print an error message

 // NOTE! if you're on a Windows machine,
 // use Windows pathnames, like so:
 // copy("$theFile", "C:\\some\\directory\\path\\$theFile_name");

 copy("$theFile", "c:\\Program Files\\Apache
Group\\Apache\\htdocs\\uploads\\$theFile_name")
  or die("Couldn't copy the file!");

} else {

 // if $img_name was empty, die and let us know why
 die("No input file specified");

}

print "Your file has been sucessfully uploaded!";
?>


My html code is:

<form name=myform action=uploadsuccess.php enctype="multipart/form-data"
method=post>
<input type="hidden" name="MAX_FILE_SIZE" value="25000">

Browse to the file for uploading: <input type=file name=theFile size=30>
<br>

<input type=submit value="Upload File">






Is there a way to connect to a MS Access database on a remote
computer, from a linux box hosting Apache and PHP? (Sorry if this is
too off-list). Any pointers to documents, faqs or so would be
appreciated.

Thanks,

Gonzalo.






Have a look at this phpbuilder article:
www.phpbuilder.com/columns/timckun20001207.php3

Alain
On Wed, Jan 24, 2001 at 01:24:18PM -0600, Gonzalo Vera wrote:
> Is there a way to connect to a MS Access database on a remote
> computer, from a linux box hosting Apache and PHP? (Sorry if this is
> too off-list). Any pointers to documents, faqs or so would be
> appreciated.
> 
> Thanks,
> 
> Gonzalo.
> 
> 
> 
> -- 
> PHP Windows Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail: [EMAIL PROTECTED]




Small typo, the correct link is

www.phpbuilder.com/columns/timuckun20001207.php3
                              ^

It has some broken links, but I posted the correct one there.
Thanks a lot! That has all the answers!

 Gonzalo.

> Have a look at this phpbuilder article:
> www.phpbuilder.com/columns/timckun20001207.php3

> Alain
> On Wed, Jan 24, 2001 at 01:24:18PM -0600, Gonzalo Vera wrote:
>> Is there a way to connect to a MS Access database on a remote
>> computer, from a linux box hosting Apache and PHP? (Sorry if this is
>> too off-list). Any pointers to documents, faqs or so would be
>> appreciated.
>> 
>> Thanks,
>> 
>> Gonzalo.
>> 
>> 
>> 
>> -- 
>> PHP Windows Mailing List (http://www.php.net/)
>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>> For additional commands, e-mail: [EMAIL PROTECTED]
>> To contact the list administrators, e-mail: [EMAIL PROTECTED]






Hello!

I have an experimental PHP page that is supposed to become a simple
shopping cart. The session ID is embedded into the URLs, the orders
are received through POSTed forms, and saved into a corresponding
temporary file on the server. I am not using cookies nor PHP sessions.

In the beginning, it worked fine in Netscape 4.08, but IE 5 would cache
the pages even though they were created dynamically. For example, if
I would open a category, then open a single item, and update the cart
there, and then open the category link again (not by going BACK), IE
would just take it from the cache.

So, I added a following .htaccess directive to the main folder (I am
using the Zeus server):

<files *.php>
Header set Expires NOW
</files>

Now it works fine in the IE, but Netscape gets confused sometimes.
It first loads the page fine, but as soon as it (almost) finishes, it tries
to reload it, and since it is expired in the cache it replaces what was
already on the screen with a message that the page was generated
with the POSTed contents and that it has to be reloaded.

I tried adding a few seconds to the "NOW" above, but it seems
that Netscape takes the server's time (which in my case is few hours
less then my local time) and then compares it with the local time.

Do othe versions of Netscape also have these features - trying to
reload the page from its own cache just after it was loaded fromt
fromthe server, and taking the server's time for the beginning of
the expiration period?

Did anyone find a way around these problems? Or I am creating
unnecessary trouble to myself and there is better way to do all this?

Svemir





Sorry if this is the wrong kind of list for this (if it is please tell me)
but I've just released version 1.1 of my yahoo stylee PHP / mySQL links
script.  ssLinks v1.1 allows you to set up a full database driven
categorically organised links directory with facilities for rating links,
tracking hits, getting visitors to recommend sites and quite a bit more as
well.

Full feature list:

Fully database driven utilising mySQL. 
Based around templates so easily customisable to fit in with the rest of
your site. 
(hopefully) easily customisable due to the nature of PHP - you can edit the
code at will. 
Very easy to admin via the web - log in and add / edit categories and links.

Visitors to your site can recommend new links, which you can then validate. 
Allows visitors to rate your links from 1-10, and displays average rating. 
Rating a link more than once is "dis-encouraged" via cookies. 
Number of hits each link has recieved is recorded and displayed. 
All output is displayed by one script (links.php) keeping your web server
tidy :o) 
Very easy to set up and use, thanks to configuration file. 
Built in Search Engine. 
Most popular, top rated and newest links pages. 
It's free for non-commercial sites! 

http://www.tfc-central.co.uk/sslinks/

There you have it - if this is inappropriate for this list please tell me,
otherwise I'd welcome any comments / suggestions on the script (especially
ideas for version 1.2).

Cheers,

Simon Willison
aka Skunk
http://www.tfc-central.co.uk/sslinks/


Reply via email to