Re: [PHP] Extracting Variables From URL

2007-05-17 Thread Zoltán Németh
I think you should try:

http://php.net/parse_url

greets
Zoltán Németh

2007. 05. 16, szerda keltezéssel 19.40-kor CK ezt írta:
> Hi All,
> 
> The following code works just fine for outputting links from an  
> array. The next goal, is parsing the $thisPage variable from the URL 
> (http://bushidodeep.com/contact.html/) so as  $thisPage=strtolower("contact");?>, this variable could also be  
> assigned to the $links[] $key.
> 
> Moving to a dynamic link generator class, what PHP function(s) could  
> be used to parse the URL?
> 
> 
>  "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd";>
> http://www.w3.org/1999/xhtml";>
> 
> 
> Generate Links
> 
> 
> 
> 
>  
> $links=array("Home","Work","Contact");
> $count =0;
> echo " \n";
> foreach($links as $key){
>   if(strtolower($key)!= $thisPage){
> echo (" $key\">$key\n");
> $count ++;
>  }else{
> echo ("$key");
> }
> }
> echo " \n";
> 
> 
> /*prints key as tabindex..
> $links=array("home","work","contact");
> $count =0;
> echo " \n";
> foreach($links as $key){
> echo (" $key\">$key\n");
> $count ++;
> }
> echo " \n";
> */
> 
> ?>
> 
> 
> 
> 
> 
> 

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] Random SELECT SQL list

2007-05-17 Thread Zoltán Németh


2007. 05. 17, csütörtök keltezéssel 00.45-kor Larry Garfield ezt írta:
> On Wednesday 16 May 2007, Eduardo Vizcarra wrote:
> > Hi
> >
> > I would like to know if a SELECT SQL query list of records can be unsorted.
> > SELECT statement retrieves a list of records from a certain table starting
> > from record # 1 till record #N and when publishing the records, this is how
> > it is presented, in a sequential way, is there any way to not present them
> > in a sequential way ? e.g. if a user accesses a web page then he will see
> > record #3 and then #7 and so on, another user accesses the same web page
> > and he might see record #8 and then record#2. etc
> >
> > any experience on how to do this ?
> 
> This is really an SQL question, but it's quite easy.  Assuming MySQL:
> 
> $result = mysql_query("SELECT * FROM foo WHERE bar='baz' ORDER BY RAND()");
> // Do stuff here.

ORDER BY RAND can be very unefficient on large tables.
some useful info here:
http://www.titov.net/2005/09/21/do-not-use-order-by-rand-or-how-to-get-random-rows-from-table/

greets
Zoltán Németh

> 
> -- 
> Larry GarfieldAIM: LOLG42
> [EMAIL PROTECTED] ICQ: 6817012
> 
> "If nature has made any one thing less susceptible than all others of 
> exclusive property, it is the action of the thinking power called an idea, 
> which an individual may exclusively possess as long as he keeps it to 
> himself; but the moment it is divulged, it forces itself into the possession 
> of every one, and the receiver cannot dispossess himself of it."  -- Thomas 
> Jefferson
> 

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] pdo-oracle + nls_lang environment variable...

2007-05-17 Thread Miguel J. Jiménez

Javier Ruiz escribió:

Hi,

I'm using pdo-oci on php-5.2.2 against an oracle-10g server, using
oracle-instantclient (compiled oracle with
'--with-oci8=instantclient,/usr/lib/oracle/10.2.0.3/client/lib').

The problem...:
I make a simple php script that makes a select from a table. The table
contains spanish characters so I set the enviroment variable NLS_LANG to
SPANISH_SPAIN.AL32UTF8 before running apache (also tried other values 
that
use iso8859-1...). If I run the script in console (using the CLI 
version of
php) the returned data is in the desired collation, so I can see the 
spanish

special characters like "ñ", "ó" and so on... The problem is that running
exactly the same script via HTTP (apache2) I always get question marks
replacing the special characters...

I tried many things... I export the enviroment variable as root and as 
the
user running the apache daemon, I modified the apache init script to 
export
the variables just before starting apache, I tried using the putenv 
function

in php code and no luck at all...

I realized about something that maybe is related... a php script 
running in

CLI can access any environmental variable, but no any env-var running in
apache... for example the following code: 
will return my locale setting in CLI but returns nothing via http... 
is it

normal?

TIA!




Maybe you have the AddDefaultCharset directive from Apache2 set to 
ISO-8859-15 instead of UTF-8 (or even off)? I have worked with php-oci8 
and php5.2 without any collation problem this far (using ñ € ans so on...)


--
Miguel J. Jiménez
Programador Senior
Área de Internet/XSL/PHP
[EMAIL PROTECTED]



ISOTROL
Edificio BLUENET, Avda. Isaac Newton nº3, 4ª planta.
Parque Tecnológico Cartuja '93, 41092 Sevilla (ESP).
Teléfono: +34 955 036 800 - Fax: +34 955 036 849
http://www.isotrol.com

"You let a political fight  come between you and your best friend you have in all 
the world. Do you realize how foolish that is? How ominous? How can this country survive 
if friends can't rise above the quarrel".
Constance Hazard, North & South (book I)


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Static methods have access to private members

2007-05-17 Thread Miguel J. Jiménez

Theodore Root escribió:
I have a question regarding static methods in PHP5.x. Specifically, it 
seems that one can access member variables declared private from 
static methods, just as you can from instance methods.  I was 
wondering if this is by design, or if this "feature" might go away.  I 
have worked up an example, hopefully it won't get mangled:


myVar = "Example";
   $vars[] = $tempVar;
   return $vars;  }
}


$test = TestClass::loadAllObjects();

print_r($test);


?>


This code executes fine on PHP 5.2.0 with no errors or warnings, even 
though one might say that I have accessed the private $myVar from 
"outside" the instance of TestClass created in $tempVar.  This 
"feature" is useful to me because I'd like to create a static method 
on my DB-persisted objects that lets me load an array of all of a 
given type of object from a database, building each one without having 
to use setters/getters for each member variable (not because thats 
difficult, but because its nice to be able to have private members 
that can't be accessed at all from the outside world), while avoiding 
"lazy loading".  So essentially, my questions is, is the above 
functionality intended?



Thanks!

-TJ

Mmm pardon me if I am wrong but I think you have accessed the private 
variable using an instanced object inside the static method and what you 
are returning is fine... You did not access the private variable using 
$this->myVar ...


--
Miguel J. Jiménez
Programador Senior
Área de Internet/XSL/PHP
[EMAIL PROTECTED]



ISOTROL
Edificio BLUENET, Avda. Isaac Newton nº3, 4ª planta.
Parque Tecnológico Cartuja '93, 41092 Sevilla (ESP).
Teléfono: +34 955 036 800 - Fax: +34 955 036 849
http://www.isotrol.com

"You let a political fight  come between you and your best friend you have in all 
the world. Do you realize how foolish that is? How ominous? How can this country survive 
if friends can't rise above the quarrel".
Constance Hazard, North & South (book I)


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Fwd: [PHP] pdo-oracle + nls_lang environment variable...

2007-05-17 Thread Javier Ruiz

sorry, forgot to CC to the list...

-- Forwarded message --
From: Javier Ruiz <[EMAIL PROTECTED]>
Date: May 17, 2007 9:46 AM
Subject: Re: [PHP] pdo-oracle + nls_lang environment variable...
To: "Miguel J. Jiménez" <[EMAIL PROTECTED]>

Thanks for the answer.

Nah I checked and apache has support for both latin1 and utf8 charsets, I
tried anyway forcing the output of apache to iso8859-1 and to utf8 but no
luck...

I'm almost convinced it's something about php reading the NLS_LANG
environment variable because if I just unset this variable php-cli (and even
oracle's sqlplus directly) behaves the same way as php-apache does (displays
special characters as question marks).

gracias miguel :-D


On 5/17/07, "Miguel J. Jiménez" <[EMAIL PROTECTED] > wrote:


Javier Ruiz escribió:
> Hi,
>
> I'm using pdo-oci on php-5.2.2 against an oracle-10g server, using
> oracle-instantclient (compiled oracle with
> '--with-oci8=instantclient,/usr/lib/oracle/10.2.0.3/client/lib').
>
> The problem...:
> I make a simple php script that makes a select from a table. The table
> contains spanish characters so I set the enviroment variable NLS_LANG to
> SPANISH_SPAIN.AL32UTF8 before running apache (also tried other values
> that
> use iso8859-1...). If I run the script in console (using the CLI
> version of
> php) the returned data is in the desired collation, so I can see the
> spanish
> special characters like "ñ", "ó" and so on... The problem is that
running
> exactly the same script via HTTP (apache2) I always get question marks
> replacing the special characters...
>
> I tried many things... I export the enviroment variable as root and as
> the
> user running the apache daemon, I modified the apache init script to
> export
> the variables just before starting apache, I tried using the putenv
> function
> in php code and no luck at all...
>
> I realized about something that maybe is related... a php script
> running in
> CLI can access any environmental variable, but no any env-var running in
> apache... for example the following code: 
> will return my locale setting in CLI but returns nothing via http...
> is it
> normal?
>
> TIA!
>


Maybe you have the AddDefaultCharset directive from Apache2 set to
ISO-8859-15 instead of UTF-8 (or even off)? I have worked with php-oci8
and php5.2 without any collation problem this far (using ñ € ans so on...)

--
Miguel J. Jiménez
Programador Senior
Área de Internet/XSL/PHP
[EMAIL PROTECTED]



ISOTROL
Edificio BLUENET, Avda. Isaac Newton nº3, 4ª planta.
Parque Tecnológico Cartuja '93, 41092 Sevilla (ESP).
Teléfono: +34 955 036 800 - Fax: +34 955 036 849
http://www.isotrol.com

"You let a political fight  come between you and your best friend you have
in all the world. Do you realize how foolish that is? How ominous? How can
this country survive if friends can't rise above the quarrel".
Constance Hazard, North & South (book I)





Re: [PHP] Mysqli insert / OO Design Problem - Call to a member function bind_param() on a non-object in...

2007-05-17 Thread Robin Vickery

On 16/05/07, Lee PHP <[EMAIL PROTECTED]> wrote:

/** Insert record. */
public function insert() {
$sql = "INSERT INTO table (" .
"field_1, " .
"field_2, " .
"field_3) " .
"?, " .
"?, " .
"?)";
echo "Server version: " .  self::$conn->server_info;
$stmt = self::$conn->prepare($sql);
$stmt->bind_param('s',
$this->getField1(),
$this->getField2(),
$this->getField3());



Server version: 5.0.21-Debian_3ubuntu1-log
Fatal error: Call to a member function bind_param() on a non-object in
C:\blah\blah\blah


You've missing an open bracket in your INSERT statement. This is
causing your prepare() to fail, returning FALSE rather than a
statement object. You then call bind_param() on that and because it's
not an object you get the fatal error.

-robin

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] Confused about how exactly to output image using imagepng function

2007-05-17 Thread Dave M G

PHP list,

I've looked at the manual entries for imagepng() and 
imagecreatetruecolor() functions for helping me to create a temporary 
image for a CAPTCHA system.


However, I'm clearly messing up, as what I'm outputting is a bunch of 
ASCII gibberish to the screen.


What I think I need to do in principle is first create the image with 
imagecreatetruecolor(), then define it as a PNG (?), then display it.


So I've got something like this:

$image = ImageCreate($width, $height);
ImageFill($image, 0, 0, $black);
echo 'width="' . $width .'" alt="captcha" />' . "\n";

ImageDestroy($image);

As mentioned, this isn't working, so there's a fundamental concept about 
how PHP creates and displays images that I'm not getting.


I'm trying to output an image that, ideally, won't be stored as a file. 
Or, if it has to be a temporary file, to delete it immediately after 
displaying it.


What part am I not understanding?

Thank you for any advice or information.

--
Dave M G
Ubuntu Feisty 7.04
Kernel 2.6.20-15-386

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] reading Paradox (.db) files

