Re: [PHP] Constraint Violation when INSERT

2003-12-10 Thread Sophie Mattoug
Hi all, I got the error " Constraint Violation " when I did an "INSERT" . Gone thru the code umpteen times but to no avail..Wondering where my error was??...Below is a snip of the block of code: $db = DB::connect ($dsn); if (DB::isError ($d

[PHP] [Fwd: [ERR] [PHP] [Fwd: failure notice]]

2003-12-10 Thread Sophie Mattoug
elivered-To: [EMAIL PROTECTED] Message-ID: <[EMAIL PROTECTED]> Date: Wed, 10 Dec 2003 10:37:10 +0100 From: Sophie Mattoug <[EMAIL PROTECTED]> User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.5) Gecko/20031107 Debian/1.5-3 X-Accept-Language: fr-fr MIME-Version: 1.0 To: [EMAIL P

[PHP] [Fwd: failure notice]

2003-12-10 Thread Sophie Mattoug
AIL PROTECTED]> Date: Wed, 10 Dec 2003 10:37:10 +0100 From: Sophie Mattoug <[EMAIL PROTECTED]> User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.5) Gecko/20031107 Debian/1.5-3 X-Accept-Language: fr-fr MIME-Version: 1.0 To: [EMAIL PROTECTED] References: <[EMAIL PROTECTED]> In-Repl

Re: [PHP] Display Query Result As Editable Form

2003-12-10 Thread Sophie Mattoug
[EMAIL PROTECTED] wrote: Hi all, I am creating a user form whereby I will do an "INSERT" , "SELECT" , "UPDATE" and of course "DELETE" for the form. Right now I am trying to create a form whereby when user choose to update their info, they wil be directed to a form where the fields region ar

Re: [PHP] simple php search

2003-12-05 Thread Sophie Mattoug
Paul Duggan wrote: if I create a text box: how do I go about extracting a surname from a mysql database? will it be something along the lines? select firstname,surname from employees where surname = textbox.surname; "SELECT firstname, surname FROM employees WHERE surname = '{$_G

Re: [PHP] International Addresses and Telephones

2003-12-04 Thread Sophie Mattoug
I can tell you for France : zip code : 5 digits (may begin by '0') state : not relevant phone number : 10 digits or +33 and 9 digits Rankin, Randy wrote: I have a form which captures US addresses ( address, city, state ) and telephone numbers ( 10 digit ) and am writing this data to a MySQL table.

Re: [PHP] CHMOD...

2003-12-04 Thread Sophie Mattoug
Jay Blanchard wrote: [snip] Is there anyway to use CHMOD: chmod ("/somedir/somefile", 0755); but have it set all files, folders etc to the CHMOD setting I want? I have a folder, and within that, I wanna quickly, jsut set it all to CHMOD 777. all sub DIR's and files etc... can it be done simply

Re: [PHP] How does one run PHP scripts in 'silent mode' ???

