Re: [PHP] Exception handling in PHP

2008-02-06 Thread Prabath Kumarasinghe
Does that mean for every exception do we have to write our custom exception and describe it from our own message Cheers Prabath --- Paul Scott <[EMAIL PROTECTED]> wrote: > > On Wed, 2008-02-06 at 23:10 -0800, Prabath > Kumarasinghe wrote: > > Is this following code work in PHP if > mysql_conne

Re: [PHP] Exception handling in PHP

2008-02-06 Thread Paul Scott
On Wed, 2008-02-06 at 23:10 -0800, Prabath Kumarasinghe wrote: > Is this following code work in PHP if mysql_connect > fails. > > try{ > mysql_connect('localhost','user',''); > > }catch(Exception $e){ > echo $e->getMessage(); > Probably not. I don't think that the mysql functions throw excep

[PHP] Passing object reference to session

2008-02-06 Thread Michael Moyle
Hi, I am new to the list and have a question that inspired me to join the list as I can not find any answer online. When a object reference is passed to the $_SESSION array what happens to the object? Is the object serialized and saved in session (in this case file)? Or just the reference with th

Re: [PHP] Exception handling in PHP

2008-02-06 Thread Prabath Kumarasinghe
Hi Paul Is this following code work in PHP if mysql_connect fails. try{ mysql_connect('localhost','user',''); }catch(Exception $e){ echo $e->getMessage(); } Cheers Prabath --- Paul Scott <[EMAIL PROTECTED]> wrote: > > On Wed, 2008-02-06 at 22:52 -0800, Prabath > Kumarasinghe wrote: > > H

[PHP] Multiple MySQL INSERT into loop

2008-02-06 Thread Rob G
I'm working on this, and am not sure how the variable syntax needs to be here. This is what I have done manually. //BEGIN EXAMPLE mysql_query ("INSERT INTO testimonials (id, quote, name) VALUES ('$id_1', '$entry_1', '$name_1')"); mysql_query ("INSERT INTO testimonials (i

Re: [PHP] Exception handling in PHP

2008-02-06 Thread Paul Scott
On Wed, 2008-02-06 at 22:52 -0800, Prabath Kumarasinghe wrote: > Hi All > > I'm little bit confusing with PHP exception handling. > Could you able to explain how to put try{} and > catch(){} in a proper way in PHP. I had already read > php exception manual but it didn't help me to get > exact id

[PHP] Exception handling in PHP

2008-02-06 Thread Prabath Kumarasinghe
Hi All I'm little bit confusing with PHP exception handling. Could you able to explain how to put try{} and catch(){} in a proper way in PHP. I had already read php exception manual but it didn't help me to get exact idea about exception handling in php. Cheers Prabath

RE: [PHP] PHP/mySQL question about groups

2008-02-06 Thread Warren Vail
I did some looking into performance issues many years ago at company that developed and marketed another database server, comparing the query plan to the actual code, and a query plan usually shows the processes that consume the major amount of time, disk I/O, index or table searches and such, but

Re: [PHP] Recommended ORM for PHP

2008-02-06 Thread Manuel Lemos
Hello, on 02/07/2008 02:18 AM Nathan Nobbe said the following: > well i think its worth a mention that qcodo has an article that > distinguishes > 'ActiveRecord classes' from the 'ActiveRecord pattern'. > http://www.qcodo.com/documentation/article.php/6 > what it mainly says is that code generatio

Re: [PHP] array problem with a zencart shipping module

2008-02-06 Thread Paul Scott
On Wed, 2008-02-06 at 23:42 -0500, Nathan Nobbe wrote: > ouch, maybe you need to hire someone ? besides this has more to do than > just arrays; there is the rest of the application and clearly anyone whos > going > to help out must understand at least some of it.. Yeah, I concur! You really shou

Re: [PHP] array problem with a zencart shipping module

2008-02-06 Thread John Taylor-Johnston
Thanks for the reply and checking it out. I was hoping my problem lies only in the class. I do have a Paypal account and at this point in time, it is a question of time - I've got to get my site in production and shut off the old cart. Nathan Nobbe wrote: On Feb 6, 2008 11:11 PM, John Taylor-Jo

Re: [PHP] array problem with a zencart shipping module

2008-02-06 Thread Nathan Nobbe
On Feb 6, 2008 11:11 PM, John Taylor-Johnston <[EMAIL PROTECTED]> wrote: > I'm desperately going outside the forum, seeking help. > Does anyone have any experience with Zencart shipping modules, or > understand arrays? > http://www.zen-cart.com/forum/showthread.php?t=87831 maybe you should stick

Re: [PHP] PHP/mySQL question about groups

2008-02-06 Thread Andrew Ballard
On Feb 6, 2008 11:20 PM, Nathan Nobbe <[EMAIL PROTECTED]> wrote: > On Feb 6, 2008 10:59 PM, Andrew Ballard <[EMAIL PROTECTED]> wrote: > > > Of course, in this case you could just avoid all the confusion with > > this statement as well: > > > > SELECT DISTINCT name, size > > FROMwine > > im not

Re: [PHP] PHP Source code protection

2008-02-06 Thread John Taylor-Johnston
I'm not sure where PHP stands on this politically. But I believe in Open Source, which allows you to encode your code. But why? At heart I'm a purist GNU. Stallman was right when he first tried to fix a faulty printer. * The freedom to run the program, for any purpose (freedom 0). * Th

Re: [PHP] PHP/mySQL question about groups

2008-02-06 Thread Nathan Nobbe
On Feb 6, 2008 10:59 PM, Andrew Ballard <[EMAIL PROTECTED]> wrote: > Of course, in this case you could just avoid all the confusion with > this statement as well: > > SELECT DISTINCT name, size > FROMwine im not sure why, but i think distinct is typically way slower than group by. -nathan

Re: [PHP] Recommended ORM for PHP

2008-02-06 Thread Nathan Nobbe
On Feb 6, 2008 10:59 PM, Larry Garfield <[EMAIL PROTECTED]> wrote: > On Wednesday 06 February 2008, Edward Kay wrote: > > Have a look at Qcodo. http://www.qcodo.com. > > > > It uses code generation to create your ORM for you direct from the DB > > tables. As it's code generation as opposed to run

Re: [PHP] shopping carts

2008-02-06 Thread John Taylor-Johnston
zencart is giving me every possible custom field I can dream of. John Jason Pruim wrote: On Feb 6, 2008, at 5:56 PM, Eric Butera wrote: On Feb 6, 2008 4:18 PM, nihilism machine <[EMAIL PROTECTED]> wrote: Does anyone know of a shopping cart which allows you to add multiple custom fields to ea

[PHP] array problem with a zencart shipping module

2008-02-06 Thread John Taylor-Johnston
I'm desperately going outside the forum, seeking help. Does anyone have any experience with Zencart shipping modules, or understand arrays? http://www.zen-cart.com/forum/showthread.php?t=87831 Its borrowed code and I,m not good at arrays to begin with. Thanks, John -- PHP General Mailing List (

Re: [PHP] PHP/mySQL question about groups

2008-02-06 Thread Andrew Ballard
On Feb 6, 2008 8:46 PM, Rob Gould <[EMAIL PROTECTED]> wrote: > Let's say I have a PHP-based wine application, and it's taking a set of mySQL > data that looks like this: > > wineidname > size > 123 Sil

Re: [PHP] Recommended ORM for PHP

2008-02-06 Thread Larry Garfield
On Wednesday 06 February 2008, Edward Kay wrote: > Have a look at Qcodo. http://www.qcodo.com. > > It uses code generation to create your ORM for you direct from the DB > tables. As it's code generation as opposed to run time analysis (which is > what ActiveRecord and the like use), there is no per

RE: [PHP] PHP/mySQL question about groups

2008-02-06 Thread Bastien Koert
Select * from wine where name = 'Silver Oak' GROUP BY wineid,size bastien> Date: Wed, 6 Feb 2008 17:46:52 -0800> From: [EMAIL PROTECTED]> To: php-general@lists.php.net> Subject: [PHP] PHP/mySQL question about groups> > Let's say I have a PHP-based wine application, and it's taking a set of m

Re: [PHP] PHP program to download sites

2008-02-06 Thread Nathan Nobbe
On Feb 6, 2008 9:30 PM, Leonard Burton <[EMAIL PROTECTED]> wrote: > HI All, > > I have a client who wants to be able to download/cache all web files > on certain sites for archiving info (i.e. before purchases, anything > where a record of what exactly was on a certain page is needed). They > wou

[PHP] PHP program to download sites

2008-02-06 Thread Leonard Burton
HI All, I have a client who wants to be able to download/cache all web files on certain sites for archiving info (i.e. before purchases, anything where a record of what exactly was on a certain page is needed). They would like to have this on the web server so employees could log in and enter the

[PHP] Roadsend (was Re: PHP Source code protection)

2008-02-06 Thread Bruce Cowin
>>> zerof <[EMAIL PROTECTED]> 7/02/2008 12:04 p.m. >>> Try Roadsend, now as Open Source: http://www.roadsend.com/home/index.php?SMC=1&pageID=compiler Hey, that looks cool. Do many people use this? Has anyone built any standalone GUI apps with it? Regards, Bruce -- PHP General Mailing

Re: [PHP] PHP/mySQL question about groups

2008-02-06 Thread Nathan Nobbe
On Feb 6, 2008 8:46 PM, Rob Gould <[EMAIL PROTECTED]> wrote: > Let's say I have a PHP-based wine application, and it's taking a set of > mySQL data that looks like this: > > wineidname > size > 123 Silver Oak > 750ML > 123

[PHP] PHP/mySQL question about groups

2008-02-06 Thread Rob Gould
Let's say I have a PHP-based wine application, and it's taking a set of mySQL data that looks like this: wineidname size 123 Silver Oak 750ML 123

Re: [PHP] shopping carts

2008-02-06 Thread Jason Pruim
On Feb 6, 2008, at 5:56 PM, Eric Butera wrote: On Feb 6, 2008 4:18 PM, nihilism machine <[EMAIL PROTECTED]> wrote: Does anyone know of a shopping cart which allows you to add multiple custom fields to each product? --e -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

Re: [PHP] PHP CLI Problem

2008-02-06 Thread Daniel Brown
On Feb 6, 2008 6:56 PM, Chris <[EMAIL PROTECTED]> wrote: > > > In your cronjob, replace the php5 entry with the following > > (including the backticks): > > `which php5` > > > > If that still doesn't work, replace it simply with php, not php5: > > `which php` > > You can use

Re: [PHP] PHP CLI Problem

2008-02-06 Thread Chris
In your cronjob, replace the php5 entry with the following (including the backticks): `which php5` If that still doesn't work, replace it simply with php, not php5: `which php` You can use 'env php' instead and it'll pick up the first one in $PATH (same sort of idea a

[PHP] Re: PHP Source code protection

2008-02-06 Thread zerof
Zoran Bogdanov escreveu: Hi, I'm building a C# application that connects to a server that has PHP scripts on it. We need to deliver the complete solution to a firm, the C# is no problem because it is compiled... But PHP is a problem bacause it is interpreted and we will have to deliver pu

Re: [PHP] shopping carts

2008-02-06 Thread Eric Butera
On Feb 6, 2008 4:18 PM, nihilism machine <[EMAIL PROTECTED]> wrote: > Does anyone know of a shopping cart which allows you to add multiple > custom fields to each product? > --e > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > > Please

Re: [PHP] shopping carts

2008-02-06 Thread Greg Donald
On 2/6/08, nihilism machine <[EMAIL PROTECTED]> wrote: > that does not help, none specify whether they have a custom fields > option or not. "Wah.. why won't anyone do my research for me?" -- Greg Donald http://destiney.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, v

Re: [PHP] shopping carts

2008-02-06 Thread Daniel Brown
On Feb 6, 2008 4:26 PM, nihilism machine <[EMAIL PROTECTED]> wrote: > that does not help, none specify whether they have a custom fields > option or not. Neither does a "PHP mailing list." Search Google. Then, read the description of the shopping cart software. The best options I can th

Re: [PHP] shopping carts

2008-02-06 Thread nihilism machine
that does not help, none specify whether they have a custom fields option or not. On Feb 6, 2008, at 4:23 PM, Daniel Brown wrote: On Feb 6, 2008 4:18 PM, nihilism machine <[EMAIL PROTECTED]> wrote: Does anyone know of a shopping cart which allows you to add multiple custom fields to each pr

Re: [PHP] shopping carts

2008-02-06 Thread Daniel Brown
On Feb 6, 2008 4:18 PM, nihilism machine <[EMAIL PROTECTED]> wrote: > Does anyone know of a shopping cart which allows you to add multiple > custom fields to each product? http://www.hotscripts.com/ http://php.resourceindex.com/ http://www.sf.net/ -- Daniel P. Brown Senior Unix Gee

[PHP] shopping carts

2008-02-06 Thread nihilism machine
Does anyone know of a shopping cart which allows you to add multiple custom fields to each product? --e -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Recommendation for an XML class?

2008-02-06 Thread Nathan Nobbe
On Feb 6, 2008 4:04 PM, Paul Scott <[EMAIL PROTECTED]> wrote: > Dude, I thought you were playing with SPL! SimpleXML _then_ use the > SimpleXMLIterator to work with it! > > http://www.php.net/spl well of course; if you need to flatten out an xml structure in a few lines of code ;) -nathan

Re: [PHP] Recommendation for an XML class?

2008-02-06 Thread Paul Scott
On Wed, 2008-02-06 at 15:12 -0500, Nathan Nobbe wrote: > SimpleXML, > http://www.php.net/manual/en/ref.simplexml.php > Dude, I thought you were playing with SPL! SimpleXML _then_ use the SimpleXMLIterator to work with it! http://www.php.net/spl --Paul All Email originating from UWC is covered

[PHP] Re: Recommended ORM for PHP

2008-02-06 Thread Manuel Lemos
on 02/06/2008 11:10 AM js said the following: > Hi list, > > When creating a LAMP app, I always start by writing ORM myself. > It's fun but it usually takes a long time. > Besides, that always results in a toy-system, > I mean, that has not so many features, not so efficient non-bug-free. > > I

Re: [PHP] Progressive answers from a php query?

2008-02-06 Thread Martin Marques
Richard escribió: Hello, I don't know if this is possible with PHP alone but this is what I'm trying to do : My script would check say for example 10 or 20 different http:// site addresses and collect some text from each page. My problem is that it takes quite a long time to query so many si

Re: [PHP] Poll: phpt or phpunit and why?

2008-02-06 Thread Eric Butera
On Feb 6, 2008 1:32 PM, Nathan Nobbe <[EMAIL PROTECTED]> wrote: > in a conversation on #gentoo-php (irc), the following distinction > was drawn, > > " back on the phpt; just curious, how do you see it compared to something > like phpunit ? > comparable, or different.." > > " different... phpt is pr

Re: [PHP] Recommendation for an XML class?

2008-02-06 Thread Nathan Nobbe
On Feb 6, 2008 3:09 PM, Brian Dunning <[EMAIL PROTECTED]> wrote: > I see there are billions of XML classes out there. Can anyone > recommend one that's good & simple? My needs are quite basic, all I > really need is to draw simple values out of the XML, like convert > 123 to $order_no = 123.

[PHP] Recommendation for an XML class?

2008-02-06 Thread Brian Dunning
I see there are billions of XML classes out there. Can anyone recommend one that's good & simple? My needs are quite basic, all I really need is to draw simple values out of the XML, like convert 123 to $order_no = 123. Thanks... -- PHP General Mailing List (http://www.php.net/) To unsubsc

[PHP] Delete a document from lotus domino with CURL

2008-02-06 Thread Fnutt
I am working on a script that log in, look for messages, download them (including any attached files) and then deletes the message from a lotus domino server. What I have access to is a simple web-gui that I access throu CURL. So far I have been able to do the following: Log in and save a cook

[PHP] Progressive answers from a php query?

2008-02-06 Thread Richard
Hello, I don't know if this is possible with PHP alone but this is what I'm trying to do : My script would check say for example 10 or 20 different http:// site addresses and collect some text from each page. My problem is that it takes quite a long time to query so many sites, and the user

Re: [PHP] Poll: phpt or phpunit and why?

2008-02-06 Thread Nathan Nobbe
in a conversation on #gentoo-php (irc), the following distinction was drawn, " back on the phpt; just curious, how do you see it compared to something like phpunit ? comparable, or different.." " different... phpt is probably really mostly intended for testing php and their extensions phpunit rat

Re: [PHP] PHP Source code protection

2008-02-06 Thread Richard Lynch
On Wed, February 6, 2008 5:28 am, Zoran Bogdanov wrote: > I'm building a C# application that connects to a server that has PHP > scripts > on it. > > We need to deliver the complete solution to a firm, the C# is no > problem > because it is compiled... > > But PHP is a problem bacause it is interpr

Re: [PHP] PHP Source code protection

2008-02-06 Thread Greg Donald
On 2/6/08, Greg Donald <[EMAIL PROTECTED]> wrote: > On 2/6/08, Richard Heyes <[EMAIL PROTECTED]> wrote: > > There's the Zend Encoder at www.zend.com. Though it may be called > > something else now. > > Pointless. > > http://www.phprecovery.com/ http://www.zendecode.com/ I'm sure there are others.

Re: [PHP] PHP Source code protection

2008-02-06 Thread Greg Donald
On 2/6/08, Richard Heyes <[EMAIL PROTECTED]> wrote: > There's the Zend Encoder at www.zend.com. Though it may be called > something else now. Pointless. http://www.phprecovery.com/ -- Greg Donald http://destiney.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: ht

Re: [PHP] Recommended ORM for PHP

2008-02-06 Thread Greg Donald
On 2/6/08, Edward Kay <[EMAIL PROTECTED]> wrote: > It uses code generation to create your ORM for you direct from the DB > tables. As it's code generation as opposed to run time analysis (which is > what ActiveRecord and the like use), there is no performance hit - it ActiveRecord caches the field

Re: [PHP] date() and wrong timezone (or time)

2008-02-06 Thread Andrew Ballard
On Feb 6, 2008 12:48 PM, Martin Marques <[EMAIL PROTECTED]> wrote: > Nathan Nobbe escribió: > > On Feb 6, 2008 12:13 PM, Martin Marques <[EMAIL PROTECTED]> wrote: > > > >>> see what you have as the value for the date.timezone ini setting. > >> I've already checked that, and it's not set. > > > > >

Re: [PHP] date() and wrong timezone (or time)

2008-02-06 Thread Martin Marques
Nathan Nobbe escribió: On Feb 6, 2008 12:13 PM, Martin Marques <[EMAIL PROTECTED]> wrote: see what you have as the value for the date.timezone ini setting. I've already checked that, and it's not set. then you should probly set it ;) It has the right TZ set. I checked it with date_default

Re: [PHP] PHP CLI Problem

2008-02-06 Thread Daniel Brown
On Feb 6, 2008 12:25 PM, Nathan Nobbe <[EMAIL PROTECTED]> wrote: > put the script in the webroot; then you can invoke it from cron > using curl; i imagine they have that installed. you can protect > the script with the following as the first line > if($_SERVER['REMOTE_ADDR'] !== '127.0.0.1') { die

Re: [PHP] date() and wrong timezone (or time)

2008-02-06 Thread Nathan Nobbe
On Feb 6, 2008 12:13 PM, Martin Marques <[EMAIL PROTECTED]> wrote: > > see what you have as the value for the date.timezone ini setting. > > I've already checked that, and it's not set. then you should probly set it ;) Anyway, I found out that PHP uses an internal tz database (very bad > IMHO)

Re: [PHP] PHP CLI Problem

2008-02-06 Thread Nathan Nobbe
On Feb 6, 2008 11:48 AM, Robbert van Andel <[EMAIL PROTECTED]> wrote: > I contacted 1&1 and was told scripting was not supported. I wrote back > saying I didn't need help writing the script just how to run it. They wrote > back telling me to put it in a cron job using crontab –e and that was all

Re: [PHP] date() and wrong timezone (or time)

2008-02-06 Thread Martin Marques
Nathan Nobbe escribió: On Feb 6, 2008 6:13 AM, Martin Marques <[EMAIL PROTECTED]> wrote: I got an update from tzdata on a Debian server due to a daylight saving change here in Argentina. The problem is that, even when the system sees the correct time, php keeps giving me the *old* hour. $ dat

Re: [PHP] PHP CLI Problem

2008-02-06 Thread Nathan Nobbe
On Feb 6, 2008 11:42 AM, Robbert van Andel <[EMAIL PROTECTED]> wrote: > Not an option. Which php gives me php4 and the script requires php5. > it sounds like you are using 1&1, per dans security warning earlier :) you may want to contact them and ask them how to run php5 scripts via the cli; as

