Wrox Programmer Forums
Go Back   Wrox Programmer Forums > PHP/MySQL > Beginning PHP
|
Beginning PHP Beginning-level PHP discussions. More advanced coders should post to the Pro PHP forum.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Beginning PHP section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old March 19th, 2007, 01:22 AM
Authorized User
 
Join Date: Oct 2006
Posts: 43
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via Yahoo to snowbydave1
Default How to upload TrueType font with PHP

Dear Friend,


I want to upload TrueType (.TTF) font.

<input type="file" name="font_file"> will not helpful. When I select .TTF file from Browse popup window will not select .TTF font.

Is anybody have any idea how to upload TrueType font with PHP.


Thanking you,


Snowby Dave

 
Old March 22nd, 2007, 07:08 AM
Authorized User
 
Join Date: Mar 2007
Posts: 24
Thanks: 0
Thanked 0 Times in 0 Posts
Default

wow.. you're right.. windows doesn't let you open the ttf that way... but i'm afraid this is a client-side issue. I don't think PHP can help you here

 
Old March 23rd, 2007, 08:28 AM
Authorized User
 
Join Date: Oct 2006
Posts: 43
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via Yahoo to snowbydave1
Default

Dear Friend,


Thanks for your reply. Well I think you did not understand what I means to say.

As you know that window will copies all font files in Windows/fonts folder. With the help of Browse button of input type file element I cannot select that .ttf file.

However if I moved that file to another folder, then it will allow me to upload that file.

So do you have any idea how to handle this?


Thanking you,


Snowby Dave

 
Old March 23rd, 2007, 08:37 AM
Wrox Author
 
Join Date: Oct 2005
Posts: 4,104
Thanks: 1
Thanked 64 Times in 64 Posts
Send a message via AIM to dparsons
Default

This is not a PHP issue. I am going to make a general assumption about this as I do not know for sure, but since all of the files in the fonts directory can, potentially, be in use by Windows I imagine that is why it is disallowing you from selecting the file from that directory as it could interfere with OS operation.

Have you tried this in Firefox?

================================================== =========
Read this if you want to know how to get a correct reply for your question:
http://www.catb.org/~esr/faqs/smart-questions.html
^^Took that from planoie's profile^^
^^Modified text taken from gbianchi profile^^
================================================== =========
Technical Editor for: Professional Search Engine Optimization with ASP.NET
http://www.wiley.com/WileyCDA/WileyT...470131470.html
================================================== =========
Why can't Programmers, program??
http://www.codinghorror.com/blog/archives/000781.html
================================================== =========
 
Old March 24th, 2007, 04:42 AM
Authorized User
 
Join Date: Oct 2006
Posts: 43
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via Yahoo to snowbydave1
Default

Dear Friend,

Thanks for your reply. Yes I had tried in FireFox. It will directly open ACDsee and display "Font" in big font size with black background.

Snowby Dave






Similar Threads
Thread Thread Starter Forum Replies Last Post
How to upload TrueType font with PHP snowbydave1 Pro PHP 0 March 19th, 2007 01:25 AM
How to upload TrueType font with PHP snowbydave1 PHP How-To 0 March 19th, 2007 01:24 AM
How to upload TrueType font with PHP snowbydave1 PHP Databases 0 March 19th, 2007 01:23 AM
How to upload TrueType font with PHP snowbydave1 PHP FAQs 0 March 19th, 2007 01:22 AM
Which default folder used for TrueType font in Lin snowbydave1 Beginning PHP 1 March 5th, 2007 08:00 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.