Re: [PHP] Web live radio

2004-06-30 Thread raditha dissanayake
ascll wrote: Greetings, Does anyone know how to develop a web live radio using php, which could use any one of my PCs as the 'radio station' to broadcast whatever voices/music? PHP is probably not the sbest technology for streaming content. Take a look at shoutcast or icecast or some other

[PHP] checkbox

2004-06-30 Thread Aris Santillan
how can process only items with checked check-box? --- html --- html head titleUntitled Document/title /head body form name=form1 method=post action= p input type=checkbox name=checkbox value=checkbox input type=text name=textfield[1] /p p input

Re: [PHP] checkbox

2004-06-30 Thread Justin Patrin
Try foreach ($_POST['textfield'] as $num = $value); On Wed, 30 Jun 2004 15:56:35 +0800, Aris Santillan [EMAIL PROTECTED] wrote: how can process only items with checked check-box? --- html --- html head titleUntitled Document/title /head body form

[PHP] Re: Saving variables in a session in a destructor

2004-06-30 Thread Red Wingate
Maybe you check out the internals archives as an discussion about this topic was held 1-2 days ago. Hi all Using PHP5, I am trying to save some properties of an object when it is destroyed in its destructor, __destruct(). However, I have found that the session variable is NOT stored unless

[PHP] Re: TAB Syntax

