[PHP] Problems with text files from a Mac
I am working on an application for a school district and am having some problems with the files they are supplying for import. They are supplying data files and I am writing routines to populate the database using these files. Its a simple file upload then I just need to parse through the tab separated value file. I am using the most recent PHP build on Windows with IIS ISAPI and a MSSQL database. They are sending text files from a Macintosh application. I noticed on the documentation for fgetcsv() that it cannot read the end of line character on Mac files. I have not been able to find a good work around for this issue. When I grab the entire contents of the file then try doing a string replacement on the "\r" or even "\t" for that matter it does not work. Has anyone found a good solution for dealing with Mac files? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Destroying COM objects
When using the COM functions in PHP what is the equivalent of ASPs "set object=nothing"? I am using the Crystal Report objects and I cannot seem to destroy my Report object. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] Destroying COM objects
Tried setting it to NULL and unset(com_onject). Neither are working. I'm stumped. On Thu, 27 Feb 2003 23:35:23 +, Rich Gray wrote: >> When using the COM functions in PHP what is the equivalent of >> ASPs "set object=nothing"? >> I am using the Crystal Report objects and I cannot seem to >> destroy my Report object. > > Have you tried setting it to NULL? > Rich -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] accessing files not in www root directory.
Hi, I am trying to write a page that will perform a select on a DB and get the path and file name of an image. Then display the image. The DB part if fine but I am having difficulty figuring out how to get the images to display. For example: result from select: $file_path = "/home/pics/friends/" $file_name = "bob.jpg" Now, say my web root directory is "/etc/http/wwwroot" How do I create a link to my file "/home/pics/friends/bob.jpg"? I tried symlink() but the link created appears to hang around after it is no longer needed. By the way, this is a Linux server running Apache. Any ideas? Thanks, Sterling Anderson [EMAIL PROTECTED] -- PHP General 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]
[PHP] accessing files not in www root directory.
Hi, I am trying to write a page that will perform a select on a DB and get the path and file name of an image. Then display the image. The DB part if fine but I am having difficulty figuring out how to get the images to display. For example: result from select: $file_path = "/home/pics/friends/" $file_name = "bob.jpg" Now, say my web root directory is "/etc/http/wwwroot" How do I create a link to my file "/home/pics/friends/bob.jpg"? I tried symlink() but the link created appears to hang around after it is no longer needed. By the way, this is a Linux server running Apache. Any ideas? Thanks, Sterling Anderson [EMAIL PROTECTED] -- PHP General 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]