RE: [PHP] Line Number function?

2003-02-01 Thread Steven Balthazor
I think what you are looking for is: 
__LINE__

See: http://www.php.net/manual/en/language.constants.predefined.php

Cheers,
Steven Balthazor

-Original Message-
From: Benjamin Smith [mailto:[EMAIL PROTECTED]] 
Sent: Saturday, February 01, 2003 8:59 PM
To: [EMAIL PROTECTED]
Subject: [PHP] Line Number function?


PHP keeps track of what line# is being executed, so that when there's an 
error (say in pg_exec() ) it reports what line the error occured on. 

This appears to happen even during runtime (not just during compilation). 

For example: 
-

--

This would result in a pg_exec error ~ line 7. PHP tracks this, even though 
the error is during runtime, not during the precompile. 

Is there a function where I can access this information? Something like 
"get_line();" or something? 

This would be REALLY HANDY for debugging large projects... 

-Ben 

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


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




RE: [PHP] hopefully easy

2003-01-29 Thread Steven Balthazor
I have some code out of my own library which kind of does this; you probably
need to play with it to do exactly what you want:

 preg_match_all("|<{$tag}[\s]*?>(.*?)|si",$text,$matches);
 print_r($matches);

Where:
$tag is the tag you are looking for
$text is the text string you are searching through
$matches are the results of the search

Cheers,
Steven Balthazor


-Original Message-
From: Didier McGillis [mailto:[EMAIL PROTECTED]] 
Sent: Wednesday, January 29, 2003 6:24 AM
To: [EMAIL PROTECTED]
Subject: [PHP] hopefully easy


I need to parse an HTML file for certain information.  Like the text between

.

So if the html was ...



The page




Lots of code .




I would just like the "The page" text.

_
Add photos to your e-mail with MSN 8. Get 2 months FREE*.  
http://join.msn.com/?page=features/featuredemail


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


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




RE: [PHP] MySQL Functions Setup

2003-01-23 Thread Steven Balthazor
I am guessing that you installed the php from a redhat rpm; if so then you
just need to install the php-mysql rpm.  You can download from:
http://rpmfind.net//linux/RPM/redhat/8.0/i386/php-mysql-4.2.2-8.0.5.i386.htm
l (or any of a number of other places).  

Cheers,
Steven Balthazor

-Original Message-
From: Michael A Smith [mailto:[EMAIL PROTECTED]] 
Sent: Thursday, January 23, 2003 6:33 PM
To: [EMAIL PROTECTED]
Subject: [PHP] MySQL Functions Setup


Hello All,

I'm trying to setup a RedHat Psyche (8.0) server. So far, all well. However,
I just ran into a problem with MySQL. PHP doesn't have the MySQL functions
in it. Is there another way to install those without having to re-compile
PHP?

Thanks for any and all help,

-Michael Smith

Some peoples minds are like cement; all mixed up and permanently set.




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


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




RE: [PHP] mail client?

2003-01-14 Thread Steven Balthazor
I use and recommend Squirrelmail.
http://www.squirrelmail.org/

Steven Balthazor
-Original Message-
From: Henning Olsen [mailto:[EMAIL PROTECTED]] 
Sent: Tuesday, January 14, 2003 7:03 AM
To: [EMAIL PROTECTED]
Subject: [PHP] mail client?


Does anyone know any reliable php/mysql mail-clients with support for pop3?

Yours

Henning


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


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




RE: [PHP] php editor

2003-01-12 Thread Steven Balthazor
I am a fan of eclipse (www.eclipse.org) I use the java editor for editing
php files (its close enough for my needs); for those who want php specific
functionality then this plugin looks quite nice:
http://phpeclipse.sourceforge.net/ .  The CVS functionality included in
eclipse is what makes the package tremendously valuable to me (it keeps
track of local changes as well as provides for looking back at previous cvs
revisions and performing diffs against your current code, all within the
IDE).  

HTH,
Steven Balthazor

-Original Message-
From: Hannes Smit [mailto:[EMAIL PROTECTED]] 
Sent: Sunday, January 12, 2003 6:51 AM
To: [EMAIL PROTECTED]
Subject: [PHP] php editor


is there a php editor which supports the tree-view for the code itself. I
believe tools like visual basic uses this option. You can easily collapse
pieces of code, for example a function or a class. Is there any place where
i can download a tool like this?

And if there's not, what is your favourite editor? i use ultraedit /
dreamweaver mx..




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


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