php-general Digest 10 Apr 2008 20:58:10 -0000 Issue 5397

Topics (messages 272817 through 272847):

Re: books for php
        272817 by: Manuel Lemos

Re: How to create combo-boxes/list boxes connected with MS SQL Serverdatabase 
in PHP scripts
        272818 by: Manuel Lemos

Re: APC & FastCGI != upload progress ?
        272819 by: Manuel Lemos

Re: dynamic boxes problem... JS and PHP
        272820 by: David Lidstone

PHP GD library installing
        272821 by: Luca Paolella
        272822 by: Thijs Lensselink
        272823 by: Robin Vickery
        272827 by: Thijs Lensselink
        272832 by: Robin Vickery
        272835 by: Thijs Lensselink
        272836 by: Daniel Brown

newsletter administration
        272824 by: Alain Roger
        272825 by: Aschwin Wesselius
        272826 by: Brice

Evaluating math without eval()
        272828 by: Jason Norwood-Young
        272829 by: Richard Heyes
        272830 by: Jason Norwood-Young
        272831 by: Jason Norwood-Young
        272841 by: Jim Lucas

Vote for PHP support in Google App Engine
        272833 by: Paul van Brouwershaven
        272837 by: Julian Kennedy
        272838 by: Paul van Brouwershaven
        272839 by: Paul van Brouwershaven
        272844 by: Shawn McKenzie
        272846 by: Spam Recipient

Re: Connecting to an epp server
        272834 by: Paul van Brouwershaven
        272840 by: Alan Willsher

Re: [PHP-INSTALL] ftp_put cannot upload a file.
        272842 by: Thiago Pojda
        272845 by: Shawn McKenzie

Re: php server installation
        272843 by: Nathan Nobbe

Re: Requested PHP apps / sites
        272847 by: Dan

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 ---
Hello,

on 04/06/2008 12:28 PM news.php.net said the following:
> Which are the good books for learning php? 

Here you may find several PHP books that got good reviews:

http://www.phpclasses.org/reviews/latest/latest.html

-- 

Regards,
Manuel Lemos

PHP professionals looking for PHP jobs
http://www.phpclasses.org/professionals/

PHP Classes - Free ready to use OOP components written in PHP
http://www.phpclasses.org/

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

on 04/09/2008 02:27 AM [EMAIL PROTECTED] said the following:
> Sir
> I want to create combo-boxes/list-boxes from a table which is available in 
> MS-Sql server database. I have established connectivity with ms-sql server 
> database using odbc.
> how can i create combo-boxes in my php scripts?
> waiting for an early reply.

You may want to try this forms generation class that comes with a
plug-in to link 2 or more select inputs . There are variants of that
plug-in can retrieve new options from a database on the server. Most
popular databases are supported, including MS-SQL server, with the
variants that use the Metabase or PEAR::MDB2 database API.

http://www.phpclasses.org/formsgeneration

Here is a live example of the linked select plug-in:

http://www.meta-language.net/forms-examples.html?example=test_linked_select

Here you may watch a tutorial video also about this plug-in:

http://www.phpclasses.org/browse/video/1/package/1/section/plugin-linked-select.html

-- 

Regards,
Manuel Lemos

PHP professionals looking for PHP jobs
http://www.phpclasses.org/professionals/

PHP Classes - Free ready to use OOP components written in PHP
http://www.phpclasses.org/

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

on 04/09/2008 03:07 PM steve said the following:
>>> FastCGI is *the* way to run PHP, but I think Apache is not the
>>> platform for it anymore.
>> If need more than one server, Apache pre-forked model may limited.
>> Otherwise it is just fine. Other than that, I think there are some
>> features that only work with Apache SAPI.
> 
> Apache SAPI is the easiest. But it falls apart when you have a higher
> load. FastCGI can stall those who are thinking of getting their second
> webserver. When you have a whole farm of them the differences are
> grossly obvious.

Sure, but it also adds overhead when replying to HTTP requests. There
are no miracles.


