Jump to content

qteks200

New Members
  • Posts

    7
  • Joined

  • Last visited

    Never

Everything posted by qteks200

  1. Thx thorpe, No it's not in the same directory as my php script. But i don't think this is point. As i mentioned, only middle line (this line `/usr/bin/oowriter "macro:///Standard.Word2PDF.DOC2PDF($1,$2)"`) is not executing. Also i tried shell_exec ('/usr/bin/oowriter "macro:///Standard.Word2PDF.DOC2PDF($1,$2)"'); but the problem still remains.
  2. Hi there, I created a bash script file using following code to convert doc documents to pdf using OpenOffice macros. ************************* doc2pdf: #!/bin/sh echo "hi" DIR=$(pwd) /usr/bin/oowriter "macro:///Standard.Word2PDF.DOC2PDF($1,$2)" echo "bye" *************************** when i execute doc2pdf /blah/blah.doc /blah/blah.pdf command from gnome-terminal it works fine. But when i use following php script it just echo "hi" and "bye" but it doesn't execute the middle line. *************************** <?php print_r(shell_exec("doc2pdf args blah blah")); ?> *************************** Please help me to find a solution. Bests,
  3. 2 questions: 1) I have a windows server and a linux server. There is a file foo.txt in windows server which is accessible form http, it means you can see the contents of it via browsers with a URL such as : mydomain.com/foo.txt I tried to remotely read this file with php commands such as CURL, file_get_contents, fsockopen and ... . All work fine in localhost (Windows Vista php5 installed) and show me the contents of foo.txt in remote server, but when I run the same script on my linux server (redhat with php5 installed) the response was: 404 not found. It means windows server have to different behavior for browsing same page. And the prospected behavior is to view the contents of requested file. how do I solve it? I have full access to both Windows and Linux server. 2) I write down a php Web-Feed aggregator. It reads file from a remote server using CURL. The problem is some sites like feedburner.com after specified count of requests in specified time period, will redirect requested page to another page like feed proxy.feedburner.com/blablabla . How do I handle this redirection? Thanks, r.Sharafi
  4. Hello, Well I need to upload some files, with out ftp and only with File Input (HTML INPUT). I simply use php upload script, and it work for files up to 2 or 3 MB, but It cant even upload files over 4MB. Please help me solve this problem. also I have to say: 1) I set php.ini MAXIMUM_UPLOAD_SIZE to 200M 2) I have two solutions: a) read data using client-side codes like JS and split, send each part and then combine it on server b) create a TCP connection and then send file, but also it need a client-side application so users must install some plug-ins and it's not good! PLEASE OFFER ME YOUR EFFICIENT TECHNIQUES FOR UPLOADING FILES OVER 15MB USING PHP, thanks a lot!
  5. Hello, If I want to send an email with a file attached to it, what should I do? Should I at first upload the file and then send it? Please give me a code sample.
  6. Well I download a PHP class that help me send SMTP authenticated email form an account on my server , but the problem is the mail just deliver to accounts in my server: from: test@myhost.com to test2@myhost.com is OK but from: test@myhost.com to test@gmail.com have problem I also tried PHPMAILER 1.7 but the it couldn't open mail.myhost.com:25 using fsockopen()! HELP ME PLZ
  7. It's my first post, and I hop I can get help here, Well I have two questions: 1) How to send a text from my website to my another webstie!? I have a two websites and I want to send a text data(larger than QeryString) to a PHP page on myanother websites, HOW can I do it?! 2) How can I send a file from my first webstie to my second website and save it there?! Please tell me, I should use which manual for solving problems? ??? Thanks All, r.Sharafi
×
×
  • 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.