2007-05-17 Thread Bosky, Dave
Has anyone had any experience opening and reading Paradox (.db) files
using PHP?

Are there any plug-ins/extensions available that someone can recommend?

 

Thanks,

Dave

 


**
HTC Disclaimer:  The information contained in this message may be privileged 
and confidential and protected from disclosure. If the reader of this message 
is not the intended recipient, or an employee or agent responsible for 
delivering this message to the intended recipient, you are hereby notified that 
any dissemination, distribution or copying of this communication is strictly 
prohibited.  If you have received this communication in error, please notify us 
immediately by replying to the message and deleting it from your computer.  
Thank you.
**



Re: [PHP] Confused about how exactly to output image using imagepng function

2007-05-17 Thread Tijnema !

On 5/17/07, Dave M G <[EMAIL PROTECTED]> wrote:

PHP list,

I've looked at the manual entries for imagepng() and
imagecreatetruecolor() functions for helping me to create a temporary
image for a CAPTCHA system.

However, I'm clearly messing up, as what I'm outputting is a bunch of
ASCII gibberish to the screen.

What I think I need to do in principle is first create the image with
imagecreatetruecolor(), then define it as a PNG (?), then display it.

So I've got something like this:

$image = ImageCreate($width, $height);
ImageFill($image, 0, 0, $black);
echo '' . "\n";
ImageDestroy($image);

As mentioned, this isn't working, so there's a fundamental concept about
how PHP creates and displays images that I'm not getting.

I'm trying to output an image that, ideally, won't be stored as a file.
Or, if it has to be a temporary file, to delete it immediately after
displaying it.

What part am I not understanding?

Thank you for any advice or information.



It's quite simple, a second PHP script should generate the image, not
the same as that isn't gonna work.

as src expects an url where the source is located, and what you are
doing is that you're giving the source right there.

so you should have a second script called image.php or such with code:
$image = ImageCreate($width, $height);
ImageFill($image, 0, 0, $black);
Imagepng($image);
ImageDestroy($image);

and then in your first page like
echo '' . "\n";


Tijnema

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] Confused about how exactly to output image using imagepng function

2007-05-17 Thread Stephen
Save the image as a file. Then html src="filename"

Dave M G <[EMAIL PROTECTED]> wrote:  PHP list,

I've looked at the manual entries for imagepng() and 
imagecreatetruecolor() functions for helping me to create a temporary 
image for a CAPTCHA system.

However, I'm clearly messing up, as what I'm outputting is a bunch of 
ASCII gibberish to the screen.

What I think I need to do in principle is first create the image with 
imagecreatetruecolor(), then define it as a PNG (?), then display it.

So I've got something like this:

$image = ImageCreate($width, $height);
ImageFill($image, 0, 0, $black);
echo '' . "\n";
ImageDestroy($image);

As mentioned, this isn't working, so there's a fundamental concept about 
how PHP creates and displays images that I'm not getting.

I'm trying to output an image that, ideally, won't be stored as a file. 
Or, if it has to be a temporary file, to delete it immediately after 
displaying it.

What part am I not understanding?

Thank you for any advice or information.

-- 
Dave M G
Ubuntu Feisty 7.04
Kernel 2.6.20-15-386

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP] Confused about how exactly to output image using imagepng function

2007-05-17 Thread Zoltán Németh
2007. 05. 17, csütörtök keltezéssel 14.49-kor Tijnema ! ezt írta:
> On 5/17/07, Dave M G <[EMAIL PROTECTED]> wrote:
> > PHP list,
> >
> > I've looked at the manual entries for imagepng() and
> > imagecreatetruecolor() functions for helping me to create a temporary
> > image for a CAPTCHA system.
> >
> > However, I'm clearly messing up, as what I'm outputting is a bunch of
> > ASCII gibberish to the screen.
> >
> > What I think I need to do in principle is first create the image with
> > imagecreatetruecolor(), then define it as a PNG (?), then display it.
> >
> > So I've got something like this:
> >
> > $image = ImageCreate($width, $height);
> > ImageFill($image, 0, 0, $black);
> > echo ' > width="' . $width .'" alt="captcha" />' . "\n";
> > ImageDestroy($image);
> >
> > As mentioned, this isn't working, so there's a fundamental concept about
> > how PHP creates and displays images that I'm not getting.
> >
> > I'm trying to output an image that, ideally, won't be stored as a file.
> > Or, if it has to be a temporary file, to delete it immediately after
> > displaying it.
> >
> > What part am I not understanding?
> >
> > Thank you for any advice or information.
> >
> 
> It's quite simple, a second PHP script should generate the image, not
> the same as that isn't gonna work.
> 
> as src expects an url where the source is located, and what you are
> doing is that you're giving the source right there.
> 
> so you should have a second script called image.php or such with code:
> $image = ImageCreate($width, $height);
> ImageFill($image, 0, 0, $black);
> Imagepng($image);
> ImageDestroy($image);

don't forget to send proper content-type header before the image data

header("content-type: image/png");

or something like that

greets
Zoltán Németh

> 
> and then in your first page like
> echo ' width="' . $width .'" alt="captcha" />' . "\n";
> 
> 
> Tijnema
> 

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] Setting Up A Simple Shopping Cart

2007-05-17 Thread revDAVE
Hello folks, 

I am a PHP NEWBIE. 

- I have the following three choices for shopping carts on my server:

CubeCart
OS Commerce
Zen Cart

Q: Does anybody have any preferences for creating a simple store?



--
Thanks - RevDave
[EMAIL PROTECTED]
[db-lists]

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] A Guide to running Apache 2, PHP 4 & PHP 5 on Windows XP

2007-05-17 Thread Richard Davey
Hi all,

I'm very happy to announce that I've just released my comprehensive
guide to installing, configuring and running Apache 2, PHP 4.4.7 and
PHP 5.2.2 on Windows XP. The guide is broken down into small
manageable sections and contains over 50 screen shots of the entire
process, so you won't go wrong while following it.

It covers everything from installing Apache, to setting up a Virtual
host to switching between PHP 4 and 5. A troubleshooting section and
further advice rounds-off the guide.

You can read the guide here: http://wamp.corephp.co.uk

Please send comments / suggestions / typos to me.

Cheers,

Rich
-- 
Zend Certified Engineer
http://www.corephp.co.uk

"Never trust a computer you can't throw out of a window"

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] A Guide to running Apache 2, PHP 4 & PHP 5 on Windows XP

2007-05-17 Thread Daniel Brown

On 5/17/07, Richard Davey <[EMAIL PROTECTED]> wrote:


Hi all,

I'm very happy to announce that I've just released my comprehensive
guide to installing, configuring and running Apache 2, PHP 4.4.7 and
PHP 5.2.2 on Windows XP. The guide is broken down into small
manageable sections and contains over 50 screen shots of the entire
process, so you won't go wrong while following it.

It covers everything from installing Apache, to setting up a Virtual
host to switching between PHP 4 and 5. A troubleshooting section and
further advice rounds-off the guide.

You can read the guide here: http://wamp.corephp.co.uk

Please send comments / suggestions / typos to me.

