[PHP] Re: [PEAR-DEV] Re: [PHP] PHP 5.0.0 Beta 1

2003-06-30 Thread Roman Neuhauser
# [EMAIL PROTECTED] / 2003-06-29 14:53:40 -0400: > On Sun, 2003-06-29 at 14:19, Sterling Hughes wrote: > > > > - Due to issues surrounding the MySQL 4.0 license, the MySQL libraries > > are no longer bundled with PHP. For more information on these > > licensing changes please see the MyS

Re: [PHP] 403 Forbidden

2006-12-29 Thread Roman Neuhauser
# [EMAIL PROTECTED] / 2006-12-29 12:17:12 +0530: > When I try to run any php script on apache I get a error > "Authorization required 403 Forbidden". I don't get this error on > IIS. I am using Windows XP professional please help. I am using > Apache 2.2.1 That's a problem with you

Re: [PHP] Payflow and Php5 on FreeBSD

2006-12-29 Thread Roman Neuhauser
# [EMAIL PROTECTED] / 2006-12-29 07:20:58 -0500: >Thanks for your reply. Some additional information, I have not noticed a > php5-pfpro extensions port, i did see one for php4, but i was informed that > going back to php4 is not an option, programmers here use php5 specific > functions. > Ju

Re: [PHP] Request of php5

2007-01-01 Thread Roman Neuhauser
# [EMAIL PROTECTED] / 2007-01-01 14:40:14 +0800: > Dear All, > > Happy New Year, > > How much mem ( Ram ) does the php5 need ? As much as you make it use. -- How many Vietnam vets does it take to screw in a light bulb? You don't know, man. You don't KNOW. Cause you weren't THERE.

Re: [PHP] Temporary Emails - Your Recommendations - An Appeal to the PHP Community

2007-01-01 Thread Roman Neuhauser
# [EMAIL PROTECTED] / 2007-01-01 05:26:43 -0500: > i realize this isn't the appropriate mailing list and i risk being > black-listed (flame, defamed, ignored, etc.). > > i occasionally use temporary emails when registering for forums or to get > some shareware (we've all done it, don't give me tha

Re: [PHP] Writing Binary

2007-01-01 Thread Roman Neuhauser
# [EMAIL PROTECTED] / 2007-01-01 15:15:07 -0500: > Hello Everyone, >I'm trying to write a PHP script that opens a binary file, reads the > binary in chunks, checks those chunks for a certain binary string, and > then if the string is found, it replaces the string with another binary > string

Re: [PHP] Please help me

2007-01-02 Thread Roman Neuhauser
# [EMAIL PROTECTED] / 2007-01-02 15:35:26 +0530: > my problem got solved in gmail, but now i am not getting mails any where > else... > headers now i am using is: > > $headers = 'MIME-Version: 1.0'."*\n*".'Content-type: > text/html;charset=iso-8859-1'."*\n*".'Content-Transfer-Encoding: > 8bit'."*\

Re: [PHP] Trouble compiling in mysqli under PHP5 -- "mysql_config not found"

2007-01-02 Thread Roman Neuhauser
# [EMAIL PROTECTED] / 2007-01-02 18:23:33 -0700: > I'm trying to build a CLI/CGI binary of PHP5 with MySQLi under Mac OS > X. When I invoke configure, I get the following error message: > > "checking whether to enable embedded MySQLi support... no > mysql_config not found > configure: error: Pleas

Re: [PHP] Trouble compiling in mysqli under PHP5 -- "mysql_config not found"

2007-01-02 Thread Roman Neuhauser
# [EMAIL PROTECTED] / 2007-01-03 02:55:11 +: > # [EMAIL PROTECTED] / 2007-01-02 18:23:33 -0700: > > I'm trying to build a CLI/CGI binary of PHP5 with MySQLi under Mac OS > > X. When I invoke configure, I get the following error message: > > > > "checking whether to enable embedded MySQLi suppo

Re: [PHP] Pushing a file to the browser

2007-01-02 Thread Roman Neuhauser
# [EMAIL PROTECTED] / 2006-09-15 20:39:16 -0400: > I have a script I've created which takes a file upload, monkeys with the > data in it, and needs to push the new file out to the browser. Everything > is coded and working up to that last point, but I've never pushed out a file > to the browser

Re: [PHP] Re: http request problem

2007-01-02 Thread Roman Neuhauser
# [EMAIL PROTECTED] / 2007-01-03 11:19:21 +0500: > ===ORINGIAL=== > hi all, > > I got problem in getting file content. the file is located at another server > (tomcat) and it is a jsp file. > i don't know why i keep getting the same error message file accessing that > file but > while i am trying

Re: [PHP] Re: http request problem

2007-01-02 Thread Roman Neuhauser
# [EMAIL PROTECTED] / 2007-01-03 11:19:21 +0500: > ===ORINGIAL=== [...] > ===END ORIGINAL=== Gah, early morning! Ok, I wasted my time thanks to your quoting style. Would you please use something more conventional, like prefixing each line of the quoted material with "> "? Thank you! > I tried fo

Re: [PHP] PEAR mail sorted as spam

2007-01-03 Thread Roman Neuhauser
# [EMAIL PROTECTED] / 2007-01-03 11:14:27 +0100: > When I send mail via PEARs Mail class they are sorted as spam by > Thunderbird. Do you have any ideas why? I can't figure it out. Surely Thunderbird provides an interface to query and modify its spam filters? Or is it an automated email black hol