2003-12-04 Thread Sophie Mattoug
Jay Blanchard wrote: [snip] I am running php as an apache module, which is why I used 'START' in exec("START http://blablalga";. Not sure if this is the correct way of doing it but I cannot use -q with start. [/snip] What is it that you are trying to accomplish? Then perhaps I can better help. Eve

Re: [PHP] BLOB - PHP Peformance DB vs. Web server Opinions

2003-12-04 Thread Sophie Mattoug
le is always (please, other list-members, tell if I'm wrong) faster than extracting from a database. Hope this helps, -- Cordialement, ------- Sophie Mattoug Développement web dynamique [EMAIL PROTECTED] --- -- PHP General Mailing List (http://www.ph

Re: [PHP] Execute a linux binary that generates a registration code...

2003-12-04 Thread Sophie Mattoug
See www.php.net/passthru Karam Chand wrote: Hello I have got an app wherein you need to pass a name as the first parameter and it will output that is cout << a registraion code for my app based on the name. I would like to give a web based interface wherein a user can give his name on the for

Re: [PHP] wrapping PHP around Chinese characters

2003-12-03 Thread Sophie Mattoug
Would it be possible you have a problem with line-feeds while uploading from win ti linux ? -- Cordialement, --- Sophie Mattoug Développement web dynamique [EMAIL PROTECTED] --- See Kok Boon wrote: Hellox experts.. I am making a quiz for a

Re: [PHP] Finding array in MySQL (I'm not asking the right question)

2003-12-02 Thread Sophie Mattoug
s few queries to the database as possible. Is that a correct assumption, or am I wrong there? Totally wrong ! It's always better to have maximum work done by MySQL Hope this helps, -- Cordialement, ------- Sophie Mattoug Développement web dynamique [EMAIL

Re: [PHP] Finding array in MySQL (I'm not asking the right question)

2003-12-02 Thread Sophie Mattoug
You can do something like $str = "'".implode("', '", $arr)."'"; $query = "SELECT * FROM table WHERE id IN ($str)"; Hope this helps, -- Cordialement, --- Sophie Mattoug Développement web dynamique [EMAIL PRO

Re: [PHP] PHP Community Site - Volunteers Needed

2003-12-02 Thread Sophie Mattoug
The French php community has its site already : http://www.communautephp.com. Myabe it can give you some ideas... Chris Shiflett wrote: PHP has one of the largest developer communities in the world, yet we have no community gathering place like those you can find for other languages (Perl has ht

Re: [PHP] regular expression, image, name, alt, title, preg_match_all

2003-12-01 Thread Sophie Mattoug
Sophie Mattoug wrote: Adam i Agnieszka Gasiorowski FNORD wrote: I'm trying to develop a regex for matching with preg_match_all, I want to match such things like image name, image alt text, image title in construct like this: html... text html... The rexex as for n

Re: [PHP] include-problem

2003-12-01 Thread Sophie Mattoug
d? Sincerely Victor This is a perfectly normal behaviour ! See www.php.net/include to understand what this function does. (comparing to www.php.net/require) Hope this helps, -- Cordialement, --- Sophie Mattoug Développement web dynamique [EMAIL PROTECTED] --

Re: [PHP] regular expression, image, name, alt, title, preg_match_all

2003-12-01 Thread Sophie Mattoug
gt;", $your_text, $img_array); $i = 0; foreach ($img_array as $img) { while (ereg("^(.+)=\"(.+)\"", "", $img, $regs)) $images[$i][$regs[1]] = $regs[2]; $i++; } Hope this helps, -- Cordialement, --- Sophie Mattoug Développement

Re: [PHP] Re: Capturing $_POST variables

2003-11-28 Thread Sophie Mattoug
Shaun wrote: Thanks you for your replies, is there a reason why i couldn't use the following? $_POST = $_POST; You want to assign to the $_POST array of the third page the value of the $_POST of the seconde one ? You cannot do the way you wrote because it's not on the same page ! -- PHP Gene

Re: [PHP] Capturing $_POST variables

2003-11-28 Thread Sophie Mattoug
foreach ($_POST as $k => $v) { //everything you want to do } Shaun wrote: Hi, is it possible to capture $_POST variables sent from a previous page so i can send them on to the next page? Thanks for your help. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www

Re: [PHP] how to retrieve data from a web page

2003-11-27 Thread Sophie Mattoug
See these pages www.php.net/fopen and www.php.net/file good luck! Nitin wrote: hi all, I've a situation, where i want to supply some data to my script, which is dynamic and is available on a web page. How can i fetch that particular data from a page, if there's a way... Thanx in advance. Nitin

Re: [PHP] Stripping out all illegal characters for a folder name

2003-11-26 Thread Sophie Mattoug
Joseph Szobody wrote: Folks, I'm taking some user input, and creating a folder on the server. I'm already replacing " " with "_", and stripping out a few known illegal characters (', ", /, \, etc). I need to be sure that I'm stripping out every character that cannot be used for a folder name. Wha

Re: [PHP] mysql_connect() : undefined function

2003-11-26 Thread Sophie Mattoug
If you do phpinfo(), do you see in the section names "*Configure Command*" this directive: "--with-mysql=something" ? If not, you must re-compile PHP lwith MySQL support Binay wrote: Hi all! Its really strange/weird problem for me. it says::: Fatal error: Call to undefined function: mysql_co

Re: [PHP] Add Reply-To to this list(s)

2003-11-26 Thread Sophie Mattoug
Wouldn't it be possible to stop this troll ? Or go on, but in private between people who are interested by this matter... Thanks Jay Blanchard wrote: [snip] If you would stop using M$ Outlook and switch to a better mail client that supports mailing lists, your problem would be solved.[/snip]

Re: [PHP] Could some one check my code

2003-11-26 Thread Sophie Mattoug
pe this helps -- Cordialement, ------- Sophie Mattoug Développement web dynamique [EMAIL PROTECTED] --- $id = $myrow ['id']; echo"Error! There is another row in the database with a rating value of $rating\n You must first edit the row with a rating of

Re: [PHP] PHP script that fills forms ?

2003-11-26 Thread Sophie Mattoug
to fill that form for me. Would that be possible? Are there any other solutions? "Sophie Mattoug" <[EMAIL PROTECTED]> skrev i melding news:[EMAIL PROTECTED] Anonymous wrote: I was just wondering if it's possible to get a PHP script to fill a form for you? You

Re: [PHP] PHP script that fills forms ?

2003-11-26 Thread Sophie Mattoug
Anonymous wrote: I was just wondering if it's possible to get a PHP script to fill a form for you? You see, I'm trying to make PHP fetch a password protected website for me and there's a form with username and password that protects it. Can anyone help me? Perhaps give me another sollution? ech

Re: [PHP] Add Reply-To to this list(s)

2003-11-25 Thread Sophie Mattoug
And mly opinion is it's _really_ _very_ useful (I just sent my message to someone instead of the list! Gr Annoying!) Sophie Mattoug wrote: It's the way we do on [EMAIL PROTECTED], and everything is fine ! David T-G wrote: Thomas -- ...and then Thomas Svenson said...

Re: [PHP] strpos() act funny when searching for "]]>"....

2003-11-21 Thread Sophie Mattoug
Just a stupid idea : are you sure you have '>' in your text and not '>' ? Scott Fletcher wrote: I thought about that also, so I took your suggestion and tried it. Still doens't work... I tried those... "\]]>"; "\]\]>"; Scott F. "Jay Blanchard" <[EMAIL PROTECTED]> wrote in message news:[EMAIL P

Re: [PHP] Avoiding duplicate orders?

2003-11-20 Thread Sophie Mattoug
The way I do is, on the result page, to create a variable (for example $done) and I put to into the session. So if this variable already exists, I don't re-execute the form treatment code. Hope this helps -- Cordialement, --- Sophie Mattoug Développement web dyna

Re: [PHP] Counting elements in an array

2003-11-19 Thread Sophie Mattoug
$i = 0; foreach ($fruit as $k) if ('prange' == $k) $i++; (The result is $i, of course) Jeff McKeon wrote: How would I count the number of elements in an array that had a certain value? In other words, if I have $fruit = array(orange,orange,apple,bananna,orange,apple,pear); How could I get th

Re: [PHP] HTTP Authentication thru PHP

2003-11-19 Thread Sophie Mattoug
Jay Blanchard wrote: Or colons. It is a Bad Practice[tm] to use any special characters in user names and/or passwords. It is not universally allowed from OS to OS I disagree with this : special characters are useful to have better passwords (more difficult to crack), but as apache stores the so

Re: [PHP] HTTP Authentication thru PHP

2003-11-19 Thread Sophie Mattoug
I think I can remember semi-colon is not allowed in apache logins or passwords... Chandu Nannapaneni wrote: hello all , I'm able to get successfully http authenticated from my php scripts Ex : $header = "POST /myscript.php HTTP/1.0\r\nAuthorization: Basic "; $header .= base64_encode("$us

Re: [PHP] stepping through alphabet

2003-11-19 Thread Sophie Mattoug
Maybe you can try this for ($letter = 'A'; $letter++; $letter <= 'Z') echo "$letter\n"; Hope this helps Steve Buehler wrote: I am using PHP 4.3.4 and am trying to come up with a function that will step through the alphabet so that I get a menu/links that can be clicked on like below: A B C etc..