php-general Digest 13 May 2009 21:14:39 -0000 Issue 6119
Topics (messages 292520 through 292557):
help with global not working
292520 by: Joey
292523 by: Marc Steinert
Re: fileinfo on RHEL5
292521 by: Thodoris
292542 by: brian
292543 by: Thodoris
292544 by: brian
292545 by: Thodoris
292548 by: brian
Re: handling chunked input from php://stdin
292522 by: Nathan Rixham
Re: [PHP ADVANCE] tcp CLIENT server connection and authentication
292524 by: Nathan Rixham
292532 by: Andrew Williams
292539 by: Nathan Rixham
292551 by: Per Jessen
Re: Urgent problem PCRE or DOM help
292525 by: Lenin
292527 by: Daniel Brown
Re: Watermarking of images
292526 by: tedd
292528 by: Robert Cummings
292552 by: tedd
SMS gateway
292529 by: Manoj Singh
292530 by: Daniel Brown
292537 by: Pavan Keshavamurthy
292541 by: Nathan Rixham
292549 by: Per Jessen
re[PHP] moving data from old users (session_set_save_handler ??)
292531 by: pere roca
Sending SMS through website
292533 by: dheeraj bansal
292534 by: kyle.smith
292535 by: Thodoris
292536 by: Andrew Williams
292538 by: Bastien Koert
292540 by: Daniel Brown
292550 by: Per Jessen
292554 by: Andrew Ballard
292555 by: Nathan Rixham
292556 by: Andrew Ballard
Adding corners to image
292546 by: ×× ××× ×× ××
292547 by: Nathan Rixham
292553 by: ×× ××× ×× ××
shell_exec problem with bsdtar
292557 by: Lester Caine
Administrivia:
To subscribe to the digest, e-mail:
php-general-digest-subscr...@lists.php.net
To unsubscribe from the digest, e-mail:
php-general-digest-unsubscr...@lists.php.net
To post to the list, e-mail:
php-gene...@lists.php.net
----------------------------------------------------------------------
--- Begin Message ---
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:
function runTransaction() {
global $test_mode;
do some things;
do some more things;
if ($test_mode == "yes") {
don't do anything;
} else {
Do something;
}
My problem is that $test_mode NEVER contains the value "no".
Any ideas appreciated.
Joey
--- End Message ---
--- Begin Message ---
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 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:
function runTransaction() {
global $test_mode;
do some things;
do some more things;
if ($test_mode == "yes") {
don't do anything;
} else {
Do something;
}
My problem is that $test_mode NEVER contains the value "no".
Any ideas appreciated.
Joey
--
Synchronize and share your files over the web for free
http://bithub.net/
My Twitter feed
http://twitter.com/MarcSteinert
--- End Message ---
--- Begin Message ---
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=fileinfo.so
ln -s /usr/share/file/magic /etc/magic.mime
The code:
define('FINFO_PATH', '/usr/share/file/magic');
...
$fi = new finfo(FILEINFO_MIME, FINFO_PATH);
$type = $fi->file($file_path);
$type is always empty. And, yes, the path to the file is good.
This works fine on the dev box (PHP 5.2.6). Unfortunately, the
decision to use RHEL5 for production was out of my hands and I'm stuck
with this older version. At least, I'm thinking it might be due to
that. I didn't see anything in the manual about it, though.
I did come across a post[1] online about doing file conversions where
the guy mentions rolling an upgrade to 5.2.4 for RHEL5 but wasn't
specific as to whether it was necessary to get Fileinfo to work at
all. I might try using that upgrade but thought I'd do a sanity check
here first. Any other reason it'd be returning nothing?
[1]
http://bhuga.net/2008/07/setting-your-system-file-conversions-with-file-framework
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.
Have in mind that you will need the magic_open library for this to work.
--
Thodoris
--- End Message ---
--- Begin Message ---
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 question: where does PECL install this? It's not under
/usr/share/pear AFAIK. This is the same as with the dev box, so I don't
think it's an issue; I'm just curious.
Anyway, as I said, phpinfo() tells me it's installed & enabled.
Have in mind that you will need the magic_open library for this to work.
You mean libmagic? I have file-4.17-15.el5_3.1, which provides libmagic,
installed. Strangely, for Fedora, it comes in the file-libs package. But
I know that, for the dev box, I had to install file-devel to get this
all working. Neither of these appear to be available for RHEL, which I'm
discovering is a bit "interesting" to deal with, package-wise.
The file package also provides /usr/share/file/magic*, which I have. I'd
created a link to /etc/magic.mime but decided in the end to just pass
the correct path to finfo().
--- End Message ---
--- Begin Message ---
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 question: where does PECL install this? It's not under
/usr/share/pear AFAIK. This is the same as with the dev box, so I
don't think it's an issue; I'm just curious.
Pear and pecl are different. Pear is used to install pure PHP-coded
extensions that you can include in your projects. You can use this piece
of code that pear provides by just copying it somewhere and including it
though not recommended IMHO. Pecl on the other hand provides C-coded
extensions that you need to compile and may provide for eg APIs for
known libraries that must exist in your system.
That is what pecl command does downloads, compiles and installs the
extension.
A wild guess is that your modules probably live under the
/usr/lib/php/modules directory or in a directory under the /usr/lib/php.
Anyway, as I said, phpinfo() tells me it's installed & enabled.
Have in mind that you will need the magic_open library for this to work.
You mean libmagic? I have file-4.17-15.el5_3.1, which provides
libmagic, installed. Strangely, for Fedora, it comes in the file-libs
package. But I know that, for the dev box, I had to install file-devel
to get this all working. Neither of these appear to be available for
RHEL, which I'm discovering is a bit "interesting" to deal with,
package-wise.
The file package also provides /usr/share/file/magic*, which I have.
I'd created a link to /etc/magic.mime but decided in the end to just
pass the correct path to finfo().
--- End Message ---
--- Begin Message ---
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 install fileinfo
Other question: where does PECL install this? It's not under
/usr/share/pear AFAIK. This is the same as with the dev box, so I
don't think it's an issue; I'm just curious.
Pear and pecl are different. Pear is used to install pure PHP-coded
extensions that you can include in your projects. You can use this piece
of code that pear provides by just copying it somewhere and including it
though not recommended IMHO. Pecl on the other hand provides C-coded
extensions that you need to compile and may provide for eg APIs for
known libraries that must exist in your system.
That is what pecl command does downloads, compiles and installs the
extension.
Right, of course. I wasn't thinking about that clearly.
A wild guess is that your modules probably live under the
/usr/lib/php/modules directory or in a directory under the /usr/lib/php.
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?
--- End Message ---
--- Begin Message ---
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 object
fails for some reason.
--
Thodoris
--- End Message ---
--- Begin Message ---
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 instantiation of the $fi object
fails for some reason.
If the instantiation fails, I should see "Fatal error: Call to a member
function on a non-object" I would think.
As it turns out, this was all due to open_basedir not having the path
/usr/share/file included. All is good. Thanks for your help.
--- End Message ---
--- Begin Message ---
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 is chunked input. Then I tried
$handle = fopen('php://input', "rb");
$input = '';
while (!feof($handle)) {
$input .= fread($handle, 8192);
}
fclose($handle);
And that gives about the same result, has anyone else come across this and
how did they solve it?
Thanks in advance
There aren't really many examples around, but check
http_chunked_decode() from PECL.
simples!
function HTTPChunkDecoder( $chunkedData ) {
$decodedData = '';
do {
$tempChunk = explode(chr(13).chr(10), $chunkedData, 2);
$chunkSize = hexdec($tempChunk[0]);
$decodedData .= substr($tempChunk[1], 0, $chunkSize);
$chunkedData = substr($tempChunk[1], $chunkSize+2);
} while (strlen($chunkedData) > 0);
return $decodedData;
}
--- End Message ---
--- Begin Message ---
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
market datafeed to me, and not a nice xml based one, a lovely raw ascii
one with all the string padded unsequenced ascii joys they hold.
pointed you in the right direction yesterday with the stream functions..
open client connection
fwrite messages in correct format
fread responses and parse them then take required actions / save.
close client connection
that really is everything there is to it.
Good luck
--- End Message ---
--- Begin Message ---
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 <nrix...@gmail.com> wrote:
> 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 market datafeed to
> me, and not a nice xml based one, a lovely raw ascii one with all the string
> padded unsequenced ascii joys they hold.
>
> pointed you in the right direction yesterday with the stream functions..
> open client connection
> fwrite messages in correct format
> fread responses and parse them then take required actions / save.
> close client connection
>
> that really is everything there is to it.
>
> Good luck
>
--
Best Wishes
A Williams
--- End Message ---
--- Begin Message ---
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, 2009 at 12:22 PM, Nathan Rixham <nrix...@gmail.com> wrote:
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 market datafeed to
me, and not a nice xml based one, a lovely raw ascii one with all the string
padded unsequenced ascii joys they hold.
pointed you in the right direction yesterday with the stream functions..
open client connection
fwrite messages in correct format
fread responses and parse them then take required actions / save.
close client connection
that really is everything there is to it.
Good luck
--- End Message ---
--- Begin Message ---
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 login packet is not received within 30 seconds the
server will terminate the session. "
Now you just need to determine what a login packet should look like.
/Per
--
Per Jessen, Zürich (18.4°C)
--- End Message ---
--- Begin Message ---
No one willing to help?
--- End Message ---
--- Begin Message ---
On Wed, May 13, 2009 at 08:48, Lenin <le...@phpxperts.net> 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 P. Brown>
daniel.br...@parasane.net || danbr...@php.net
http://www.parasane.net/ || http://www.pilotpig.net/
--- End Message ---
--- Begin Message ---
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 gave a link to
what he already had using PHP. When he says:
"That site is also coded in php so I'm guessing that the
watermark is added using a php technology."
It means that he can presumably also generate a watermark with an
outline using PHP and GD.
Yeah, but that's only true if you read the post in detail. Look, I
always skim what the poster said and then answer as I think he may
want. Don't brother me with the details.
That practice has worked for me for years without any problems
whatsoever and now you come along and want me to read and understand
everything in detail -- that ain't fair. Next thing you'll want is
for me to be right all the time like you are. :-)
Comprendez vous?
Didn't they go out of business?
Cheers,
tedd
--
-------
http://sperling.com http://ancientstones.com http://earthstones.com
--- End Message ---
--- Begin Message ---
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 outline.
> >You would know that if you read the full post since he gave a link to
> >what he already had using PHP. When he says:
> >
> > "That site is also coded in php so I'm guessing that the
> > watermark is added using a php technology."
> >
> >It means that he can presumably also generate a watermark with an
> >outline using PHP and GD.
>
> Yeah, but that's only true if you read the post in detail. Look, I
> always skim what the poster said and then answer as I think he may
> want. Don't brother me with the details.
>
> That practice has worked for me for years without any problems
> whatsoever and now you come along and want me to read and understand
> everything in detail -- that ain't fair. Next thing you'll want is
> for me to be right all the time like you are. :-)
In the interest of increasing my rightness ratio, I'd just like to point
out that I'm not always right :)
> >Comprendez vous?
>
> Didn't they go out of business?
Wasn't that Comprenez Vous?
*tee hee*
Cheers,
Rob.
--
http://www.interjinn.com
Application and Templating Framework for PHP
--- End Message ---
--- Begin Message ---
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.com http://earthstones.com
--- End Message ---
--- Begin Message ---
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
--- End Message ---
--- Begin Message ---
On Wed, May 13, 2009 at 10:00, Manoj Singh <manojsingh2...@gmail.com> 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 not
possible. SMS is a protocol built upon a network for which you'll be
required to license (and pay for) access and usage. It's not a script
you could install.
--
</Daniel P. Brown>
daniel.br...@parasane.net || danbr...@php.net
http://www.parasane.net/ || http://www.pilotpig.net/
50% Off All Shared Hosting Plans at PilotPig: Use Coupon DOW10000
--- End Message ---
--- Begin Message ---
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
this service, that could make life a lot easier
(http://sourceforge.net/projects/sms-api/)
Best
Pavan Keshavamurthy
On Wednesday 13 May 2009 19:30:30 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?
>
> Thanks,
> Manoj
--
-Pavan Keshavamurthy
http://grahana.net/
--- End Message ---
--- Begin Message ---
Daniel Brown wrote:
On Wed, May 13, 2009 at 10:00, Manoj Singh <manojsingh2...@gmail.com> 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 not
possible. SMS is a protocol built upon a network for which you'll be
required to license (and pay for) access and usage. It's not a script
you could install.
indeed been down this avenue myself - best free way I could find of
doing it for free(?) is to find the email address format for the major
carriers (there is a list on wikipedia) then send an email to
241412341...@carrier.smstoemailgateway.domain where the numbers are the
phone number.
--- End Message ---
--- Begin Message ---
Daniel Brown wrote:
> On Wed, May 13, 2009 at 10:00, Manoj Singh <manojsingh2...@gmail.com>
> 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 not
> possible. SMS is a protocol built upon a network for which you'll be
> required to license (and pay for) access and usage. It's not a script
> you could install.
Well, in a way you could - I've been using sms_client for 3-4 years,
paying a fixed fee of 30Rappen per SMS via my phonebill. It works very
well. I trigger the SMS by email, but it could just as easily be done
from some PHP code.
sms_client is open source, btw.
/Per
--
Per Jessen, Zürich (17.6°C)
--- End Message ---
--- Begin Message ---
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, will his session be
destroyed (after reaching $maxlifetime) and, as consequence, the associated
functions will be executed (functions like deleting from database, user
folders...)?
In PHP documentation, it's said:"session.gc_maxlifetime specifies the number
of seconds after which data will be seen as 'garbage' and cleaned up.
Garbage collection occurs during session start. "
And..."session.gc_probability in conjunction with session.gc_divisor is used
to manage probability that the gc (garbage collection) routine is
started.Defaults to 1" ----> does it mean that only 1% of the old sessions
(and associated actions) are deleted each time?
Some idea?
thanks alot,
Pere Roca
--
View this message in context:
http://www.nabble.com/removing-data-from-old-users-%28session_set_save_handler---%29-tp23522607p23522607.html
Sent from the PHP - General mailing list archive at Nabble.com.
--- End Message ---
--- Begin Message ---
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
--- End Message ---
--- Begin Message ---
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-gene...@lists.php.net
Subject: [PHP] Sending SMS through website
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
--- End Message ---
--- Begin Message ---
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 implemented something similar but I will share what I know. If
you manage to set up an SMS gateway it will probably provide you some
means (like an API, a spool-like directory, database etc) to pass
messages to it. You can probably use PHP 's capabilities to pass the
sms to the gateway and use it this way to send the message to the
subscriber.
Generally speaking this is the plan. But you will need to have a working
SMS gateway and walk through its aspects and details.
I am not sure but I think there might be someone selling the service
that you may pay to use it in your site.
I am sure that someone more experienced than me will reply when the time
is right.
--
Thodoris
--- End Message ---
--- Begin Message ---
http://google.com/search?q=open+source+sms+gateway
On Wed, May 13, 2009 at 3:36 PM, Thodoris <t...@kinetix.gr> 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 link to a good tutorial. Any help will be highly
>> appreciated.
>>
>> Thanks and Regards,
>> Dheeraj Bansal
>>
>>
>>
>
> Never implemented something similar but I will share what I know. If you
> manage to set up an SMS gateway it will probably provide you some means
> (like an API, a spool-like directory, database etc) to pass messages to it.
> You can probably use PHP 's capabilities to pass the sms to the gateway and
> use it this way to send the message to the subscriber.
>
> Generally speaking this is the plan. But you will need to have a working
> SMS gateway and walk through its aspects and details.
>
> I am not sure but I think there might be someone selling the service that
> you may pay to use it in your site.
>
> I am sure that someone more experienced than me will reply when the time is
> right.
>
> --
> Thodoris
>
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>
--
Best Wishes
A Williams
--- End Message ---
--- Begin Message ---
On Wed, May 13, 2009 at 10:39 AM, Andrew Williams <andrew4willi...@gmail.com
> wrote:
> http://google.com/search?q=open+source+sms+gateway
>
>
> On Wed, May 13, 2009 at 3:36 PM, Thodoris <t...@kinetix.gr> 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 link to a good tutorial. Any help will be highly
> >> appreciated.
> >>
> >> Thanks and Regards,
> >> Dheeraj Bansal
> >>
> >>
> >>
> >
> > Never implemented something similar but I will share what I know. If you
> > manage to set up an SMS gateway it will probably provide you some means
> > (like an API, a spool-like directory, database etc) to pass messages to
> it.
> > You can probably use PHP 's capabilities to pass the sms to the gateway
> and
> > use it this way to send the message to the subscriber.
> >
> > Generally speaking this is the plan. But you will need to have a working
> > SMS gateway and walk through its aspects and details.
> >
> > I am not sure but I think there might be someone selling the service that
> > you may pay to use it in your site.
> >
> > I am sure that someone more experienced than me will reply when the time
> is
> > right.
> >
> > --
> > Thodoris
> >
> >
> >
> > --
> > PHP General Mailing List (http://www.php.net/)
> > To unsubscribe, visit: http://www.php.net/unsub.php
> >
> >
>
>
> --
> Best Wishes
> A Williams
>
http://en.wikipedia.org/wiki/SMS_gateways has a list of gateways...you can
also find pay for service gateways with some googling
--
Bastien
Cat, the other other white meat
--- End Message ---
--- Begin Message ---
On Wed, May 13, 2009 at 10:39, Andrew Williams
<andrew4willi...@gmail.com> wrote:
> http://google.com/search?q=open+source+sms+gateway
That looks awfully familiar, Andy.... ;-P
--
</Daniel P. Brown>
daniel.br...@parasane.net || danbr...@php.net
http://www.parasane.net/ || http://www.pilotpig.net/
50% Off All Shared Hosting Plans at PilotPig: Use Coupon DOW10000
--- End Message ---
--- Begin Message ---
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,
so I'd disagree with your initial claim.
/Per
--
Per Jessen, Zürich (18.0°C)
--- End Message ---
--- Begin Message ---
On Wed, May 13, 2009 at 1:55 PM, Per Jessen <p...@computer.org> 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, none of the carriers around here have email-to-sms interfaces,
> so I'd disagree with your initial claim.
>
>
> /Per
>
> --
> Per Jessen, Zürich (18.0°C)
It seems pretty common, at least with the few carriers I've dealt with
in the US.
As for payment, the sender doesn't pay anything (What are they going
to do -- send a bill to the sender's e-mail address?) and the
recipient pays standard rates for an incoming message. If it's within
your monthly allotment, it's "free." I don't know if there are quotas
imposed to prevent someone from "abusing" the service.
Andrew
--- End Message ---
--- Begin Message ---
Andrew Ballard wrote:
On Wed, May 13, 2009 at 1:55 PM, Per Jessen <p...@computer.org> 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, none of the carriers around here have email-to-sms interfaces,
so I'd disagree with your initial claim.
/Per
--
Per Jessen, Zürich (18.0°C)
It seems pretty common, at least with the few carriers I've dealt with
in the US.
As for payment, the sender doesn't pay anything (What are they going
to do -- send a bill to the sender's e-mail address?) and the
recipient pays standard rates for an incoming message. If it's within
your monthly allotment, it's "free." I don't know if there are quotas
imposed to prevent someone from "abusing" the service.
Andrew
last test I did I found they were very tight with the allocation, made
an email to sms update system for a site and the system was getting
timeouts and rejections left right and center under even moderate traffic.
I think its safe to say that for personal traffic and light updates
you'd be fine, but nothing that would amount to any level of commercial
grade server for even a medium sized app.
--- End Message ---
--- Begin Message ---
On Wed, May 13, 2009 at 3:38 PM, Nathan Rixham <nrix...@gmail.com> wrote:
> Andrew Ballard wrote:
>>
>> On Wed, May 13, 2009 at 1:55 PM, Per Jessen <p...@computer.org> 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, none of the carriers around here have email-to-sms interfaces,
>>> so I'd disagree with your initial claim.
>>>
>>>
>>> /Per
>>>
>>> --
>>> Per Jessen, Zürich (18.0°C)
>>
>> It seems pretty common, at least with the few carriers I've dealt with
>> in the US.
>>
>> As for payment, the sender doesn't pay anything (What are they going
>> to do -- send a bill to the sender's e-mail address?) and the
>> recipient pays standard rates for an incoming message. If it's within
>> your monthly allotment, it's "free." I don't know if there are quotas
>> imposed to prevent someone from "abusing" the service.
>>
>> Andrew
>
> last test I did I found they were very tight with the allocation, made an
> email to sms update system for a site and the system was getting timeouts
> and rejections left right and center under even moderate traffic.
>
> I think its safe to say that for personal traffic and light updates you'd be
> fine, but nothing that would amount to any level of commercial grade server
> for even a medium sized app.
>
I would figure as much. Otherwise, that would be a pretty easy address
space to SPAM.
--- End Message ---
--- Begin Message ---
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 you agree? Do you know about existing class or something? since I've
researched this issue a bit... can't find any solution.
--
Use ROT26 for best security
--- End Message ---
--- Begin Message ---
דניאל דנון 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
- Straight-line pattern
Do you agree?
called a "9-slice" - might get you going in the right direction.
ps: really seems like the functionality you've been needing recently is
more suited to flash/flex/as
--- End Message ---
--- Begin Message ---
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 <nrix...@gmail.com> wrote:
> דניאל דנון 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
>> - Straight-line pattern
>>
>> Do you agree?
>>
>
> called a "9-slice" - might get you going in the right direction.
>
> ps: really seems like the functionality you've been needing recently is
> more suited to flash/flex/as
>
--
Use ROT26 for best security
--- End Message ---
--- Begin Message ---
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 prompt, and similar commands
for unzip and unrar work fine, later in the check list, but using the
'tar' and also 'bsdtar' command simply returns NULL, and the extracted
file is not created.
Any ideas what I've got wrong?
--
Lester Caine - G8HFL
-----------------------------
Contact - http://lsces.co.uk/wiki/?page=contact
L.S.Caine Electronic Services - http://lsces.co.uk
EnquirySolve - http://enquirysolve.com/
Model Engineers Digital Workshop - http://medw.co.uk//
Firebird - http://www.firebirdsql.org/index.php
--- End Message ---