Re: [PHP] E_RECOVERABLE_ERROR - 5.1.6 to 5.2.0

2007-01-03 Thread Roman Neuhauser
# [EMAIL PROTECTED] / 2007-01-02 21:23:02 +0100: > David CHANIAL wrote: > > We are preparing the upgrade of PHP for our customers, but, after some > > tests, > > we have a migration "problem" caused by the news E_RECOVERABLE_ERROR. > > > > So, even if the upgrade guide (http://www.php.net/UPDATE

Re: [PHP] PEAR mail sorted as spam

2007-01-03 Thread Roman Neuhauser
any ideas why? I can't figure it out. # [EMAIL PROTECTED] / 2007-01-03 11:29:42 +0100: > Roman Neuhauser wrote: > >Surely Thunderbird provides an interface to query and modify its spam > >filters? Or is it an automated email black hole without even a log file? > > I can

Re: [PHP] PEAR mail sorted as spam

2007-01-03 Thread Roman Neuhauser
# [EMAIL PROTECTED] / 2007-01-03 13:16:17 +0100: > Roman Neuhauser wrote: > >That's not what I asked. Does Thunderbird tell you why it marked > >something as spam? If it does, use that information. If it does not, > >you're crazy for using it. Either wa

Re: [PHP] PEAR mail sorted as spam

2007-01-03 Thread Roman Neuhauser
# [EMAIL PROTECTED] / 2007-01-03 04:42:05 -0800: > On 1/3/07, Roman Neuhauser <[EMAIL PROTECTED]> wrote: > >. > >Then again, AFAIK all recipients used either mutt or outlook. > > Now that is a very disperse audience, The reports went to two types of people: admins a

Re: [PHP] E_RECOVERABLE_ERROR - 5.1.6 to 5.2.0

2007-01-03 Thread Roman Neuhauser
# [EMAIL PROTECTED] / 2007-01-03 14:07:31 +0100: > Roman Neuhauser wrote: > > # [EMAIL PROTECTED] / 2007-01-02 21:23:02 +0100: > >> David CHANIAL wrote: > >>> We are preparing the upgrade of PHP for our customers, but, after some > >>> tests, > &g

Re: [PHP] Array decleration problem

2007-01-03 Thread Roman Neuhauser
# [EMAIL PROTECTED] / 2007-01-02 10:48:27 +0100: > Hi, > > I'm new to php and im learning, I haven't encounter any problems till > now so please help me? :) > > the code: (learning arrays...) > > > $flavors=array ("banana", "cucumber", "grape", "vanilla") that statement is incomp

Re: [PHP] E_RECOVERABLE_ERROR - 5.1.6 to 5.2.0

2007-01-03 Thread Roman Neuhauser
# [EMAIL PROTECTED] / 2007-01-03 16:43:14 +0100: > Roman Neuhauser wrote: > > # [EMAIL PROTECTED] / 2007-01-03 14:07:31 +0100: > >> Roman - you make some very good point but the pragmatist in me > >> says of your first example - why the F*** would anyone pass in an ob

Re: [PHP] E_RECOVERABLE_ERROR - 5.1.6 to 5.2.0

2007-01-03 Thread Roman Neuhauser
# [EMAIL PROTECTED] / 2007-01-03 16:43:14 +0100: > Roman Neuhauser wrote: > > # [EMAIL PROTECTED] / 2007-01-03 14:07:31 +0100: > >> Roman - you make some very good point but the pragmatist in me > >> says of your first example - why the F*** would anyone pass in an ob

Re: [PHP] Request of php5

2007-01-03 Thread Roman Neuhauser
# [EMAIL PROTECTED] / 2007-01-04 00:09:37 +0800: > Curt Zirzow wrote: > > On 1/3/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > >> Richard Lynch wrote: > >> >On Mon, January 1, 2007 12:40 am, [EMAIL PROTECTED] wrote: > >> > >> >>How much mem ( Ram ) does the php5 need ? > >> ... > > > >> >Depen

Re: [PHP] E_RECOVERABLE_ERROR - 5.1.6 to 5.2.0

2007-01-03 Thread Roman Neuhauser
# [EMAIL PROTECTED] / 2007-01-03 11:57:03 -0500: > Not to get into this argument [...] Nah, just chattin'. -- How many Vietnam vets does it take to screw in a light bulb? You don't know, man. You don't KNOW. Cause you weren't THERE. http://bash.org/?255991 -- PHP General Mailing L

Re: [PHP] Removing UTF-8 from text

2007-01-03 Thread Roman Neuhauser
# [EMAIL PROTECTED] / 2007-01-03 19:51:56 +0200: > I have many email address that are stored like this: > "=?UTF-8?B?15jXqNeR15XXp9eZ16DXlCDXnteo15nXkNeg15Q=?=" <[EMAIL PROTECTED]>, > "=?UTF-8?B?15nXoNem158g157XqNeZ15Q=?=" <[EMAIL PROTECTED]>, > "=?UTF-8?B?15zXmSDXpNeV15zXmdeg15Q=?=" <[EMAIL PROTEC

Re: [PHP] E_RECOVERABLE_ERROR - 5.1.6 to 5.2.0