RE: [PHP] PHP CLI Problem

2008-02-06 Thread Robbert van Andel
Not an option. Which php gives me php4 and the script requires php5. From: Nathan Nobbe [mailto:[EMAIL PROTECTED] Sent: Wednesday, February 06, 2008 8:39 AM To: Robbert van Andel Cc: Daniel Brown; php-general@lists.php.net Subject: Re: [PHP] PHP CLI Problem On Feb 6, 2008 11:33 AM, Robber

Re: [PHP] PHP CLI Problem

2008-02-06 Thread Nathan Nobbe
On Feb 6, 2008 11:33 AM, Robbert van Andel <[EMAIL PROTECTED]> wrote: > I tried adding `which php5` and that didn't work. did you try running which php5 on the cli to ensure it even maps to a path ? you might need which php instead. -nathan

RE: [PHP] PHP CLI Problem

2008-02-06 Thread Robbert van Andel
D'oh. I wondered why I got that email while I was driving. Thanks for the security tip. I had actually planned on protecting those scripts after I was done getting them to work. I removed the shebang, verified the script still works from the command line but it still doesn't work with Cron.

Re: Re: [PHP] New search related question

2008-02-06 Thread Daniel Brown
On Feb 6, 2008 6:58 AM, Aschwin Wesselius <[EMAIL PROTECTED]> wrote: > Hi everybody, > > I'm new to the list, but am currently working on a project where I could > use some HTML-searching stuff too. I'm not quite clever at search > algorithms, so if someone could point me to some basic functionalit

Re: [PHP] PHP Source code protection

2008-02-06 Thread Daniel Brown
On Feb 6, 2008 11:13 AM, C.R.Vegelin <[EMAIL PROTECTED]> wrote: > - Original Message - > From: "Bastien Koert" <[EMAIL PROTECTED]> > > zend encoder? > > http://sourceforge.net/projects/php-screw/ > > > > > > google for more > > > See also: > http://www.ioncube.com/ All good ideas. An

Re: [PHP] PHP Source code protection

2008-02-06 Thread Floor Terra
> Is htere a way to secoure my code so when they put it on the server, they > can't see it! Short answer: NO Long answer NO, but: There are some products that claim they protect your code, but they all basicly rely on "security through obscurity". A principle that is often frowned upon by security

Re: [PHP] PHP CLI Problem

2008-02-06 Thread Daniel Brown
On Feb 6, 2008 1:55 AM, Robbert van Andel <[EMAIL PROTECTED]> wrote: [snip] > First off, the script runs great from the command line when I type "php5 > backup.php" but when I type ./backup.php I get an error: "bash: > ./backup.php: No such file or directory". I thought maybe this is a problem > w

Re: [PHP] PHP CLI Problem

2008-02-06 Thread Jim Lucas
Robbert van Andel wrote: I am having trouble with a PHP CLI script I wrote to help manage my website. The site is on a shared hosting server where the PHP installation is set up as a CGI. The script creates some backups of my databases and sends them to Amazon's S3 service. First off, the sc

Re: [PHP] PHP Source code protection

2008-02-06 Thread C.R.Vegelin
See also: http://www.ioncube.com/ - Original Message - From: "Bastien Koert" <[EMAIL PROTECTED]> To: "Zoran Bogdanov" <[EMAIL PROTECTED]>; Sent: Wednesday, February 06, 2008 2:27 PM Subject: RE: [PHP] PHP Source code protection zend encoder? http://sourceforge.net/projects/php-scre

Re: [PHP] Poll: phpt or phpunit and why?

2008-02-06 Thread Nathan Nobbe
On Feb 6, 2008 9:38 AM, js <[EMAIL PROTECTED]> wrote: > HI, > > When writing tests, do you use phpt or phpunit? (or another one?) > Why do you use that one? > Let's share the idea. > > I like both, but when I write simple tests, I prefer to use phpt ive just now learned of phpt. this would exp

Re: [PHP] PHP CLI Problem

2008-02-06 Thread Nathan Nobbe
On Feb 6, 2008 9:36 AM, Robbert van Andel <[EMAIL PROTECTED]> wrote: > I guess I spoke too soon. Even though the script runs from anywhere (that > I > have access too), when I put the perl script in a cronjob, the php script > just refuses to run. There's no output, just the output from the perl

Re: [PHP] date() and wrong timezone (or time)

2008-02-06 Thread Nathan Nobbe
On Feb 6, 2008 6:13 AM, Martin Marques <[EMAIL PROTECTED]> wrote: > I got an update from tzdata on a Debian server due to a daylight saving > change here in Argentina. > > The problem is that, even when the system sees the correct time, php > keeps giving me the *old* hour. > > $ date > mié feb 6

[PHP] Poll: phpt or phpunit and why?

2008-02-06 Thread js
HI, When writing tests, do you use phpt or phpunit? (or another one?) Why do you use that one? Let's share the idea. I like both, but when I write simple tests, I prefer to use phpt because it's less code and easy to write. I use phpunit for tests of complex classes. I can do that with phpt, but

RE: [PHP] PHP CLI Problem

2008-02-06 Thread Robbert van Andel
I guess I spoke too soon. Even though the script runs from anywhere (that I have access too), when I put the perl script in a cronjob, the php script just refuses to run. There's no output, just the output from the perl script. And yes, I did set up the perl script to print the output of the php

Re: [PHP] Re: PEAR website and MSIE 6

2008-02-06 Thread Nathan Nobbe
On Feb 2, 2008 12:51 PM, Michelle Konzack <[EMAIL PROTECTED]> wrote: > Am 2008-01-31 13:16:51, schrieb Nathan Nobbe: > > it doesnt let you reclaim lost tabs. nor does it save the tabs for the > next > > time you > > open it. i have to pkill ff or similar to get it to ask if i want to > > restore

RE: [PHP] PHP Source code protection

2008-02-06 Thread Bastien Koert
zend encoder? http://sourceforge.net/projects/php-screw/ google for more bastien> To: php-general@lists.php.net> From: [EMAIL PROTECTED]> Date: Wed, 6 Feb 2008 12:28:12 +0100> Subject: [PHP] PHP Source code protection> > Hi,> > I'm building a C# application that connects to a server t

RE: [PHP] PHP CLI Problem

2008-02-06 Thread Robbert van Andel
Thank you, that was very helpful. I created a perl script because the shell script wouldn't run either. It too gave an error stating the file or directory could not be found. The perl script runs a shell command from within it to run backup.php. Manual tests show that that works, I put it in a

[PHP] Re: PEAR website and MSIE 6

2008-02-06 Thread Michelle Konzack
Am 2008-01-31 13:16:51, schrieb Nathan Nobbe: > it doesnt let you reclaim lost tabs. nor does it save the tabs for the next > time you > open it. i have to pkill ff or similar to get it to ask if i want to > restore the session. > opera just does it. Thats not right, since I can save the current

RE: [PHP] Recommended ORM for PHP

2008-02-06 Thread Edward Kay
> When creating a LAMP app, I always start by writing ORM myself. > It's fun but it usually takes a long time. > Besides, that always results in a toy-system, > I mean, that has not so many features, not so efficient non-bug-free. > > I started to think that now is the time to throw away my rubb

Re: [PHP] Recommended ORM for PHP

2008-02-06 Thread Zoltán Németh
2008. 02. 6, szerda keltezéssel 22.10-kor js ezt írta: > Hi list, > > When creating a LAMP app, I always start by writing ORM myself. > It's fun but it usually takes a long time. > Besides, that always results in a toy-system, > I mean, that has not so many features, not so efficient non-bug-free

[PHP] Recommended ORM for PHP

2008-02-06 Thread js
Hi list, When creating a LAMP app, I always start by writing ORM myself. It's fun but it usually takes a long time. Besides, that always results in a toy-system, I mean, that has not so many features, not so efficient non-bug-free. I started to think that now is the time to throw away my rubbis

Re: [PHP] PHP CLI Problem

2008-02-06 Thread Jochem Maas
Robbert van Andel schreef: I am having trouble with a PHP CLI script I wrote to help manage my website. The site is on a shared hosting server where the PHP installation is set up as a CGI. The script creates some backups of my databases and sends them to Amazon's S3 service. First off, the

Re: [PHP] string vs number

2008-02-06 Thread Jochem Maas
Ford, Mike schreef: On 05 February 2008 21:37, Jochem Maas advised: the same is not exactly true for floats - although you can use them as array keys you'll notice in the output of code below that they are stripped of their decimal part (essentially a floor() seems to be performed on the float

Re: Re: [PHP] New search related question

2008-02-06 Thread Aschwin Wesselius
On Feb 4, 2008 2:48 PM, Jason Pruim <[EMAIL PROTECTED]> wrote: I got bored, so I wrote out a system to handle it. Let me know if you want the source when it's done. Hi everybody, I'm new to the list, but am currently working on a project where I could use some HTML-searching stuff too. I'm n

Re: [PHP] PHP Source code protection

2008-02-06 Thread Richard Heyes
I'm building a C# application that connects to a server that has PHP scripts on it. We need to deliver the complete solution to a firm, the C# is no problem because it is compiled... But PHP is a problem bacause it is interpreted and we will have to deliver pure, unprotected script... Is h

[PHP] PHP Source code protection

2008-02-06 Thread Zoran Bogdanov
Hi, I'm building a C# application that connects to a server that has PHP scripts on it. We need to deliver the complete solution to a firm, the C# is no problem because it is compiled... But PHP is a problem bacause it is interpreted and we will have to deliver pure, unprotected script... Is

[PHP] date() and wrong timezone (or time)

2008-02-06 Thread Martin Marques
I got an update from tzdata on a Debian server due to a daylight saving change here in Argentina. The problem is that, even when the system sees the correct time, php keeps giving me the *old* hour. $ date mié feb 6 09:03:57 ARST 2008 $ echo ""|php5 08:04 What can my problem be? BTW, I di

RE: [PHP] string vs number

2008-02-06 Thread Ford, Mike
On 05 February 2008 21:37, Jochem Maas advised: > the same is not exactly true for floats - although you can > use them as array keys you'll > notice in the output of code below that they are stripped of > their decimal part (essentially > a floor() seems to be performed on the float value. I have

Re: [PHP] QNX build

2008-02-06 Thread Richard
Jochem Maas used his keyboard to write : Richard schreef: Jochem Maas was thinking very hard : Richard schreef: Jochem Maas wrote : Richard schreef: Hi, After installing PHP on a Windows machine I see a very small PHP-executable and several extension dll's that can be loaded. When I buil

Re: [PHP] Anyone else doing PHP on Symbian?

2008-02-06 Thread Peter Ford
Paul Scott wrote: > On Tue, 2008-02-05 at 13:29 -0500, Daniel Brown wrote: >> Still debating what >> device I'll get next, but I want to use it as a mobile server myself. >> I had been working on a bound-for-trash PDA doing the same a while >> back, but with what we'll refer to as "limited result

[PHP] Re: How could i do this on CURL?

2008-02-06 Thread Louie Miranda
BTW, I just have read your script. I'll try it tomorrow. Looks like it will work for me. Louie On Feb 6, 2008 3:33 PM, Louie Miranda <[EMAIL PROTECTED]> wrote: > It ain't easy. I have also read the FAQ of cURL > http://curl.haxx.se/docs/faq.html#Can_I_use_curl_to_send_a_POST_PU > > 3.18 Can I u

Re: [PHP] Doctrine vs. Propel

2008-02-06 Thread AmirBehzad Eslami
Thank you all for your kind replies.