Cheers,

Rich
--
Zend Certified Engineer
http://www.corephp.co.uk

"Never trust a computer you can't throw out of a window"

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



   Congratulations on a job well done, Rich.  I took a glance through and
checked every link (including download/page links and previous/next/index
links) on the site, and it all looks good.

--
Daniel P. Brown
[office] (570-) 587-7080 Ext. 272
[mobile] (570-) 766-8107


Re: [PHP] A Guide to running Apache 2, PHP 4 & PHP 5 on Windows XP

2007-05-17 Thread Robert Cummings
On Thu, 2007-05-17 at 16:26 +0100, Richard Davey wrote:
> Hi all,
> 
> I'm very happy to announce that I've just released my comprehensive
> guide to installing, configuring and running Apache 2, PHP 4.4.7 and
> PHP 5.2.2 on Windows XP. The guide is broken down into small
> manageable sections and contains over 50 screen shots of the entire
> process, so you won't go wrong while following it.
> 
> It covers everything from installing Apache, to setting up a Virtual
> host to switching between PHP 4 and 5. A troubleshooting section and
> further advice rounds-off the guide.
> 
> You can read the guide here: http://wamp.corephp.co.uk
> 
> Please send comments / suggestions / typos to me.

Suggestion: get rid of Windows XP and use a real OS

Comment: Vista doesn't count

Typo: http://wamp.corephp.co.uk/help_01.php
  "If Apache HAS worked previously in the past"

  You have "previously" and "the past" redundancy since
  previous implies the past and past implies previous.

:)

Cheers,
Rob.
-- 
..
| InterJinn Application Framework - http://www.interjinn.com |
::
| An application and templating framework for PHP. Boasting  |
| a powerful, scalable system for accessing system services  |
| such as forms, properties, sessions, and caches. InterJinn |
| also provides an extremely flexible architecture for   |
| creating re-usable components quickly and easily.  |
`'

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re[2]: [PHP] A Guide to running Apache 2, PHP 4 & PHP 5 on Windows XP

2007-05-17 Thread Richard Davey
Hi Robert,

Thursday, May 17, 2007, 4:43:14 PM, you wrote:

> Suggestion: get rid of Windows XP and use a real OS

There's always one ;)

>   You have "previously" and "the past" redundancy since
>   previous implies the past and past implies previous.

Fixed :)

Cheers,

Rich
-- 
Zend Certified Engineer
http://www.corephp.co.uk

"Never trust a computer you can't throw out of a window"

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: Re[2]: [PHP] A Guide to running Apache 2, PHP 4 & PHP 5 on Windows XP

2007-05-17 Thread Greg Donald

On 5/17/07, Richard Davey <[EMAIL PROTECTED]> wrote:

> Suggestion: get rid of Windows XP and use a real OS

There's always one ;)



No, there's more than one.


--
Greg Donald
http://destiney.com/

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re[4]: [PHP] A Guide to running Apache 2, PHP 4 & PHP 5 on Windows XP

2007-05-17 Thread Richard Davey
Hi Greg,

Thursday, May 17, 2007, 5:01:18 PM, you wrote:

>> There's always one ;)

> No, there's more than one.

Sure, but you're in the minority*, so what do I care? :)

* I just took the Zend PHP IDE research poll, and at the end it gives
you the chance to view the stats of everyone else who took the poll.
Interestingly, 70% of them use Windows XP for development.

I actually use a combination of Vista and OS X, which puts me in the
11% and 19% categories respectively.

Cheers,

Rich
-- 
Zend Certified Engineer
http://www.corephp.co.uk

"Never trust a computer you can't throw out of a window"

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: Re[4]: [PHP] A Guide to running Apache 2, PHP 4 & PHP 5 on Windows XP

2007-05-17 Thread Robert Cummings
On Thu, 2007-05-17 at 17:19 +0100, Richard Davey wrote:
> Hi Greg,
> 
> Thursday, May 17, 2007, 5:01:18 PM, you wrote:
> 
> >> There's always one ;)
> 
> > No, there's more than one.
> 
> Sure, but you're in the minority*, so what do I care? :)
> 
> * I just took the Zend PHP IDE research poll, and at the end it gives
> you the chance to view the stats of everyone else who took the poll.
> Interestingly, 70% of them use Windows XP for development.

http://en.wikipedia.org/wiki/Argumentum_ad_populum

Cheers,
Rob.
-- 
..
| InterJinn Application Framework - http://www.interjinn.com |
::
| An application and templating framework for PHP. Boasting  |
| a powerful, scalable system for accessing system services  |
| such as forms, properties, sessions, and caches. InterJinn |
| also provides an extremely flexible architecture for   |
| creating re-usable components quickly and easily.  |
`'

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] A Guide to running Apache 2, PHP 4 & PHP 5 on Windows XP

2007-05-17 Thread Jon Anderson

Richard Davey wrote:

Sure, but you're in the minority*, so what do I care? :)

* I just took the Zend PHP IDE research poll, and at the end it gives
you the chance to view the stats of everyone else who took the poll.
Interestingly, 70% of them use Windows XP for development.

I actually use a combination of Vista and OS X, which puts me in the
11% and 19% categories respectively.


I find it funny that the addition of the numbers above would logically 
put me in the 0% category.


My $0.02...I use Linux almost 100% of the time at work, and consider 
myself to be a "linux guy". That said, I disagree with people who 
discard Windows as an option. If you develop in PHP, chances are pretty 
good that more than 85% of the people you're developing for will use 
Windows to view your end result. In my book, that makes a WAMP 
workstation/laptop a pretty good self-contained development environment.


"Argumentum ad populum" doesn't apply in the usage-for-development case. 
It's not asking "If everyone else jumped off a bridge would you jump 
too?" It's asking "If everyone else jumped off a bridge, would you 
design your bridge with a soft fluffy landing spot?"


jon

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: Re[4]: [PHP] A Guide to running Apache 2, PHP 4 & PHP 5 on Windows XP

2007-05-17 Thread Greg Donald

On 5/17/07, Richard Davey <[EMAIL PROTECTED]> wrote:

Sure, but you're in the minority*, so what do I care? :)


I'm not asking you to care.  Windoze still sucks, no matter how many
idiots use it.  The virus protection racket alone is enough to make me
throw up.


--
Greg Donald
http://destiney.com/

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re[2]: [PHP] A Guide to running Apache 2, PHP 4 & PHP 5 on Windows XP

2007-05-17 Thread Richard Davey
Hi Jon,

Thursday, May 17, 2007, 5:46:12 PM, you wrote:

> I find it funny that the addition of the numbers above would logically
> put me in the 0% category.

You could select multiple operating systems from the list. 50% of them
used Linux too. It didn't show how the results were mixed though, i.e.
of the 70%+ that used XP, did 10% or 90% of them also use Linux.

I thought it interesting none-the-less.

Cheers,

Rich
-- 
Zend Certified Engineer
http://www.corephp.co.uk

"Never trust a computer you can't throw out of a window"

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re[6]: [PHP] A Guide to running Apache 2, PHP 4 & PHP 5 on Windows XP

2007-05-17 Thread Richard Davey
Hi Greg,

Thursday, May 17, 2007, 5:49:45 PM, you wrote:

>> Sure, but you're in the minority*, so what do I care? :)

> I'm not asking you to care.  Windoze still sucks, no matter how many
> idiots use it.  The virus protection racket alone is enough to make me
> throw up.

Viruses? God, that old bullshit ladened chestnut*. At least come up
with some kind of valid OS argument, please. If you'd gone for
'competent use of the CPU', or 'effective memory management', you'd be
worth taking seriously.

Unless you're not asking me to take you seriously of course.

Cheers,

Rich
* I've not had a virus -infect- a Windows box for over a decade.
-- 
Zend Certified Engineer
http://www.corephp.co.uk

"Never trust a computer you can't throw out of a window"

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: Re[6]: [PHP] A Guide to running Apache 2, PHP 4 & PHP 5 on Windows XP

2007-05-17 Thread Jason Pruim


On May 17, 2007, at 1:00 PM, Richard Davey wrote:


Hi Greg,

Thursday, May 17, 2007, 5:49:45 PM, you wrote:


Sure, but you're in the minority*, so what do I care? :)



I'm not asking you to care.  Windoze still sucks, no matter how many
idiots use it.  The virus protection racket alone is enough to  
make me

throw up.


Viruses? God, that old bullshit ladened chestnut*. At least come up
with some kind of valid OS argument, please. If you'd gone for
'competent use of the CPU', or 'effective memory management', you'd be
worth taking seriously.


Not to start a holy war... But I've never had a virus infect a  
Macintosh... And I've been using Mac's since the mid 80's... And  
Apple before that :)


Now... To add something useful to this discussions, I whole heartily  
believe unless you are the only one that is EVER going to use your  
killer application... It should work and look good on any piece of  
crap(read: ALL OF THEM) operating system... Because if we get down to  
it... Every single person on this list could think of 50 things they  
want to change on their current operating system. If you couldn't,  
How can you be considered a developer? ; )




--

Jason Pruim
Raoset Inc.
Technology Manager
MQC Specialist
3251 132nd ave
Holland, MI, 49424
www.raoset.com
[EMAIL PROTECTED]

"In a world without Walls & Fences, one needs neither Windows, nor  
Gates"




Re: Re[6]: [PHP] A Guide to running Apache 2, PHP 4 & PHP 5 on Windows XP

2007-05-17 Thread Daniel Brown

On 5/17/07, Richard Davey <[EMAIL PROTECTED]> wrote:


Hi Greg,

