Re: [PHP] fileinfo on RHEL5

2009-05-13 Thread Michael A. Peters
brian wrote: RHEL5/PHP 5.1.6 I'm having some trouble getting the Fileinfo package working. It installed fine, and phpinfo() says it's enabled. But it consistently returns an empty string when getting the MIME of a file. /usr/share/pear/bin/pecl install fileinfo vi /etc/php.d/fileinfo.ini ext

Re: [PHP] handling chunked input from php://stdin

2009-05-13 Thread whisperstream
Thanks for the code, but I figured out the issue I was having. My problem was actually getting the data not parsing chunked text. After taking a wireshark trace of the traffic I realised that the chunked xml didn't even hit the php process and instead died somewhere in IIS's fastcgi process. If

Re: [PHP] how to enable ttf support in php 5.2.9

2009-05-13 Thread Ross McKay
Ashley Sheridan wrote: >Great idea in theory, if you can guarantee that they'll *only* be using >MS Office to paste from. In my experience, you can only guarantee on the >stupidity of the end users, nothing else. I was mostly being facetious :) The only thing that really works is getting the user

[PHP] shell_exec problem with bsdtar

2009-05-13 Thread Lester Caine
I'm trying to emulate Linux facilities on the windows servers, and have found bsdtar can be renamed tar.exe so that it will work the same as a shell_exec( "tar" ) call in Linux. The full paths are used to the files and the command line returns the extracted file name when run at a command prom

Re: [PHP] Sending SMS through website

2009-05-13 Thread Andrew Ballard
On Wed, May 13, 2009 at 3:38 PM, Nathan Rixham wrote: > Andrew Ballard wrote: >> >> On Wed, May 13, 2009 at 1:55 PM, Per Jessen wrote: >>> >>> kyle.smith wrote: >>> Most carriers have email-to-sms bridges.  For example, I use AT&T Wireless and you can text me by sending an email to

Re: [PHP] Sending SMS through website

2009-05-13 Thread Nathan Rixham
Andrew Ballard wrote: On Wed, May 13, 2009 at 1:55 PM, Per Jessen wrote: kyle.smith wrote: Most carriers have email-to-sms bridges. For example, I use AT&T Wireless and you can text me by sending an email to myphonenum...@txt.att.net. Do you end up paying for that then - or who pays for it?

Re: [PHP] Sending SMS through website

2009-05-13 Thread Andrew Ballard
On Wed, May 13, 2009 at 1:55 PM, Per Jessen wrote: > kyle.smith wrote: > >> Most carriers have email-to-sms bridges.  For example, I use AT&T >> Wireless and you can text me by sending an email to >> myphonenum...@txt.att.net. > > Do you end up paying for that then - or who pays for it? > Besides,

[PHP] Re: Adding corners to image

2009-05-13 Thread דניאל דנון
Forgot to post last message to the list, but never mind - I managed to do it by one corner image and one "line" image for each pre-made corner. rotated by 90 degrees and copied it on the picture. Thank you On Wed, May 13, 2009 at 8:43 PM, Nathan Rixham wrote: > דניאל דנון wrote: > >> I am curren

RE: [PHP] Watermarking of images

2009-05-13 Thread tedd
At 9:49 AM -0400 5/13/09, Robert Cummings wrote: In the interest of increasing my rightness ratio, I'd just like to point out that I'm not always right :) Check the weather channel -- a cold front is being reported in Hell. Cheers, tedd -- --- http://sperling.com http://ancientstones.co

Re: [PHP] Re: [PHP ADVANCE] tcp CLIENT server connection and authentication

2009-05-13 Thread Per Jessen
Andrew Williams wrote: > Hi, > > http://php.net/stream_socket_client does not have the option to supply > authentication details and how do you supply that. > According ot the instructions you posted: "A session begins with the client establishing a TCP session and sending a login packet. If a

RE: [PHP] Sending SMS through website

2009-05-13 Thread Per Jessen
kyle.smith wrote: > Most carriers have email-to-sms bridges. For example, I use AT&T > Wireless and you can text me by sending an email to > myphonenum...@txt.att.net. Do you end up paying for that then - or who pays for it? Besides, none of the carriers around here have email-to-sms interfaces,

Re: [PHP] SMS gateway

2009-05-13 Thread Per Jessen
Daniel Brown wrote: > On Wed, May 13, 2009 at 10:00, Manoj Singh > wrote: >> Hi All, >> >> I need to create the SMS functionality in PHP. >> >> Do you have any idea of Open Source SMS gateway which i can use? > > http://google.com/search?q=open+source+sms+gateway > > If you have any ide

Re: [PHP] fileinfo on RHEL5

2009-05-13 Thread brian
Thodoris wrote: fileinfo.so is, indeed, in /usr/lib/php/modules. But I know it's enabled, in any case. So, anyone know if this extension doesn't work well with 5.1.6? Well you could enable the error messages to see what is going wrong. The $type var is probably empty because the instanti

[PHP] Re: Adding corners to image

