[PHP] setting up a wiki - looking for suggestions!

2005-06-08 Thread bruce
hi... looking for suggestions on the 'best' wiki for an app. i want to be able to: -register/login users -admin the site -multiple admins -various roles/access privs for users -enable groups -create/modify categories -allow users to modify text -allow users to make postings private/group/p

[PHP] Error

2005-06-08 Thread Post Office
-- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Beautiful HTML Invoice -> Prints like crap! I need somesuggestions!

2005-06-08 Thread Chris Martin
On 6/7/05, Matt Babineau <[EMAIL PROTECTED]> wrote: > Yeah I was considering that...I'm trying the html2pdf site right now. It > seems alright...its choking on my invoice as we speak (lots of html). > > Is there a way to make a JPG? I've looked at a few sites from google..most > are activeX...some

[PHP] Converting a query for use in a form

2005-06-08 Thread kevin
Hi everyone, I hope you can all help me. I want to take the information I get from a query and use it is a form as a dropdown select box. For example I want to pull the colors from a table and list them in a drop down box and then when a user selects a color it will pass the colorID for use in

Re: [PHP] Japanese with UTF-8 and mysql

2005-06-08 Thread Mark Sargent
Richard Lynch wrote: On Mon, June 6, 2005 11:02 pm, Mark Sargent said: The correct way - if one wants utf-8 as charset - is: header("Content-Type: index/html; charset=utf-8"); actually, if I add this, header("Content-Type: index/html; charset=utf-8"); as suggested, firefox p

Re: [PHP] Of .txt to .zip

2005-06-08 Thread SadWind Yan
2005/6/8, Jay Blanchard <[EMAIL PROTECTED]>: > [snip] > I want that the file with extension .TXT that this in my server, to keep > packed it with extension ZIP. Somebody knows since I can do it. > [/snip] > > http://www.php.net/zip > but it says 'Read Only Access' from the document? so,the file

Re: [PHP] Objects and Performance

2005-06-08 Thread Greg Beaver
Greg Donald wrote: > On 6/8/05, NSK <[EMAIL PROTECTED]> wrote: > >>Hi, I am creating a small API in PHP, i.e. a collection of reusable functions >>for other programmers. As it is now, it is just many functions together in >>the same file. Do you think I should make it object-oriented? What are the

[PHP] Re: PEAR installation

2005-06-08 Thread Greg Beaver
Danielle wrote: > I'm having problems installing PEAR. > When running the go-pear.php installer (version 0.2.2), I get the following > message after submitting the form on the 'Configuration' page... > > Error > > Downloading package: Pager > > download of http://pear.php.net/get/Pag

[PHP] PEAR installation

2005-06-08 Thread Danielle
I'm having problems installing PEAR. When running the go-pear.php installer (version 0.2.2), I get the following message after submitting the form on the 'Configuration' page... Error Downloading package: Pager download of http://pear.php.net/get/Pager failed: A connection attempt fa

Re: [PHP] Japanese with UTF-8 and mysql

2005-06-08 Thread Richard Lynch
On Mon, June 6, 2005 11:02 pm, Mark Sargent said: >>> The correct way - if one wants utf-8 as charset - is: >>> header("Content-Type: index/html; charset=utf-8"); > actually, if I add this, > > header("Content-Type: index/html; charset=utf-8"); > > as suggested, firefox prompts to download the pag

Re: [PHP] about the absolutely path

2005-06-08 Thread Richard Lynch
On Mon, June 6, 2005 11:30 pm, Burhan Khalid said: >> maybe you could use the apache ProxyPass directive? >> >> ProxyPass testb.xxx.com/a/ testa.xxx.com >> >> or something like that. (I'm just half-remembering >> a cool post by Rasmus L. so the syntax is probably off) >> > > I've been trying to sea

Re: [PHP] Telling users and machines apart

2005-06-08 Thread Richard Lynch
On Tue, June 7, 2005 5:39 am, Merlin said: > I am getting more and more emails through my webforms submited by bots. > It looks like some sites liky yahoo are placing an image into their forms > and > the human has to enter a code visible on the image to submit the form. > After some googling I fou

[PHP] Returned mail: Data format error

2005-06-08 Thread The Post Office
ALERT! This e-mail, in its original form, contained one or more attached files that were infected with a virus, worm, or other type of security threat. This e-mail was sent from a Road Runner IP address. As part of our continuing initiative to stop the spread of malicious viruses, Road Runner s

RE: [PHP] The "goto" discussion on the Internals List

2005-06-08 Thread Richard Lynch
On Tue, June 7, 2005 10:59 am, Robert Cummings said: > PHP has never purported to be an OOP only language. It advocates both > procedural and OOP programming methodologies. Just ask Richard Lynch :) Don't bother asking me - Ask Rasmus :-) And, for the record, *I* sure as hell don't want to see a