Thursday, May 17, 2007, 5:49:45 PM, you wrote:

>> Sure, but you're in the minority*, so what do I care? :)

> I'm not asking you to care.  Windoze still sucks, no matter how many
> idiots use it.  The virus protection racket alone is enough to make me
> throw up.

Viruses? God, that old bullshit ladened chestnut*. At least come up
with some kind of valid OS argument, please. If you'd gone for
'competent use of the CPU', or 'effective memory management', you'd be
worth taking seriously.

Unless you're not asking me to take you seriously of course.

Cheers,

Rich
* I've not had a virus -infect- a Windows box for over a decade.
--
Zend Certified Engineer
http://www.corephp.co.uk

"Never trust a computer you can't throw out of a window"

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



   It seems to me as though the OS argument is almost ignorant enough to
equate as, "I have no desire to be a pilot, so to hell with teaching anyone
else to be."

   PHP is meant to be as cross-platform as possible, and to have an open
source project *REALLY* succeed, it needs to be accessible on a variety of
platforms and distributions.  One may only have access to a Windows machine
at home, work, or school, and/or may not be able to modify something as key
as the operating system.  Additionally, perhaps they need to interface said
OS with Microsoft-proprietary software or something only available on a
Win32 machine.  To discount a tutorial on how to do this is ludicrous I
guarantee that not one of us here has gotten to where we are now --- let
alone where we'll be in the future --- without the help of an online
walk-through or two, even if someone, somewhere, considered it to be less
than worthwhile.

   I am a Linux user myself - at work, at home, and even in my vehicles.
While I prefer the Linux operating system as a whole over any other, it is
just that --- I *prefer* it.  Sure, I push for others to at least give it a
try, but I'm not going to classify someone as an "idiot" because they choose
not to get off of the Windows platform.  I just fail to see how such
closed-mindedness is in any way beneficial to the evolution and advancement
of the open source community, and moreover, technological advancements as a
whole.

   So with my two cents in there as well, we've almost got enough for a can
of soda to get the bad taste of this conversation out of our mouths.  I vote
for ginger ale, so that it will calm Greg's stomach after the "virus
protection racket" ad nauseum the poor guy experiences.  We don't need any
vomit on our nice, clean list.

--
Daniel P. Brown
[office] (570-) 587-7080 Ext. 272
[mobile] (570-) 766-8107


Re: [PHP] A Guide to running Apache 2, PHP 4 & PHP 5 on Windows XP

2007-05-17 Thread Lester Caine

Richard Davey wrote:

Viruses? God, that old bullshit ladened chestnut*. At least come up
with some kind of valid OS argument, please. If you'd gone for
'competent use of the CPU', or 'effective memory management', you'd be
worth taking seriously.


How about installation time. Just clocked up 6.5 Hours re-installing XP on a 
machine. To get the last linux machine to the same level - 20 mins.

