Re: [PHP] Can PHP do this? -- w/o using event handler

2008-03-03 Thread Brice
On Mon, Mar 3, 2008 at 8:57 AM, Louie Miranda [EMAIL PROTECTED] wrote: Could PHP do.. 1. Connect and send a parameter to a remote host 2. Wait for the host to reply -- not using event handler 3. Send XML data to the host Probably with a socket : http://php.net/manual/en/ref.sockets.php

Re: [PHP] Making sure an include file works

2008-03-03 Thread Aschwin Wesselius
Aschwin Wesselius wrote: Chris wrote: have you considered installing a local copy of php (and suitable webserver) so you can test it there? I'd also suggest using a revision control system (subversion or git) and have pre-commit hooks to check the syntax. It's a bit of work to set up

Re: [PHP] Anyone jump from Studio 5.5.x - Zend Eclipse?

2008-03-03 Thread Nuno Mendes
Hi, I switched to phpEd some time ago and no I'm happy with the move. Nuno Mendes Ray Hauge wrote: div class=moz-text-flowed style=font-family: -moz-fixedSteve Finkelstein wrote: Hi all, I've tried googling around to find some blogs with decent information on whether Zend Eclipse is mature

[PHP] Re: Pear

2008-03-03 Thread David Robley
[EMAIL PROTECTED] wrote: Dear PHP List Experts, I'm trying to use Pear at my host, Leadhoster. This line: require_once('DB.php'); Gets this error: Warning: main(DB.php): failed to open stream: No such file or directory in /home/www/everoriginal.onlinewebshop.net/connect04.php on

Re: [PHP] Weird Zend IDE Issue

