Re: [PHP] PHP Functions as XML or DB

2007-01-21 Thread Roman Neuhauser
# [EMAIL PROTECTED] / 2007-01-21 17:04:43 +0200: > I'm looking to create a Table that holds all of the PHP Functions, their > description and syntax. > > It's all in the manual and I'm trying to extract it from there but I find it > hard since the HTML template is not the same for all the functio

[PHP] Re: socket_write buffer problem

2007-01-21 Thread Richard Luckhurst
Hi List I have been banging my head against a wall all day trying to work this problem out. To recap my earlier post, I have a simple socket listener that handles the incoming string fine with socket_read and then it fires off the application as it should. When it returns the data to the socket on

Re: [PHP] preg_match problem

2007-01-21 Thread Martin Alterisio
2007/1/20, Arpad Ray <[EMAIL PROTECTED]>: Martin Alterisio wrote: > Double slash to prevent PHP interpreting the slashes. Also using single > quotes would be a good idea: > > if (preg_match('/[\\w\\x2F]{6,}/',$a)) > Just switching to single quotes would do the trick - you don't need to escape a

Re[2]: [PHP] socket_write buffer problem

2007-01-21 Thread Richard Luckhurst
Hi Jochem, JM> I would start by reading the relevant page: JM> http://php.net/socket_write JM> after reading that your first attempt will probably be this JM> (you may have complication is your using a multibyte charset): As I had said in my earlier post I had already read the php manu

Re[2]: [PHP] socket_write buffer problem

2007-01-21 Thread Richard Luckhurst
Hi Jochem, JM> I would start by reading the relevant page: JM> http://php.net/socket_write JM> after reading that your first attempt will probably be this JM> (you may have complication is your using a multibyte charset): As I had said in my earlier post I had already read the php manu

RE: [PHP] most powerful php editor