2007-01-03 Thread Roman Neuhauser
# [EMAIL PROTECTED] / 2007-01-03 14:01:29 -0600: > On Wed, January 3, 2007 8:24 am, Roman Neuhauser wrote: > > I don't follow the logic. What did we gain? Can one of those > > "exceptions > > == Java, Java stinks, exceptions stink" campers show me their versi

Re: [PHP] Removing UTF-8 from text

2007-01-03 Thread Roman Neuhauser
# [EMAIL PROTECTED] / 2007-01-03 22:41:54 +0200: > On 03/01/07, Richard Lynch <[EMAIL PROTECTED]> wrote: > >Instead of trying to strip the UTF stuff out, try to capture the part > >you want: > > > >preg_match_all('|<[^>]>|ms', $emails, $output); > >var_dump($output); > > > > Richard, I do have a w

Re: [PHP] Removing UTF-8 from text

2007-01-03 Thread Roman Neuhauser
# [EMAIL PROTECTED] / 2007-01-04 08:21:37 +0200: > On 03/01/07, Roman Neuhauser <[EMAIL PROTECTED]> wrote: > > > >It's for "Did you know that the syntax is described in the manual? Did > >you know that PHP has a manual on the web? It's at http://www.php.n

Re: [PHP] IE, Word documents and Content Types

2007-01-03 Thread Roman Neuhauser
# [EMAIL PROTECTED] / 2007-01-03 15:48:31 -0600: > On Wed, January 3, 2007 2:52 pm, Philip Thompson wrote: > > I have a form where a user can upload different types of documents. A > > valid file type they will be able to upload is a Word Document. > > However, when I view the $_FILES 'type' of a w

Re: [PHP] Calling static child method from inherited static parent method

2007-01-04 Thread Roman Neuhauser
# [EMAIL PROTECTED] / 2007-01-03 19:14:31 -0700: > I'm trying to implement what I think is called a "virtual method": my > abstract parent class ParentClass defines a method xxx that calls > method yyy, but yyy is defined only in ParentClass's children. > > I can't get this to work (PHP5.0.4). Sam

Re: [PHP] Help me about using php with tomcat server.

2007-01-04 Thread Roman Neuhauser
# [EMAIL PROTECTED] / 2007-01-04 15:05:54 +0700: > I have two web application running on php and jsp. But i don't know how can > to use php and jsp on tomcat server. Please help me. Find an implementation of PHP in Java (tough luck) or the official library wrapped in a JNI interface. But you'll ma

Re: [PHP] E_RECOVERABLE_ERROR - 5.1.6 to 5.2.0

2007-01-04 Thread Roman Neuhauser
# [EMAIL PROTECTED] / 2007-01-03 15:18:59 -0600: > Roman Neuhauser wrote: > > # [EMAIL PROTECTED] / 2007-01-02 21:23:02 +0100: > >> David CHANIAL wrote: > >>> We are preparing the upgrade of PHP for our customers, but, after some > >>> tests, > &g

Re: [PHP] E_RECOVERABLE_ERROR - 5.1.6 to 5.2.0

2007-01-04 Thread Roman Neuhauser
# [EMAIL PROTECTED] / 2007-01-04 10:54:58 +: > # [EMAIL PROTECTED] / 2007-01-03 15:18:59 -0600: > > Roman Neuhauser wrote: > > > # [EMAIL PROTECTED] / 2007-01-02 21:23:02 +0100: > > >> there is no mention of try/catch - it seems that the rather unfortunate >

Re: [PHP] E_RECOVERABLE_ERROR - 5.1.6 to 5.2.0

2007-01-04 Thread Roman Neuhauser
# [EMAIL PROTECTED] / 2007-01-04 05:25:58 -0500: > On Thu, 2007-01-04 at 10:54 +0000, Roman Neuhauser wrote: > > > > echo $blah . "\n" is *not* equivalent to printf("%s\n", $blah) > > H, could you explain to me how it is different? I would always use

Re: [PHP] E_RECOVERABLE_ERROR - 5.1.6 to 5.2.0

2007-01-04 Thread Roman Neuhauser
# [EMAIL PROTECTED] / 2007-01-04 05:51:12 -0500: > On Thu, 2007-01-04 at 10:15 +, Stut wrote: > > Gregory Beaver wrote: > > > This is a good example of how the flexibility of PHP can bite you, > > > but is also a good example of how bad coding adds both complexity and > > > inefficiency to t

Re: [PHP] E_RECOVERABLE_ERROR - 5.1.6 to 5.2.0

2007-01-04 Thread Roman Neuhauser
# [EMAIL PROTECTED] / 2007-01-04 12:55:40 +0100: > Roman Neuhauser wrote: > > # [EMAIL PROTECTED] / 2007-01-04 11:38:58 +: > >> Jochem Maas wrote: > >>> out of interest, are you logging the result of each request? your > >>> probably getting quite a l

Re: [PHP] E_RECOVERABLE_ERROR - 5.1.6 to 5.2.0

2007-01-04 Thread Roman Neuhauser
# [EMAIL PROTECTED] / 2007-01-04 11:38:58 +: > Jochem Maas wrote: > > out of interest, are you logging the result of each request? your > > probably getting quite a lot of hits to your phpspeed page right now > > - storing the results of everyone's requests is a nice way to grab > > extra/free

Re: [PHP] E_RECOVERABLE_ERROR - 5.1.6 to 5.2.0