Of cause running Eclipse - it does not matter what the OS is :(


* I've not had a virus -infect- a Windows box for over a decade.


Same here - except for the site that insisted on using IE - they are back on 
SeaMonkey now :(


--
Lester Caine - G8HFL
-
Contact - http://home.lsces.co.uk/lsces/wiki/?page=contact
L.S.Caine Electronic Services - http://home.lsces.co.uk
MEDW - http://home.lsces.co.uk/ModelEngineersDigitalWorkshop/
Firebird Foundation Inc. - http://www.firebirdsql.org/index.php

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: Re[6]: [PHP] A Guide to running Apache 2, PHP 4 & PHP 5 on Windows XP

2007-05-17 Thread Crayon Shin Chan
On Friday 18 May 2007 01:00, Richard Davey wrote:

> Viruses? God, that old bullshit ladened chestnut*. At least come up
> with some kind of valid OS argument, please. If you'd gone for
> 'competent use of the CPU', or 'effective memory management', you'd be
> worth taking seriously.

In a roundabout way, having to run a virus scanner is not a 
very 'competent use of the CPU', or 'effective memory management'. Or 
maybe Greg wanted to point out that Windows *is* the virus?

-- 
Crayon

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] A Guide to running Apache 2, PHP 4 & PHP 5 on Windows XP

2007-05-17 Thread Robert Cummings
On Thu, 2007-05-17 at 12:46 -0400, Jon Anderson wrote:
> Richard Davey wrote:
> > Sure, but you're in the minority*, so what do I care? :)
> >
> > * I just took the Zend PHP IDE research poll, and at the end it gives
> > you the chance to view the stats of everyone else who took the poll.
> > Interestingly, 70% of them use Windows XP for development.
> >
> > I actually use a combination of Vista and OS X, which puts me in the
> > 11% and 19% categories respectively.
> 
> I find it funny that the addition of the numbers above would logically 
> put me in the 0% category.
> 
> My $0.02...I use Linux almost 100% of the time at work, and consider 
> myself to be a "linux guy". That said, I disagree with people who 
> discard Windows as an option. If you develop in PHP, chances are pretty 
> good that more than 85% of the people you're developing for will use 
> Windows to view your end result. In my book, that makes a WAMP 
> workstation/laptop a pretty good self-contained development environment.
> 
> "Argumentum ad populum" doesn't apply in the usage-for-development case. 
> It's not asking "If everyone else jumped off a bridge would you jump 
> too?" It's asking "If everyone else jumped off a bridge, would you 
> design your bridge with a soft fluffy landing spot?"

The "Argumentum ad populum" reference I made is quite applicable.
Otherwise, if not to lean on argumentum ad populum, why would he make a
reference to 70% of the poll using Windows XP?

Cheers,
Rob.
-- 
..
| InterJinn Application Framework - http://www.interjinn.com |
::
| An application and templating framework for PHP. Boasting  |
| a powerful, scalable system for accessing system services  |
| such as forms, properties, sessions, and caches. InterJinn |
| also provides an extremely flexible architecture for   |
| creating re-usable components quickly and easily.  |
`'

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: Re[6]: [PHP] A Guide to running Apache 2, PHP 4 & PHP 5 on Windows XP

2007-05-17 Thread Robert Cummings
On Thu, 2007-05-17 at 13:13 -0400, Jason Pruim wrote:
> On May 17, 2007, at 1:00 PM, Richard Davey wrote:
> 
> > Hi Greg,
> >
> > Thursday, May 17, 2007, 5:49:45 PM, you wrote:
> >
> >>> Sure, but you're in the minority*, so what do I care? :)
> >
> >> I'm not asking you to care.  Windoze still sucks, no matter how many
> >> idiots use it.  The virus protection racket alone is enough to  
> >> make me
> >> throw up.
> >
> > Viruses? God, that old bullshit ladened chestnut*. At least come up
> > with some kind of valid OS argument, please. If you'd gone for
> > 'competent use of the CPU', or 'effective memory management', you'd be
> > worth taking seriously.
> 
> Not to start a holy war... But I've never had a virus infect a  
> Macintosh... And I've been using Mac's since the mid 80's... And  
> Apple before that :)
> 
> Now... To add something useful to this discussions, I whole heartily  
> believe unless you are the only one that is EVER going to use your  
> killer application... It should work and look good on any piece of  
> crap(read: ALL OF THEM) operating system... Because if we get down to  
> it... Every single person on this list could think of 50 things they  
> want to change on their current operating system. If you couldn't,  
> How can you be considered a developer? ; )

I had 500 things I wanted to change, then I switched from Windows to
Linux in 2000 and found that they had been addressed. Sure enough
though, I'm working on a new list. There's only a few things on it
though ;)

Cheers,
Rob.
-- 
..
| InterJinn Application Framework - http://www.interjinn.com |
::
| An application and templating framework for PHP. Boasting  |
| a powerful, scalable system for accessing system services  |
| such as forms, properties, sessions, and caches. InterJinn |
| also provides an extremely flexible architecture for   |
| creating re-usable components quickly and easily.  |
`'

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: Re[6]: [PHP] A Guide to running Apache 2, PHP 4 & PHP 5 on Windows XP

2007-05-17 Thread Robert Cummings
On Fri, 2007-05-18 at 01:44 +0800, Crayon Shin Chan wrote:
> On Friday 18 May 2007 01:00, Richard Davey wrote:
> 
> > Viruses? God, that old bullshit ladened chestnut*. At least come up
> > with some kind of valid OS argument, please. If you'd gone for
> > 'competent use of the CPU', or 'effective memory management', you'd be
> > worth taking seriously.
> 
> In a roundabout way, having to run a virus scanner is not a 
> very 'competent use of the CPU', or 'effective memory management'. Or 
> maybe Greg wanted to point out that Windows *is* the virus?

Nah, Windows is certainly not the virus. It's more akin to a gaping
unclean wound upon which the viruses feast.

Cheers,
Rob.
-- 
..
| InterJinn Application Framework - http://www.interjinn.com |
::
| An application and templating framework for PHP. Boasting  |
| a powerful, scalable system for accessing system services  |
| such as forms, properties, sessions, and caches. InterJinn |
| also provides an extremely flexible architecture for   |
| creating re-usable components quickly and easily.  |
`'

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: Re[6]: [PHP] A Guide to running Apache 2, PHP 4 & PHP 5 on Windows XP

2007-05-17 Thread Greg Donald

On 5/17/07, Richard Davey <[EMAIL PROTECTED]> wrote:

Viruses? God, that old bullshit ladened chestnut*. At least come up
with some kind of valid OS argument, please.


1. The virus and malware protection racket - M$ spent billions of
dollars and several years making Vista and just like normal it's fully
exploitable and insecure.  Vista currently has 22 critical exploits
listed at securityfocus.com and it's only been out how long?  If 22
security researchers are willing to publicly give up their findings do
you have any clue how many are keeping their findings secret to sell
to the highest bidder?  Do have any clue how much a working windoze
exploit goes for nowadays?  You think all those botnets just happened
by accident?  All together now, everyone thank M$ for your daily spam.

2. Perpetual Upgrading - you can use Ubuntu Linux 6.06 Server Edition
until 2011, fully supported.  How long til you're forced to upgrade to
Vista?  How long before your WinXP install is no longer supported?  I
would further argue that upgrading a Ubuntu Linux OS is painless.
When 2011 comes around, I can do `apt-get update; apt-get
dist-upgrade` to move on.  No trips to CompUSA to shell out hundreds
of dollars, no upgrading my hardware, none of that.  Gentoo Linux is
very simple to upgrade too.  I relinked my make.profile to the 2007.0
version and `emerge -uDN` away I go.  I have a Gentoo box that I've
upgraded that way for 4 years now.  I have a FreeBSD box that I
brought all the way from 4.0 to 6.2 by doing `make buildworld` once a
year or so.  Microsoft hasn't a clue how to make a simple forward
upgrade path for their lusers.  But that's how Intel likes it.

3. Bloat - 1.5+ hours to install Vista then finally you get to start
installing 'apps'.  At that point you find out Vista doesn't support
your two year old 3com ethernet card.  3com!  Fucking 3com is not
supported?  Jesus Christ.  With Linux you install for 20-30 minutes
and immediately have 99% of your apps ready to go.  The hardest thing
to decide is what color I want to make my bash prompt this year.

4. Hostile treatment of customers - M$ is currently choosing to not
sue 'opensource' for 235 patent violations.  They still want money
however, and without showing anyone which patents are being violated.
RedHat Linux has stated they will gladly indemnify their users without
anyone paying any M$ tax.  I hate RPMS as much as the next guy but a
bad day fighting RPMS dependencies is still better than a good day
fighting M$ viruses (or virii depending on how far north your grade
school was located).

I always correct people when I hear them say 'computer virus'.  I
explain how it's a 'Microsoft virus' because in all likelyhood it only
affects the idiots running a windoze OS.

5. Predatory Practices - How many companies have been eaten alive by
M$ over the years?  More than I can count or care to list.  Innovation
my ass.  This guy got tired of listing them and gave up several years
ago it seems:  http://www.vcnet.com/bms/departments/catalog/yrcatalog.shtml

6. .NET - proof M$ really wants to be a bank instead of a software
vendor.  Subscription based software?  Give me a break.

7. IE7 - My transparent pngs are almost working, almost.  Guess they
are trying not to do too much at one time.


You can read more on the web:
http://www.google.com/search?q=windows+sucks+because

1.62M results, but you probably already knew that being in the M$
loving majority and all.



--
Greg Donald
http://destiney.com/

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re[2]: [PHP] A Guide to running Apache 2, PHP 4 & PHP 5 on Windows XP

2007-05-17 Thread Richard Davey
Hi Lester,

Thursday, May 17, 2007, 6:24:44 PM, you wrote:

> How about installation time. Just clocked up 6.5 Hours re-installing XP on a
> machine. To get the last linux machine to the same level - 20 mins.
> Of cause running Eclipse - it does not matter what the OS is :(

Yeah I'd take installation time as a valid reason why XP sucks
sometimes :) I was very pleased to see that Vista installed in next to no
time at all, but let's not go there... one day someone will invent an
OS as powerful as my old Amiga used to have!

Cheers,

Rich
-- 
Zend Certified Engineer
http://www.corephp.co.uk

"Never trust a computer you can't throw out of a window"

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re[8]: [PHP] A Guide to running Apache 2, PHP 4 & PHP 5 on Windows XP

2007-05-17 Thread Richard Davey
Hi Robert,

Thursday, May 17, 2007, 7:01:00 PM, you wrote:

> I had 500 things I wanted to change, then I switched from Windows to
> Linux in 2000 and found that they had been addressed. Sure enough
> though, I'm working on a new list. There's only a few things on it
> though ;)

I envy those who's work is specific / targeted enough for them to be
able to only use Linux on their desktop, I really do (and I say that
without a hint of sarcasm, I promise). For the rest of us, the choice
sadly isn't as black and white.

Cheers,

Rich
-- 
Zend Certified Engineer
http://www.corephp.co.uk

"Never trust a computer you can't throw out of a window"

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: Re[8]: [PHP] A Guide to running Apache 2, PHP 4 & PHP 5 on Windows XP

2007-05-17 Thread Greg Donald

On 5/17/07, Richard Davey <[EMAIL PROTECTED]> wrote:

I envy those who's work is specific / targeted enough for them to be
able to only use Linux on their desktop, I really do (and I say that
without a hint of sarcasm, I promise). For the rest of us, the choice
sadly isn't as black and white.



It's simple.  In the job interview you ask, "Will I be able to use
Linux (or Mac OS) as my primary desktop OS?"

When they say no, you get up and leave.  I've done it twice in the
past year or so.

I could only image the stupidity I would have found once inside the
door if they exhibited that level of clueless-ness in the interview.
One company actually told me they were afraid I would be pirating
software unless I used a windoze OS that could be 'audited' by their
sysadmins.  I blinked a couple of times, got up, and walked out.


--
Greg Donald
http://destiney.com/

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re[8]: [PHP] A Guide to running Apache 2, PHP 4 & PHP 5 on Windows XP

2007-05-17 Thread Richard Davey
Hi Greg,

Thursday, May 17, 2007, 7:23:47 PM, you wrote:

>> Viruses? God, that old bullshit ladened chestnut*. At least come up
>> with some kind of valid OS argument, please.

> 1. The virus and malware protection racket - M$ spent billions of
> 2. Perpetual Upgrading - you can use Ubuntu Linux 6.06 Server Edition
> 3. Bloat - 1.5+ hours to install Vista then finally you get to start
> 4. Hostile treatment of customers - M$ is currently choosing to not
> 5. Predatory Practices - How many companies have been eaten alive by
> 6. .NET - proof M$ really wants to be a bank instead of a software
> 7. IE7 - My transparent pngs are almost working, almost.  Guess they

Yay, some decent arguments! I don't deny any of them, I only take
exception to being called an 'idiot' by yourself for the OS I have to
use. You have no idea at all what I do for a living, what apps I need
to run, what software I have to develop, and I'm afraid the area in
which I work (games/movie industry) is not a Linux friendly one in
the slightest.

You see for all the upgrading wonders and angelic like behaviour of
your OS creators, it doesn't count for shit if I can't use it for
work, and there - as is probably the case for the vast majority of
people stuck with Windows - is where the buck stops.

Cheers,

Rich
-- 
Zend Certified Engineer
http://www.corephp.co.uk

"Never trust a computer you can't throw out of a window"

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: Re[8]: [PHP] A Guide to running Apache 2, PHP 4 & PHP 5 on Windows XP

2007-05-17 Thread Greg Donald

On 5/17/07, Richard Davey <[EMAIL PROTECTED]> wrote:

Yay, some decent arguments! I don't deny any of them, I only take
exception to being called an 'idiot' by yourself for the OS I have to
use.


I apologize.  I meant it in a stereotypical, M$-hating, sort of way..
nothing towards you personally.


You have no idea at all what I do for a living, what apps I need
to run, what software I have to develop, and I'm afraid the area in
which I work (games/movie industry) is not a Linux friendly one in
the slightest.


You have my sympathy.  Have you tried pushing medibuntu?

http://medibuntu.sos-sts.com/


You see for all the upgrading wonders and angelic like behaviour of
your OS creators


They're certainly no angels, just pragmatists with no resources to waste.


it doesn't count for shit if I can't use it for
work,and there - as is probably the case for the vast majority of
people stuck with Windows - is where the buck stops.


I used to have to use windoze at this one job several years ago and it
in no way forced me to also use it at home.  It's all about desire and
will.


--
Greg Donald
http://destiney.com/

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] A Guide to running Apache 2, PHP 4 & PHP 5 on Windows XP

2007-05-17 Thread Stut

Richard Davey wrote:

I'm very happy to announce that I've just released my comprehensive
guide to installing, configuring and running Apache 2, PHP 4.4.7 and
PHP 5.2.2 on Windows XP. The guide is broken down into small
manageable sections and contains over 50 screen shots of the entire
process, so you won't go wrong while following it.

It covers everything from installing Apache, to setting up a Virtual
host to switching between PHP 4 and 5. A troubleshooting section and
further advice rounds-off the guide.

You can read the guide here: http://wamp.corephp.co.uk

Please send comments / suggestions / typos to me.


Nice work Richard.

I'd just like to say that I think a few other people on this list need 
to take the big sticks out of their butts for a second and appreciate a 
quality piece of work, that Richard has published for everyone to take 
it or leave it. What do you guys do? You start a discussion that has 
nothing to do with Richard's article, and if anything it will discourage 
him from writing similar articles in the future. However, from his 
responses so far he's intelligent enough to see past it.


Like it or not, and agree with it or not, there are a great many 
developers out there who either have to or choose to use Windows as 
their development platform, and a fair few who also choose to use it as 
a production platform. I can't believe there is anyone in these 
categories who doesn't know that alternatives exist, and who don't have 
the necessary skills to research the differences and make an informed 
decision.


So, from me, congratulations Richard, excellent work, keep it up.

-Stut

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] A Guide to running Apache 2, PHP 4 & PHP 5 on Windows XP

2007-05-17 Thread Robert Cummings
On Thu, 2007-05-17 at 20:18 +0100, Stut wrote:
> Richard Davey wrote:
> > I'm very happy to announce that I've just released my comprehensive
> > guide to installing, configuring and running Apache 2, PHP 4.4.7 and
> > PHP 5.2.2 on Windows XP. The guide is broken down into small
> > manageable sections and contains over 50 screen shots of the entire
> > process, so you won't go wrong while following it.
> > 
> > It covers everything from installing Apache, to setting up a Virtual
> > host to switching between PHP 4 and 5. A troubleshooting section and
> > further advice rounds-off the guide.
> > 
> > You can read the guide here: http://wamp.corephp.co.uk
> > 
> > Please send comments / suggestions / typos to me.
> 
> Nice work Richard.
> 
> I'd just like to say that I think a few other people on this list need 
> to take the big sticks out of their butts for a second and appreciate a 
> quality piece of work, that Richard has published for everyone to take 
> it or leave it. What do you guys do? You start a discussion that has 
> nothing to do with Richard's article, and if anything it will discourage 
> him from writing similar articles in the future. However, from his 
> responses so far he's intelligent enough to see past it.
> 
> Like it or not, and agree with it or not, there are a great many 
> developers out there who either have to or choose to use Windows as 
> their development platform, and a fair few who also choose to use it as 
> a production platform. I can't believe there is anyone in these 
> categories who doesn't know that alternatives exist, and who don't have 
> the necessary skills to research the differences and make an informed 
> decision.
> 
> So, from me, congratulations Richard, excellent work, keep it up.

Well in all honesty, my original post was tongue in cheek, I didn't
think it would go on and on from there.

BTW, could someone get behind me and give that stick thing that's poking
out a pull. I've been having trouble walking lately ;)

Bh, come on, help a guy out. IT CHAFFES!!

Cheers,
Rob.

Ps. I apologize in advance to anyone who accidentally got caught up in
some errant mental imagery. Blame Stut!! *heheh* *cackles and runs*

-- 
..
| InterJinn Application Framework - http://www.interjinn.com |
::
| An application and templating framework for PHP. Boasting  |
| a powerful, scalable system for accessing system services  |
| such as forms, properties, sessions, and caches. InterJinn |
| also provides an extremely flexible architecture for   |
| creating re-usable components quickly and easily.  |
`'

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] A Guide to running Apache 2, PHP 4 & PHP 5 on Windows XP