2009-05-13 Thread Nathan Rixham
דניאל דנון wrote: I am currently searching for the most efficient way to add corners to existing images. Not just round corners - pre-made colorful with "pattern" images. So first thing I'm thinking about what I'll need, and I think that for each corner I'll need: - Corner pattern - Strai

[PHP] Adding corners to image

2009-05-13 Thread דניאל דנון
I am currently searching for the most efficient way to add corners to existing images. Not just round corners - pre-made colorful with "pattern" images. So first thing I'm thinking about what I'll need, and I think that for each corner I'll need: - Corner pattern - Straight-line pattern Do

Re: [PHP] fileinfo on RHEL5

2009-05-13 Thread Thodoris
fileinfo.so is, indeed, in /usr/lib/php/modules. But I know it's enabled, in any case. So, anyone know if this extension doesn't work well with 5.1.6? Well you could enable the error messages to see what is going wrong. The $type var is probably empty because the instantiation of the $fi

Re: [PHP] fileinfo on RHEL5

2009-05-13 Thread brian
Thodoris Goltsios wrote: Thodoris wrote: Is fileinfo pecl extension installed as a package or with pecl? In case it is installed as an rpm try to remove it and install it as an extension in case the package is broken for some reason. I installed it with PECL: /usr/share/pear/bin/pecl ins

Re: [PHP] fileinfo on RHEL5

2009-05-13 Thread Thodoris Goltsios
Thodoris wrote: Is fileinfo pecl extension installed as a package or with pecl? In case it is installed as an rpm try to remove it and install it as an extension in case the package is broken for some reason. I installed it with PECL: /usr/share/pear/bin/pecl install fileinfo Other quest

Re: [PHP] fileinfo on RHEL5

2009-05-13 Thread brian
Thodoris wrote: Is fileinfo pecl extension installed as a package or with pecl? In case it is installed as an rpm try to remove it and install it as an extension in case the package is broken for some reason. I installed it with PECL: /usr/share/pear/bin/pecl install fileinfo Other questio

Re: [PHP] SMS gateway

2009-05-13 Thread Nathan Rixham
Daniel Brown wrote: On Wed, May 13, 2009 at 10:00, Manoj Singh wrote: Hi All, I need to create the SMS functionality in PHP. Do you have any idea of Open Source SMS gateway which i can use? http://google.com/search?q=open+source+sms+gateway If you have any idea of how SMS works, yo

Re: [PHP] Sending SMS through website

2009-05-13 Thread Daniel Brown
On Wed, May 13, 2009 at 10:39, Andrew Williams wrote: > http://google.com/search?q=open+source+sms+gateway That looks awfully familiar, Andy ;-P -- daniel.br...@parasane.net || danbr...@php.net http://www.parasane.net/ || http://www.pilotpig.net/ 50% Off All Shared Hosting Plans at Pi

[PHP] Re: [PHP ADVANCE] tcp CLIENT server connection and authentication

2009-05-13 Thread Nathan Rixham
Andrew Williams wrote: Hi, http://php.net/stream_socket_client does not have the option to supply authentication details and how do you supply that. is it chi-xmd your doing and do you have the API docs? as that'll tell you - if you don't let me know I have them here. On Wed, May 13, 200

Re: [PHP] Sending SMS through website

2009-05-13 Thread Bastien Koert
On Wed, May 13, 2009 at 10:39 AM, Andrew Williams wrote: > http://google.com/search?q=open+source+sms+gateway > > > On Wed, May 13, 2009 at 3:36 PM, Thodoris wrote: > > > > > Hi All, > >> > >> Does anyone know how to send sms through a php website. I am completely > >> new > >> to the requireme

Re: [PHP] SMS gateway

2009-05-13 Thread Pavan Keshavamurthy
As Daniel already mentioned, SMS gateways are normally charged on the basis of usage. And there are several service providers as far as that goes, who provide APIs for integration with your own application. Just FYI www.clickatell.com is one. Somebody has even written a wrapper class around thi

Re: [PHP] Sending SMS through website

2009-05-13 Thread Andrew Williams
http://google.com/search?q=open+source+sms+gateway On Wed, May 13, 2009 at 3:36 PM, Thodoris wrote: > > Hi All, >> >> Does anyone know how to send sms through a php website. I am completely >> new >> to the requirement and don't know even the pre-requisite of doing it. You >> can also drop in

Re: [PHP] Sending SMS through website

2009-05-13 Thread Thodoris
Hi All, Does anyone know how to send sms through a php website. I am completely new to the requirement and don't know even the pre-requisite of doing it. You can also drop in link to a good tutorial. Any help will be highly appreciated. Thanks and Regards, Dheeraj Bansal Never implemente

RE: [PHP] Sending SMS through website

2009-05-13 Thread kyle.smith
Most carriers have email-to-sms bridges. For example, I use AT&T Wireless and you can text me by sending an email to myphonenum...@txt.att.net. HTH, Kyle -Original Message- From: dheeraj bansal [mailto:bansalcooldhee...@gmail.com] Sent: Wednesday, May 13, 2009 10:24 AM To: php-general@

[PHP] Sending SMS through website