2007-01-04 Thread Roman Neuhauser
# [EMAIL PROTECTED] / 2007-01-04 12:53:14 +: > Roman Neuhauser wrote: > > # [EMAIL PROTECTED] / 2007-01-04 12:55:40 +0100: > >> Roman Neuhauser wrote: > >>> # [EMAIL PROTECTED] / 2007-01-04 11:38:58 +: > >>>> Jochem Maas wrote: > >>&

Re: [PHP] E_RECOVERABLE_ERROR - 5.1.6 to 5.2.0

2007-01-04 Thread Roman Neuhauser
# [EMAIL PROTECTED] / 2007-01-04 14:26:11 +0100: > Roman Neuhauser wrote: > >>> How are you going to remove the effect of concurrent requests > >>> for the page from the numbers? > >> why would you want to - it actually make for a more realistic test. > >

Re: [PHP] Payflow and Php5 on FreeBSD

2007-01-04 Thread Roman Neuhauser
[re PHP 5 w/ pfpro on FreeBSD] Dave, I just noticed that my mails to you bounce, drop me a note from another address if you're still interested. -- How many Vietnam vets does it take to screw in a light bulb? You don't know, man. You don't KNOW. Cause you weren't THERE. http://bash.

Re: [PHP] E_RECOVERABLE_ERROR - 5.1.6 to 5.2.0

2007-01-04 Thread Roman Neuhauser
# [EMAIL PROTECTED] / 2007-01-04 16:34:46 -0600: > On Wed, January 3, 2007 3:43 pm, Roman Neuhauser wrote: > That __toString magic didn't even exist in earlier versions, and has > already changed out from under you once, right?... The whole program depends on the syntax and semant

Re: [PHP] IE, Word documents and Content Types

2007-01-04 Thread Roman Neuhauser
# [EMAIL PROTECTED] / 2007-01-04 23:36:44 +0100: > Roman Neuhauser wrote: > > # [EMAIL PROTECTED] / 2007-01-03 15:48:31 -0600: > >> On Wed, January 3, 2007 2:52 pm, Philip Thompson wrote: > >>> I have a form where a user can upload different types of documents. A >

Re: [PHP] E_RECOVERABLE_ERROR - 5.1.6 to 5.2.0

2007-01-04 Thread Roman Neuhauser
# [EMAIL PROTECTED] / 2007-01-04 18:45:07 -0600: > On Thu, January 4, 2007 6:17 pm, Roman Neuhauser wrote: > > Ok, but what harm has been done? something() presumably did the > > fopen() for a reason, and couldn't work without the file handle and > > couldn't su

Re: [PHP] Removing UTF-8 from text

2007-01-04 Thread Roman Neuhauser
# [EMAIL PROTECTED] / 2007-01-04 16:17:18 -0600: > I don't mind answering Regex questions (PHP-related) because I know it > took me *years* to even come close to being able to do anything with > PCRE that wouldn't have been done faster/easier with str_replace and > friends. The syntax is very dens

Re: [PHP] is_writable() not working on PHP 5.1.6

2007-01-05 Thread Roman Neuhauser
# [EMAIL PROTECTED] / 2007-01-05 18:01:30 +0700: > if (file_exists($file)) { $file > if(!is_writeable($menu_filename)){ $menu_filename > echo "the file is not writable"; > } > } else echo "The file does not exist"; > > I have set the permissions to 777 for the file Which

Re: [PHP] Removing UTF-8 from text

2007-01-05 Thread Roman Neuhauser
# [EMAIL PROTECTED] / 2007-01-04 16:19:19 -0600: > On Thu, January 4, 2007 2:28 am, Roman Neuhauser wrote: > > # [EMAIL PROTECTED] / 2007-01-04 08:21:37 +0200: > >> to grasp, so I use the English version. That may not be a problem > >> for you, but it is for me. >

Re: [PHP] Removing UTF-8 from text

2007-01-05 Thread Roman Neuhauser
# [EMAIL PROTECTED] / 2007-01-05 11:05:48 +0200: > On 05/01/07, Roman Neuhauser <[EMAIL PROTECTED]> wrote: > >The syntax is very dense which makes it easy to forget if you don't > >practise. On the other hand, it's very easy to stay in form: regular > >expr

Re: [PHP] Problem with file reading

2007-01-05 Thread Roman Neuhauser
# [EMAIL PROTECTED] / 2007-01-05 16:34:41 +: > Delta Storm wrote: > >I'm a beginner and i'm still learning PHP and I got a problem: > > > >$file = "http://localhost/test_folder/test1.txt";; //I have > >also tried "test_folder/test1.txt" and "text1.txt" > > > >$fh = fop

Re: [PHP] Problem with file reading

2007-01-05 Thread Roman Neuhauser
# [EMAIL PROTECTED] / 2007-01-05 17:17:46 +: > Roman Neuhauser wrote: > ># [EMAIL PROTECTED] / 2007-01-05 16:34:41 +: > >>Delta Storm wrote: > >>>I'm a beginner and i'm still learning PHP and I got a problem: > >>> > >>&g

Re: [PHP] Some advice / points / help

2007-01-05 Thread Roman Neuhauser
# [EMAIL PROTECTED] / 2007-01-05 16:37:27 +0100: > Steven Macintyre wrote: > > http//steven.macintyre.name/arb/showlineups.jpg > > that URL make my browser end up here: > > http://www.w3.org/Protocols/ > > is .name even a top level domain? did that happen whilst I was sleeping? That's bec