2007-05-17 Thread Stut

Robert Cummings wrote:

BTW, could someone get behind me and give that stick thing that's poking
out a pull. I've been having trouble walking lately ;)


Not a chance in hell I'm going near that!!


Ps. I apologize in advance to anyone who accidentally got caught up in
some errant mental imagery. Blame Stut!! *heheh* *cackles and runs*


Yup, blame me. Everything else seems to be my fault at the moment. Get 
to the back of the line!


-Stut

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] Download speed limit

2007-05-17 Thread Ovidiu Rosoiu
limiting speed by using sleep in your script is a very bad idea. for a 
350 MB file, with a 20 KB/s limit the script would take aprox. 5 hours. 
you can see how this is totally wrong. even skyrocketing the timeout, 
it's not a good solution.
Use a web server mod for dynamic bandwidth limiting. See 
http://www.topology.org/src/bwshare/README.html, maybe it will help you.


Rangel Reale wrote:

Between 90 and 350 MB.

- Original Message - From: "Jim Lucas" <[EMAIL PROTECTED]>
To: "Rangel Reale" <[EMAIL PROTECTED]>
Cc: 
Sent: Wednesday, May 16, 2007 6:41 PM
Subject: Re: [PHP] Download speed limit



Rangel Reale wrote:

Hello!

For my application I need to limit the speed that my application 
sends data, in my case a binary file.


I need to send the speed as a parameter, like:

sendfile.php?speed=2

Would send the file at 20kb/s (forgetting about real byte counts for 
this example).


To send the file, I am doing:

$fp=fopen($this->contentfile,"rb");
while(!feof($fp)){
print(fread($fp,1024*8));
flush();
ob_flush();
}
fclose($fp);

If after ob_flush I do a sleep(), I can limit the speed, but I would 
like to limit at the speed of the parameter.


Is there a way to do this?

Thanks,
Rangel


on average, how big are the files that you will be sending?

--
Jim Lucas

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

Unknown

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




--
No virus found in this incoming message.
Checked by AVG Free Edition. Version: 7.5.467 / Virus Database: 
269.7.0/803 - Release Date: 13/5/2007 12:17







--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] IE7 => end tag?

2007-05-17 Thread rauhspund
My Browser IE7 reads => as in array declaration as end tag and exit from php.
All text afterwards will displayed as text.

http://localhost/ewiki/tools/t_setupwiz.php] with your browser 
to generate an "ewiki.ini" file by using a simple configuration
wizard, which queries you about all the features (plugins) and
settings you wish to use.
Save the generated .ini file to disk and then load the "ini.php"
script instead of "config.php" or "ewiki.php".

- not yet 100% compatible with the new *.meta data files
- beware of spaghetti code
*/

#-- .meta info
include("../plugins/lib/pluginmetadata.php");
$_cached = !empty($_POST);
ewiki_pmd($_cached);
#-- defaults for the separately handled database settings in $db[]
if (!($db = $_REQUEST["db"])) {
$db = array("type" => NULL,
"server" => "localhost",
"dbname" => "test",
"table" => "ewiki",
"dir" => "/tmp",
"dba" => "/tmp/wiki.dbm",
);
}




NULL, and the following text is displayed in browser
Who knows how to change this behavior?

Re: [PHP] IE7 => end tag?

2007-05-17 Thread Stut

rauhspund wrote:

My Browser IE7 reads => as in array declaration as end tag and exit from php.
All text afterwards will displayed as text.


Your browser should not be seeing PHP code, so you might want to start 
by making sure your web server is set up to process PHP files properly.


-Stut

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



RE: [PHP] IE7 => end tag?

2007-05-17 Thread Jim Moseby
> 
> #-- .meta info
> include("../plugins/lib/pluginmetadata.php");
> $_cached = !empty($_POST);
> ewiki_pmd($_cached);
> #-- defaults for the separately handled database settings in $db[]
> if (!($db = $_REQUEST["db"])) {
> $db = array("type" => NULL,
> "server" => "localhost",
> "dbname" => "test",
> "table" => "ewiki",
> "dir" => "/tmp",
> "dba" => "/tmp/wiki.dbm",
> );
> }
> 
> 
> 
> 
> NULL, and the following text is displayed in browser
> Who knows how to change this behavior?

I don't know if this will fix your problem, but you have an extraneous comma
after'"dba" => "/tmp/wiki.dbm",'.  Also try enclosing NULL in quotes and see
if your problem goes away.

JM

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] Download speed limit

2007-05-17 Thread Rangel Reale

Yes, it seems to be bad thing, but this limit is because the big files are
non-critical, but I can't let them hammer the customer's connection, using
all the bandwidth. The internet connection is slow (500kbps ADSL), and they
have the critical applications running on it. It is no problem my download
taking 5 hours, event if the connection is broken I can continue the
download after.

I will look at the link you posted, thanks! But if there is a php solution
for this, that would be better for my application.

- Original Message - 
From: "Ovidiu Rosoiu" <[EMAIL PROTECTED]>

To: "Rangel Reale" <[EMAIL PROTECTED]>
Cc: 
Sent: Friday, May 18, 2007 2:34 PM
Subject: Re: [PHP] Download speed limit



limiting speed by using sleep in your script is a very bad idea. for a 350
MB file, with a 20 KB/s limit the script would take aprox. 5 hours. you
can see how this is totally wrong. even skyrocketing the timeout, it's not
a good solution.
Use a web server mod for dynamic bandwidth limiting. See
http://www.topology.org/src/bwshare/README.html, maybe it will help you.

Rangel Reale wrote:

Between 90 and 350 MB.

- Original Message - From: "Jim Lucas" <[EMAIL PROTECTED]>
To: "Rangel Reale" <[EMAIL PROTECTED]>
Cc: 
Sent: Wednesday, May 16, 2007 6:41 PM
Subject: Re: [PHP] Download speed limit



Rangel Reale wrote:

Hello!

For my application I need to limit the speed that my application sends
data, in my case a binary file.

I need to send the speed as a parameter, like:

sendfile.php?speed=2

Would send the file at 20kb/s (forgetting about real byte counts for
this example).

To send the file, I am doing:

$fp=fopen($this->contentfile,"rb");
while(!feof($fp)){
print(fread($fp,1024*8));
flush();
ob_flush();
}
fclose($fp);

If after ob_flush I do a sleep(), I can limit the speed, but I would
like to limit at the speed of the parameter.

Is there a way to do this?

Thanks,
Rangel


on average, how big are the files that you will be sending?

--
Jim Lucas

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

Unknown

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




--
No virus found in this incoming message.
Checked by AVG Free Edition. Version: 7.5.467 / Virus Database:
269.7.0/803 - Release Date: 13/5/2007 12:17









--
No virus found in this incoming message.
Checked by AVG Free Edition. Version: 7.5.467 / Virus Database:
269.7.0/803 - Release Date: 13/5/2007 12:17




--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] Download speed limit

2007-05-17 Thread Rangel Reale
Hmm that apache module isn't quite what I need, it just accepts or refuse 
connections based on bandwidth usage, it does not throttle the connection.


- Original Message - 
From: "Rangel Reale" <[EMAIL PROTECTED]>