RE: [PHP] Beautiful HTML Invoice -> Prints like crap! I need somesuggestions!

2005-06-08 Thread Richard Lynch
On Tue, June 7, 2005 3:30 pm, Matt Babineau said: > Is there a way to make a JPG? I've looked at a few sites from google..most > are activeX...somewhat undersirable. Looking for something I can run on > the > server to do the convert work. webthumb from the GD guys might do what you want for the J

Re: [PHP] Add Excel/Word documents to a dynamic pdf.

2005-06-08 Thread Richard Lynch
On Wed, June 8, 2005 5:23 am, Bosky, Dave said: > Basically I have a master list of available files in the following > formats: text, JPEG images, Excel, Powerpoint, and Word. The user > selects all the documents they need from the list and then I need to > build a dynamic PDF containing all the se

Re: [PHP] problem between IE and PHP

2005-06-08 Thread Richard Lynch
On Wed, June 8, 2005 7:53 am, Philippe Reynolds said: > I'm having a little problem with the interaction between php and IE. > > I have two ".php" pages. Show us the page. > The first contains a form with the standard submit button. However when I > come to push the button, I get a "ding" sound

Re: [PHP] problem with IE and php

2005-06-08 Thread Richard Lynch
On Wed, June 8, 2005 11:01 am, Philippe Reynolds said: > Acutally, I have just resolved my problem. > > I was using method="get" in my form (which contains at least a hundred > values to be passed back). This overloaded the address length and > therefore > could not and would not action the second

Re: [PHP] How to execute local applications on the client

2005-06-08 Thread Mauricio Pellegrini
First, thanks to all who replied! and yes I was aware of that kind of security issues and expected no positive results upon my question. But I've forgotten about the wsh. Now I think I would use it in case it is *absolutely* necessary Thanks again Mauricio On Tue, 2005-06-07 at 21:28, Rory Brown

Re: [PHP] Objects and Performance

2005-06-08 Thread Greg Donald
On 6/8/05, NSK <[EMAIL PROTECTED]> wrote: > Hi, I am creating a small API in PHP, i.e. a collection of reusable functions > for other programmers. As it is now, it is just many functions together in > the same file. Do you think I should make it object-oriented? What are the > pros and cons of this

[PHP] Objects and Performance

2005-06-08 Thread NSK
Hi, I am creating a small API in PHP, i.e. a collection of reusable functions for other programmers. As it is now, it is just many functions together in the same file. Do you think I should make it object-oriented? What are the pros and cons of this approach in PHP? I am particularly very conce

Re: [PHP] Re: string highlight

2005-06-08 Thread John Nichel
Rory Browne wrote: < won't be picked up as a word boundry (\b). Aparently it will. I stand corrected based on these two rules for \b since < and > are non-word characters... # Between a word character and a non-word character following right after the word character. # Between a non-wor

Re: [PHP] Re: string highlight

2005-06-08 Thread Rory Browne
On 6/8/05, John Nichel <[EMAIL PROTECTED]> wrote: > Rory Browne wrote: > > >>Good catch Rory. A regex replace would work better here. > >> > >>$search = "body"; > >>$find = "/\b" . $search . "\b/"; > >>preg_replace ( $find, "" . $search . "", $html ); > > > > > > I don't think so. If I'm reading

Re: [PHP] Really simple regex

2005-06-08 Thread John Nichel
Dotan Cohen wrote: Now, I know that this is easy, but I am embarassed to say that I can't find a regex tutorial that will show me how to match any occurances of x and replace them with one x: x >x xx > x x > x $string="I have apples!"; $string=preg_replace("-regex here-","x", $stri

[PHP] Re: Include (evaluate) PHP/HTML code stored in a variable