Re: [PHP] Problem with file reading

2007-01-05 Thread Roman Neuhauser
# [EMAIL PROTECTED] / 2007-01-05 17:40:49 +: > Using mod_php with Apache will make the current directory the directory > that contains the script being requested. I am assuming that the OP is > trying to access the file from the script that is being requested and > not an included file in a

Re: [PHP] E_RECOVERABLE_ERROR - 5.1.6 to 5.2.0

2007-01-05 Thread Roman Neuhauser
# [EMAIL PROTECTED] / 2007-01-05 16:29:04 -0600: > Pretend you are using some library of software with a lot of code, and > you have a lot of your own code. > > There are try/catch blocks all over the place. > > The library does something with try/catch, and you don't like the way > it handles th

Re: [PHP] Exceptions: How much is too much.

2007-01-07 Thread Roman Neuhauser
# [EMAIL PROTECTED] / 2007-01-07 13:17:23 -0500: > On 1/5/07, Paul Scott <[EMAIL PROTECTED]> wrote: > >On Fri, 2007-01-05 at 00:44 -0500, Craige Leeder wrote: > >> The question is: How much is too much. Should I use Exceptions to > >> handle all of my error reporting/triggering? How about catching

Re: [PHP] OT - web based project management tool

2007-01-07 Thread Roman Neuhauser
# [EMAIL PROTECTED] / 2007-01-07 21:34:48 +0200: > What project management tool do you use for your project? Is dotProject > (www.dotproject.org ) only alternative? trac is popular. -- How many Vietnam vets does it take to screw in a light bulb? You don't know, man.

Re: [PHP] Question regarding include() and symlinks to directories

2007-01-07 Thread Roman Neuhauser
# [EMAIL PROTECTED] / 2007-01-08 08:13:11 +0100: > From: Richard Lynch [mailto:[EMAIL PROTECTED] > > Sent: Sat 1/6/2007 0:17 > > To: Karl Pflästerer > > Cc: php-general@lists.php.net > > Subject: Re: [PHP] Question regarding include() and symlinks to directories > > > > On Thu, January 4, 2007 2

Re: [PHP] Sending file stored on server via email - How?

2007-01-08 Thread Roman Neuhauser
# [EMAIL PROTECTED] / 2007-01-08 19:06:16 +1100: > Hello everyone, > > I store files on the server (.pdf, .doc, .txt, etc.) which are > referenced by entries in a database. The filenames are only stored in > the database and are not BLOBs. > > What I'd like to do is to be able to show a web form

Re: [PHP] question about str_replace function

2007-01-08 Thread Roman Neuhauser
# [EMAIL PROTECTED] / 2007-01-08 11:35:06 +0100: > Dick Jiang wrote: > > I think you'd better use regular expression to replace the word > > agreed - only it a serious dive in the deep end of regexps - the OP may > have to use a negative lookahead assertion, something like: > > $string="avenue 1

Re: [PHP] unzip openDocument in safe mode

2007-01-09 Thread Roman Neuhauser
# [EMAIL PROTECTED] / 2007-01-09 17:57:40 +0100: [ safe_mode-induced usability problems] > http://www.php.net/manual/de/function.ziparchive-addfile.php > and > http://at.php.net/manual/de/function.ziparchive-getfromname.php > would be fine. > If there is a package for BSD that would be a solution

Re: [PHP] newbie question regarding URL parameters

2007-01-09 Thread Roman Neuhauser
# [EMAIL PROTECTED] / 2007-01-09 17:36:55 +: > Wow, there are some really bitchy, unattractive people here. No wonder some > people bail out of IT. Don't confuse knowledge for wisdom. I don't see anything bitchy in the whole email. Don't confuse terseness with bitching. Oh, and also don't top

Re: [PHP] Parsing an XML return from a POST - resend with a little more information

2007-01-09 Thread Roman Neuhauser
# [EMAIL PROTECTED] / 2007-01-10 09:47:39 +1100: > I have spent most of last night and today looking at XML parsing and now am > totally confused. Some testing I have done suggests that SimpleXML is not the > way to go however I am open to suggestions if it might be an answer. What makes you think

Re: [PHP] Parsing an XML return from a POST - resend with a little more information

2007-01-09 Thread Roman Neuhauser
# [EMAIL PROTECTED] / 2007-01-10 12:09:40 +1100: > RN> What makes you think simplexml is not for you? I don't say it is, but > RN> you need to tell us exactly what you need. > RN> > > From what I can see, unless I am mistaken, SimpleXML can not deal with > attributes within a tag. It only seems to

Re: [PHP] Parsing an XML return from a POST - resend with a little more information

2007-01-09 Thread Roman Neuhauser
# [EMAIL PROTECTED] / 2007-01-10 18:23:19 +1100: > So far I have had no luck with simpleXML at all. So far I am not convinced you have tried it at all. Show us the code you wrote and describe how its behavior differs from your expectations. -- How many Vietnam vets does it take to screw in a li

Re: [PHP] Parsing an XML return from a POST - resend with a little more information