2008-03-03 Thread Jochem Maas
Steve Finkelstein schreef: Hi all, I know this isn't a forum for Zend IDE, but since there's probably a decent population here using it, I figured I'd ask away. I'm using 5.5.1 Professional on Mac OSX 10.5.2. My issue here is that all left brackets, (eg: [ ) are not showing up in the code

Re: [PHP] Get country from Phone number

2008-03-03 Thread Dani CastaƱos
As a little project, I took the link provided by the other Rob and make this little search tool. It only looks at the beginning numbers. It does no number validation. I don't validate the length of the number. ie: I would have to know the min/max lenth of each phone number for that given

Re: [PHP] Weird Zend IDE Issue

2008-03-03 Thread Steve Finkelstein
I've tried both restarting the IDE and changing font type + size in my preferences however this does not seem to render any effect on the code editor. Mind if I ask where you are changing the font so that we are on the same page? Thanks, /sf On 3/3/08, Jochem Maas [EMAIL PROTECTED] wrote:

RES: [PHP] Anyone jump from Studio 5.5.x - Zend Eclipse?

2008-03-03 Thread Thiago Pojda
De: Bojan Tesanovic [mailto:[EMAIL PROTECTED] snip I agree with Ray Eclipse has more extensibility than Z. Studio , but the question is do you need it, I preffer doing PHP coding in Studio, I learned a lot of shortcuts and doing coding is so much faster and less frustrating than doing it in

RE: [PHP] Anyone jump from Studio 5.5.x - Zend Eclipse?

2008-03-03 Thread Edward Kay
... for me one of the most useful thing in Zend is (CTRL+D X,C or Apple+D , X, C) which duplicates copies and paste lines in Studio , switching to Eclipse I just miss those shortcuts so I am always finding myself going back to Z. Studio To duplicate the current line in Eclipse, just use

RE: [PHP] Can PHP do this? -- w/o using event handler

2008-03-03 Thread Bastien Koert
sure, user curl (www.php.net/curl) bastien Date: Mon, 3 Mar 2008 15:57:19 +0800 From: [EMAIL PROTECTED] To: php-general@lists.php.net Subject: [PHP] Can PHP do this? -- w/o using event handler Could PHP do.. 1. Connect and send a parameter to a remote host 2. Wait for the host to

[PHP] Re: Pear = Host?

2008-03-03 Thread movies
yikes, php4 !? if they dont host php5 that could be reason enough to switch, *ducks*. My host would charge $60 for a year, which includes PHP and MySQL. I am VERY open to suggestions. It would be handy to be at the same place as one or more of you guys. That would sure eliminate one layer of

Re: [PHP] Re: Pear = Host?

2008-03-03 Thread Daniel Brown
On Mon, Mar 3, 2008 at 10:18 AM, [EMAIL PROTECTED] wrote: yikes, php4 !? if they dont host php5 that could be reason enough to switch, *ducks*. My host would charge $60 for a year, which includes PHP and MySQL. I am VERY open to suggestions. It would be handy to be at the same place as

Re: [PHP] Weird Zend IDE Issue

2008-03-03 Thread Jochem Maas
Steve Finkelstein schreef: I've tried both restarting the IDE and changing font type + size in my preferences however this does not seem to render any effect on the code editor. Mind if I ask where you are changing the font so that we are on the same page? Tools Preferences Colors Fonts ::

Re: [PHP] php with modified version of sqlite

2008-03-03 Thread Richard Lynch
On Fri, February 29, 2008 2:58 pm, Jean-Christophe Roux wrote: Hello, I am running php 5.1.6 on a Centos 5.0 box (installed with yum). My php app uses pdo_sqlite. The issue is that I am going to have to use a special version of sqlite with some custom functions. How do I control which

Re: [PHP] Weird Results from Curl

2008-03-03 Thread Richard Lynch
On Fri, February 29, 2008 3:20 pm, Wolf wrote: I'm curling a site to process some data, all well and good but the results are baffling... $result = curl_exec($ch); curl_close($ch); echo HR.gettype ($result); Of course that's not all the code, but the results contain: - 0 11 0 1

Re: [PHP] Can PHP do this? -- w/o using event handler

2008-03-03 Thread Richard Lynch
On Mon, March 3, 2008 1:57 am, Louie Miranda wrote: Could PHP do.. 1. Connect and send a parameter to a remote host 2. Wait for the host to reply -- not using event handler 3. Send XML data to the host ?php $xml = file_get_contents(/path/to/file.xml); $s = fsockopen(remote host here); $reply

Re: [PHP] Weird Zend IDE Issue

2008-03-03 Thread Richard Lynch
On Sun, March 2, 2008 11:07 pm, Steve Finkelstein wrote: Hi all, I know this isn't a forum for Zend IDE, but since there's probably a decent population here using it, I figured I'd ask away. I'm using 5.5.1 Professional on Mac OSX 10.5.2. My issue here is that all left brackets, (eg: [ )

Re: [PHP] Weird Zend IDE Issue

2008-03-03 Thread Jochem Maas
Richard Lynch schreef: On Sun, March 2, 2008 11:07 pm, Steve Finkelstein wrote: Hi all, I know this isn't a forum for Zend IDE, but since there's probably a decent population here using it, I figured I'd ask away. I'm using 5.5.1 Professional on Mac OSX 10.5.2. My issue here is that all left

Re: [PHP] Weird Zend IDE Issue

2008-03-03 Thread Samuel Vogel
Richard Lynch schrieb: On Sun, March 2, 2008 11:07 pm, Steve Finkelstein wrote: Hi all, I know this isn't a forum for Zend IDE, but since there's probably a decent population here using it, I figured I'd ask away. I'm using 5.5.1 Professional on Mac OSX 10.5.2. My issue here is that all

Re: [PHP] Making sure an include file works

2008-03-03 Thread Richard Lynch
On Thu, February 28, 2008 10:25 pm, Robert Cummings wrote: Doh! Time for me to start trawling the PHP site again to acquaint myself with all the new functions :) I probably would have found it though if searching the site's functions for syntax didn't take me directly to the documentation

[PHP] PHP performance

2008-03-03 Thread Thiago Pojda
Guys, I've been asked to build a performance report for a PHP app. I can't profile it using automated tools as I don't have full access to the server, only to the application itself. It's a PHP4 Object-Oriented app, which uses ADODB as abstraction layer with a Oracle 8i databse. The system

Re: [PHP] Weird Zend IDE Issue

2008-03-03 Thread Steve Finkelstein
Samy is correct. I'm able to replicate this on 3 different monitors. Also, as far as changing the Editor Font and Size in the IDE -- I need to figure out what's setting this to a read-only property. I can't change the Editor Font or size at this point in time. /sf On 3/3/08, Samuel Vogel [EMAIL

Re: [PHP] PHP performance

2008-03-03 Thread Eric Butera
On Mon, Mar 3, 2008 at 12:09 PM, Thiago Pojda [EMAIL PROTECTED] wrote: Guys, I've been asked to build a performance report for a PHP app. I can't profile it using automated tools as I don't have full access to the server, only to the application itself. It's a PHP4 Object-Oriented app,

RES: [PHP] PHP performance

2008-03-03 Thread Thiago Pojda
-Mensagem original- De: Eric Butera [mailto:[EMAIL PROTECTED] snip On Mon, Mar 3, 2008 at 12:09 PM, Thiago Pojda [EMAIL PROTECTED] wrote: Guys, I've been asked to build a performance report for a PHP app. I can't profile it using automated tools as I don't have full access to the

Re: [PHP] Weird Zend IDE Issue

2008-03-03 Thread Sancar Saran
On Monday 03 March 2008 07:07:18 Steve Finkelstein wrote: Hi all, I know this isn't a forum for Zend IDE, but since there's probably a decent population here using it, I figured I'd ask away. I'm using 5.5.1 Professional on Mac OSX 10.5.2. My issue here is that all left brackets, (eg: [ )

Re: [PHP] Weird Zend IDE Issue

2008-03-03 Thread Steve Finkelstein
It required creating my own 'Custom Profile' which allowed me to manipulate the Font and/or Size. As soon as I modified those, it worked fine. Thanks for the assistance all. Pain in the butt issue! /sf On 3/3/08, Sancar Saran [EMAIL PROTECTED] wrote: On Monday 03 March 2008 07:07:18 Steve

[PHP] [RFC] Replace the flex-based scanner with an re2c [1] based lexer

2008-03-03 Thread Marcus Boerger
Hello everyone, sorry for the crosspost. But recent discussions about: '[RFC] Replace the flex-based scanner with an re2c [1] based lexer' revealed one big issue. During the development of said RFC we dropped --enable-multibyte-support and interaction between engine and ext/mbstring using

[PHP] Making an interactive RGB color picker

2008-03-03 Thread Keikonium
This may not be exactly what you think, but I didn't know how else to word the title. I basically need to make a script that will go through every possible color combination and print them to look just like (or similar) to the windows color picker. I need it in the format X-Y-Z. For example:

Re: [PHP] PHP performance

2008-03-03 Thread Aschwin Wesselius
Thiago Pojda wrote: Guys, I've been asked to build a performance report for a PHP app. I can't profile it using automated tools as I don't have full access to the server, only to the application itself. It's a PHP4 Object-Oriented app, which uses ADODB as abstraction layer with a Oracle 8i

[PHP] Re: Making an interactive RGB color picker

2008-03-03 Thread Shawn McKenzie
Keikonium wrote: This may not be exactly what you think, but I didn't know how else to word the title. I basically need to make a script that will go through every possible color combination and print them to look just like (or similar) to the windows color picker. I need it in the format

[PHP] Re: Making an interactive RGB color picker

2008-03-03 Thread Shawn McKenzie
Shawn McKenzie wrote: Keikonium wrote: This may not be exactly what you think, but I didn't know how else to word the title. I basically need to make a script that will go through every possible color combination and print them to look just like (or similar) to the windows color picker. I

Re: [PHP] Making an interactive RGB color picker

2008-03-03 Thread Daniel Brown
On Mon, Mar 3, 2008 at 3:13 PM, Keikonium [EMAIL PROTECTED] wrote: This may not be exactly what you think, but I didn't know how else to word the title. I basically need to make a script that will go through every possible color combination and print them to look just like (or similar) to

[PHP] Good PHP/MySql starter book?

2008-03-03 Thread JJB
Hello, Can anyone recommend a good book for getting started with PHP/MySql from the perspective of writing some basic intranet applications? - Joel -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Good PHP/MySql starter book?

2008-03-03 Thread Wolf
JJB [EMAIL PROTECTED] wrote: Hello, Can anyone recommend a good book for getting started with PHP/MySql from the perspective of writing some basic intranet applications? - Joel I personally found the Sam's Teach yourself Apache, PHP, MySQL in 24 hours as a good book to learn

Re: [PHP] PHP performance

2008-03-03 Thread Chris
Just FYI, using ADODB will slow down the performance of your app. Any function calls cost against you and it all adds up. If you remove it, then you remove functionality - so before you go and rip it out, check whether it's the bottleneck using xdebug. I use an abstraction layer all the

[PHP] Fatal error: Call to a member function web_order_change() on a non-object

2008-03-03 Thread Ben Edwards
Our server has just been upgraded to PHP 5.2.5 and suddenly I am getting the following error: Fatal error: Call to a member function web_order_change() on a non-object in /var/www/vhosts/cultureshop.org/httpdocs/cart.php on line 32 The code is: $SESSION[cart]-web_order_change( true ); The

Re: [PHP] Fatal error: Call to a member function web_order_change() on a non-object

2008-03-03 Thread Chris
Ben Edwards wrote: Our server has just been upgraded to PHP 5.2.5 and suddenly I am getting the following error: Fatal error: Call to a member function web_order_change() on a non-object in /var/www/vhosts/cultureshop.org/httpdocs/cart.php on line 32 The code is:

Re: [PHP] Fatal error: Call to a member function web_order_change() on a non-object

2008-03-03 Thread Ben Edwards
On 03/03/2008, Chris [EMAIL PROTECTED] wrote: Ben Edwards wrote: Our server has just been upgraded to PHP 5.2.5 and suddenly I am getting the following error: Fatal error: Call to a member function web_order_change() on a non-object in

Re: [PHP] Fatal error: Call to a member function web_order_change() on a non-object

2008-03-03 Thread Chris
I don't think it's a change in OO handling, maybe it's a change in the error_reporting level for the new version and you hadn't noticed the problem before. Its a Fatel Error not a warning. Dont see how level off error reporting could be relevant. Fair enough :P What type of variable is

Re: [PHP] Can PHP do this? -- w/o using event handler

2008-03-03 Thread Louie Miranda
Thanks everyone. I think, I will go with the sockets. Louie On Tue, Mar 4, 2008 at 12:36 AM, Richard Lynch [EMAIL PROTECTED] wrote: On Mon, March 3, 2008 1:57 am, Louie Miranda wrote: Could PHP do.. 1. Connect and send a parameter to a remote host 2. Wait for the host to reply -- not

[PHP] imap_setflags_full Seen

2008-03-03 Thread Richard Lynch
I am trying to use this: imap_setflag_full($imap, $uid, Seen, FT_UID) or die(Unable to mark message as \\Seen); to mark a message as read It does not seem to have any effect on the return values in imap_fetch_overview. Nor does it appear as read when I view it with my email client. The

Re: [PHP] Fatal error: Call to a member function web_order_change() on a non-object

2008-03-03 Thread Jim Lucas
Chris wrote: I don't think it's a change in OO handling, maybe it's a change in the error_reporting level for the new version and you hadn't noticed the problem before. Its a Fatel Error not a warning. Dont see how level off error reporting could be relevant. Fair enough :P What type

Re: [PHP] PHP performance

2008-03-03 Thread Eric Butera
On Mon, Mar 3, 2008 at 6:18 PM, Chris [EMAIL PROTECTED] wrote: Just FYI, using ADODB will slow down the performance of your app. Any function calls cost against you and it all adds up. If you remove it, then you remove functionality - so before you go and rip it out, check whether

[PHP] Crop part of existing pdf

2008-03-03 Thread gary liang
Hi: Is there any command line tool, which is able to crop part of pdf file? I ask for command line tool, because it can be used in php code. Any hint? _ It's simple! Sell your car for just $30 at CarPoint.com.au

Re: [PHP] PHP performance

2008-03-03 Thread Chris
These 'benefits' you talk about really only matter if you switch your databases. If this app is written against Oracle and they never plan to change it, then it isn't a bad idea to cut out that fat and just deal with the native interface. Even writing wrapper functions that are very basic

Re: [PHP] PHP performance

2008-03-03 Thread Eric Butera
On Mon, Mar 3, 2008 at 9:21 PM, Chris [EMAIL PROTECTED] wrote: These 'benefits' you talk about really only matter if you switch your databases. If this app is written against Oracle and they never plan to change it, then it isn't a bad idea to cut out that fat and just deal with the

Re: RES: [PHP] PHP performance

2008-03-03 Thread Chris
I have a copy of the files and database, but setting it up is not that simple. This vb.net is licensed and we don't have license for. If I could profile the app I'd be more than happy, but that's not going to happen anytime soon. What does the vb.net stuff do? Is it the frontend (eg for

Re: [PHP] Crop part of existing pdf

2008-03-03 Thread Brady Mitchell
On Mar 3, 2008, at 614PM, gary liang wrote: Is there any command line tool, which is able to crop part of pdf file? I ask for command line tool, because it can be used in php code. Any hint? Depending on what exactly you mean by cropping a pdf, pdftk may be what you need.