To: "Ovidiu Rosoiu" <[EMAIL PROTECTED]>
Cc: 
Sent: Thursday, May 17, 2007 6:10 PM
Subject: Re: [PHP] Download speed limit



Yes, it seems to be bad thing, but this limit is because the big files are
non-critical, but I can't let them hammer the customer's connection, using
all the bandwidth. The internet connection is slow (500kbps ADSL), and 
they

have the critical applications running on it. It is no problem my download
taking 5 hours, event if the connection is broken I can continue the
download after.

I will look at the link you posted, thanks! But if there is a php solution
for this, that would be better for my application.

- Original Message - 
From: "Ovidiu Rosoiu" <[EMAIL PROTECTED]>

To: "Rangel Reale" <[EMAIL PROTECTED]>
Cc: 
Sent: Friday, May 18, 2007 2:34 PM
Subject: Re: [PHP] Download speed limit


limiting speed by using sleep in your script is a very bad idea. for a 
350

MB file, with a 20 KB/s limit the script would take aprox. 5 hours. you
can see how this is totally wrong. even skyrocketing the timeout, it's 
not

a good solution.
Use a web server mod for dynamic bandwidth limiting. See
http://www.topology.org/src/bwshare/README.html, maybe it will help you.

Rangel Reale wrote:

Between 90 and 350 MB.

- Original Message - From: "Jim Lucas" <[EMAIL PROTECTED]>
To: "Rangel Reale" <[EMAIL PROTECTED]>
Cc: 
Sent: Wednesday, May 16, 2007 6:41 PM
Subject: Re: [PHP] Download speed limit



Rangel Reale wrote:

Hello!

For my application I need to limit the speed that my application sends
data, in my case a binary file.

I need to send the speed as a parameter, like:

sendfile.php?speed=2

Would send the file at 20kb/s (forgetting about real byte counts for
this example).

To send the file, I am doing:

$fp=fopen($this->contentfile,"rb");
while(!feof($fp)){
print(fread($fp,1024*8));
flush();
ob_flush();
}
fclose($fp);

If after ob_flush I do a sleep(), I can limit the speed, but I would
like to limit at the speed of the parameter.

Is there a way to do this?

Thanks,
Rangel


on average, how big are the files that you will be sending?

--
Jim Lucas

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

Unknown

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




--
No virus found in this incoming message.
Checked by AVG Free Edition. Version: 7.5.467 / Virus Database:
269.7.0/803 - Release Date: 13/5/2007 12:17









--
No virus found in this incoming message.
Checked by AVG Free Edition. Version: 7.5.467 / Virus Database:
269.7.0/803 - Release Date: 13/5/2007 12:17






--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] Download speed limit

2007-05-17 Thread Greg Donald

On 5/17/07, Rangel Reale <[EMAIL PROTECTED]> wrote:

Hmm that apache module isn't quite what I need, it just accepts or refuse
connections based on bandwidth usage, it does not throttle the connection.


Have you tried something like this?

http://destiney.com/

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] WTF is wrong with the PEAR site forcing me to register to submit a bug, yet doesn't provide any way to!?

2007-05-17 Thread Daevid Vincent
I wanted to submit a bug that the Spreadsheet_Excel_Writer-0.9.1 is still 
broken.
 
http://pear.php.net/bugs/bug.php?id=6584 
 &thanks=3
"[2007-05-17 22:59 UTC] User who submitted this comment has not confirmed 
identity
If you submitted this note, check your email.If you do not have a message, 
click here to re-send

 

MANUAL CONFIRMATION IS NOT POSSIBLE.  Write a message to [EMAIL PROTECTED]

to request the confirmation link.  All bugs/comments/patches associated with 
this

email address will be deleted within 48 hours if the account request is not 
confirmed!"
So I add a comment and it sends me a confirmation email.
http://pear.php.net/account-request-confirm.php?salt=e7e9fc9479727464e3191129f300960a

 &type=bug
I click it.
Then it asks me some username/password info. but I'm not registered, so it 
fails.
https://pear.php.net/account-request-confirm.php
Then I try to register: 
https://pear.php.net/account-request.php
and unless I'm a complete idiot, I don't see a link that says, "NEW ACCOUNT" or 
anything like that!?
 
There are account creating links for everything else though:
https://pear.php.net/account-request-newpackage.php
https://pear.php.net/account-request-existingpackage.php
https://pear.php.net/account-request-vote.php
but the one that is what I need has no account creation page:
https://pear.php.net/bugs/
 
So how the F*&$#^% do I register to submit a comment for a PEAR package that 
has been broken for months and nobody is fixing for
over a year and makes the entire package unuseable!
 
BTW, here is what I tried to add to the bug:
 
Seriously there is no solution to this yet? I'm copying and pasting the example 
from

http://pear.php.net/manual/en/package.fileformats.spreadsheet-excel-writer.intro.php
 and it doesn't work. 
 
The other error I keep getting is:
Fatal error:  Call to undefined method stdClass::close() in
/lockdown/includes/pear/Spreadsheet/Excel/Writer/Workbook.php on line 
510
 


[PHP] Tipos about which CMS use

2007-05-17 Thread robert mena

Hi there,

I'd like to replace my 'intranet' site with a CMS system to speed up
the edit process.  Some of my requirements are :

- written in PHP  :)
- mysql based
- documented/'well structured' - to allow development of customizations
- ability to define which pages or sections are public and which are
private (and in this case which users can access)
- use AJAX (not mandatory) but since some access to the page will come
from dial-up to reduce the need to transfer entire html just to update
a search or list contents..

thanks

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] Setting Up A Simple Shopping Cart

2007-05-17 Thread revDAVE
On 5/17/2007 7:05 AM, "revDAVE" <[EMAIL PROTECTED]> wrote:

> Hello folks, 
> 
> I am a PHP NEWBIE.
> 
> - I have the following three choices for shopping carts on my server:
> 
> CubeCart
> OS Commerce
> Zen Cart
> 
> Q: Does anybody have any preferences for creating a simple store?

Both OS Commerce & Zen Cart look pretty cool so far   Does anyone have
any preferences?




--
Thanks - RevDave
[EMAIL PROTECTED]
[db-lists]

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] Re: Tipos about which CMS use

2007-05-17 Thread itoctopus
I've said it before and I'll say it again: Wordpress.

Joomla/Mambo are also a good choice.

-- 
itoctopus - http://www.itoctopus.com
""robert mena"" <[EMAIL PROTECTED]> wrote in message 
news:[EMAIL PROTECTED]
> Hi there,
>
> I'd like to replace my 'intranet' site with a CMS system to speed up
> the edit process.  Some of my requirements are :
>
> - written in PHP  :)
> - mysql based
> - documented/'well structured' - to allow development of customizations
> - ability to define which pages or sections are public and which are
> private (and in this case which users can access)
> - use AJAX (not mandatory) but since some access to the page will come
> from dial-up to reduce the need to transfer entire html just to update
> a search or list contents..
>
> thanks 

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] WTF is wrong with the PEAR site forcing me to register to submit a bug, yet doesn't provide any way to!?

2007-05-17 Thread Chris

Daevid Vincent wrote:

I wanted to submit a bug that the Spreadsheet_Excel_Writer-0.9.1 is still 
broken.


Probably complain to the pear list instead of this one :P

http://pear.php.net/support/lists.php

--
Postgresql & php tutorials
http://www.designmagick.com/

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] Re: reading Paradox (.db) files

2007-05-17 Thread itoctopus
Simple search on google:
http://www.phpfreaks.com/pear_manual/page/pecl.paradox.html

-- 
itoctopus - http://www.itoctopus.com
""Bosky, Dave"" <[EMAIL PROTECTED]> wrote in message 
news:[EMAIL PROTECTED]
Has anyone had any experience opening and reading Paradox (.db) files
using PHP?

Are there any plug-ins/extensions available that someone can recommend?



Thanks,

Dave




**
HTC Disclaimer:  The information contained in this message may be privileged 
and confidential and protected from disclosure. If the reader of this 
message is not the intended recipient, or an employee or agent responsible 
for delivering this message to the intended recipient, you are hereby 
notified that any dissemination, distribution or copying of this 
communication is strictly prohibited.  If you have received this 
communication in error, please notify us immediately by replying to the 
message and deleting it from your computer.  Thank you.
**

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] Re: Confused about how exactly to output image using imagepng function

2007-05-17 Thread itoctopus
Why are you creating your own captcha?
I used the first one I found on google and it worked fine for me.

-- 
itoctopus - http://www.itoctopus.com
"Dave M G" <[EMAIL PROTECTED]> wrote in message 
news:[EMAIL PROTECTED]
> PHP list,
>
> I've looked at the manual entries for imagepng() and 
> imagecreatetruecolor() functions for helping me to create a temporary 
> image for a CAPTCHA system.
>
> However, I'm clearly messing up, as what I'm outputting is a bunch of 
> ASCII gibberish to the screen.
>
> What I think I need to do in principle is first create the image with 
> imagecreatetruecolor(), then define it as a PNG (?), then display it.
>
> So I've got something like this:
>
> $image = ImageCreate($width, $height);
> ImageFill($image, 0, 0, $black);
> echo ' width="' . $width .'" alt="captcha" />' . "\n";
> ImageDestroy($image);
>
> As mentioned, this isn't working, so there's a fundamental concept about 
> how PHP creates and displays images that I'm not getting.
>
> I'm trying to output an image that, ideally, won't be stored as a file. 
> Or, if it has to be a temporary file, to delete it immediately after 
> displaying it.
>
> What part am I not understanding?
>
> Thank you for any advice or information.
>
> -- 
> Dave M G
> Ubuntu Feisty 7.04
> Kernel 2.6.20-15-386 

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] Can't link image directory?

