Jump to content

Bobboau

Members
  • Posts

    15
  • Joined

  • Last visited

    Never

Profile Information

  • Gender
    Not Telling

Bobboau's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. I was hoping there might be a text layout library already made. so you are saying imagettfbbox is my only hope?
  2. ok, I am wondering if there exists a function or a library with the capability to designate an area on an image where a paragraph will be displayed, and the function figures out what the largest possible font that can work would be and draws it. note this is a considerably more complex task than ImageString. if such a thing does not exists, suggestions on how i might be able to accomplish this? or general text layout library recommendations that might be relevant to my interests.
  3. I have figured out what is wrong, but I still am not able to fix it. Apparently office 2007 if run as a service in vista will not be allowed access to the file system. so, because Apache is running as a service, PHP is therfore running as a service and Excel is running as a service. I've tried a number of ways to try and get around this, but nothing seems to do it. I have tried running stuff as elaborate as running a javascript file from a system command line using psexec called by system(). none of this has been able to get around the service issue. so unless someone knows a way to spawn a command process in a different session and not as a service there will be no solution to this. it is 'almost' as if they have specifically made it impossible to use office on a server. oh, interestingly they have a new office version specifically for doing just that sort of thing. completely coincidental that. I hate microsoft.
  4. I uncommented everything related to COM in the ini file, I still have the same problem. I doubt this is the issue because I do get the excel COM object and it works exept for anything to do with files. the error I get is from the COM object it's self so PHP is makeing a working COM object.
  5. Have you done the above? Thats from the Documentation... the com objects are installed with office, I know they work because if I use javascripting they work fine, and other than file related activities they seem to work fine in PHP, it is specificly I can not open or save a file. unless there is something specific for PHP I am not aware of.
  6. what sort of software/driver do you think I might be missing? excel works fine on it's own. is it possible this is a bug in PHP? I get the impression not many people use this extension, and it might just not work under vista. I am somewhat hesitant to imply it's not my fault this is working, but it seems like no one knows anything about this interface. or maybe I'm just looking in the wrong places.
  7. well it runs under my account, and I have all the permissions in the world. not to mention it's the public folder I'm trying to access right now, that has just about the loosest security of anything in vista. but I just tried reading from a folder that I granted full control to just about everything I could see that could conceivably include Apache.
  8. /*hit quote when I meant to hit edit*/
  9. just turned UAC off and tried again, does not effect anything. (other than vista is now nagging me of the impending doom caused by turning it off. ) also I have gone into the service controls and told the Apache server to log in with my credentials
  10. what you mean COM? I'm fairly sure it's a standard extension for windows. http://us.php.net/manual/en/book.com.php I specifically need to use the COM interface because I have to deal with a bunch of different excel versions. the error happens only if I try to read or write a file with it, if I just perform tasks on a new excel sheet it works fine as far as I can see, but that is fairly useless.
  11. right now I am doing everything on the same machine, so mySQL, Apache, the excel files, me using firefox accessing my own ip address, it's all on the same computer. I will of course want to access remote files and access everything from other computers eventualy, but for the moment I'm just trying to do local development. just tried putting it in the public folder, no change. I just turned the firewall completely off and tried it, no go. if it helps this is what I currently have in the php file $PPMH_path = "C:\\Users\\Public\\test.xls"; try{ $excel=new COM("excel.application") or die("unable to start Excel on server!"); $excel->DisplayAlerts = 0; $excel->Visible = 0; $excel->Workbooks->Open($PPMH_path); $excel->Quit(); } catch (Exception $e) { echo "\n**error** ".$e; $excel->Quit(); }
  12. ok, so I need to generate some reports from a few excel spread sheets on my network. it seems like this would be simple enough, just make the Excel COM object read the data and go. unfortunately it just doesn't seem to work when ever I try to open a file I get a "can't open it for some reason" error (specificly: "Microsoft Office Excel cannot access the file 'filenamehere.xls'. There are several possible reasons: • The file name or path does not exist. • The file is being used by another program. • The workbook you are trying to save has the same name as a currently open workbook.'"). I can open the file if I paste the path into the address bar manually just fine. this has happened with every excel file I have tried to open, no matter where they are. I think it's some sort of permissions thing, but I don't get how that could be or how to fix it. I am running through Apache on a Vista machine.
  13. nevermind, I figured it out, short_open_tag was off and all my test pages didn't take that into account. I still don't have inline parsing though.
  14. ok, so I'm on a vista machine and I'm trying to get PHP to work under Apache and everything seemed to go well in the instalation process, and Apache seems to be working fine, but it simply will not handle anything in PHP, be it inline or a PHP file. in the error log I see lots of PHP notices and notices about some libraries it couldn't load, but none of the code functionality seems to be working. can someone try and troubleshoot me through why it doesn't seem to be working?
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.