2007-01-10 Thread Roman Neuhauser
# [EMAIL PROTECTED] / 2007-01-10 09:38:30 +0100: > Richard Luckhurst wrote: > > Hi Jochem, > > > > Thanks for your reply. Here is a short sample of the XML I have to parse. I > > need > > the data in the attributes as well as the data in the character fields. > > > > > > > > I'm fairly certai

Re: [PHP] Parsing an XML return from a POST - resend with a little more information

2007-01-10 Thread Roman Neuhauser
# [EMAIL PROTECTED] / 2007-01-10 09:52:34 +: > That ypsilon is a *preprocessing instruction* AFAICT. s/pre// -- How many Vietnam vets does it take to screw in a light bulb? You don't know, man. You don't KNOW. Cause you weren't THERE. http://bash.org/?255991 -- PHP General Mai

Re: [PHP] mssql_* overhead

2007-01-10 Thread Roman Neuhauser
# [EMAIL PROTECTED] / 2007-01-10 10:49:35 -0600: > On Jan 10, 2007, at 10:09 AM, Jochem Maas wrote: > >Philip Thompson wrote: > >>Does anyone know if the mssql_connect/_init/_bind/etc require a > >>lot of overhead? You can quite easily find out what effect those function have on the performance

Re: [PHP] 5.2 installer not working and iis looking for password

2007-01-10 Thread Roman Neuhauser
# [EMAIL PROTECTED] / 2007-01-10 20:26:44 -: > > I am trying to install 5.2 via the installer but the when I try and open a > page IIS asks for a password and the page is not found. > > Any ideas? Umm, configure the webserver manually? -- How many Vietnam vets does it take to screw in a l

Re: [PHP] reg globals

2007-01-11 Thread Roman Neuhauser
# [EMAIL PROTECTED] / 2007-01-11 10:08:07 -: > $userfile= $_POST['userfile']; > $mail->AddAttachment($userfile, $_FILES['userfile']['name']); > > it now doesn't attach. any ideas? Check the description of $_FILES at http://www.php.net/manual/en/features.file-upload.php#features.file-upload.p

Re: [PHP] Extending 'include' behavior in a function

2007-01-11 Thread Roman Neuhauser
# [EMAIL PROTECTED] / 2007-01-11 09:47:04 +0100: > Eli wrote: > > [extending include] > > > > Your solution is good when you know what variables you want to transfer > > ahead, and then make a list of them. But if I want to transfer all the > > variables in the current environment scope? > as it s

Re: [PHP] Normalized Numbers

2007-01-12 Thread Roman Neuhauser
# [EMAIL PROTECTED] / 2007-01-12 01:57:27 +0100: > Brian P. Giroux wrote: > > If anyone can help me out with that or provide any other advice about > > the rest of it, I'd be grateful. > > > The file can be found at http://www.senecal.ca/normnums.php.txt > keep commenting all your code to that ex

Re: [PHP] Normalized Numbers

2007-01-12 Thread Roman Neuhauser
# [EMAIL PROTECTED] / 2007-01-12 13:39:59 +0100: > Roman Neuhauser wrote: > > # [EMAIL PROTECTED] / 2007-01-12 01:57:27 +0100: > >> Brian P. Giroux wrote: > >>> If anyone can help me out with that or provide any other advice about > >>> the rest of it, I&

Re: [PHP] Unbuffered Query

2007-01-13 Thread Roman Neuhauser
# [EMAIL PROTECTED] / 2007-01-12 23:30:15 -0600: > Warning: mysql_data_seek(): Offset 0 is invalid for MySQL result index > 116 (or the > query data is unbuffered) in > /www/acousticdemo.com/web/complaints/publish.cron on > line 26 http://www.php.net/manual/en/function.mysql-unbuffered-query.php:

Re: [PHP] Normalized Numbers

2007-01-13 Thread Roman Neuhauser
# [EMAIL PROTECTED] / 2007-01-12 14:40:04 +: > # [EMAIL PROTECTED] / 2007-01-12 13:39:59 +0100: > > Roman Neuhauser wrote: > > > # [EMAIL PROTECTED] / 2007-01-12 01:57:27 +0100: > > >> Brian P. Giroux wrote: > > >>> If anyone can help me ou

Re: [PHP] fopen and fwrite r+

2007-01-13 Thread Roman Neuhauser
# [EMAIL PROTECTED] / 2007-01-13 17:32:00 -0500: > I can write to the bottom of the file, no problem, but if I want to > put new entries at the top of the file I have problems: > the previous entry is partially overwritten and mangled.. you cannot prepend to a file. to do that you need to creat

[PHP] colon in coma [was: Re: [PHP] Anyone would like to test my open source application http://sourceforge.net/projects/dfo/ ?]

2007-01-14 Thread Roman Neuhauser
# [EMAIL PROTECTED] / 2007-01-13 18:59:10 -0800: > }, //<-- offending colon # [EMAIL PROTECTED] / 2007-01-14 04:49:10 +0100: > ah ok i am sorry, you can just remove the , (the offending colon) Guyes, what were you doing during your biology classes? ;) -- How many Vietnam vets does it take to

Re: [PHP] Normalized Numbers

2007-01-14 Thread Roman Neuhauser
# [EMAIL PROTECTED] / 2007-01-14 10:49:49 -0500: > > 1 function is_valid_ean($ean) { > > 2return (13 == strlen($ean) > > 3&& is_numeric($ean) > > 4&& (0 == (digit_sum($ean,1,1,3) % 10)) > > 5); > > 6 } > > Again, WOW! This is certainly the version I will use (if you

[PHP] circular dependency between libraries

2007-01-14 Thread Roman Neuhauser
I have a circular dependency, and am looking for thoughts on breaking the cycle without (much) redundancy or hard to automate procedures. I'm developing two programs, Testilence, a unit testing library, and Amock (library for mock object generation, but that's irrelevant in this discussion); both