2007-01-21 Thread Arno Kuhl
-Original Message- From: John Meyer [mailto:[EMAIL PROTECTED] Sent: 22 January 2007 03:15 To: php-general@lists.php.net Subject: Re: [PHP] most powerful php editor Dear god Arnot, would you like to stand back for a moment and consider how retarded those statements are, or would you like

Re: [PHP] most powerful php editor

2007-01-21 Thread Larry Garfield
I was originally using PHPEclipse. When I rebuild my computer a few weeks ago, I decided to give the PHP-IDE package a try (given that Zend is planning to replace their own first-class IDE with the results of the PHP-IDE work). In both of them, I found the same major problems: - Code assistan

Re: [PHP] most powerful php editor

2007-01-21 Thread John Meyer
Dear god Arnot, would you like to stand back for a moment and consider how retarded those statements are, or would you like for me to do it for you? Whether you use a powerful IDE or not, you still have to use the same compiler underneath. In PHP, that "compiler" is the web server. Unless you b

RE: [PHP] most powerful php editor

2007-01-21 Thread Robert Cummings
On Mon, 2007-01-22 at 02:13 +0200, Arno Kuhl wrote: > -Original Message- > From: Robert Cummings [mailto:[EMAIL PROTECTED] > Sent: 22 January 2007 01:32 > To: [EMAIL PROTECTED] > Cc: php-general@lists.php.net > Subject: RE: [PHP] most powerful php editor > > > On Mon, 2007-01-22 at 01:22

Re: [PHP] socket_write buffer problem

2007-01-21 Thread Jochem Maas
Richard Luckhurst wrote: > Hi List > > I am working with an application that has to run as a socket listener. It > receives a string from another application on a certain socket and then does > some processing and then passes the result back to the client application via > the socket. Here is the

[PHP] socket_write buffer problem

2007-01-21 Thread Richard Luckhurst
Hi List I am working with an application that has to run as a socket listener. It receives a string from another application on a certain socket and then does some processing and then passes the result back to the client application via the socket. Here is the listener code I am using while(true)

RE: [PHP] most powerful php editor

2007-01-21 Thread Arno Kuhl
-Original Message- From: Robert Cummings [mailto:[EMAIL PROTECTED] Sent: 22 January 2007 01:32 To: [EMAIL PROTECTED] Cc: php-general@lists.php.net Subject: RE: [PHP] most powerful php editor On Mon, 2007-01-22 at 01:22 +0200, Arno Kuhl wrote: > > For me the analogy goes something like thi

RE: [PHP] most powerful php editor

2007-01-21 Thread Robert Cummings
On Mon, 2007-01-22 at 01:22 +0200, Arno Kuhl wrote: > > For me the analogy goes something like this: if you type the occasional > letter or note then Wordpad is perfectly adequate, but if your livelihood is > churning out professional well-formatted heavy-weight documents then it pays > you to inve

RE: [PHP] most powerful php editor

2007-01-21 Thread Arno Kuhl
-Original Message- From: Vinicius C Silva [mailto:[EMAIL PROTECTED] Sent: 21 January 2007 02:54 To: php-general@lists.php.net Subject: [PHP] most powerful php editor hi everyone! i'd like to ask something maybe commonly asked here. what is the most powerful php editor? =

Re: [PHP] most powerful php editor

2007-01-21 Thread tedd
At 10:05 AM -0400 1/21/07, Miles Thompson wrote: Which then leads me towards ZEND, although I've never used it. I purchased the Pro version (ZendStudioClient) but considering that I couldn't get it to work with my host in real time, I went back to GoLive for the Mac. That way my develop, uplo

Re: [PHP] problems with sessions variables and virtual domains in apache

2007-01-21 Thread Chris
esteban wrote: The don't want to pass the session variable across domains. The problem is in the main domain, i don't know what happens, the session variable lost the value or is distroyed. Track down where is happens with lots of 'error_log' and 'print_r' calls. Work out where it breaks then

Re: [PHP] PHP Functions as XML or DB

2007-01-21 Thread Sergiu Voicu
Copy&Paste man ;) (Just kidding) Now, seriously, I myself would write a parser for this, fetch some raw data from the pages, and do further processing on those. I didn't checked yet, but I am almost sure that there may be only a few variations of the manual's used html template, and I don't th

Re: [PHP] Script to generate a site thumbnails

2007-01-21 Thread Nick Stinemates
An example: Hope it helps! -- == Nick Stinemates ([EMAIL PROTECTED]) http://nick.stinemates.org AIM: Nick Stinemates MSN: [EMAIL PROTECTED] Yahoo: [EMAIL PROTECTED] == -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.n

Re: [PHP] most powerful php editor

2007-01-21 Thread Curt Zirzow
On 1/20/07, Vinicius C Silva <[EMAIL PROTECTED]> wrote: hi everyone! i'd like to ask something maybe commonly asked here. what is the most powerful php editor? I think Stut hinted a lot in his PS he provided, if you believe this to be a common question, it would be best to research this and

Re[2]: [PHP] proxy

2007-01-21 Thread wwww
Thank you Roman and Jochem, I'll try both. Best regards, Ed Sunday, January 21, 2007, 6:27:44 PM, you wrote: > # [EMAIL PROTECTED] / 2007-01-21 17:29:56 +0300: >> I am trying to create a link checker that would look for broken URLs >> with help of the following code" >> >> $handle = @fopen("ht

RE: [PHP] most powerful php editor

2007-01-21 Thread Peter Lauri
I don't know what version you are using or what plugin you are using, there are more then one plugin :) To be clear: I am using Eclipse 3.1 with PHPEclipse 1.1.8 and that is working very well. It does auto complete classes and functions written by my self etc. I tried some other PHP plugin for Ec

Re: [PHP] most powerful php editor

2007-01-21 Thread Larry Garfield
That's interesting. I've been trying to use Eclipse, and its code-assistance for PHP is some of the worst I've ever used. I can't type "array" without it trying to complete that to an Array class from SPL, yet it never auto-completes to any function or class I wrote myself. Nor does it seem t

Re: [PHP] First Character In A String

2007-01-21 Thread Robert Cummings
On Sun, 2007-01-21 at 16:49 +0100, Jochem Maas wrote: > now we can get on with having a flame war as to the 'best' way to style > your code, because obviously this is better ;-) ... Game on! :B > echo trim(substr((string)$forename, 0, 1).' '.$surname); Surely any fool can see that yours is infer

Re: [PHP] most powerful php editor

2007-01-21 Thread Satyam
Since a couple of IDEs have also been mentioned, I would like to add to the list of sugestions phpEdit (http://waterproof.fr/) for Windows only. It does all that Eclipse with all the plugins for PHP does, plus some, but it is much slimmer and faster. I admit that since what I have already ins

Re: [PHP] First Character In A String

2007-01-21 Thread Jochem Maas
Robert Cummings wrote: > On Sun, 2007-01-21 at 16:27 +0100, Jochem Maas wrote: >> Robert Cummings wrote: >>> On Sun, 2007-01-21 at 16:02 +0100, Jochem Maas wrote: >>> $initial = (is_string($forename) && strlen($forename) > 0) ? $forename[0] : '' ; echo

Re: [PHP] First Character In A String

2007-01-21 Thread Robert Cummings
On Sun, 2007-01-21 at 16:27 +0100, Jochem Maas wrote: > Robert Cummings wrote: > > On Sun, 2007-01-21 at 16:02 +0100, Jochem Maas wrote: > >> >> > >> $initial = (is_string($forename) && strlen($forename) > 0) > >> ? $forename[0] > >> : '' > >> ; > >> > >> echo trim($initial.' '.$surnam

Re: [PHP] First Character In A String

2007-01-21 Thread Jochem Maas
Robert Cummings wrote: > On Sun, 2007-01-21 at 16:02 +0100, Jochem Maas wrote: >> > >> $initial = (is_string($forename) && strlen($forename) > 0) >> ? $forename[0] >> : '' >> ; >> >> echo trim($initial.' '.$surname); >> >> ?> > > That sure is verbose Jochem... agreed, it was don

Re: [PHP] First Character In A String

2007-01-21 Thread Robert Cummings
On Sun, 2007-01-21 at 16:02 +0100, Jochem Maas wrote: > > > $initial = (is_string($forename) && strlen($forename) > 0) >? $forename[0] >: '' >; > > echo trim($initial.' '.$surname); > > ?> That sure is verbose Jochem... Cheers, Rob. -- .--

Re: [PHP] proxy

2007-01-21 Thread Jochem Maas
[EMAIL PROTECTED] wrote: > Hi list, > > I am trying to create a link checker that would look for broken URLs > with help of the following code" > > $handle = @fopen("http://www.circle.am";, "r"); > if ($handle): > print "OK"; > else: > print "Error"; > endif; > > The problem is that I want to ch

[PHP] PHP Functions as XML or DB

2007-01-21 Thread WeberSites LTD
Hi I'm looking to create a Table that holds all of the PHP Functions, their description and syntax. It's all in the manual and I'm trying to extract it from there but I find it hard since the HTML template is not the same for all the functions. I may be going about this the wrong way... is th

Re: [PHP] First Character In A String

2007-01-21 Thread Jochem Maas
Christopher Deeley wrote: > Can anyone tell me if there is a function to return the first letter in a > string, such as: > > $surname="SMITH"; > $forename="ALAN"; > > Is there a function which I can use to make $forename "A", so I can display > it as A SMITH? another alternative to the other ans

Re: [PHP] most powerful php editor

2007-01-21 Thread tg-php
God I love this list.. great answers everyone! (serious and non-serious :) In addition to the editors listed, here's a few more to consider: Crimson Editor - my personal favorite when I don't need code completion. Code highlights for many different types of code (including my beloved LUA files u

Re: [PHP] proxy

2007-01-21 Thread Roman Neuhauser
# [EMAIL PROTECTED] / 2007-01-21 17:29:56 +0300: > I am trying to create a link checker that would look for broken URLs > with help of the following code" > > $handle = @fopen("http://www.circle.am";, "r"); > if ($handle): > print "OK"; > else: > print "Error"; > endif; > > The problem is that I

Re: [PHP] most powerful php editor

2007-01-21 Thread Miles Thompson
At 08:21 AM 1/21/2007, Robert Cummings wrote: On Sat, 2007-01-20 at 22:54 -0200, Vinicius C Silva wrote: > hi everyone! > > i'd like to ask something maybe commonly asked here. what is the most > powerful php editor? EditPlus or UltraEdit - particularly like the former because I can edit file

Re: [PHP] First Character In A String

2007-01-21 Thread Nicholas Yim
Hello Christopher Deeley, Best regards, === At 2007-01-21, 21:49:06 you wrote: === >Can anyone tell me if there is a function to return the first letter in a >string, such as: > >$surname="SMITH"; >$forename="ALAN"; > >Is there a function which I can use to make $forename "A", so I

RE: [PHP] First Character In A String

2007-01-21 Thread Peter Lauri
$firstchar = substr($string, 0, 1); Read www.php.net/substr Best regards, Peter Lauri www.dwsasia.com - company web site www.lauri.se - personal web site www.carbonfree.org.uk - become Carbon Free -Original Message- From: Christopher Deeley [mailto:[EMAIL PROTECTED] Sent: Sunday, Janu

[PHP] First Character In A String

2007-01-21 Thread Christopher Deeley
Can anyone tell me if there is a function to return the first letter in a string, such as: $surname="SMITH"; $forename="ALAN"; Is there a function which I can use to make $forename "A", so I can display it as A SMITH? Thank You In Advance

[PHP] proxy

2007-01-21 Thread wwww
Hi list, I am trying to create a link checker that would look for broken URLs with help of the following code" $handle = @fopen("http://www.circle.am";, "r"); if ($handle): print "OK"; else: print "Error"; endif; The problem is that I want to check if the links are accessible under certain proxy

Re: [PHP] Forced File Downloads

2007-01-21 Thread Jochem Maas
Don wrote: > I've been having my forced downloads sometimes finish prematurely using > readfile(). I'm downloading a Windows .exe file. > > I've read several posts that have suggested the substitution of a fread/feof > loop to write out the download in smaller chunks. I tried using a function > (r

Re: [PHP] Request for...

2007-01-21 Thread Robert Cummings
On Sat, 2007-01-20 at 16:09 +, Stut wrote: > > 3) This is not a mailing list for web developers, it's a mailing list > for PHP developers. The fact that most PHP development happens in a web > context does not make it exclusively for web development. Not that this was directed at me, but I a

Re: [PHP] Request for...

2007-01-21 Thread Robert Cummings
On Sat, 2007-01-20 at 14:42 +, Wikus Moller wrote: > Hi. > > Since this is a mailing list for web developers, Nope, you Sir are wrong. This is a mailing list for PHP web developers. Note the PHP part, it's quite important. HAND Cheers, Rob. -- .-

Re: [PHP] most powerful php editor

2007-01-21 Thread Robert Cummings
On Sat, 2007-01-20 at 22:54 -0200, Vinicius C Silva wrote: > hi everyone! > > i'd like to ask something maybe commonly asked here. what is the most > powerful php editor? Everyone knows, everyone probably being me, that joe is the best: http://sourceforge.net/projects/joe-editor/ Cheers, Ro

Re: [PHP] Re: most powerful php editor

2007-01-21 Thread Børge Holen
On Sunday 21 January 2007 12:40, Jochem Maas wrote: > Gregory Beaver wrote: > > Vinicius C Silva wrote: > >> hi everyone! > >> > >> i'd like to ask something maybe commonly asked here. what is the most > >> powerful php editor? > > > > I am > > that's it, consider yourself enrolled in a Celebrity D

Re: [PHP] Re: most powerful php editor

2007-01-21 Thread Jochem Maas
Gregory Beaver wrote: > Vinicius C Silva wrote: >> hi everyone! >> >> i'd like to ask something maybe commonly asked here. what is the most >> powerful php editor? > > I am that's it, consider yourself enrolled in a Celebrity Death Match against mr Lerdorf :-P > > Yours, > Greg > -- PHP Gen

Re: [PHP] I lied, another question / problem

2007-01-21 Thread Roman Neuhauser
# [EMAIL PROTECTED] / 2007-01-21 10:48:30 +: > # [EMAIL PROTECTED] / 2007-01-21 00:11:13 +0100: > > Roman Neuhauser wrote: > > > # [EMAIL PROTECTED] / 2007-01-17 16:59:26 +0100: > > >> wouldn't it be fair to assume (safety through paranoia) that > > >> ctype_alnum() would suffer the same proble

RE: [PHP] most powerful php editor

2007-01-21 Thread Peter Lauri
I would put my vote on Eclipse. It has great support for cvs and also for general coding "autofilling" etc. The downside is that it is resource demanding... Best regards, Peter Lauri www.dwsasia.com - company web site www.lauri.se - personal web site www.carbonfree.org.uk - become Carbon Free -

Re: [PHP] one click - two actions?

2007-01-21 Thread Paul Novitski
At 1/21/2007 01:54 AM, pub wrote: I am working on my query as you suggested. I have a joint query that seems to work except that I get the name of the company repeated for each job. Could you please help me figure out how to make it echo the company once and list all the jobs next to it on the sa

RE: [PHP] wierd slash

2007-01-21 Thread Don
magic_quotes_gpc On On magic_quotes_runtime Off Off magic_quotes_sybase Off Off but I know if I can change that is there some other way to fix this problem? Don # [EMAIL PROTECTED] / 2007-01-20 21:50:48 -0700: > I have a line of code that validates form info for some POST vars, but not > ot

Re: [PHP] I lied, another question / problem

2007-01-21 Thread Roman Neuhauser
# [EMAIL PROTECTED] / 2007-01-21 00:11:13 +0100: > Roman Neuhauser wrote: > > # [EMAIL PROTECTED] / 2007-01-17 16:59:26 +0100: > >> wouldn't it be fair to assume (safety through paranoia) that > >> ctype_alnum() would suffer the same problem? (given the manual's > >> indication that ctype_alnum() a

Re: [PHP] one click - two actions?

2007-01-21 Thread pub
On Nov 13, 2006, at 9:44 PM, Paul Novitski wrote: Paul, Thank you again for your amazingly generous email. I am working on my query as you suggested. I have a joint query that seems to work except that I get the name of the company repeated for each job. Could you please help me figure out

Re: [PHP] Php / MySQL DESC tablename

2007-01-21 Thread Roman Neuhauser
# [EMAIL PROTECTED] / 2007-01-21 03:05:49 -0500: > I am trying to do a DESC table_name using PHP so it looks like it would it > you did it from the command line. > > i.e. > > | Field | Type | Null | Key | Default | Extra | > +---+--+--+-+-

Re: [PHP] Forced File Downloads

2007-01-21 Thread Roman Neuhauser
# [EMAIL PROTECTED] / 2007-01-20 22:51:41 -0800: > I've been having my forced downloads sometimes finish prematurely using > readfile(). I'm downloading a Windows .exe file. > > I've read several posts that have suggested the substitution of a fread/feof > loop to write out the download in smaller

Re: [PHP] wierd slash

2007-01-21 Thread Roman Neuhauser
# [EMAIL PROTECTED] / 2007-01-20 21:50:48 -0700: > I have a line of code that validates form info for some POST vars, but not > others. > > if (!ereg("^[A-Za-z' -]{1,50}$",$_POST[$field]) ) > > when I put O'Toole in the form to test, my script kicks the page back (I > thought this entry w

Re: [PHP] PHP Warning: session_destroy

2007-01-21 Thread Roman Neuhauser
# [EMAIL PROTECTED] / 2007-01-20 17:14:34 -0500: > To stop bots from accessing secured pages, I've added the following > code to a banner page that is called by every page. Furthermore, each > page starts with and includes the banner > page: > > 'top1.php' [banner page] > >if((eregi("((Y

Re: [PHP] non-blocking request to a url (via curl or file_get_contents or whatever)...

2007-01-21 Thread Roman Neuhauser
# [EMAIL PROTECTED] / 2007-01-20 22:43:58 +0100: > that would mean the 'fastest' I could push out the http request is > probably by doing: > > if ($sock = fsockopen($proto.$url[1], $port, $errno, $errstr, 4)) { > fwrite($sock, "GET {$url[2]} HTTP/1.0\r\n"); > fwrite($sock, "Host: {$url

[PHP] Php / MySQL DESC tablename

2007-01-21 Thread Beauford
Hi, First off thanks to everyone for the previous help. I managed to get it sorted out and used several of the suggestions made. I am trying to do a DESC table_name using PHP so it looks like it would it you did it from the command line. i.e. | Field | Type | Null | Key | Default |