Re: [PHP] how to get the filesize of an online document?
Hi, You must get content-length http header value, but sometimes header is not set and you don't have any chance to get size. For more info see *get_headers* function description. On Wed, Apr 8, 2009 at 12:31 PM, Sebastian Muszytowski s.muszytow...@googlemail.com wrote: Hello everyone, i have a little problem. I want to get the filesize of an online document (for example an rss or atom feed). I tried the filesize() function, but this doesn't work. I also search for options with cUrl but i didn't found any solution. Hope you can give me some hints or code snipplets so that i can work for an solution. Thanks in advance Sebastian -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- Best Regards, Gevorg Harutyunyan www.soongy.com
[PHP] convert video files to FLV
Hi, I need to convert video files to FLV using php. The only solution that I found is to use ffmpeg, but because I am using shared hosting I am not allowed to install it on server. Do you know any other ways to convert any video file types to flv using PHP. Thanks for help! Best Regards, Gevorg Harutyunyan
Re: [PHP] convert video files to FLV
Thanks guys, but as I understood that extension also requires ffmpeg on server, correct me if I am wrong. So anyway I need ffmpeg on server. Some day, when I will have dedicated server I will use ffmpeg for sure, but now I need other solution. On Thu, Apr 9, 2009 at 10:33 AM, Adrian adr...@planetcoding.net wrote: Don't waste CPU power of shared servers for video recoding. If you need that, get a dedicated server without other customers who would probably be affected by you using lots of cpu power. Besides that, if you cannot install own (compiled) software on it, you'd have to use a pure php solution which would be HORRIBLY slow. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- Best Regards, Gevorg Harutyunyan
Re: [PHP] www.soongy.com
Hi Michael, Thanks for info. I use shared hosting and reason that they don't allow that extension is that uploadprogress is still in beta. I tried both apc and uploadprogress on my local PC and solutions that they provide are very good for me. I will be happy to change hosting provider and if you know any other hosting with those extensions please inform On Tue, Mar 3, 2009 at 12:02 AM, Michael A. Peters mpet...@mac.com wrote: Gevorg Harutyunyan wrote: Hi guys I need to create file upload progress bar using PHP and AJAX. I found two Pecl extensions that support that may be used: uploadprogress and php-apc. I asked my shared hosting provider to add that extensions, but my request was declined, because uploadprogress is still BETA version and php-apc dont works fine with Fast-CGI version of PHP. uploadprogress is still beta but it works very well. It does still require client side scripting of some sort (JavaScript is what I use) but due to stateless nature of http that's just the way it is. uploadprogress does require php 5.2 or newer, that may be their issue. Anyway, when a host is not willing to provide what you need, it's time to find a new host. I've never tried php-apc. Another solution I've seen people do is use perl to process the file upload form. I don't like perl but it is a possible solution. -- Best Regards, Gevorg Harutyunyan
[PHP] www.soongy.com
Hi guys I need to create file upload progress bar using PHP and AJAX. I found two Pecl extensions that support that may be used: uploadprogress and php-apc. I asked my shared hosting provider to add that extensions, but my request was declined, because uploadprogress is still BETA version and php-apc dont works fine with Fast-CGI version of PHP. Had you similar problem or do you know how else can I track upload progress? Btw site is www.soongy.com Thanks for help
Re: [PHP] www.soongy.com
Thank you all for your help! I tried to do without being dependent from flash, but as I see there are only two ways for this: flash and loading without tracking percentage. I choose second way :) On Mon, Mar 2, 2009 at 1:58 AM, mike mike...@gmail.com wrote: gears will allow you to do that, more or less. i have it going... On Sun, Mar 1, 2009 at 12:34 PM, tedd tedd.sperl...@gmail.com wrote: At 12:13 PM -0800 3/1/09, mike wrote: you can use gears pretty easily to make a seamless multiple file upload now. it's all javascript too so you can make it look how you want, behave how you want, etc. without having to buy/tweak flash code. On Sun, Mar 1, 2009 at 12:07 PM, German Geek geek...@gmail.com wrote: Also check this one out: google uses it in gmail: http://code.google.com/p/jquery-multifile-plugin/downloads/detail?name=multiple-file-upload.zipcan=2q= Understood, but I don't think either of these do what the OP wanted, whcih was a real time file upload progress bar. Cheers, tedd -- --- http://sperling.com http://ancientstones.com http://earthstones.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- Best Regards, Gevorg Harutyunyan
[PHP] ssh2_tunnel
Hi, Could you please give me short sample of ssh2_tunnel usage. The only sample that I found was manual sample and I can not understood how it works. -- Best Regards, Gevorg Harutyunyan
[PHP] Getting IP from hostname using Curl
Hi, I am using Curl extension for my project. Regulary I am fetching some pages from web using Curl. Now I must create ban system for some IPs. Is there any way to do that with Curl ? -- Best Regards, Gevorg Harutyunyan -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Java And PHP
Hi, I want to use Java in my PHP scripts. I installed PHP 5.2 on windows. From extensions I choosed Java plugin. But Java is not working with PHP 5.2. I have Java installed in C:\Porgram Files\Java\ . I tried to give right jvm.dll path correct C:\Porgram Files\Java\JDK\JRE\bin\server\jvm.dll or C:\Porgram Files\Java\JDK\JRE\bin\client\jvm.dll in php.ini, but I got windows system error when try to call Java in my PHP scripts. If you configured java to work with PHP 5.2 please give me hint. Thank you, Gevorg Harutyunyan -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Screenshot from web page
Thanks for response, Actually I understood that I was searching not real thing. I needed PHP code that will generate jpeg from HTML. I understood that this is not real. As an addition I would prefer to launch that code on remote server(linux) and not on my PC(linux too :P ). Thanks once more, Be happy, Gevorg On 10/16/07, Rodolfo De Nadai [EMAIL PROTECTED] wrote: Here are php functions that you are looking for... long time ago i found this, but can't remenber anymore the functions names, but i know that was possible!!!... so a search google again and give me: http://blog.thepimp.net/index.php/post/2007/04/17/Screen-capture-with-PHP-and-GD But here the references on php documentation: http://php.oregonstate.edu/manual/en/function.imagegrabscreen.php http://us3.php.net/manual/en/function.imagegrabwindow.php Stut escreveu: Philip Thompson wrote: If you're not talking about automated screenshots, and you're using Windows, just press your PrtScr button. Hold down Alt as well to get just the active window. This will put the screenshot on to the clipboard, so you'll then need to paste it into paint or other such graphics program (PSP, Photoshop) after which you'll then be able to save it to a file. Thanks for the Alt tip. I always hated Windoze b/c I couldn't just select part of the screen show how little I knew! Sorry that this had nothing to do with the original post. =/ http://www.jingproject.com/ is also worth a look if you take screenshots a lot or ever want to share short screencasts. -Stut -- * Rodolfo De Nadai * * Analista de Sistema Jr. - Desenvolvimento * *Informática de MunicĂpios Associados S.A.* Seu governo mais inteligente [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] - www.ima.sp.gov.br http://www.ima.sp.gov.br/ Fone: (19) 3739-6000 / Ramal: 1307 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- Best Regards, Gevorg Harutyunyan -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Screenshot from web page
Hi, I would like to make web page screenshot and generate an image for example .jpg or .png using PHP,Apache. If any one has experiance in doing that please help. I know that there are lot of services like that, but I don't want to use them. In real I need that to generate screenshot of my local server pages. -- Best Regards, Gevorg Harutyunyan -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] c++ and php! search for a brigde
Barev David, I think this is solution 1. C/C++ updates database (MySQL or other) 2. There is some PHP file that is viewing your DB info(printing static info) 3. There is other PHP file that is using AJAX for interactive update of information (This one is sending request to first PHP file and if needed updating second one) I don't know maybe this is very complex, but I would choose this one ;) Best, Gevorg -Original Message- From: David Giragosian [mailto:[EMAIL PROTECTED] Sent: Tuesday, August 28, 2007 10:08 PM To: Simon Cc: php-general@lists.php.net Subject: Re: [PHP] c++ and php! search for a brigde On 8/28/07, Simon [EMAIL PROTECTED] wrote: you can use sockets in php, they work the same as berkley sockets you can use system() in php, to call your C++ program (the program could output html) in my opinon CGI with C/C++ is obsolete, use php/apache for best results! another nice way is to have your C++ program independent, outputs its results/values into a database (mysql)... and a php page will just read what's in the database to display it nicely. That's what we do here. C/C++ app gathers and inserts the data into the db, minute by minute, and PHP apps are used for display, reports, graphics, etc... Our LAMP system has had nary a glitch in over 3 years of continuous usage. That would be a clean way of doing it. Good luck! David -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] Re: www.soongy.com
Hi, Sorry for late response. The main idea is in sending text messages using email, SMS, our messaging service. Also you can hold some web notes there. I agree it is not good for now. This is just start of this project. I am trying to do one step to WEB2 world. You can look http://www.netvibes.com , http://www.pageflakes.com/ I mean DHTML, PHP, AJAX can do fantastic things If you have better idea tell me please Thank you Dan very much Best, Gevorg -Original Message- From: Dan [mailto:[EMAIL PROTECTED] Sent: Saturday, August 18, 2007 4:05 AM To: php-general@lists.php.net Subject: [PHP] Re: www.soongy.com What is this supposed to be exactly? I gather from looking at it quickly that uses can signup, then send messages to other signed up users right? So it's like email, but you can only send messages to other people that signup, and login through that specific webpage. Forgive me but I don't see the appeal, what is this for? - Dan Gevorg Harutyunyan [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Hello, I am Gevorg. I just wanted to introduce you my new PHP based work here www.soongy.com http://www.soongy.com/ . It is working on PHP and MySQL and here is used DHTML, AJAX. Thank you very much. Waiting for your response Regards, Gevorg -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] RE:www.soongy.com
Hi, Thank you very much for all emails. I was trying to make it work in Opera, IE and FF and forgot such a simple thing as screen resolutions. I just fixed all. Thanks once more, Gevorg