Re: [PHP] Normalized Numbers

2007-01-14 Thread Roman Neuhauser
# [EMAIL PROTECTED] / 2007-01-14 14:51:30 -0500: > I tried to install Testilence on my Ubuntu using Gnu make 3.81beta4(my > skills as a Linux administrator are weaker than my PHP skills) but was > unsuccessful :( What problems did you have? -- How many Vietnam vets does it take to screw in a lig

Re: [PHP] circular dependency between libraries

2007-01-15 Thread Roman Neuhauser
# [EMAIL PROTECTED] / 2007-01-14 20:47:02 +0100: > Roman Neuhauser wrote: > > I have a circular dependency, and am looking for thoughts on breaking > > the cycle without (much) redundancy or hard to automate procedures. > > > > I'm developing two programs, Testile

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

2007-01-15 Thread Roman Neuhauser
# [EMAIL PROTECTED] / 2007-01-15 16:31:32 -0500: > I have file which I use for validating which includes the following > function: > > function invalidchar($strvalue) > { > if(!ereg("^[[:alpha:][:space:]\'-.]*$", $strvalue)) { That regexp matches if $strvalue consists of zero or more ocurre

Re: [PHP] memory allocation problems with fgets

2007-01-15 Thread Roman Neuhauser
# [EMAIL PROTECTED] / 2007-01-15 16:43:50 +: > Hi, > I have a script parsing the lines of a (rather large) file: > > while (!feof($outPluginfh)) { > $outPlugin = fgets ($outPluginfh,1024); > # process $outPlugin here... > > } > > Now, with large files I was running into an memor

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

2007-01-15 Thread &#x27;Roman Neuhauser'
# [EMAIL PROTECTED] / 2007-01-15 18:33:31 -0500: > > From: Roman Neuhauser [mailto:[EMAIL PROTECTED] > > # [EMAIL PROTECTED] / 2007-01-15 16:31:32 -0500: > > > I have file which I use for validating which includes the following > > > function: > > >

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

2007-01-16 Thread Roman Neuhauser
# [EMAIL PROTECTED] / 2007-01-15 19:22:24 -0500: > > From: 'Roman Neuhauser' [mailto:[EMAIL PROTECTED] > > # [EMAIL PROTECTED] / 2007-01-15 18:33:31 -0500: > > > > From: Roman Neuhauser [mailto:[EMAIL PROTECTED] # > > > > [EMAIL PROTECTED] / 2007-01-

Re: [PHP] circular dependency between libraries

2007-01-16 Thread Roman Neuhauser
# [EMAIL PROTECTED] / 2007-01-16 11:41:08 +0100: > Roman Neuhauser wrote: > > # [EMAIL PROTECTED] / 2007-01-14 20:47:02 +0100: > >> Roman Neuhauser wrote: > > The goal is to make a successful run of the test suite a prerequisite of > > the utility installation...

Re: [PHP] circular dependency between libraries

2007-01-16 Thread Roman Neuhauser
# [EMAIL PROTECTED] / 2007-01-16 13:56:01 +0100: > my gut says that it would be easiest to just keep to seperate copies of > the utility class(es) one for each project, although it kind of depends > on how large & complicated the utlity is ... this would remove all the > described > problems and l

Re: [PHP] circular dependency between libraries

2007-01-16 Thread Roman Neuhauser
# [EMAIL PROTECTED] / 2007-01-16 16:01:39 +0100: > could you point me at the svn web view that shows the utility code in > question? > it might give me some ideas. I don't think it's relevant, but here you go: http://svn.sigpipe.cz/viewvc/view/trunk/testilence/src/Testilence/util.php?view=markup

Re: [PHP] running exec() on client

2007-01-16 Thread Roman Neuhauser
# [EMAIL PROTECTED] / 2007-01-16 15:18:50 -: > > You do not need to have apache installed to run PHP you just need > > PHP-CLI (Command Line Interface) > > Yes, I do know that, but what I want is for my colleague to follow a > link on her web page that will trigger the php command, passing any

Re: [PHP] How to prevent DomDocument from adding a !DOCTYPE.

2007-01-16 Thread Roman Neuhauser
# [EMAIL PROTECTED] / 2007-01-16 15:37:09 +0100: > Im using DomDocument currently and i realy want to prevent it from adding > the !DOCTYPE and mabye even and etc.. > Is this possible and how? Doesn't DOMDocument *require* DTD? I thought it's either that or a "document fragment" (which is prob

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

2007-01-17 Thread Roman Neuhauser
# [EMAIL PROTECTED] / 2007-01-17 01:42:09 +0100: > Beauford wrote: > > Further to my previous email, there is something weird going on here. I just > > tried using this: > > > > if (!ereg('^[A-Za-z0-9]', $strvalue)) { > > return "error"; > > } > > stop using bleeding ereg*()

Re: [PHP] How to prevent DomDocument from adding a !DOCTYPE.

