php-general Digest 24 Dec 2007 17:13:17 -0000 Issue 5198

Topics (messages 266253 through 266257):

Re: Sending SMS via PHP
        266253 by: VamVan

Terrible performance Apache 2.2.6, PHP 5.2, apache module mode
        266254 by: wmac
        266255 by: wmac

Re: Asynchronous socket connection timing issue.
        266256 by: Nicolas Le Gland

Re: Opinion about the using $GLOBALS directly
        266257 by: tedd

Administrivia:

To subscribe to the digest, e-mail:
        [EMAIL PROTECTED]

To unsubscribe from the digest, e-mail:
        [EMAIL PROTECTED]

To post to the list, e-mail:
        [EMAIL PROTECTED]


----------------------------------------------------------------------
--- Begin Message ---
Hi Bastien,

I have actually implemented sending SMS using PHP by installing NOW SMS
gateway. You can find all the information regarding it on www.nowsms.com.
They have a software that you can buy and configure on your server.

I wrote scripts that can help sending single SMS, BULK SMS, User Defined SMS
etc. I also configured using PHP in a way to receive  SMS  to the web server
and store it in the database. Its really exciting when you start working on
this because you will be basically using SOAP and SMPP protocol to achieve
this.

Once you install trial Version mail me back so that I can help you with PHP
Scripts that can actually allow you to SEND SMS. 160 characters are allowed
per SMS and you also need connection to the SMS gateway in your country.

Thanks,
Vamsee




On Dec 23, 2007 6:59 AM, Bastien Koert <[EMAIL PROTECTED]> wrote:

>
> Sending proper SMS messges requires that you use an SMS gateway or buy a
> cellular modem. SMS is essentially XML will the message body limited to 160
> characters.
>
> do some googling to get more information
>
> bastien
> ----------------------------------------
> > Date: Sun, 23 Dec 2007 08:30:29 +0330
> > From: [EMAIL PROTECTED]
> > To: [EMAIL PROTECTED]
> > Subject: [PHP] Sending SMS via PHP
> >
> > Hi,
> >
> > How can i send SMS messages via PHP? How can i set SMS-headers (UDH)?
> > Does anyone know some article/class/package about this issue?
> >
> > Thank you in advance,
> > -b
>
> _________________________________________________________________
> Discover new ways to stay in touch with Windows Live! Visit the City @
> Live today!
> http://getyourliveid.ca/?icid=LIVEIDENCA006
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>

--- End Message ---
--- Begin Message ---
Hello,

I have a very terrible performance after changing to last versions of Apache
and PHP on windows XP (and mysql 4.1).

I did a search on the internet and it seems many people have this problem.
Changing to Apache 2.0 and PHP 5.1 seems to solves the performance problem.

for example this one:
 http://ez.no/developer/forum/setup_design/poor_ez_publish_4_0_performance

Anyone has heard of a workaround?

Thank you


-- 
View this message in context: 
http://www.nabble.com/Terrible-performance-Apache-2.2.6%2C-PHP-5.2%2C-apache-module-mode-tp14486734p14486734.html
Sent from the PHP - General mailing list archive at Nabble.com.

--- End Message ---
--- Begin Message ---
Hello,

I have a very terrible performance after changing to last versions of Apache and PHP on windows XP (and mysql 4.1).

I did a search on the internet and it seems many people have this problem. Changing to Apache 2.0 and PHP 5.1 seems to solves the performance problem.

Anyone has heard of a workaround?

Thank you

--- End Message ---
--- Begin Message ---
> My code is at http://rafb.net/p/DEwN8J71.html
> with results at http://rafb.net/p/cnB4dC80.html

As this temporary hosting expired after 24h, here are both code and log :
http://nicolas.legland.free.fr/attachment/2007/12/24/stream.zip

--- End Message ---
--- Begin Message ---
At 4:18 PM +0200 12/19/07, Sancar Saran wrote:
 > that said, avoid globals like the plague - sometimes you may come up with
 a situation where using a global is really necessary - such situations
 should be the exception rather than the rule, often if your thinking of
 using a global there is another way of doing it. jmho

And this is why I'm asking here, WHY I should avoid globals like plague ?
Every one says bad. Alright, but no one says WHY ?

Hi:

I'm a little late to this thread (been busy), but this is why I rarely use globals and have not used them in php.

One of the fundamentals of programming I've learned is to reduce problem/solution to their most basic form. Simply, you see a problem and you solve it by dividing the problem it into smaller parts and then writing code to solve the small parts. Eventually, all the small solutions come together to solve the larger problem.

Certainly, and it seems even logical, that you can use a global variable to communicate between the different parts and everything should work -- IF -- that's all there was to it. But, if you have to debug the code OR if you want to use a portion of that solution to solve a different problem, then you can have difficulties. For example:

[1] If you have to debug the code, there's not a really good way to look at a function and see if a variable in it is a global or not -- therein lies a problem, you don't readily know.

In other languages I adopted a naming convention that used "g" as the first letter of a Global variable, like gThisIsMyGolbalVariable -- that way at least I knew the variable was global. But, even then I didn't know where the global was defined or where it might be changed -- it was just an unknown in my function that I had to consider.

[2] If you want to reused a portion of the code, then you have to also accommodate the global. This makes transporting your code from one application to another problematic because you never know IF your function replies on a global or not. If you never use globals, then that's never a problem.

So, my advice is to not use globals, but rather make the functions independent from globals. That way you troubleshoot them easier and can cut/paste them into other solutions without having to worry if some part of that function relies on something who knows where.

That's my reasons why I avoid globals.

Cheers,

tedd

--
-------
http://sperling.com  http://ancientstones.com  http://earthstones.com

--- End Message ---

Reply via email to