2007-05-17 Thread Haig (Home)
Hi everyone,

I have a simple script that scans a directory and will output a list of sub
directories as a hyperlink.

Script is working fine. Only problem I have is that if there is a
subdirectory called "Image", my script won't see it. If I rename that
subdirectory to anything else, it will see it.

If I use a standard href line to link that "image" subdirectory, that's fine
but then it won't show up alphabetically when the other folders are linked.

Any ideas?

Haig

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] Download speed limit

2007-05-17 Thread Rangel Reale

Yes, I tried, this works, but I would like to control the send speed more,
preferably via URL, as this programs will only be accessed by my desktop
application, and I have full control of them.

But, if there is no other way, this will be the way!

- Original Message - 
From: "Greg Donald" <[EMAIL PROTECTED]>

To: 
Sent: Thursday, May 17, 2007 6:55 PM
Subject: Re: [PHP] Download speed limit



On 5/17/07, Rangel Reale <[EMAIL PROTECTED]> wrote:

Hmm that apache module isn't quite what I need, it just accepts or refuse
connections based on bandwidth usage, it does not throttle the
connection.


Have you tried something like this?

http://destiney.com/

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




--
No virus found in this incoming message.
Checked by AVG Free Edition. Version: 7.5.467 / Virus Database:
269.7.0/803 - Release Date: 13/5/2007 12:17




--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] Download speed limit

2007-05-17 Thread Chris

Rangel Reale wrote:

Yes, I tried, this works, but I would like to control the send speed more,
preferably via URL, as this programs will only be accessed by my desktop
application, and I have full control of them.

But, if there is no other way, this will be the way!


Use the url parameter to work out the send rate.

?rate=10 (10kps)

...

$sleep = whatever_claculation_you_like;

sleep($sleep);

--
Postgresql & php tutorials
http://www.designmagick.com/

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] Re: Confused about how exactly to output image using imagepng function

2007-05-17 Thread Robert Cummings
On Thu, 2007-05-17 at 20:55 -0400, itoctopus wrote:
> Why are you creating your own captcha?

Why not?

Cheers,
Rob.
-- 
..
| InterJinn Application Framework - http://www.interjinn.com |
::
| An application and templating framework for PHP. Boasting  |
| a powerful, scalable system for accessing system services  |
| such as forms, properties, sessions, and caches. InterJinn |
| also provides an extremely flexible architecture for   |
| creating re-usable components quickly and easily.  |
`'

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] Setting Up A Simple Shopping Cart

2007-05-17 Thread itoctopus
I'd go with OSCommerce.

-- 
itoctopus - http://www.itoctopus.com
"revDAVE" <[EMAIL PROTECTED]> wrote in message 
news:[EMAIL PROTECTED]
> On 5/17/2007 7:05 AM, "revDAVE" <[EMAIL PROTECTED]> wrote:
>
>> Hello folks,
>>
>> I am a PHP NEWBIE.
>>
>> - I have the following three choices for shopping carts on my server:
>>
>> CubeCart
>> OS Commerce
>> Zen Cart
>>
>> Q: Does anybody have any preferences for creating a simple store?
>
> Both OS Commerce & Zen Cart look pretty cool so far   Does anyone have
> any preferences?
>
>
>
>
> --
> Thanks - RevDave
> [EMAIL PROTECTED]
> [db-lists] 

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] sessions from own php-extension

2007-05-17 Thread HeavyWave
Hi there

I'm writing my own php-extension in C++. Can I call ext/session
functions or somehow use sessions in my extension?

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] Re: Tipos about which CMS use

2007-05-17 Thread Larry Garfield
WordPress is a blogging app, not a CMS.  It's a good blogging app, but it's 
not a CMS.  Do not confuse the two.

Being a Drupal developer I have to recommend Drupal.  A lot of places are 
using it for intranet type stuff.  (http://drupal.org/)

But really, this question is asked about every 2 weeks.  Search the archives 
and you'll have enough emails to read to keep you busy for a week just on 
this one topic.

On Thursday 17 May 2007, itoctopus wrote:
> I've said it before and I'll say it again: Wordpress.
>
> Joomla/Mambo are also a good choice.
>
> --
> itoctopus - http://www.itoctopus.com
> ""robert mena"" <[EMAIL PROTECTED]> wrote in message
> news:[EMAIL PROTECTED]
>
> > Hi there,
> >
> > I'd like to replace my 'intranet' site with a CMS system to speed up
> > the edit process.  Some of my requirements are :
> >
> > - written in PHP  :)
> > - mysql based
> > - documented/'well structured' - to allow development of customizations
> > - ability to define which pages or sections are public and which are
> > private (and in this case which users can access)
> > - use AJAX (not mandatory) but since some access to the page will come
> > from dial-up to reduce the need to transfer entire html just to update
> > a search or list contents..
> >
> > thanks


-- 
Larry Garfield  AIM: LOLG42
[EMAIL PROTECTED]   ICQ: 6817012

"If nature has made any one thing less susceptible than all others of 
exclusive property, it is the action of the thinking power called an idea, 
which an individual may exclusively possess as long as he keeps it to 
himself; but the moment it is divulged, it forces itself into the possession 
of every one, and the receiver cannot dispossess himself of it."  -- Thomas 
Jefferson

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] Use sessions from own php-extension

2007-05-17 Thread hw

Hi there.

I'm developing php-extension in C++ and want to use session handling from  
ext/session . Is it possible?


--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] Problems with SSL and stream contexts on 4.x branch...

2007-05-17 Thread David Preece

Hi,

Well, this has been fun. I'm not normally a PHP guy, but right now I  
need to move some data from an HTTPS server into PHP. Problem is that  
I'm trying to do it properly, confirming that the servers certificate  
says what it should and that it isn't self signed (i.e. the chain of  
trust extends all the way up to the root). I've been at this for  
getting on for two days now and have got this far:


if (function_exists('openssl_open')) echo('Not a dumbarse');
$sc=stream_context_create();
$rtn=stream_context_set_option($sc,'ssl', 'verify_peer', true);
$rtn=stream_context_set_option($sc,'ssl', 'allow_self_signed',  
false);
$sock=fsockopen('ssl://development.atomicdroplet.com',443,$errno, 
$errstr,30,$sc);

if ($sock) {
fwrite($sock,"GET /msg_serve/123/ HTTP /1.0\r\n\r\n");
while ($contents=fread($sock,8192)) echo $contents;
fclose($sock);
};

Now, I actually just tripped across the fsockopen call using a stream  
context (my IDE autocompleted it for me) and it's not covered in the  
docs. I also wanted to use stream_socket_client but realistically  
have to target the 4.x branch, probably all the way back to 4.3.0.


The error I get is #36, "Operation now in progress". Commenting out  
the two stream_context_set_option calls makes it work properly ...  
but also completely defeats the purpose of trying to establish the  
real identity of the other end.


I could also use curl, but it seems rare that it is installed.

Any guidance is gratefully received ... as I said, this has taken  
rather a long time and my patience is wearing thin :(


Dave

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] showing source

2007-05-17 Thread Paul Scott

On Fri, 2007-05-18 at 01:50 -0400, James Lockie wrote:
> This almost works but all my < and > are replaced with "".
> 

Rather use named entities, www.php.net/htmlentities

--Paul

All Email originating from UWC is covered by disclaimer 
http://www.uwc.ac.za/portal/uwc2006/content/mail_disclaimer/index.htm 

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] showing source

2007-05-17 Thread James Lockie

This almost works but all my < and > are replaced with "".

   // open this file to show the source
   if (($fh = fopen( __FILE__, 'r' )) === FALSE){
   die ('Failed to open source file (' . $_FILE_ . ') for 
reading!');

   } else {
   $tags  = array( "<", ">" );
   $safe_tags = array( "\\<", "\\>" );

   print "\n";

   // read the file line by line
   while (! feof( $fh )) {
   $currentLine = fgets( $fh, 255 );
   $noTags = str_replace( $tags, $safeTags, $currentLine );
   print $noTags;
   }

   fclose( $fh );
   print "\n";
   }

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] Download speed limit

2007-05-17 Thread clive

Rangel Reale wrote:

Yes, I tried, this works, but I would like to control the send speed more,
preferably via URL, as this programs will only be accessed by my desktop
application, and I have full control of them.


ok if its only your application thats going to use this data, you could

1. setup a ftp server that does bandwidth limiting. Then your 
application downloads the file via ftp.


2. rsync has a bandwidth limiting option aswell.



But, if there is no other way, this will be the way!

- Original Message - From: "Greg Donald" <[EMAIL PROTECTED]>
To: 
Sent: Thursday, May 17, 2007 6:55 PM
Subject: Re: [PHP] Download speed limit



On 5/17/07, Rangel Reale <[EMAIL PROTECTED]> wrote:
Hmm that apache module isn't quite what I need, it just accepts or 
refuse

connections based on bandwidth usage, it does not throttle the
connection.


Have you tried something like this?

http://destiney.com/

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




--
No virus found in this incoming message.
Checked by AVG Free Edition. Version: 7.5.467 / Virus Database:
269.7.0/803 - Release Date: 13/5/2007 12:17







--
Regards,

Clive.

Real Time Travel Connections


{No electrons were harmed in the creation, transmission or reading of 
this email. However, many were excited and some may well have enjoyed 
the experience.}


--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php