2005-06-08 Thread GamblerZG
eval('?> '.$code.' http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] problem with IE and php

2005-06-08 Thread Philippe Reynolds
Acutally, I have just resolved my problem. I was using method="get" in my form (which contains at least a hundred values to be passed back). This overloaded the address length and therefore could not and would not action the second page. I switch to method="post" in my form (which does not p

RE: [PHP] newbie error message i don't understand....please help

2005-06-08 Thread Shaw, Chris - Accenture
Greg, Have you enabled the MySQL extensions in the php.ini file and made sure the extension path in the php.ini file is correctly pointing to the right directory? eg c:\php\ext or c:\php\extension. I believe phpninfo() has a section for MySQL if it is enabled. hth. Chris. -Original Mess

Re: [PHP] problem with IE and php

2005-06-08 Thread Brent Baisley
Do you have a doctype as the first line of your web page? Standards and browser behavior have changed over the years and the doctype is how you specify which behavior (and bugs) you want the browser to adhere to. Usually when you see some really wierd behavior, it's because of an incorrect or m

[PHP] Sockets

2005-06-08 Thread Harry
Hello, Is there a special newsgroup for socket programming? regards Harry -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re[2]: [PHP] newbie error message i don't understand....please help

2005-06-08 Thread Richard Davey
Hello Greg, Wednesday, June 8, 2005, 4:55:45 PM, you wrote: GMP> The final product here is to install Nucleus blog software GMP> (http://nucleuscms.org/) on a windows 2003 servermy IT GMP> consultant is having a problem getting PHP to see mysql & both of GMP> those programs are required to ma

Re: [PHP] Explanation in Shiflett's PHP Security Briefing

2005-06-08 Thread [EMAIL PROTECTED]
First, thanks guys for such a fast response :) Matthew Weier O'Phinney wrote: While the above would prevent most SQL injections, it could still wreak havoc with your database. For instance, what if your 'phone' or 'zip' fields in your database are integer fields, and text gets passed from the

Re: [PHP] newbie error message i don't understand....please help

2005-06-08 Thread Greg M. Price
The final product here is to install Nucleus blog software (http://nucleuscms.org/) on a windows 2003 servermy IT consultant is having a problem getting PHP to see mysql & both of those programs are required to make nucleus work. it's really frustrating for him (& me). "Richard Davey" <[E

Re: [PHP] Explanation in Shiflett's PHP Security Briefing

2005-06-08 Thread Chris Shiflett
[EMAIL PROTECTED] wrote: I got the point Chris was making: never believe _GET/_POST and use ctype_alnum(), mysql_real_escape_string(), htmlentities() - and I already started :) (Thanks Chris that was great for us beginners, already posted on few Bosnian php forums :)) You're welcome. :-) I

Re: [PHP] test

2005-06-08 Thread Danny Brow
On Tue, 2005-06-07 at 14:46 +0200, Hans J.J. Prins wrote: > test > Failed. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Explanation in Shiflett's PHP Security Briefing

2005-06-08 Thread Matthew Weier O'Phinney
* "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> : > Thanks Richard. > I got the point Chris was making: never believe _GET/_POST and use > ctype_alnum(), mysql_real_escape_string(), htmlentities() - and I > already started :) (Thanks Chris that was great for us beginners, > already posted on few Bosn

Re[2]: [PHP] Explanation in Shiflett's PHP Security Briefing

2005-06-08 Thread Richard Davey
Hello afan, Wednesday, June 8, 2005, 4:33:24 PM, you wrote: aan> My question though was is the difference in code I mentioned just aan> a "habit of writing code" or there is some more? Some security aan> issues too? It was most likely just a coding habit - there was no discernable difference bet

Re: [PHP] newbie error message i don't understand....please help

2005-06-08 Thread Richard Davey
Hello Greg, Wednesday, June 8, 2005, 3:58:03 PM, you wrote: GMP> Please help - I got " Error message: GMP> "Your PHP version does not have support for MySQL" GMP> when I did http://x.x.x.x/install.php on windows 2003 with Php 5.04 and GMP> MySQL 5.0. Possibly you don't have MySQL support enable

Re: [PHP] newbie error message i don't understand....please help

2005-06-08 Thread Paul Waring
On 6/8/05, Greg M. Price <[EMAIL PROTECTED]> wrote: > Please help - I got " Error message: > > "Your PHP version does not have support for MySQL" > > when I did http://x.x.x.x/install.php on windows 2003 with Php 5.04 and > MySQL 5.0. PHP 5 doesn't come with the MySQL client libraries built-in.

Re: [PHP] Explanation in Shiflett's PHP Security Briefing

2005-06-08 Thread Chris Shiflett
[EMAIL PROTECTED] wrote: I was reading PHP Security Briefing from brainbulb.com (Chris Shiflett) and didn't get one thing: in example: why to set the $clean as array? what's wrong if I use: Richard already answered this pretty well, but I wanted to mention that this is not the only way to

Re: [PHP] linux php editor

2005-06-08 Thread Matthew Weier O'Phinney
* "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> : > On windows platform I use HomeSite 5.5 and I'm more then happy. > On Linux platform QuantaPlus > For small and fast changes on file vi/vim is the best. You know that vim exists for windows, right? and that it can be used for large changes as well? (I u

Re: [PHP] Explanation in Shiflett's PHP Security Briefing

2005-06-08 Thread [EMAIL PROTECTED]
Thanks Richard. I got the point Chris was making: never believe _GET/_POST and use ctype_alnum(), mysql_real_escape_string(), htmlentities() - and I already started :) (Thanks Chris that was great for us beginners, already posted on few Bosnian php forums :)) My question though was is the di