2009-05-13 Thread dheeraj bansal
Hi All, Does anyone know how to send sms through a php website. I am completely new to the requirement and don't know even the pre-requisite of doing it. You can also drop in link to a good tutorial. Any help will be highly appreciated. Thanks and Regards, Dheeraj Bansal

[PHP] Re: [PHP ADVANCE] tcp CLIENT server connection and authentication

2009-05-13 Thread Andrew Williams
Hi, http://php.net/stream_socket_client does not have the option to supply authentication details and how do you supply that. On Wed, May 13, 2009 at 12:22 PM, Nathan Rixham wrote: > Andrew Williams wrote: > >> Hi All, >> >> please, I need to connect to IP via a specific port en validate my use

[PHP] re[PHP] moving data from old users (session_set_save_handler ??)

2009-05-13 Thread pere roca
hi all, I need to remove data when user leaves my webapplication. I fire an unload event (that calls a php script) but sometimes fails, so I need a more secure option. I wonder if session_set_save_handler is what I need. I think so but not sure. So, EVEN if the user leaves my webapplication, wil

Re: [PHP] SMS gateway

2009-05-13 Thread Daniel Brown
On Wed, May 13, 2009 at 10:00, Manoj Singh wrote: > Hi All, > > I need to create the SMS functionality in PHP. > > Do you have any idea of Open Source SMS gateway which i can use? http://google.com/search?q=open+source+sms+gateway If you have any idea of how SMS works, you'll know it's n

[PHP] SMS gateway

2009-05-13 Thread Manoj Singh
Hi All, I need to create the SMS functionality in PHP. Do you have any idea of Open Source SMS gateway which i can use? Thanks, Manoj

RE: [PHP] Watermarking of images

2009-05-13 Thread Robert Cummings
On Wed, 2009-05-13 at 09:41 -0400, tedd wrote: > At 4:39 PM -0400 5/12/09, Robert Cummings wrote: > >On Tue, 2009-05-12 at 16:31 -0400, tedd wrote: > > > > > While your post dealt with [2] mine was addressing [1]. Understand? > > > >Except he already had that part working. He wanted to get the out

Re: [PHP] Re: Urgent problem PCRE or DOM help

2009-05-13 Thread Daniel Brown
On Wed, May 13, 2009 at 08:48, Lenin wrote: > No one willing to help? Please don't "bump" your own threads on here. It creates unnecessary traffic. Someone will respond to you when they can, or you can explore one of the thousands of other avenues for support on the Internet. -- daniel.

RE: [PHP] Watermarking of images

2009-05-13 Thread tedd
At 4:39 PM -0400 5/12/09, Robert Cummings wrote: On Tue, 2009-05-12 at 16:31 -0400, tedd wrote: > While your post dealt with [2] mine was addressing [1]. Understand? Except he already had that part working. He wanted to get the outline. You would know that if you read the full post since he ga

[PHP] Re: Urgent problem PCRE or DOM help

2009-05-13 Thread Lenin
No one willing to help?

[PHP] Re: [PHP ADVANCE] tcp CLIENT server connection and authentication

2009-05-13 Thread Nathan Rixham
Andrew Williams wrote: Hi All, please, I need to connect to IP via a specific port en validate my user name and password to get data. Port : XXX7X Andrew, You're going to have some real fun with this one making the tcp connection is the least of your worries, sounds very much like a raw

Re: [PHP] help with global not working

2009-05-13 Thread Marc Steinert
Maybe your code overwrites the variable anywhere? You should think about switching to a constant in that case by using define('TEST_MODE', true); [...] if (TEST_MODE) { [...] } else { [...] } Greetings from Germany Marc Joey wrote: Hello All, I am running into a problem after I moved a s

Re: [PHP] handling chunked input from php://stdin

2009-05-13 Thread Nathan Rixham
Shawn McKenzie wrote: whisperstream wrote: I have a server running that receives xml formatted events from other services I have no control over. For certain events the transfer-encoding is chunked. I was just doing $input = file_get_contents('php://stdin'); and this works well until there i

Re: [PHP] fileinfo on RHEL5

2009-05-13 Thread Thodoris
RHEL5/PHP 5.1.6 I'm having some trouble getting the Fileinfo package working. It installed fine, and phpinfo() says it's enabled. But it consistently returns an empty string when getting the MIME of a file. /usr/share/pear/bin/pecl install fileinfo vi /etc/php.d/fileinfo.ini extension=filei

[PHP] help with global not working

2009-05-13 Thread Joey
Hello All, I am running into a problem after I moved a site from a server with PHP4 to PHP5. As an example I have a variable defined at the top of my code lets say: $test_mode = "no"; Then within the code I check if we are in test mode to bypass certain functionality like so: func

[PHP] [PHP ADVANCE] tcp CLIENT server connection and authentication

2009-05-13 Thread Andrew Williams
Hi All, please, I need to connect to IP via a specific port en validate my user name and password to get data. Port : XXX7X Internet ip 195.19.XX.1XX please can some help with the idea of achieving it in php. please see the format below: [*Session Initialization* A session begins wit