>>> Is the COMMET implementation on the client side long polling
>>> (reconnect) or does it stream using script tags? What goes on in the
>>> server? Does it push the buffer of blank data that WebKit requires? Is
>>> it a PHP daemon process running as a simple HTTP server?
>> Actually it is just an hidden iframe that loads an HTML page with small
>> Javascript chunks that flush each COMET AJAX server response. This is a
>> regular HTTP request performed to the same script that serves that form.
>> The form AJAX plug-in can detect the AJAX request and respond
>> adequately. So it works equally well in all browsers including Webkit.
> 
> So you keep a whole Apache/PHP process open for each user? That is
> nice for a small site, but doesn't work with tens of thousands of
> simultaneous connections. :(

No, I did not say that. "AJAX" requests using this approach are
triggered on demand. For PHP is like any other request. Executing an
AJAx request this way or a regular request submiting a form or following
a link consumes just one process.


> Webkit has a bug/feature that it would buffer the incoming data until
> it reached 1024 bytes. You can see how the django server deals with it
> in their comet implementation:
> http://code.google.com/p/django-evserver/source/browse/trunk/comet.py
>
> Orbited also uses 100 "<span></span>" as padding.

Maybe you are talking about some other Comet approach. Last time I tried
the approach that I described with Safari, I did not see any delay due
to buffering. But if there is any delay imposed by any browsers, it
would not be hard to add any padding.


> So does meteor I believe. Here is what they say:
> "Safari and IE have a buffer which must fill up before any response is
> parsed. Data received before the buffer is full will not be rendered
> or interpreted and will not fire the Interactive state of an XHR until
> the buffer is full or the connection is closed. The obvious solution

The approche described above does not render anything nor uses
XMLHTTPRequests. It is just a regular page with some Javascript loaded
in an hidden iframe. That Javascript communicates and updates with the
iframe parent page.

-- 

Regards,
Manuel Lemos

PHP professionals looking for PHP jobs
http://www.phpclasses.org/professionals/

PHP Classes - Free ready to use OOP components written in PHP
http://www.phpclasses.org/

--- End Message ---
--- Begin Message ---
Ryan S wrote:
Hey everyone,

A bit of a puzzle here, dont know if this is a JS problem or PHP or FF or .... 
just me.

(My money is on the last one :p )


Here's what I am trying to do:
In a form  I have a listbox with the values 1-5, and under the listbox i have a <TD> with the id of 
"recips" (like so: <TD id='recips">

<snip>

Hi

Probably just a typo in your original message, but your TD above has an id which opens with ' and closes with ". I know I have done this before! ;). It does also sound like a possible 'wellformedness' issue as you have different results from IE and Fx.

Good luck, David

--- End Message ---
--- Begin Message --- How do I install/activate the GD library with my existing PHP version? I'm quite sure it isn't already, since I got this error:

Fatal error: Call to undefined function imagecreate() in /Volumes/Data/ Users/luca/Library/WebServer/Documents/reloadTest/image.php on line 6

Please forgive my ignorance, and thanks for your help

--- End Message ---
--- Begin Message ---
Quoting Luca Paolella <[EMAIL PROTECTED]>:

How do I install/activate the GD library with my existing PHP version?
I'm quite sure it isn't already, since I got this error:

Fatal error: Call to undefined function imagecreate() in
/Volumes/Data/Users/luca/Library/WebServer/Documents/reloadTest/image.php on
line 6

Please forgive my ignorance, and thanks for your help


On windows it's as easy as downloading the dll from pecl4win.php.net.

But from your directory structure i presume you have some sort of *nix system.
So you have to reconfigure and rebuild PHP. Add the following to the configure line. And rebuild PHP after that. Make sure GD is installed on the system.

--with-gd --with-jpeg-dir --with-png-dir

--- End Message ---
--- Begin Message ---
On 10/04/2008, Thijs Lensselink <[EMAIL PROTECTED]> wrote:
> Quoting Luca Paolella <[EMAIL PROTECTED]>:
>
>
> > How do I install/activate the GD library with my existing PHP version?
> > I'm quite sure it isn't already, since I got this error:
> >
> > Fatal error: Call to undefined function imagecreate() in
> >
> /Volumes/Data/Users/luca/Library/WebServer/Documents/reloadTest/image.php
> on
> > line 6
> >
> > Please forgive my ignorance, and thanks for your help
> >
> >
>
>  On windows it's as easy as downloading the dll from pecl4win.php.net.
>
>  But from your directory structure i presume you have some sort of *nix
> system.
>  So you have to reconfigure and rebuild PHP.

Ouch... first try installing the php gd module through whatever
package manager your *nix distribution uses. For instance, on Ubuntu
linux you'd do:

sudo aptitude install php5-gd

-robin

--- End Message ---
--- Begin Message ---
Quoting Robin Vickery <[EMAIL PROTECTED]>:

On 10/04/2008, Thijs Lensselink <[EMAIL PROTECTED]> wrote:
Quoting Luca Paolella <[EMAIL PROTECTED]>:


> How do I install/activate the GD library with my existing PHP version?
> I'm quite sure it isn't already, since I got this error:
>
> Fatal error: Call to undefined function imagecreate() in
>
/Volumes/Data/Users/luca/Library/WebServer/Documents/reloadTest/image.php
on
> line 6
>
> Please forgive my ignorance, and thanks for your help
>
>

 On windows it's as easy as downloading the dll from pecl4win.php.net.

 But from your directory structure i presume you have some sort of *nix
system.
 So you have to reconfigure and rebuild PHP.

Ouch... first try installing the php gd module through whatever
package manager your *nix distribution uses. For instance, on Ubuntu
linux you'd do:

sudo aptitude install php5-gd


Ouch? That's exactly what i added to my post "Make sure GD is installed
on the system."



--- End Message ---
--- Begin Message ---
On 10/04/2008, Thijs Lensselink <[EMAIL PROTECTED]> wrote:
> Quoting Robin Vickery <[EMAIL PROTECTED]>:
>
>
> > On 10/04/2008, Thijs Lensselink <[EMAIL PROTECTED]> wrote:
> >
> > > Quoting Luca Paolella <[EMAIL PROTECTED]>:
> > >
> > >
> > > > How do I install/activate the GD library with my existing PHP version?
> > > > I'm quite sure it isn't already, since I got this error:
> > > >
> > > > Fatal error: Call to undefined function imagecreate() in
> > > >
> > >
> /Volumes/Data/Users/luca/Library/WebServer/Documents/reloadTest/image.php
> > > on
> > > > line 6
> > > >
> > > > Please forgive my ignorance, and thanks for your help
> > > >
> > > >
> > >
> > >  On windows it's as easy as downloading the dll from pecl4win.php.net.
> > >
> > >  But from your directory structure i presume you have some sort of *nix
> > > system.
> > >  So you have to reconfigure and rebuild PHP.
> > >
> >
> > Ouch... first try installing the php gd module through whatever
> > package manager your *nix distribution uses. For instance, on Ubuntu
> > linux you'd do:
> >
> > sudo aptitude install php5-gd
> >
> >
>
>  Ouch? That's exactly what i added to my post "Make sure GD is installed
>  on the system."

Making sure GD is installed on the system is a very sensible thing to do.

The "ouch" was aimed at the suggestion that if you're on a *nix
system, the course of action is to recompile php. Normally these days
you'd just install the gd module (the equivalent of your windows dll)
through your package manager.

-robin

--- End Message ---
--- Begin Message ---
Quoting Robin Vickery <[EMAIL PROTECTED]>:

On 10/04/2008, Thijs Lensselink <[EMAIL PROTECTED]> wrote:
Quoting Robin Vickery <[EMAIL PROTECTED]>:


> On 10/04/2008, Thijs Lensselink <[EMAIL PROTECTED]> wrote:
>
> > Quoting Luca Paolella <[EMAIL PROTECTED]>:
> >
> >
> > > How do I install/activate the GD library with my existing PHP version?
> > > I'm quite sure it isn't already, since I got this error:
> > >
> > > Fatal error: Call to undefined function imagecreate() in
> > >
> >
/Volumes/Data/Users/luca/Library/WebServer/Documents/reloadTest/image.php
> > on
> > > line 6
> > >
> > > Please forgive my ignorance, and thanks for your help
> > >
> > >
> >
> >  On windows it's as easy as downloading the dll from pecl4win.php.net.
> >
> >  But from your directory structure i presume you have some sort of *nix
> > system.
> >  So you have to reconfigure and rebuild PHP.
> >
>
> Ouch... first try installing the php gd module through whatever
> package manager your *nix distribution uses. For instance, on Ubuntu
> linux you'd do:
>
> sudo aptitude install php5-gd
>
>

 Ouch? That's exactly what i added to my post "Make sure GD is installed
 on the system."

Making sure GD is installed on the system is a very sensible thing to do.

The "ouch" was aimed at the suggestion that if you're on a *nix
system, the course of action is to recompile php. Normally these days
you'd just install the gd module (the equivalent of your windows dll)
through your package manager.


My bad! :) I always compile everything from source....



--- End Message ---
--- Begin Message ---
On Thu, Apr 10, 2008 at 4:54 AM, Luca Paolella <[EMAIL PROTECTED]> wrote:
> How do I install/activate the GD library with my existing PHP version? I'm
> quite sure it isn't already, since I got this error:
>
>  Fatal error: Call to undefined function imagecreate() in
> /Volumes/Data/Users/luca/Library/WebServer/Documents/reloadTest/image.php on
> line 6

    First, this is a server to which you have root access, correct?
You won't be able to install it otherwise, such as if you're on a
shared web host.

    Secondly, what *NIX are you using?  It looks to me like a
BSD-style system.... maybe MacOS?

-- 
</Daniel P. Brown>
Ask me about:
Dedicated servers starting @ $59.99/mo., VPS starting @ $19.99/mo.,
and shared hosting starting @ $2.50/mo.
Unmanaged, managed, and fully-managed!

--- End Message ---
--- Begin Message ---
Hi,

I need to do a little CMS for managing Newsletter for 1 of my customers.
as i never worked on such thing in the past, i would be glad to have your
feedback.

basically, web site users are registered into DB.
my customer would like to send them a newsletter to promote new products and
services.
this newsletter should be in HTML format and send 1 by 1 to each customer.

where can i find information or template how to develop such managing tool
for newsletter ?
i mean online, customer will create his newsletter layout and add images,
links, text, and so on...

to what should i pay attention ?

thanks a lot,

-- 
Alain
------------------------------------
Windows XP SP2
PostgreSQL 8.2.4 / MS SQL server 2005
Apache 2.2.4
PHP 5.2.4
C# 2005-2008

--- End Message ---
--- Begin Message ---
Alain Roger wrote:
Hi,

I need to do a little CMS for managing Newsletter for 1 of my customers.
as i never worked on such thing in the past, i would be glad to have your
feedback.

basically, web site users are registered into DB.
my customer would like to send them a newsletter to promote new products and
services.
this newsletter should be in HTML format and send 1 by 1 to each customer.

where can i find information or template how to develop such managing tool
for newsletter ?
i mean online, customer will create his newsletter layout and add images,
links, text, and so on...

to what should i pay attention ?

thanks a lot,


Hi,

Not to disturb your agreement with your customer, but sending out newsletters is a difficult business.

If your customer sends out these newsletters from his own mailserver, chances are that his mailserver becomes blacklisted. Even if the messages are legit, some people think otherwise.

The result of this is, that his whole domain becomes blocked, so his business can't send normal e-mail from this domain anymore to people who use blacklists.

This has nothing to do with your question about programming it in PHP etc., but I do want you to notice these impacts.

On the PHP/HTML part, make your layout as strict as possible. Every e-mail client parses the HTML differently and Outlook 2007 even went back to Word HTML compatibility which is a pain in the bottom to get it right.

Building good, solid templates for newsletters is not something I would like to build for any customer.

--

Aschwin Wesselius

/'What you would like to be done to you, do that to the other....'/

--- End Message ---
--- Begin Message ---
On Thu, Apr 10, 2008 at 12:55 PM, Alain Roger <[EMAIL PROTECTED]> wrote:

> Hi,
>
> I need to do a little CMS for managing Newsletter for 1 of my customers.
> as i never worked on such thing in the past, i would be glad to have your
> feedback.
>
> basically, web site users are registered into DB.
> my customer would like to send them a newsletter to promote new products
> and
> services.
> this newsletter should be in HTML format and send 1 by 1 to each customer.
>
> where can i find information or template how to develop such managing tool
> for newsletter ?


You can use http://www.phplist.com/

Regards,
Brice Favre


> i mean online, customer will create his newsletter layout and add images,
> links, text, and so on...
>
> to what should i pay attention ?
>
> thanks a lot,
>
> --
> Alain
> ------------------------------------
> Windows XP SP2
> PostgreSQL 8.2.4 / MS SQL server 2005
> Apache 2.2.4
> PHP 5.2.4
> C# 2005-2008
>

--- End Message ---
--- Begin Message ---
Hi all

First post to this list! I'm trying to figure out how to evaluate a
string with a mathematical expression and get a result, but without
using eval() as I'm accepting user input into the string. I don't just
want addition, subtraction, multiplication and division - I'd like to
take advantage of other functions like ceil, floor etc. 

So the string "18-10" should give me 8, "ceil(1/2)*10" should be 10 (if
my maths is correct) and the string "18-10;\r\nunlink('/var/www/*');"
should not execute.

Any ideas?

Thanks!
Jason


--- End Message ---
--- Begin Message ---
First post to this list! I'm trying to figure out how to evaluate a
string with a mathematical expression and get a result, but without
using eval() as I'm accepting user input into the string. I don't just
want addition, subtraction, multiplication and division - I'd like to
take advantage of other functions like ceil, floor etc.
So the string "18-10" should give me 8, "ceil(1/2)*10" should be 10 (if
my maths is correct) and the string "18-10;\r\nunlink('/var/www/*');"
should not execute.

If you can provide your users with distinct inputs (if it's a form) go that route.

--
Richard Heyes
Employ me:
http://www.phpguru.org/cv

--- End Message ---
--- Begin Message ---
On Thu, 2008-04-10 at 13:15 +0100, Richard Heyes wrote:
> > First post to this list! I'm trying to figure out how to evaluate a
> > string with a mathematical expression and get a result, but without
> > using eval() as I'm accepting user input into the string. I don't just
> > want addition, subtraction, multiplication and division - I'd like to
> > take advantage of other functions like ceil, floor etc. 
> > 
> > So the string "18-10" should give me 8, "ceil(1/2)*10" should be 10 (if
> > my maths is correct) and the string "18-10;\r\nunlink('/var/www/*');"
> > should not execute.
> 
> If you can provide your users with distinct inputs (if it's a form) go 
> that route.

Thanks Richard

Unfortunately it's not that simple. The equation sits in a DB and can be
anything - eg. ((([valuation]/[purchaseprice])/100)*100)/[numyears]
would be a typical field. [valuation], [purchaseprice] and [numyears]
gets replaced by relevant fields from user-entered data. But the system
is expandable which means I don't know what the equations, data or
fields are going to be beforehand. 

I'm working on some kinda preg_replace function to sanitize the data at
the moment and then run an eval - arg I hate regexp! Ideally eval would
have some kind of sandboxing option, or you could limit the functions
available in an eval.

J


--- End Message ---
--- Begin Message ---
On Thu, 2008-04-10 at 13:15 +0100, Richard Heyes wrote:
> > First post to this list! I'm trying to figure out how to evaluate a
> > string with a mathematical expression and get a result, but without
> > using eval() as I'm accepting user input into the string. I don't just
> > want addition, subtraction, multiplication and division - I'd like to
> > take advantage of other functions like ceil, floor etc. 

In reply to my own question, I came up with the following function based
on a comment on php.net
(http://www.php.net/manual/en/function.eval.php#71045). I had a look at
the array returned by get_defined_functions() and the maths functions
seem mostly to be grouped (with the exception of the random number
stuff). It works on my installation but there's nothing in the
documentation about get_defined_functions() returning in a particular
order - it would be safer to list each math function but I'm lazy.

protected function safe_eval($s) {
        $funcs=get_defined_functions();
        $funcs=$funcs["internal"];
        $funcs=array_slice($funcs,array_search("abs",
$funcs),array_search("rad2deg",$funcs)-array_search("abs",$funcs));
        $sfuncs="(".implode(")(",$funcs).")";
        $s=preg_replace('`([^+\-*=/\(\)\d\^<>&|\.'.$sfuncs.']*)`','',$s);
        if (empty($s)) {
                return 0;
        } else {
                try {
                        eval("\$s=$s;");
                        return $s;
                } catch(Exception $e) {
                        return 0;
                }
        }
}


--- End Message ---
--- Begin Message ---
Jason Norwood-Young wrote:
On Thu, 2008-04-10 at 13:15 +0100, Richard Heyes wrote:
First post to this list! I'm trying to figure out how to evaluate a
string with a mathematical expression and get a result, but without
using eval() as I'm accepting user input into the string. I don't just
want addition, subtraction, multiplication and division - I'd like to
take advantage of other functions like ceil, floor etc.
So the string "18-10" should give me 8, "ceil(1/2)*10" should be 10 (if
my maths is correct) and the string "18-10;\r\nunlink('/var/www/*');"
should not execute.
If you can provide your users with distinct inputs (if it's a form) go that route.

Thanks Richard

Unfortunately it's not that simple. The equation sits in a DB and can be
anything - eg. ((([valuation]/[purchaseprice])/100)*100)/[numyears]
would be a typical field. [valuation], [purchaseprice] and [numyears]
gets replaced by relevant fields from user-entered data. But the system
is expandable which means I don't know what the equations, data or
fields are going to be beforehand.

Maybe something like this

<?php

$eq = '((([valuation]/[purchaseprice])/100)*100)/[numyears]';

$valuation      = $_GET['valuation'];
$purchaseprice  = $_GET['purchaseprice'];
$numyears       = $_GET['numyears'];

if ( is_numeric( $valuation ) &&
     is_numeric( $purchaseprice ) &&
     is_numeric( $numyears ) ) {

        $eq = str_replace('[valuation]',        $valuation,     $eq);
        $eq = str_replace('[purchaseprice]',    $purchaseprice, $eq);
        $eq = str_replace('[numyears]',         $numyears,      $eq);

        $result = eval("return {$eq};");
        
        echo $result;

} else {
        echo 'Something failed the number test!';
}

?>

Anyone have suggestions on tests that is_numeric() might not catch?


I'm working on some kinda preg_replace function to sanitize the data at
the moment and then run an eval - arg I hate regexp! Ideally eval would
have some kind of sandboxing option, or you could limit the functions
available in an eval.

J



--
Jim Lucas

   "Some men are born to greatness, some achieve greatness,
       and some have greatness thrust upon them."

Twelfth Night, Act II, Scene V
    by William Shakespeare


--- End Message ---
--- Begin Message --- Have you seen the Google App Engine already, the guys from Google are crazy! You now can host your application on the Google network, including Big Table and GFS!

Ok, one problem... they currently only support Python for programming, but the good news is that they will add more languages like PHP in the future.

To get PHP as the next language that will be integrated on Google App Engine, please give your vote at there Project page at code.google.com!!

http://code.google.com/p/googleappengine/issues/detail?id=13

Read and see more about Google App Engine:
  - http://code.google.com/appengine/
  - http://code.google.com/p/googleappengine/

Regards,

Paul

--- End Message ---
--- Begin Message ---
On Thursday 10 April 2008 16:32, Paul van Brouwershaven wrote:
> Have you seen the Google App Engine already, the guys from Google are
> crazy! You now can host your application on the Google network, including
> Big Table and GFS!
>
> Ok, one problem... they currently only support Python for programming, but
> the good news is that they will add more languages like PHP in the future.
>
> To get PHP as the next language that will be integrated on Google App
> Engine, please give your vote at there Project page at code.google.com!!
>
> http://code.google.com/p/googleappengine/issues/detail?id=13
>
> Read and see more about Google App Engine:
>    - http://code.google.com/appengine/
>    - http://code.google.com/p/googleappengine/
>
> Regards,
>
> Paul

Looks like they extending their services to web hosting. Wonder when they'll 
offer VPS accounts?

Regards
 
 

--- End Message ---
--- Begin Message ---
Julian Kennedy schreef:
Looks like they extending their services to web hosting. Wonder when they'll offer VPS accounts?

No they will not, you may upload your application. They have created a very nice system, but there are some restrictions because of security Bigtable and GFS. But your application can scale without investing in expensive servers and management. The only think you have to do is building your software, Google wil run it on there enormously platform.
--- End Message ---
--- Begin Message ---
Julian Kennedy schreef:
Looks like they extending their services to web hosting. Wonder when they'll offer VPS accounts?

No they will not, you may upload your application. They have created a very nice system, but there are some restrictions because of security Bigtable and GFS. But your application can scale without investing in expensive servers and management. The only think you have to do is building your software, Google wil run it on there enormously platform.
--- End Message ---
--- Begin Message ---
Paul van Brouwershaven wrote:
Have you seen the Google App Engine already, the guys from Google are crazy! You now can host your application on the Google network, including Big Table and GFS!

Ok, one problem... they currently only support Python for programming, but the good news is that they will add more languages like PHP in the future.

To get PHP as the next language that will be integrated on Google App Engine, please give your vote at there Project page at code.google.com!!

http://code.google.com/p/googleappengine/issues/detail?id=13

Read and see more about Google App Engine:
  - http://code.google.com/appengine/
  - http://code.google.com/p/googleappengine/

Regards,

Paul

Looks like there is a petition also:  http://i-want-php.appspot.com

Sorry, I meant:

<?php

echo "
 Looks
 like
 there
 is
 a
 petition
 also:
 http://i-want-php.appspot.com";;

?>


--- End Message ---
--- Begin Message ---
function sign_petition()
{
throw new Exception('I WANT PHP may use your email address to
personalize your experience on their website.');
}

try {
    sign_petition();
} catch (Exception $e) {
    echo 'No thank you: ',  $e->getMessage(), "\n";
}

-- 

Homer:  You know what?

Grampa: What?

Homer:  We're both screw-ups.

                   Grampa vs. Sexual Inadequacy


On Thu, 2008-04-10 at 13:40 -0500, Shawn McKenzie wrote:
> Paul van Brouwershaven wrote:
> > Have you seen the Google App Engine already, the guys from Google are 
> > crazy! You now can host your application on the Google network, 
> > including Big Table and GFS!
> > 
> > Ok, one problem... they currently only support Python for programming, 
> > but the good news is that they will add more languages like PHP in the 
> > future.
> > 
> > To get PHP as the next language that will be integrated on Google App 
> > Engine, please give your vote at there Project page at code.google.com!!
> > 
> > http://code.google.com/p/googleappengine/issues/detail?id=13
> > 
> > Read and see more about Google App Engine:
> >   - http://code.google.com/appengine/
> >   - http://code.google.com/p/googleappengine/
> > 
> > Regards,
> > 
> > Paul
> 
> Looks like there is a petition also:  http://i-want-php.appspot.com
> 
> Sorry, I meant:
> 
> <?php
> 
> echo "
>   Looks
>   like
>   there
>   is
>   a
>   petition
>   also:
>   http://i-want-php.appspot.com";;
> 
> ?>
> 
> 


--- End Message ---
--- Begin Message ---
don't forget to send the 4 bytes!

Alan Willsher schreef:
Hi im trying to connect to Nominets EPP server

Details can be found here http://www.nominet.org.uk/registrars/systems/epp/

Im trying to send a login request the example can be found here
http://www.nominet.org.uk/registrars/systems/epp/login/

My script seems to connect ok, but im recieving no response when I try to
send the login xml details.


<?
$fp = @fsockopen('ssl://testbed-epp.nominet.org.uk', 700, $errno, $errstr,
100);
echo "(".$errno." ".$errstr.")";
if(!$fp) {
echo "Not Connected!";
}

else {
echo "Connected!\r\n";

$xml = '<?xml version="1.0" encoding="UTF-8"?>
  <epp xmlns="urn:ietf:params:xml:ns:epp-1.0"
       xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
       xsi:schemaLocation="urn:ietf:params:xml:ns:epp-1.0 epp-1.0.xsd">
    <command>
      <login>
        <clID>EXAMPLE-TAG</clID>
        <pw>foo-BAR2</pw>
        <options>
          <version>1.0</version>
          <lang>en</lang>
        </options>
        <svcs>
           <objURI>http://www.nominet.org.uk/epp/xml/nom-account-1.0
</objURI>
           <objURI>http://www.nominet.org.uk/epp/xml/nom-domain-1.0</objURI>
           <objURI>http://www.nominet.org.uk/epp/xml/nom-contact-1.0
</objURI>
           <objURI>http://www.nominet.org.uk/epp/xml/nom-ns-1.0</objURI>
        </svcs>
      </login>
      <clTRID>ABC-12345</clTRID>
    </command>
  </epp>';

fputs($fp, $xml, strlen($xml));

    while (!feof($fp)) {
      $response .= fgets($fp, 128);
    }
    echo $response;

    fclose($fp);

}
?>


--- End Message ---
--- Begin Message ---
What is 4 bytes ?

On Thu, Apr 10, 2008 at 3:35 PM, Paul van Brouwershaven <
[EMAIL PROTECTED]> wrote:

> don't forget to send the 4 bytes!
>
> Alan Willsher schreef:
>
>  Hi im trying to connect to Nominets EPP server
> >
> > Details can be found here
> > http://www.nominet.org.uk/registrars/systems/epp/
> >
> > Im trying to send a login request the example can be found here
> > http://www.nominet.org.uk/registrars/systems/epp/login/
> >
> > My script seems to connect ok, but im recieving no response when I try
> > to
> > send the login xml details.
> >
> >
> > <?
> > $fp = @fsockopen('ssl://testbed-epp.nominet.org.uk', 700, $errno,
> > $errstr,
> > 100);
> > echo "(".$errno." ".$errstr.")";
> > if(!$fp) {
> > echo "Not Connected!";
> > }
> >
> > else {
> > echo "Connected!\r\n";
> >
> > $xml = '<?xml version="1.0" encoding="UTF-8"?>
> >  <epp xmlns="urn:ietf:params:xml:ns:epp-1.0"
> >       xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
> >       xsi:schemaLocation="urn:ietf:params:xml:ns:epp-1.0 epp-1.0.xsd">
> >    <command>
> >      <login>
> >        <clID>EXAMPLE-TAG</clID>
> >        <pw>foo-BAR2</pw>
> >        <options>
> >          <version>1.0</version>
> >          <lang>en</lang>
> >        </options>
> >        <svcs>
> >           <objURI>http://www.nominet.org.uk/epp/xml/nom-account-1.0
> > </objURI>
> >           <objURI>http://www.nominet.org.uk/epp/xml/nom-domain-1.0
> > </objURI>
> >           <objURI>http://www.nominet.org.uk/epp/xml/nom-contact-1.0
> > </objURI>
> >           <objURI>http://www.nominet.org.uk/epp/xml/nom-ns-1.0</objURI>
> >        </svcs>
> >      </login>
> >      <clTRID>ABC-12345</clTRID>
> >    </command>
> >  </epp>';
> >
> > fputs($fp, $xml, strlen($xml));
> >
> >    while (!feof($fp)) {
> >      $response .= fgets($fp, 128);
> >    }
> >    echo $response;
> >
> >    fclose($fp);
> >
> > }
> > ?>
> >
> >
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>

--- End Message ---
--- Begin Message ---
Tina,
 
Is there any error message in php logs?
 
Can you reproduce manually what you're trying to do with PHP? I mean,
connect and put that file.
 
Enable E_ALL in PHP and try again.
 
I'm copying PHP-GENERAL mailing list as this is not related to PHP-INSTALL
issues.
 
 
Regards,
Atenciosamente,


 <http://www.softpartech.com.br/> www.softpartech.com.br


Thiago Henrique Pojda
Desenvolvimento Web
+55 41 3033-7676
[EMAIL PROTECTED]
ExcelĂȘncia em Softwares Financeiros


  _____  

De: Tina [mailto:[EMAIL PROTECTED] 
Enviada em: quinta-feira, 10 de abril de 2008 14:33
Para: [EMAIL PROTECTED]
Assunto: [PHP-INSTALL] ftp_put cannot upload a file.


Dear Sir/Madam
 
I have the following code section and it returns else statement.  A firefox
web browser 1.0.1 is used on a suse linux 2.6.11.4-20a-smp.  php 5 and
apache 2. 
 
---------------------------------------------------
$uploadfile = ftp_put($ftpconnect, $destinationfile, $sourcefile,
FTP_BINARY);
if ( $uploadfile ) {
echo "Uploaded file = $sourcefile to server name = $servername as file =
$destinationfile.";
} else {
echo "Upload is failed to upload file = $sourcefile to server name =
$servername.";
}
---------------------------------------------------
 
Would you let me know what causes this problem?
 
 
Ms (Tina) Thieu Van Hung



  _____  

Yahoo! for Good helps you make
<http://us.rd.yahoo.com/mailuk/taglines/isp/control/*http://us.rd.yahoo.com/
evt=51947/*http://uk.promotions.yahoo.com/forgood/> a difference


--- End Message ---
--- Begin Message ---
Thiago Pojda wrote:
Tina,
Is there any error message in php logs? Can you reproduce manually what you're trying to do with PHP? I mean,
connect and put that file.
Enable E_ALL in PHP and try again. I'm copying PHP-GENERAL mailing list as this is not related to PHP-INSTALL
issues.
Regards,
Atenciosamente,


 <http://www.softpartech.com.br/> www.softpartech.com.br


Thiago Henrique Pojda
Desenvolvimento Web
+55 41 3033-7676
[EMAIL PROTECTED]
ExcelĂȘncia em Softwares Financeiros


_____ De: Tina [mailto:[EMAIL PROTECTED] Enviada em: quinta-feira, 10 de abril de 2008 14:33
Para: [EMAIL PROTECTED]
Assunto: [PHP-INSTALL] ftp_put cannot upload a file.


Dear Sir/Madam
I have the following code section and it returns else statement. A firefox
web browser 1.0.1 is used on a suse linux 2.6.11.4-20a-smp.  php 5 and
apache 2. ---------------------------------------------------
$uploadfile = ftp_put($ftpconnect, $destinationfile, $sourcefile,
FTP_BINARY);
if ( $uploadfile ) {
echo "Uploaded file = $sourcefile to server name = $servername as file =
$destinationfile.";
} else {
echo "Upload is failed to upload file = $sourcefile to server name =
$servername.";
}
---------------------------------------------------
Would you let me know what causes this problem? Ms (Tina) Thieu Van Hung



_____
Yahoo! for Good helps you make
<http://us.rd.yahoo.com/mailuk/taglines/isp/control/*http://us.rd.yahoo.com/
evt=51947/*http://uk.promotions.yahoo.com/forgood/> a difference


There could be any number of things wrong, so follow the advice to turn on error reporting. Most likely:

1. Your connection is not valid
2. You didn't login ftp_login() or it failed
3. The local file can't be found
4. The remote dir can't be found or the connected user doesn't have permission to write to it 5. If going through a firewall or for other reasons, you most likely need ftp_pasv()

-Shawn

--- End Message ---
--- Begin Message ---
On Thu, Apr 10, 2008 at 1:05 AM, hce <[EMAIL PROTECTED]> wrote:

> Hi,
>
> I've installed lighty and php5 to a FC6 box for testing php code in my
> local machine, I set up www.mytest.com to the /etc/hosts. I can see a
> page of http://www.mytest.com/index.html, but a blank page to
> http://www.mytest.com/index.php. I've run an command "php -l
> index.php", the result was "No syntax errors detected in index.php".
> What I was missing


php -l indicates only that php is working on the cli.
what are the contents of index.php; i recommend a page as follows
<?php
die(phpinfo());
?>

if the page prompts you to download something then php isnt installed, or at
least the webserver isnt configured to run it, but if you see a bunch of
stuff similar to the cli output of php -i, ur in good shape :)

-nathan

--- End Message ---
--- Begin Message --- That would be a pretty interesting app to make. If you actually followed Osborn's Brainstorming technique then you should be able to develop a pretty cool real-time think tank where developers work in a sort of chat room but with a place to post common code, with markup, share a virtual whiteboard, etc.

Could be cool.

- Dan


   Oh, what you're looking for is a think tank.  I'd been trying to
find people in my area to get together and do the same thing.  No such
luck around here, but you may have luck in your local area.  Working
offline with people, when you can bounce ideas off of one-another
while doing something else, gets the creative juices flowing more,
because you're not focused on saying, "okay, we need to come up with
an idea."

--
</Daniel P. Brown>
Ask me about:
Dedicated servers starting @ $59.99/mo., VPS starting @ $19.99/mo.,
and shared hosting starting @ $2.50/mo.
Unmanaged, managed, and fully-managed!


--- End Message ---

Reply via email to