Re: [PHP] Re: string highlight

2005-06-08 Thread John Nichel
Rory Browne wrote: Good catch Rory. A regex replace would work better here. $search = "body"; $find = "/\b" . $search . "\b/"; preg_replace ( $find, "" . $search . "", $html ); I don't think so. If I'm reading your code correctly you still have the same problem, as I outlined above. There i

[PHP] newbie error message i don't understand....please help

2005-06-08 Thread Greg M. Price
Please help - I got " Error message: "Your PHP version does not have support for MySQL" when I did http://x.x.x.x/install.php on windows 2003 with Php 5.04 and MySQL 5.0. Can anybody tell me what this is all about? Thanks, GMP -- PHP General Mailing List (http://www.php.net/) To unsubscribe

Re: [PHP] Really simple regex

2005-06-08 Thread Dotan Cohen
On 6/8/05, Jochem Maas <[EMAIL PROTECTED]> wrote: > Dotan Cohen wrote: > > On 6/8/05, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > > > >>Quoting Dotan Cohen <[EMAIL PROTECTED]>: > >> > >>$string="I have apples!"; > >>$string=preg_replace("/x+/sim","x", $string); > >>print "$string"; > >>

RE: [PHP] Of .txt to .zip

2005-06-08 Thread Jay Blanchard
[snip] I do not want to open a ZIP , I want create a ZIP fron TXT . [/snip] How far did you read? http://us3.php.net/manual/en/ref.zlib.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Re: string highlight

2005-06-08 Thread Rory Browne
On 6/8/05, Jay Blanchard <[EMAIL PROTECTED]> wrote: > [snip] > I don't think so. If I'm reading your code correctly you still have > the same problem, as I outlined above. There is no simple solution to > this. It either involves advanced regex(more advanced than my > understanding of it), or a pro

Re: [PHP] problem with IE and php

2005-06-08 Thread John Nichel
Philippe Reynolds wrote: Hi all, I running two php web page...therefore the page name has the ".php" on the end. The first page contains a form with a submit button at the botton. That submit button actions the second ".php" page. When I use my firefox browser everything works fine. When I

Re: [PHP] Explanation in Shiflett's PHP Security Briefing

2005-06-08 Thread Richard Davey
Hello afan, Monday, June 6, 2005, 6:39:09 PM, you wrote: aan> I was reading PHP Security Briefing from brainbulb.com (Chris Shiflett) aan> and didn't get one thing: aan> in example: aan> $clean = array(); aan> if (ctype_alnum($_POST['username'])) aan> { aan> $clean['username

Re: [PHP] Happy Birthday, PHP!

2005-06-08 Thread Ryan A
> Ten years ago today, Rasmus announced Personal Home Page Tools (PHP > Tools) version 1.0. Today, numerous people contribute to PHP and to the > nurturing of its community, but the project has never lost sight of > Rasmus's original goal of solving the web problem. > > Thanks (of course) to Rasm

Re: [PHP] problem with IE and php

2005-06-08 Thread Philippe Reynolds
Hey, yeah I do have form tags. They are the following: -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Of .txt to .zip