2004-06-30 Thread Harlequin
Cheers Lars. So, for example, if I wanted to display some plain text tabbed I'd use: echo prestring1\tstring2\tstring3/pre; There's just one problem though - it formats the text differently to the rest of the page (I'm using CSS to control this). Any thoughts...? --

[PHP] Re: TAB Syntax

2004-06-30 Thread Lars Torben Wilson
Harlequin wrote: Cheers Lars. So, for example, if I wanted to display some plain text tabbed I'd use: echo prestring1\tstring2\tstring3/pre; There's just one problem though - it formats the text differently to the rest of the page (I'm using CSS to control this). Any thoughts...? Try adding

[PHP] Re: Best external app from php

2004-06-30 Thread pete M
I had a similar scenario recently the way I tackled the problem was to set a cron to trigger a cli script every minute the script first checked a database to see if there was any jobs queued then processed in the background works a treat pete C.F. Scheidecker Antunes wrote: Hello all, I need

[PHP] Regular expression

2004-06-30 Thread Syed Ghouse
Hi All (B (Bwill anyone give me a solution to get the name and email address of sender from the (Bmail text below using regular expression. (B (BThe result shud get (Bname as syed ghouse (Band (Bemail as [EMAIL PROTECTED] (B (B--- Mail text start --- (B (BReturn-Path: [EMAIL

[PHP] Re: Regular expression

2004-06-30 Thread Aidan Lister
I suggest not using a regex. There are better tools for parsing an email, for example formail. $email = `formail -x Return-Path`; See google.com for more information Regards, Aidan Syed Ghouse [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Hi All will anyone give me a solution to

[PHP] Re: Best external app from php

2004-06-30 Thread Aidan Lister
If you're asking which is faster, PHP or Java, it's a very difficult question and I doubt anyone will give you a concrete answer. I'd suggest writing the application in a much faster compiled language, c++ for example. C.F. Scheidecker Antunes [EMAIL PROTECTED] wrote in message news:[EMAIL

[PHP] Tab panels

2004-06-30 Thread Vincent DUPONT
Hi, does anyone knowns of a good PEAR of other free TabPanels container? I would like to be able to constumize the tabs and insert as many panels as needed. PHP and/or Javascript is ok Thank you, Vincent -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

[PHP] Re: TAB Syntax

2004-06-30 Thread Harlequin
Lars I got it working a treat. Thanks very much. This is what I ended up with: echo preThis\tis\ta\ttest./pre; and I simply added a PRE tag to the CSS file which has the same attributes as the body tag. Thanks very much for your patience Lars. -- -

[PHP] Re: Regular expression

2004-06-30 Thread Red Wingate
If you still like to gather the information without using any tools: $email = explode( \n , $mailText ); foreach ( $email AS $emailLine ) { $emailLine = trim( $emailLine ); if ( strtoupper ( substr( $emailLine , 0 , 4 ) ) == 'FROM' ) { preg_match( '#^from\s*:\s*([^]+)(([^]+))?#si'

[PHP] [Newbie Guide] For the benefit of new members

2004-06-30 Thread Ma Siva Kumar
=== Please feel free to add more points and send to the list. === 1. If you have any queries/problems about PHP try http://www.php.net/manual/en first. You can download a copy and use it offline also. Please also try

[PHP] Best table structure

2004-06-30 Thread Tom Chubb
Please can someone let me know their opinion on the following: I have written some code for submitting a top 20 music chart online. I use the following to insert into mysql: INSERT INTO chart (name, chartpos, artist, title, label) VALUES ('$name', '1', '$artist', '$title', '$label'), ('$name',

Fw: [PHP] Re: Regular expression

2004-06-30 Thread Syed Ghouse
- Original Message - From: Syed Ghouse [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, June 30, 2004 PM 04:43 Subject: Re: [PHP] Re: Regular expression Thanks Aiden for ur help i used ur code and i got name as Red Wingate[EMAIL PROTECTED] and no email. So pls correct

Re: Fw: [PHP] Re: Regular expression

2004-06-30 Thread Red Wingate
First of all check who u credit :p Secondly why don't you just try to fix it yourself? There was just a typo in the regexp: - #^from\s*:\s*([^]+)(([^]+))?#si + #^from\s*:\s*([^]+)(([^]+))?#si Hopefully this will help you even more: ?php /** * @param string $runlevel * @return mixed */

[PHP] MySQL QUERY Results Not Appearing

2004-06-30 Thread Harlequin
Hi all... Despite being able to make a connection to the server and execute a query I am unable to do this through PHP using the following commands: echo h3active members should appear here/h3; $query = SELECT * FROM RegisteredMembers; $result = mysql_query($query) or die (could not execute

RE: [PHP] MySQL QUERY Results Not Appearing[Scanned]

2004-06-30 Thread Michael Egan
Have a look at the mysql functions in the PHP manual - i.e. http://uk.php.net/mysql_query I'm also certain this question has been raised fairly recently on the list. All mysql_query is going to do is either open up the resource or not. You'll need to use something else to display the data.

[PHP] Re: [PHP-DB] Best table structure

2004-06-30 Thread Ruprecht Helms
Tom Chubb wrote: Please can someone let me know their opinion on the following: I have written some code for submitting a top 20 music chart online. I use the following to insert into mysql: your posting is offtopic - you can get more help by asking in the mysql-mailinglist. Regards, Ruprecht

Re: [PHP] Re: Saving variables in a session in a destructor

2004-06-30 Thread David Goodlad
Ahh, guess I didn't look hard enough! Thanks! Dave On Wed, 30 Jun 2004 10:10:29 +0200, Red Wingate [EMAIL PROTECTED] wrote: Maybe you check out the internals archives as an discussion about this topic was held 1-2 days ago. Hi all Using PHP5, I am trying to save some properties of

[PHP] Re: MySQL QUERY Results Not Appearing

2004-06-30 Thread Craig Donnelly
$result is an array that has to be fetched...try this echo h3active members should appear here/h3; $query = mysql_query(SELECT * FROM RegisteredMembers) or die(could not execute query); while($result = mysql_fetch_array($query)){ echo $result['YOUR_DB_FIELDNAME']; } change

[PHP] install/config error - please help

2004-06-30 Thread Nguyen, Long P (Mission Systems)
any ideas with this install/config error? [EMAIL PROTECTED] php-4.3.7]# ./configure --with-mysql=/usr/local/mysql creating cache ./config.cache checking host system type... i686-pc-linux-gnu checking for gcc... gcc checking whether the C compiler (gcc ) works... no configure: error: installation

[PHP] suexec in php

2004-06-30 Thread Syed Ghouse
Hi All (B (BIs there any suexec function in php to create a unix user (B (Bor there is any function to create user dynamically from php code (B (BThanks in advance (B (BRegards (Bsyed

Fw: [PHP] Re: Regular expression

2004-06-30 Thread Syed Ghouse
Yeah i used ur coding below and i got the solution for my problem. Thanks Aidan Syed - Original Message - From: Syed Ghouse [EMAIL PROTECTED] To: php mailinglists [EMAIL PROTECTED] Sent: Wednesday, June 30, 2004 PM 04:45 Subject: Fw: [PHP] Re: Regular expression - Original

Re: [PHP] install/config error - please help

2004-06-30 Thread Curt Zirzow
* Thus wrote Nguyen, Long P (Mission Systems): any ideas with this install/config error? [EMAIL PROTECTED] php-4.3.7]# ./configure --with-mysql=/usr/local/mysql creating cache ./config.cache checking host system type... i686-pc-linux-gnu checking for gcc... gcc checking whether the C

Re: Fw: [PHP] Re: Regular expression

2004-06-30 Thread Curt Zirzow
* Thus wrote Red Wingate: First of all check who u credit :p Secondly why don't you just try to fix it yourself? There was just a typo in the regexp: - #^from\s*:\s*([^]+)(([^]+))?#si + #^from\s*:\s*([^]+)(([^]+))?#si Hopefully this will help you even more: You're too nice.. Btw, I

Re: [PHP] suexec in php

2004-06-30 Thread Curt Zirzow
* Thus wrote Syed Ghouse: Hi All Is there any suexec function in php to create a unix user or there is any function to create user dynamically from php code You might want to start here: man unix Curt -- First, let me assure you that this is not one of those shady pyramid schemes

Re: Fw: [PHP] Re: Regular expression

2004-06-30 Thread Red Wingate
Oh ... you forgot to include your account-info so i won't be able to send you the money :-/ [...] You're too nice.. Btw, I need some money. Send me money ASAP. It must be an amount greater than $200, and be delivered to me directly, thank you. [...] -- PHP General Mailing List

RE: [PHP] Protecting database passwords

2004-06-30 Thread Chris W. Parker
Bob Hockney mailto:[EMAIL PROTECTED] on Tuesday, June 29, 2004 5:58 PM said: I wrote a php script that accesses a database, and I am wondering about securing the password to the database. I could prompt the user for the password every session, but I don't necessarily want the user to

Re: [PHP] checkbox

2004-06-30 Thread abrea
If you put square brackets after the name (e.g. var[]) your form should produce an array called $_POST[var] that comprises the checked boxes only. e.g. form method=post ... input type=checkbox name=var[] value=value1 input type=checkbox name=var[] value=value2 input type=checkbox name=var[]

Re: [PHP] Re: test if $int is integer

2004-06-30 Thread Chris Shiflett
--- Matthew Sims [EMAIL PROTECTED] wrote: I recently purchased George Schlossnagle's Advanced PHP Programming and on page 85 in the Error Handling chapter, he made a reference about the is_int function. In the above function example he had: if (!preg_match('/^\d+$/',$n) || $n 0) {

Re: [PHP] Protecting database passwords

2004-06-30 Thread Craig Donnelly
MD5 - http://ie2.php.net/md5 One way in encryption. Chris W. Parker [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Bob Hockney mailto:[EMAIL PROTECTED] on Tuesday, June 29, 2004 5:58 PM said: I wrote a php script that accesses a database, and I am wondering about securing the

Re: [PHP] Protecting database passwords

2004-06-30 Thread Red Wingate
Hashing ... but i guess he wants to protected the password needed to access the DB not a PW stored in the DB. [...] MD5 - http://ie2.php.net/md5 One way in encryption. [...] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] install/config error - please help

2004-06-30 Thread Nguyen, Long P (Mission Systems)
I tried what you suggested and got the following: [EMAIL PROTECTED] root]# main(){return(0);} test.c -bash: main(){return(0);}: command not found [EMAIL PROTECTED] root]# gcc -o test $CFLAGS $CPPFLAGS $LDFLAGS test.c $LIBS /usr/lib/crt1.o(.text+0x18): In function `_start': : undefined reference

[PHP] What do I need in order to do the following with php.

2004-06-30 Thread bclem
I want to make sure I'm correct in doing something. What do I need in order to perform the following: - Send an XML message to something at a website, have it load a database with the message, and return an acknowledgement.

Re: [PHP] Re: test if $int is integer

2004-06-30 Thread John W. Holmes
Matthew Sims wrote: I recently purchased George Schlossnagle's Advanced PHP Programming and on page 85 in the Error Handling chapter, he made a reference about the is_int function. In the above function example he had: if (!preg_match('/^\d+$/',$n) || $n 0) { In which he mentions: It might be

[PHP] XML Cdata problem

2004-06-30 Thread Mathieu Dumoulin
PHP 4.3.7 on Linux Red Hat 7.3 full patch and updates, Expat expat_1.95.2 Problem: I am reading the XML file below and at path: advantage/route/origin/status/ The CDATA inside the STATUS node cannot be read (Current value 1900), there isnt much information on how to use the EXPAT library on

[PHP] Re: XML Cdata problem

2004-06-30 Thread Mathieu Dumoulin
Forget myt post, its a stupid error from my part because of object references and stuff like that. I'll fix it myself. Mathieu Dumoulin [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] PHP 4.3.7 on Linux Red Hat 7.3 full patch and updates, Expat expat_1.95.2 Problem: I am reading

[PHP] How to escape apostrophe in HTML textbox exactly???

2004-06-30 Thread Scott Fletcher
I'm using data that goes from the HTML textbox to PHP to MYSQL to PHP to HTML textbox. The only trouble I have is to escape the apostrophe character when it is put into the HTML textbox by PHP (from MySQL). --snip-- echo input type='textbox' value='.$value.'; --snip-- I can't use the HTML

[PHP] Re: How to escape apostrophe in HTML textbox exactly???

2004-06-30 Thread Torsten Roehr
Scott Fletcher [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] I'm using data that goes from the HTML textbox to PHP to MYSQL to PHP to HTML textbox. The only trouble I have is to escape the apostrophe character when it is put into the HTML textbox by PHP (from MySQL). --snip--

RE: [PHP] Re: How to escape apostrophe in HTML textbox exactly???

2004-06-30 Thread Chris W. Parker
Torsten Roehr mailto:[EMAIL PROTECTED] on Wednesday, June 30, 2004 10:03 AM said: 1. get data from DB 2. convert for valid HTML output (stripslashes(), htmlentities()) 3. output as HTML (into the form elements) 4. get POST data 5. escape POST data and insert into DB again two comments:

RE: [PHP] Protecting database passwords

2004-06-30 Thread Chris W. Parker
Red Wingate mailto:[EMAIL PROTECTED] on Wednesday, June 30, 2004 9:33 AM said: Hashing ... but i guess he wants to protected the password needed to access the DB not a PW stored in the DB. you probably understand this already but for those who don't i would like to say: right, but the

Re: [PHP] Re: How to escape apostrophe in HTML textbox exactly???

2004-06-30 Thread Justin Patrin
On Wed, 30 Jun 2004 19:02:50 +0200, Torsten Roehr [EMAIL PROTECTED] wrote: Scott Fletcher [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] I'm using data that goes from the HTML textbox to PHP to MYSQL to PHP to HTML textbox. The only trouble I have is to escape the apostrophe

Re: [PHP] Protecting database passwords

2004-06-30 Thread Red Wingate
even for the guy who wrote the source. it's allmost impossible to restore the data as the only option is a brute-force attempt. Chris W. Parker wrote: Red Wingate mailto:[EMAIL PROTECTED] on Wednesday, June 30, 2004 9:33 AM said: Hashing ... but i guess he wants to protected the password

[PHP] Re: How to escape apostrophe in HTML textbox exactly???

2004-06-30 Thread Red Wingate
use quot; to display the data in the input-text element and undo this before inserting it into the database function quoteToHtml ( $string ) { return str_replace( '' , 'quot;' , $string ); } function htmlToQuote ( $string ) { return str_replace( 'quot;' , '' , $string ); } Only way to go :-)

[PHP] Earliest PHP/FI

2004-06-30 Thread Jeff Loiselle
Does anyone know where I would be able to find the earliest version of PHP/FI or PHP possible? I am looking for the earliest possible version for academic reasons. Thanks in advace. -- Jeff Loiselle - http://www.newnewmedia.com/~jeff -- PHP General Mailing List (http://www.php.net/) To

Re: [PHP] Re: How to escape apostrophe in HTML textbox exactly???

2004-06-30 Thread Justin Patrin
On Wed, 30 Jun 2004 19:32:29 +0200, Red Wingate [EMAIL PROTECTED] wrote: use quot; to display the data in the input-text element and undo this before inserting it into the database function quoteToHtml ( $string ) { return str_replace( '' , 'quot;' , $string ); } Much better to use

Re: [PHP] Re: How to escape apostrophe in HTML textbox exactly???

2004-06-30 Thread Torsten Roehr
Justin Patrin [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] On Wed, 30 Jun 2004 19:02:50 +0200, Torsten Roehr [EMAIL PROTECTED] wrote: Scott Fletcher [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] I'm using data that goes from the HTML textbox to PHP to MYSQL to

Re: [PHP] Re: How to escape apostrophe in HTML textbox exactly???

2004-06-30 Thread Torsten Roehr
Chris W. Parker [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED]01.ati.local... Torsten Roehr mailto:[EMAIL PROTECTED] on Wednesday, June 30, 2004 10:03 AM said: 1. get data from DB 2. convert for valid HTML output (stripslashes(), htmlentities()) 3. output as HTML (into the form

Re: [PHP] Re: How to escape apostrophe in HTML textbox exactly???

2004-06-30 Thread John W. Holmes
Red Wingate wrote: use quot; to display the data in the input-text element and undo this before inserting it into the database function quoteToHtml ( $string ) { return str_replace( '' , 'quot;' , $string ); } function htmlToQuote ( $string ) { return str_replace( 'quot;' , '' , $string ); }

Re: [PHP] Re: How to escape apostrophe in HTML textbox exactly???

2004-06-30 Thread Joel Kitching
What's wrong with addslashes() on the way in and stripslashes() on the way out? Why would you want to convert it to it's HTML entity? -- Joel Kitching http://midgardmanga.keenspace.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: Earliest PHP/FI

2004-06-30 Thread Red Wingate
maybe take a look here : http://museum.php.net/ otherwise do some research using google. Jeff Loiselle wrote: Does anyone know where I would be able to find the earliest version of PHP/FI or PHP possible? I am looking for the earliest possible version for academic reasons. Thanks in advace. --

RE: [PHP] Protecting database passwords

2004-06-30 Thread Chris W. Parker
Red Wingate mailto:[EMAIL PROTECTED] on Wednesday, June 30, 2004 10:29 AM said: even for the guy who wrote the source. it's allmost impossible to restore the data as the only option is a brute-force attempt. right so what is the point you're trying to make? c. -- PHP General Mailing

Re: [PHP] Re: How to escape apostrophe in HTML textbox exactly???

2004-06-30 Thread John W. Holmes
Joel Kitching wrote: What's wrong with addslashes() on the way in and stripslashes() on the way out? Why would you want to convert it to it's HTML entity? Please try to load the following HTML and tell me what's wrong with it: input type=text name=whatever value=some \ value And then load this:

RE: [PHP] Re: How to escape apostrophe in HTML textbox exactly???

2004-06-30 Thread Chris W. Parker
Joel Kitching mailto:[EMAIL PROTECTED] on Wednesday, June 30, 2004 10:34 AM said: What's wrong with addslashes() on the way in and stripslashes() on the way out? Why would you want to convert it to it's HTML entity? 1. addslashes() is not as robust as other solutions like

Re: [PHP] Re: How to escape apostrophe in HTML textbox exactly???

2004-06-30 Thread Joel Kitching
1. addslashes() is not as robust as other solutions like mysql_escape_string(). What exactly is the difference between the two? 2. in either case the slashes will be non-existant when the data is actually inserted into the database. for example: $mystring = hello here is my string. it

[PHP] Converting strings to match multiple charsets

2004-06-30 Thread Red Wingate
Hey guys, i ran into serious trouble when facing the problem to convert data, which was retrieved from a single form in our CMS to match the requirements of multiple charsets. Our CMS uses UTF-8 which worked out quite fine to display the data but caused weired symbols when displayed within a

[PHP] XML describing a form

2004-06-30 Thread Pierre
Hi all, I have to create a form from a xml containing data about the form, but I really don't know how to process? I can ask the xml structure I want but I don't know what is better Please if you have any information about this? My harder part is how handle a combo box ?(xml part and php parsing

[PHP] Re: Converting strings to match multiple charsets

2004-06-30 Thread Torsten Roehr
Red Wingate [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Hey guys, i ran into serious trouble when facing the problem to convert data, which was retrieved from a single form in our CMS to match the requirements of multiple charsets. Our CMS uses UTF-8 which worked out quite

Re: [PHP] Re: How to escape apostrophe in HTML textbox exactly???

2004-06-30 Thread Justin Patrin
On Wed, 30 Jun 2004 11:00:19 -0700, Joel Kitching [EMAIL PROTECTED] wrote: 1. addslashes() is not as robust as other solutions like mysql_escape_string(). What exactly is the difference between the two? mysql_escape_string() and mysql_real_escape_string() do the escaping as mysql needs

RE: [PHP] Re: How to escape apostrophe in HTML textbox exactly???

2004-06-30 Thread Chris W. Parker
Justin Patrin mailto:[EMAIL PROTECTED] on Wednesday, June 30, 2004 11:10 AM said: mysql_escape_string() and mysql_real_escape_string() do the escaping as mysql needs it. In addition, you can use PEAR::DB's quoteSmart to quote and it will change depending on the DB backend you're using.

[PHP] Re: Converting strings to match multiple charsets

2004-06-30 Thread Red Wingate
[...] Can't you use utf8_decode() to display the utf8 encoded data? [...] The displayed data worked out fine for some languages but others didn't and even simple german chars like äöü won't show up correctly within a textarea. [...] Is this what you're looking for?:

Re: [PHP] Re: How to escape apostrophe in HTML textbox exactly???

2004-06-30 Thread Scott Fletcher
This one look and sound good. I'll give this a shot. Thanks a million Scott F. John W. Holmes [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Red Wingate wrote: use quot; to display the data in the input-text element and undo this before inserting it into the database

Re: [PHP] XML describing a form

2004-06-30 Thread eoghan
My harder part is how handle a combo box ?(xml part and php parsing part) Thanks for all Pierre this may be of help to you http://www.topxml.com/xsltStylesheets/xslt_html.asp -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] XML describing a form

2004-06-30 Thread Pierre
Yes I think so.thanks a lot And Please all,can you say here the most appreciated and usefull links of php you have, cause I'm French and don't know English website about php I've found some with google but there's more I guess so about php xml and mysql thanks a lot. Pierre -Message

Re: [PHP] XML describing a form

2004-06-30 Thread eoghan
Yes I think so.thanks a lot And Please all,can you say here the most appreciated and usefull links of php you have, cause I'm French and don't know English website about php I've found some with google but there's more I guess so about php xml and mysql thanks a lot. try this:

Re: [PHP] Re: How to escape apostrophe in HTML textbox exactly???

2004-06-30 Thread Scott Fletcher
and now to the second part... why use htmlentities()? that is for displaying data within a form element OR (i hope i have this right) preventing XSS (Cross Site Scripting attacks). Yep, for displaying the data in the HTML's textbox and to allow us to redo the data before resubmitting it. Scott F.

Re: [PHP] Re: Earliest PHP/FI

2004-06-30 Thread Marek Kilimajer
Red Wingate wrote --- napísal:: maybe take a look here : http://museum.php.net/ otherwise do some research using google. Jeff Loiselle wrote: Does anyone know where I would be able to find the earliest version of PHP/FI or PHP possible? I am looking for the earliest possible version for academic

Re: [PHP] How to escape apostrophe in HTML textbox exactly???

2004-06-30 Thread Chris Shiflett
--- Scott Fletcher [EMAIL PROTECTED] wrote: I'm using data that goes from the HTML textbox to PHP to MYSQL to PHP to HTML textbox. The only trouble I have is to escape the apostrophe character when it is put into the HTML textbox by PHP (from MySQL). --snip-- echo input type='textbox'

Re: [PHP] Re: How to escape apostrophe in HTML textbox exactly???

2004-06-30 Thread John W. Holmes
Joel Kitching wrote: s... when you pull the data *out* of the database the \ will not exist and you therefore do not need to perform stripslashes(). I tried using addslashes() on the string in the query, and then SELECTing it, and the slashes are included. Does mysql_escape_string() not do

Re: [PHP] Re: How to escape apostrophe in HTML textbox exactly???

2004-06-30 Thread Chris Shiflett
--- Justin Patrin [EMAIL PROTECTED] wrote: You also shouldn't need addslashes when putting it in. quoteSmart() in PEAR::DB is a *much* better option. That's great for those who use PEAR::DB, but it's not very safe to argue against addslashes() based on what's in a specific PEAR module. I would

[PHP] Is PEAR worth the effort?

2004-06-30 Thread Will Merrell
I don't mean to start a flame war here, but I have been working in PHP for a while now and am about to start a more extensive aplication. Some of the PEAR modules look good and I just wanted to hear what the collected wisdom out here thinks about it. When I try to read the installation

Re: [PHP] Is PEAR worth the effort?

2004-06-30 Thread Justin Patrin
On Wed, 30 Jun 2004 15:21:36 -0400, Will Merrell [EMAIL PROTECTED] wrote: I don't mean to start a flame war here, but I have been working in PHP for a while now and am about to start a more extensive aplication. Some of the PEAR modules look good and I just wanted to hear what the collected

RE: [PHP] Is PEAR worth the effort?

2004-06-30 Thread Vincent DUPONT
it does REALLY worth it! Install is easy, download only thoses packages you need, extendable, stable... The doc is sometimes a bit poor, but the basic are always easy Vincent -Original Message- From: Will Merrell [mailto:[EMAIL PROTECTED] Sent: mercredi 30 juin 2004 21:22 To: [EMAIL

RE: [PHP] Is PEAR worth the effort?

2004-06-30 Thread Dennis Seavers
It's hard to say whether it's worth the effort for you; it depends on what your going to do, both for your current project and future ones. However, in general, I believe the effort you put into learning PEAR is negligible compared to the yield. I don't think PEAR is a flash in the pan.

Re: [PHP] How to escape apostrophe in HTML textbox exactly???

2004-06-30 Thread Scott Fletcher
In one of the reply to the original posting I made, someone say that htmlentities() would work and upon submission, the PHP's $_REQUEST, $_POST, $_GET would get the apostrophe somehow. (The conversion somewhere would change it back) Chris Shiflett [EMAIL PROTECTED] wrote in message

Re: [PHP] Re: How to escape apostrophe in HTML textbox exactly???

2004-06-30 Thread Scott Fletcher
Bummer, mysql_escape_string() is available only in PHP 5 and up. I'm using PHP 4.3.1 Chris Shiflett [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] --- Justin Patrin [EMAIL PROTECTED] wrote: You also shouldn't need addslashes when putting it in. quoteSmart() in PEAR::DB is a

Re: [PHP] Re: How to escape apostrophe in HTML textbox exactly???

2004-06-30 Thread Red Wingate
[...] Bummer, mysql_escape_string() is available only in PHP 5 and up. I'm using PHP 4.3.1 [...] *mo* - wrong [quote] mysql_escape_string (PHP 4 = 4.0.3, PHP 5) [/quote] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Re: How to escape apostrophe in HTML textbox exactly???

2004-06-30 Thread Justin Patrin
On Wed, 30 Jun 2004 15:41:42 -0400, Scott Fletcher [EMAIL PROTECTED] wrote: Bummer, mysql_escape_string() is available only in PHP 5 and up. I'm using PHP 4.3.1 I know that it's not. Where are you seeing that? According to the manual:

RE: [PHP] Re: How to escape apostrophe in HTML textbox exactly???

2004-06-30 Thread Chris W. Parker
Scott Fletcher mailto:[EMAIL PROTECTED] on Wednesday, June 30, 2004 12:42 PM said: Bummer, mysql_escape_string() is available only in PHP 5 and up. I'm using PHP 4.3.1 read the page again bro. :) http://us4.php.net/mysql_escape_string chris. -- PHP General Mailing List

[PHP] problem with embeded objects and reference

2004-06-30 Thread Vincent DUPONT
Hi, could anyone help on this 'by reference' problem. I have 2 classes. The main class as a child class. The child class has properties (array) I would like to be able to manipulate the child's properties even after the child has been inserted into the main class. Does this make sense? I can

[PHP] Re: problem with embeded objects and reference

2004-06-30 Thread Red Wingate
Not sure over here, but isn't it $main-setChild($child1); Vincent Dupont wrote: Hi, could anyone help on this 'by reference' problem. I have 2 classes. The main class as a child class. The child class has properties (array) I would like to be able to manipulate the child's properties even after

RE: [PHP] problem with embeded objects and reference

2004-06-30 Thread Chris W. Parker
Vincent DUPONT mailto:[EMAIL PROTECTED] on Wednesday, June 30, 2004 1:05 PM said: Hi, hi. could anyone help on this 'by reference' problem. when starting a new thread please do not just reply to an ongoing thread and change the subject. please start a new email. your fellow list

[PHP] Re: problem with embeded objects and reference

2004-06-30 Thread Red Wingate
Lill example: [...] $child1-setproperty(first);//displayed $main-setChild($child1); $child1-setproperty(second); //NOT DISPLAYED [...] $child1 is passed to $main with property 'first'. Later on you update $child1, but not $main-child, as they are not the same objects ( equal but not same ). So i

Re: [PHP] problem with embeded objects and reference

2004-06-30 Thread Red Wingate
so, why don't you reply correctly? :p Chris W. Parker wrote: Vincent DUPONT mailto:[EMAIL PROTECTED] on Wednesday, June 30, 2004 1:05 PM said: Hi, hi. could anyone help on this 'by reference' problem. when starting a new thread please do not just reply to an ongoing thread and change the

Re: [PHP] problem with embeded objects and reference

2004-06-30 Thread Red Wingate
better don't blame the other pal :-) http://screens.erisx.de/reply.gif -- red Red Wingate wrote: so, why don't you reply correctly? :p Chris W. Parker wrote: Vincent DUPONT mailto:[EMAIL PROTECTED] on Wednesday, June 30, 2004 1:05 PM said: Hi, hi. could anyone help on this 'by reference'

[PHP] Problem with pspell module

2004-06-30 Thread Shannon Werb
Hi all, I filed a PHP bug related to others I found online, but thought I would throw it by the list also... You can find the bug at: http://bugs.php.net/bug.php?id=28967 [30 Jun 5:40am CEST] shannon at swerb dot com Description: Hi there, sorry, but I am running out of ideas

[PHP] xslt_create

2004-06-30 Thread Pierre
Hi all Please when i'm trying to use the xslt_create() function php says indefined function but this is in my phpinfo() XML Support active XML Namespace Support active EXPAT Version 1.95.6 Any idea please ? Pierre -- PHP General Mailing List (http://www.php.net/) To unsubscribe,

Re: [PHP] xslt_create

2004-06-30 Thread Ray Hunter
On Wed, 2004-06-30 at 14:30, Pierre wrote: Hi all Please when i'm trying to use the xslt_create() function php says indefined function but this is in my phpinfo() XML Support active XML Namespace Support active EXPAT Version 1.95.6 Any idea please ? You need xslt support enabled

RE: [PHP] xslt_create

2004-06-30 Thread Pierre
Ok so I must recompile php with this option but I can't is there any php class easy to use that can do this ? Pierre -Message d'origine- De : Ray Hunter [mailto:[EMAIL PROTECTED] Envoyé : mercredi 30 juin 2004 21:34 À : php-general Objet : Re: [PHP] xslt_create On Wed, 2004-06-30 at

Re: [PHP] xslt_create

2004-06-30 Thread eoghan
on windows? linux? Pierre wrote: Ok so I must recompile php with this option but I can't is there any php class easy to use that can do this ? Pierre -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] xslt_create

2004-06-30 Thread Ray Hunter
On Wed, 2004-06-30 at 14:36, Pierre wrote: Ok so I must recompile php with this option but I can't is there any php class easy to use that can do this ? If you are on a linux box and have php installed via rpm you might be able to get a php-xslt rpm that you can use. If on windows you can

RE: [PHP] xslt_create

2004-06-30 Thread Pierre
Yes it's ok thanks to all :) But now I have a little problem : my page is all white This is my code : $xml='frm2004.xml'; $xsl='style1.xsl'; $xslt=xslt_create(); $resultat=xslt_process($xslt,$xml,$xsl); xslt_free($xslt); echo $resultat; what's wrong ? please Pierre -Message

Re: [PHP] How to escape apostrophe in HTML textbox exactly???

2004-06-30 Thread Marek Kilimajer
Scott Fletcher wrote --- napsal:: In one of the reply to the original posting I made, someone say that htmlentities() would work and upon submission, the PHP's $_REQUEST, $_POST, $_GET would get the apostrophe somehow. (The conversion somewhere would change it back) the somewhere is in the

Re: [PHP] xslt_create

2004-06-30 Thread eoghan
thats really difficult to say without seeing the xsl and xml. theres a very good xsl list over at mulberrytech.com too if you need specific xsl help http://www.mulberrytech.com/xsl/xsl-list/index.html Pierre wrote: Yes it's ok thanks to all :) But now I have a little problem : my page is all

RE: [PHP] xslt_create

2004-06-30 Thread Pierre
Thanks for the link :) In case of this is my .xml ?xml version=1.0 encoding=utf-8 ? ?xml:stylesheet type=text/xsl href=style1.xsl? formulaire FRMFAT04001 c001 type=input desc=Societe size=32John Smith/c001 c002 type=input desc=Adresse size=3225/c002

[PHP] Regular Expression Help

2004-06-30 Thread Pablo Gosse
Hi folks. I'm having a little bit of a stupid moment with a regular expression which I'm hoping someone can lend a hand with. The regular expression I have right now matches strings between 2 and 1000 characters in length that start with one of the following characters: a-z A-Z 0-9 ( ) and

[PHP] Re: Converting strings to match multiple charsets

2004-06-30 Thread Torsten Roehr
Red Wingate [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] [...] Can't you use utf8_decode() to display the utf8 encoded data? [...] The displayed data worked out fine for some languages but others didn't and even simple german chars like äöü won't show up correctly within a

Re: [PHP] Is PEAR worth the effort?

2004-06-30 Thread Torsten Roehr
Justin Patrin [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] On Wed, 30 Jun 2004 15:21:36 -0400, Will Merrell [EMAIL PROTECTED] wrote: I don't mean to start a flame war here, but I have been working in PHP for a while now and am about to start a more extensive aplication. Some of

  1   2   >