php-general Digest 16 Jan 2010 11:13:35 -0000 Issue 6541
Topics (messages 301140 through 301147):
Re: PHP and javascript
301140 by: Ryan Sun
301141 by: Ashley Sheridan
mysql_real_escape_string(0xffffffff) yields -1
301142 by: Richard Lynch
301143 by: Jim Lucas
PHP 5.3 shared hosting
301144 by: Adam Richardson
301145 by: Michael A. Peters
Re: SMTP Local development to Send email in PHP; Windows Platform/ XP with no
IIS
301146 by: Andy Shellam
301147 by: Eric Lee
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 ---
I don't think you can call php cli from client javascript unless you have a
wrapper http interface
On Fri, Jan 15, 2010 at 2:07 PM, Andres Gonzalez <[email protected]>wrote:
> How do I call PHP code that will run server side, from javascript code that
> is running client side?
>
> I have a lot of PHP server side code written and working within
> CodeIgniter. Now, my project
> has changed and (for reasons unimportant to this discussion) we are now NOT
> going to
> use apache and CodeIgniter, but instead, we are going to have to use an
> http server that does
> not support PHP internally. But I want to reuse my original PHP code. So I
> am thinking that I
> can execute the PHP code via a command line interface using the PHP cli
> interface instead of
> the PHP cgi interface. But, I will have to initiate this serversid call via
> javascript code running
> on the client.
>
> I know...kind of convoluted. But how would one do this if necessary?
>
> -Andres
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>
--- End Message ---
--- Begin Message ---
On Fri, 2010-01-15 at 14:07 -0500, Andres Gonzalez wrote:
> How do I call PHP code that will run server side, from javascript code
> that is running client side?
>
> I have a lot of PHP server side code written and working within
> CodeIgniter. Now, my project
> has changed and (for reasons unimportant to this discussion) we are now
> NOT going to
> use apache and CodeIgniter, but instead, we are going to have to use an
> http server that does
> not support PHP internally. But I want to reuse my original PHP code.
> So I am thinking that I
> can execute the PHP code via a command line interface using the PHP cli
> interface instead of
> the PHP cgi interface. But, I will have to initiate this serversid call
> via javascript code running
> on the client.
>
> I know...kind of convoluted. But how would one do this if necessary?
>
> -Andres
>
I wouldn't recommend doing it this way at all. What you'd essentially
need, is Javascript make an AJAX request to a server script, which would
then call your PHP shell script, which would then return data to the
[other language] server script, that responds back to the Javascript on
the browser.
What sort of server will you be using that you can' support PHP on it?
PHP runs on most web servers out there, and will happily run alongside
other language modules on a single server.
Who's making the decisions about the new server? Someone really needs to
explain to him/her that it's a massive project converting a website from
one language to another (I've had to convert a large ColdFusion one to
PHP before, so I know) and it will probably cost more in the long term
to convert than might be saved on whatever server 'deal' they're
getting.
Thanks,
Ash
http://www.ashleysheridan.co.uk
--- End Message ---
--- Begin Message ---
The subject line says it all:
mysql_real_escape_string(0xffffffff) yields -1
What's up with that?
Is there some way to convince mysql_real_escape_string to use BIGINT?
I guess I'll just PCRE for digits and then pass it in and...
But what if somebody passes in some BC Math number?...
--
Some people ask for gifts here.
I just want you to buy an Indie CD for yourself:
http://cdbaby.com/search/from/lynch
--- End Message ---
--- Begin Message ---
Richard Lynch wrote:
> The subject line says it all:
>
> mysql_real_escape_string(0xffffffff) yields -1
>
> What's up with that?
>
> Is there some way to convince mysql_real_escape_string to use BIGINT?
>
> I guess I'll just PCRE for digits and then pass it in and...
>
> But what if somebody passes in some BC Math number?...
>
Is this a 32 or 64 bit system?
--- End Message ---
--- Begin Message ---
Hi,
I've developed a framework that requires PHP 5.3 (it takes a more functional
approach.) I'm hosting my own apps on a dedicated server running cpanel
(thanks to their recent upgrade.) However, for client work I prefer not to
personally host the websites.
I've been contacting hosts about their shared hosting options, and I've only
found a couple that accommodate PHP 5.3 so far. Anybody have
recommendations for shared hosting providers that are supporting php 5.3
(many of the smaller sites I'm working with don't merit a VPS?)
Thank you very much for your help,
Adam
--
Nephtali: PHP web framework that functions beautifully
http://nephtaliproject.com
--- End Message ---
--- Begin Message ---
Adam Richardson wrote:
Hi,
I've developed a framework that requires PHP 5.3 (it takes a more functional
approach.) I'm hosting my own apps on a dedicated server running cpanel
(thanks to their recent upgrade.) However, for client work I prefer not to
personally host the websites.
I've been contacting hosts about their shared hosting options, and I've only
found a couple that accommodate PHP 5.3 so far. Anybody have
recommendations for shared hosting providers that are supporting php 5.3
(many of the smaller sites I'm working with don't merit a VPS?)
Thank you very much for your help,
Adam
I would suggest pointing your clients at something like linode that
allows them to run whatever they hell they want to run.
I'm running CentOS 5.x w/ php 5.2.12 for example.
I need to update them, but if you want, here are some php 5.3 src.rpm's
that can be used to build php 5.3 on a CentOS / RHEL 5.x system -
http://www.clfsrpm.net/php/
Running a xen instance is a lot nicer than shared hosting, and not
really that expensive, and is really preferable to "shared hosting".
--- End Message ---
--- Begin Message ---
Hi,
>
> Also http://www.softstack.com/freesmtp.html which vikash mentioned works
> through outlook settings.
>
> Anyways the below will help-
>
> http://php.net/manual/en/ref.mail.php
>
> http://glob.com.au/sendmail/
Personally, I always found hMailServer to be perfectly reliable as a relay on
Windows - just install it and SMTP to localhost - nothing more, nothing less.
Andy
--- End Message ---
--- Begin Message ---
Hi,
As I know that php did't setting user name and password.
So, just install any smtp server with authenticaton set to "no
authentication"
Much list IIS smtp server.
Eric,
Regards,
On 1/16/10, Andy Shellam <[email protected]> wrote:
>
> Hi,
>
> >
> > Also http://www.softstack.com/freesmtp.html which vikash mentioned works
> > through outlook settings.
> >
> > Anyways the below will help-
> >
> > http://php.net/manual/en/ref.mail.php
> >
> > http://glob.com.au/sendmail/
>
>
> Personally, I always found hMailServer to be perfectly reliable as a relay
> on Windows - just install it and SMTP to localhost - nothing more, nothing
> less.
>
> Andy
--- End Message ---