2005-06-08 Thread Kristen G. Thorson
That's much clearer than your original question was. Try www.phpclasses.org Good luck. Denyl Meneses Guillén wrote: I do not want to open a ZIP , I want create a ZIP fron TXT . - Original Message - From: "Jay Blanchard" <[EMAIL PROTECTED]> To: "Denyl Meneses Guillén" <[EMAIL PR

Re: [PHP] Happy Birthday, PHP!

2005-06-08 Thread Joe Harman
I second that ! Thanks for 10 Years of PHP.. i use it every day!!! Joe On 6/8/05, Chris Shiflett <[EMAIL PROTECTED]> wrote: > Ten years ago today, Rasmus announced Personal Home Page Tools (PHP > Tools) version 1.0. Today, numerous people contribute to PHP and to the > nurturing of its commun

Re: [PHP] linux php editor

2005-06-08 Thread Chris Boget
> On windows platform I use HomeSite 5.5 and I'm more then happy. I was a big proponent of HS for the longest time until I played around with Visual Slickedit. I very quickly switched and never looked back. VS is infinitely more feature rich than is HS. thnx, Chris -- PHP General Mailing List

[PHP] problem between IE and PHP

2005-06-08 Thread Philippe Reynolds
Hi all, I'm having a little problem with the interaction between php and IE. I have two ".php" pages. The first contains a form with the standard submit button. However when I come to push the button, I get a "ding" sound (standard error sound) and it seems like the button is deactivated. H

Re: [PHP] Really simple regex

2005-06-08 Thread Jochem Maas
Dotan Cohen wrote: On 6/8/05, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: Quoting Dotan Cohen <[EMAIL PROTECTED]>: $string="I have apples!"; $string=preg_replace("/x+/sim","x", $string); print "$string"; hope it helps.. Now, I know that this is easy, but I am embarassed to say th

Re: [PHP] problem with IE and php

2005-06-08 Thread tg-php
PHP doesn't really have anything to do with IE or Firefox working or failing to work, it's all about the HTML that PHP generates. What does your tag look like? That's probably more the issue than your button or anything having to do with PHP. If you have no tag, then the browsers might be tr

[PHP] Returned mail: see transcript for details

2005-06-08 Thread Bounced mail
-- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Explanation in Shiflett's PHP Security Briefing

2005-06-08 Thread [EMAIL PROTECTED]
I was reading PHP Security Briefing from brainbulb.com (Chris Shiflett) and didn't get one thing: in example: why to set the $clean as array? what's wrong if I use: -afan

Re: [PHP] linux php editor

2005-06-08 Thread [EMAIL PROTECTED]
On windows platform I use HomeSite 5.5 and I'm more then happy. On Linux platform QuantaPlus For small and fast changes on file vi/vim is the best. my $.02 :) -afan On 6/6/05, Clive Zagno <[EMAIL PROTECTED]> wrote: what php GUI editors do you recommend. any other recommendations, thanks

Re: [PHP] linux php editor

2005-06-08 Thread [EMAIL PROTECTED]
On windows platform I use HomeSite 5.5 and I'm more then happy. On Linux platform QuantaPlus For small and fast changes on file vi/vim is the best. -afan On 6/6/05, Clive Zagno <[EMAIL PROTECTED]> wrote: what php GUI editors do you recommend. any other recommendations, thanks -- PHP

Re: [PHP] Message could not be delivered

2005-06-08 Thread [EMAIL PROTECTED]
I just got this one? Of course I didn't open the attachment, but someone sick is trying to involve the php group into a spreading of viruses. -afan Returned mail wrote: Dear user of lists.php.net, We have found that your account was used to send a large amount of spam messages during this

[PHP] Returned mail: see transcript for details

2005-06-08 Thread Bounced mail
-- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Happy Birthday, PHP!

2005-06-08 Thread Chris Shiflett
Ten years ago today, Rasmus announced Personal Home Page Tools (PHP Tools) version 1.0. Today, numerous people contribute to PHP and to the nurturing of its community, but the project has never lost sight of Rasmus's original goal of solving the web problem. Thanks (of course) to Rasmus for ge

[PHP] Returned mail: see transcript for details

2005-06-08 Thread Bounced mail
-- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Of .txt to .zip

2005-06-08 Thread Denyl Meneses Guillén
I do not want to open a ZIP , I want create a ZIP fron TXT . - Original Message - From: "Jay Blanchard" <[EMAIL PROTECTED]> To: "Denyl Meneses Guillén" <[EMAIL PROTECTED]>; Sent: Wednesday, June 08, 2005 7:11 AM Subject: RE: [PHP] Of .txt to .zip [snip] I want that the file with extens