2007-01-17 Thread Roman Neuhauser
# [EMAIL PROTECTED] / 2007-01-16 20:42:48 +0100: > Roman Neuhauser wrote: > ># [EMAIL PROTECTED] / 2007-01-16 15:37:09 +0100: > >>Im using DomDocument currently and i realy want to prevent it from adding > >>the !DOCTYPE and mabye even and etc.. > >>Is t

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

2007-01-17 Thread Roman Neuhauser
# [EMAIL PROTECTED] / 2007-01-17 11:41:54 +0100: > Roman Neuhauser wrote: > > # [EMAIL PROTECTED] / 2007-01-17 01:42:09 +0100: > >>if (!preg_match("#^[A-Z0-9]+\$#i", $s)) { > > > >> (ps the above is a crappy regexp for real world use imho

Re: [PHP] How to prevent DomDocument from adding a !DOCTYPE.

2007-01-17 Thread Roman Neuhauser
# [EMAIL PROTECTED] / 2007-01-17 07:08:44 -0500: > Mathijs van Veluw wrote: > >Roman Neuhauser wrote: > >># [EMAIL PROTECTED] / 2007-01-16 15:37:09 +0100: > >>>Im using DomDocument currently and i realy want to prevent it from > >>>adding the !DOCTY

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

2007-01-17 Thread Roman Neuhauser
# [EMAIL PROTECTED] / 2007-01-17 16:59:26 +0100: > Roman Neuhauser wrote: > > re_format(7) on FreeBSD: > > > > A bracket expression is a list of characters enclosed in `[]'. > > (...) > > If two characters in the list are separated by `-

Re: [PHP] $_SESSION variable gets lost on FORM action

2007-01-17 Thread Roman Neuhauser
# [EMAIL PROTECTED] / 2007-01-17 19:06:16 +: > Stut wrote: > >Redirecting using a Location header is not the only thing you can do > >with the header() function. It will never end processing of the script > >no matter what you pass to it. The example on the manual page for the > >header() fu

Re: [PHP] dynamic lists

2007-01-17 Thread Roman Neuhauser
# [EMAIL PROTECTED] / 2007-01-17 23:20:23 +0100: > Kevin Murphy wrote: > > On Jan 17, 2007, at 1:39 PM, Brad Fuller wrote: > >> #1) Submit the form (to itself) when a user chooses an option from the > >> first list (using onChange=form.submit()) then with PHP query the > >> database for the second

Re: [PHP] Getting domain out of a URL

2007-01-17 Thread Roman Neuhauser
# [EMAIL PROTECTED] / 2007-01-17 17:53:09 -0500: > On Wednesday 17 January 2007 03:35 pm, Jay Blanchard wrote: > > [snip] > > I receive posts from an open moderated forum that need to be filtered > > for urls. I've successfully managed to trap any entires that use > > 'http://' 'www.' with the stan

Re: [PHP] $_SESSION variable gets lost on FORM action

2007-01-17 Thread Roman Neuhauser
# [EMAIL PROTECTED] / 2007-01-18 00:06:27 +: > >Roman wrote: > >Also, the header() call you provided in the original post was a > >violation of HTTP. Knowing the programming language is just one of > >your responsibilities IMNSHO. The manual for HTTP users (you!) is at > >ftp://ftp.rfc-editor.

Re: [PHP] One last try at this!

2007-01-18 Thread Roman Neuhauser
# [EMAIL PROTECTED] / 2007-01-17 17:02:12 -0800: > Beauford wrote: > > if(!preg_match("/^[-A-Za-z0-9_.' ]+$/", $string)) { > > return "Invalid Characters"; > >} > In your regex you have a "." this will match anything > > try this: > > > function ValidateString($string) { > i

Re: [PHP] Scope of include

2007-01-18 Thread Roman Neuhauser
# [EMAIL PROTECTED] / 2007-01-17 21:49:05 -0800: > Hello php list: > If I include a php script inside a php function definition and then > call the function in another script. What is the scope of variables in > the included script? Are they local to the function that calls include > with the file

Re: [PHP] One last try at this!

2007-01-18 Thread Roman Neuhauser
# [EMAIL PROTECTED] / 2007-01-18 01:48:25 -0800: > Roman Neuhauser wrote: > ># [EMAIL PROTECTED] / 2007-01-17 17:02:12 -0800: > >>Beauford wrote: > >>> if(!preg_match("/^[-A-Za-z0-9_.' ]+$/", $string)) { > >>> return "Invalid Ch

Re: [PHP] $_SESSION variable gets lost on FORM action

2007-01-18 Thread Roman Neuhauser
# [EMAIL PROTECTED] / 2007-01-18 08:59:11 +: > >Roman: > >[...] > >You don't need to know your IP. See the grammar for AbsoluteURI: > >ftp://ftp.rfc-editor.org/in-notes/rfc2396.txt > > > >>I'm asking this because my IP is dynamic and I'm using a free > >>redirection service. My site is at > >>'

Re: [PHP] regular expression help!

2007-01-18 Thread Roman Neuhauser
# [EMAIL PROTECTED] / 2007-01-18 12:34:36 +0200: > I need to strip all characters from the following text string exept the > image path... > > " src=\"../../images/new/thumps/4123141112007590373240.jpg\" />"...and then > store the path to DB. Image path lengh can vary so I guess that I need to

  1   2   3   4   >