[PHP] problem with IE and php

2005-06-08 Thread Philippe Reynolds
Hi all, I running two php web page...therefore the page name has the ".php" on the end. The first page contains a form with a submit button at the botton. That submit button actions the second ".php" page. When I use my firefox browser everything works fine. When I use Internet Explorer, the

[PHP] Include (evaluate) PHP/HTML code stored in a variable

2005-06-08 Thread Marc Stoecklin
Hi all, I am trying to figure out how mixed HTML and PHP code (like one might have in a normal PHP file) can be evaluated if it is stored in a variable, e.g. obtained from a database query. Unfortunately, the ``eval'' function only accepts pure PHP code which (in addition) must not have any synta

RE: [PHP] HELP! form validation

2005-06-08 Thread Dave Sayer
> -Original Message- > From: Jim Moseby [mailto:[EMAIL PROTECTED] > Sent: 08 June 2005 15:18 > To: '[EMAIL PROTECTED]' > Subject: RE: [PHP] HELP! form validation > > > > -Original Message- > > From: Dave Sayer [mailto:[EMAIL PROTECTED] > > Sent: Wednesday, June 08, 2005 9:58 AM

RE: [PHP] HELP! form validation

2005-06-08 Thread Jim Moseby
> Hi php’ers, > > What would be the best method of validation a large (8 > stages) form written > in php? The form validates using php at the moment but it > only displays the > errors in a group, what we want it to do is highlight the > fields or labels > for the incorrect entries (if that mak

RE: [PHP] Of .txt to .zip

2005-06-08 Thread Jay Blanchard
[snip] I want that the file with extension .TXT that this in my server, to keep packed it with extension ZIP. Somebody knows since I can do it. [/snip] http://www.php.net/zip -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] HELP! form validation

2005-06-08 Thread Paul Waring
On 6/8/05, Dave Sayer <[EMAIL PROTECTED]> wrote: > What would be the best method of validation a large (8 stages) form written > in php? The form validates using php at the moment but it only displays the > errors in a group, what we want it to do is highlight the fields or labels > for the incorre

RE: [PHP] Re: string highlight

2005-06-08 Thread Jay Blanchard
[snip] I don't think so. If I'm reading your code correctly you still have the same problem, as I outlined above. There is no simple solution to this. It either involves advanced regex(more advanced than my understanding of it), or a proper parser. [/snip] Also it should be noted that the tag p

Re: [PHP] Really simple regex

2005-06-08 Thread Dotan Cohen
On 6/8/05, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > Quoting Dotan Cohen <[EMAIL PROTECTED]>: > > $string="I have apples!"; > $string=preg_replace("/x+/sim","x", $string); > print "$string"; > > hope it helps.. > > > Now, I know that this is easy, but I am embarassed to say that I

Re: [PHP] Re: string highlight

2005-06-08 Thread Jochem Maas
Rory Browne wrote: On 6/8/05, John Nichel <[EMAIL PROTECTED]> wrote: Rory Browne wrote: On 6/8/05, David Duong <[EMAIL PROTECTED]> wrote: Sebastian wrote: i'm looking for a function that can highlight certain search terms in a string. anyone have something already made that i can plugin

[PHP] HELP! form validation

2005-06-08 Thread Dave Sayer
Hi php’ers, What would be the best method of validation a large (8 stages) form written in php? The form validates using php at the moment but it only displays the errors in a group, what we want it to do is highlight the fields or labels for the incorrect entries (if that makes sense.) so the use

Re: [PHP] Re: string highlight

2005-06-08 Thread Jochem Maas
John Nichel wrote: Rory Browne wrote: On 6/8/05, David Duong <[EMAIL PROTECTED]> wrote: Sebastian wrote: i'm looking for a function that can highlight certain search terms in a string. anyone have something already made that i can plugin to my exisiting code? I found a couple but they do n

[PHP] Of .txt to .zip

2005-06-08 Thread Denyl Meneses Guillén
Hi All, I want that the file with extension .TXT that this in my server, to keep packed it with extension ZIP. Somebody knows since I can do it. Thanks Denyl.

Re: [PHP] Beautiful HTML Invoice -> Prints like crap! I need somesuggestions!

2005-06-08 Thread Jochem Maas
Jason Barnett wrote: @media print { /* style sheet for print goes here */ } http://www.w3.org/TR/REC-CSS2/media.html ^^^ This is a good suggestion. But if you only need to print just this one invoice then you can also take a full screen shot, paste that into your favorite image program

Re: [PHP] Re: string highlight

2005-06-08 Thread Rory Browne
On 6/8/05, John Nichel <[EMAIL PROTECTED]> wrote: > Rory Browne wrote: > > On 6/8/05, David Duong <[EMAIL PROTECTED]> wrote: > > > >>Sebastian wrote: > >> > >>>i'm looking for a function that can highlight certain search terms in a > >>>string. anyone have something already made that i can plugin t

Re: [PHP] Really simple regex

2005-06-08 Thread Matthew Weier O'Phinney
* Rory Browne <[EMAIL PROTECTED]> : > preg_replace("/x+/", "x", $string); should do it. Having that said, > regex generally comes back and bites me in the ass, so... That one won't -- that's spot on. > On 6/8/05, Dotan Cohen <[EMAIL PROTECTED]> wrote: > > Now, I know that this is easy, bu

Re: [PHP] Beautiful HTML Invoice -> Prints like crap! I need somesuggestions!

2005-06-08 Thread Jason Barnett
@media print { /* style sheet for print goes here */ } http://www.w3.org/TR/REC-CSS2/media.html ^^^ This is a good suggestion. But if you only need to print just this one invoice then you can also take a full screen shot, paste that into your favorite image program and then print from th

Re: [PHP] Really simple regex

2005-06-08 Thread Rory Browne
preg_replace("/x+/", "x", $string); should do it. Having that said, regex generally comes back and bites me in the ass, so... On 6/8/05, Dotan Cohen <[EMAIL PROTECTED]> wrote: > Now, I know that this is easy, but I am embarassed to say that I can't > find a regex tutorial that will show me

[PHP] Really simple regex

2005-06-08 Thread Dotan Cohen
Now, I know that this is easy, but I am embarassed to say that I can't find a regex tutorial that will show me how to match any occurances of x and replace them with one x: x >x xx > x x > x $string="I have apples!"; $string=preg_replace("-regex here-","x", $string); print "$string";

Re: [PHP] Beautiful HTML Invoice -> Prints like crap! I need somesuggestions!

2005-06-08 Thread Marek Kilimajer
Jason Barnett wrote: Marek Kilimajer wrote: Matt Babineau wrote: Hi all - I've got a great html invoice that prints like crap because of my user of background images and foreground images. Does anyone have any good suggestions other than turn on images in IE to get this thing to print the

Re: [PHP] Re: string highlight

2005-06-08 Thread John Nichel
Rory Browne wrote: On 6/8/05, David Duong <[EMAIL PROTECTED]> wrote: Sebastian wrote: i'm looking for a function that can highlight certain search terms in a string. anyone have something already made that i can plugin to my exisiting code? I found a couple but they do not work very well.. s

Re: [PHP] curl

2005-06-08 Thread Burhan Khalid
Jon wrote: I have not used curl before and it looked interesting from the manual. So, does anyone have a sample script or a tutorial that covers the logon procedure. What I want to do is logon to an asp site and download some files. Can someone point me in the right direction? I have done some

Re: [PHP] Beautiful HTML Invoice -> Prints like crap! I need somesuggestions!

2005-06-08 Thread Jason Barnett
Marek Kilimajer wrote: Matt Babineau wrote: Hi all - I've got a great html invoice that prints like crap because of my user of background images and foreground images. Does anyone have any good suggestions other than turn on images in IE to get this thing to print the graphics? Is there a goo

[PHP] Add Excel/Word documents to a dynamic pdf.

2005-06-08 Thread Bosky, Dave
I know how to create dynamic PDF's on the fly using the PDF library functions. Is there a way I can add Excel and Word documents to the dynamic PDF as well? Here's what I need to do. Basically I have a master list of available files in the following formats: text, JPEG images, Excel, Powerpoi

[PHP] Returned mail: see transcript for details

2005-06-08 Thread Mail Delivery Subsystem
ALERT! This e-mail, in its original form, contained one or more attached files that were infected with a virus, worm, or other type of security threat. This e-mail was sent from a Road Runner IP address. As part of our continuing initiative to stop the spread of malicious viruses, Road Runner s