[PHP] Re: Help understanding code...

2003-09-26 Thread Baroiller Pierre-Emmanuel
Hi, It's a C Like Syntax (condition)?true:false; is like : if (condition) true else false regards. P.E. Baroiller Jeff McKeon [EMAIL PROTECTED] a écrit dans le message de news:[EMAIL PROTECTED] I've just picked up a more advanced book on PHP and it has a lot of example code in it. I

[PHP] Re: Multiple image buttons

2003-09-10 Thread Baroiller Pierre-Emmanuel
to your phpscript like pressed=xx where xx is the named button pressed. Regards, P.E. Baroiller Hardik Doshi [EMAIL PROTECTED] a écrit dans le message de news:[EMAIL PROTECTED] Hi Group, I have a page on which there are multiple image buttons. Is there any way to determine which button

[PHP] Re: Sotre image created by GD in db

2003-08-30 Thread Baroiller Pierre-Emmanuel
Hi, you can do something like this : !-- code -- $imgdata = addslashes(imagejpeg($imnew)); // For JPG file. $query=INSERT INTO your_table (data) value ('$imgdata'); $result = @mysql_query($query); !-- /code -- I haven't try but it may work... Regards. P.E. Baroiller Mohammadreza

[PHP] Re: Help with parse error

2003-08-20 Thread Baroiller Pierre-Emmanuel
entire script... I'm sure it's this ;) Regards, P.E. Baroiller James Johnson [EMAIL PROTECTED] a écrit dans le message de news:[EMAIL PROTECTED] Hi, I'm trying to figure out this error I'm getting in my code: Parse error: parse error in /home/.paco/campuscb/AdPayment.php on line 9

Re: [PHP] Trouble getting $HTTP_RAW_POST_DATA

2003-08-01 Thread Baroiller Pierre-Emmanuel
Hi, $HTTP_RAW_POST_DATA is an array... with echo you'll only get array.. To get something into $HTTP_RAW_POST_DATA, you need to submit your form before... Your script will only display something if you post the form before. Regards, P.E. Baroiller John W. Holmes [EMAIL PROTECTED] a écrit dans

[PHP] Re: Permission Denied (in FTP)

2003-07-25 Thread Baroiller Pierre-Emmanuel
Hi, Doest your ftp account have sufficient access rights for deleting theses files ? Is your apache user is nobody , the chmod will not work ( take a look at your error log file), so, only nobody or root will able to remove these entries.. Regards, P.E. Baroiller Stephen [EMAIL PROTECTED

[PHP] Re: cookies in asp

2003-07-24 Thread Baroiller Pierre-Emmanuel
If it's a real cookie, you can get it with php into the cookie vars.. If it's an asp session, forget it... Carlos Castillo [EMAIL PROTECTED] a écrit dans le message de news:[EMAIL PROTECTED] HI, I have the following problem, i have a website with php and asp files, in one asp file i

[PHP] Re: outputting a carriage return

2003-07-17 Thread Baroiller Pierre-Emmanuel
Hi, take a look at thedoc... there is a function called nl2br() to convert \n to br for html display. regards, P.E. Baroiller Bob pilly [EMAIL PROTECTED] a écrit dans le message de news:[EMAIL PROTECTED] Hi all Can someone tell me why if i echo a line like this: echo this is a \n newline

[PHP] Re: fwrite not working in php3

2003-07-17 Thread Baroiller Pierre-Emmanuel
does your file test.inc exists, and... have you perms to write in this directory ? [EMAIL PROTECTED] a écrit dans le message de news:[EMAIL PROTECTED] hi there i have a little problem writing files on a php3 server this code worked yesterday but isnt $handle =

[PHP] Re: Access Text Field Max Size

2003-07-17 Thread Baroiller Pierre-Emmanuel
Hi, PHP has nothing to do with this , use javascript to limit user entry into your textarea field.. I'll find many sample over the net. Regards, P.E. Baroiller Johnny Martinez [EMAIL PROTECTED] a écrit dans le message de news:[EMAIL PROTECTED] Hi all, I'm using an Access db as the backend

[PHP] Re: PHP MS Exchange Server problem

2003-07-16 Thread Baroiller Pierre-Emmanuel
Hi... are your sure your Exchanger server has imap enabled and port 143 is open ? If you've got the message connection refused, it can be : - not imap server is running - your login/password couple is wrong or - you can't connect to the port 143... regards, P.E. Baroiller Charles Vos [EMAIL

[PHP] Re: include statement giving me hives! - help

2003-07-16 Thread Baroiller Pierre-Emmanuel
Hi, when you call your script, is $point defined somewhere ? if $point is empty, you'll get an empty string for $links_include and include $links_include will not work. Regards, P.E. Baroiller Dougd [EMAIL PROTECTED] a écrit dans le message de news:[EMAIL PROTECTED] I am new to all

[PHP] Re: really no way to get byte size of variable?

2003-07-16 Thread Baroiller Pierre-Emmanuel
Hi, did you try count($value) and strlen($value) ? count($value) will give size of an array, and strlen($value) size of a string ... Regards, P.E. Baroiller Petre Agenbag [EMAIL PROTECTED] a écrit dans le message de news:[EMAIL PROTECTED] Hi List Just want to make sure: Is there no way

Re: [PHP] HTML email with Outlook

2003-07-15 Thread Baroiller Pierre-Emmanuel
Hi, try with adding this : $header = Content-Type: text/html; charset=\iso-8859-1\\nContent-Transfer-Encoding: 8bit\n\n; If it don't work, try to build multipart email ... Regards, P.E. Baroiller Tim Thorburn [EMAIL PROTECTED] a écrit dans le message de news:[EMAIL PROTECTED] Hi, I've made

[PHP] Re: How to store a file into MSSQL?

2003-07-15 Thread Baroiller Pierre-Emmanuel
How is defined your temp_test table ? PHP don't truncate content... you only need to define a binary blob field and store data into it.. regard, P.E. Baroiller Javier [EMAIL PROTECTED] a écrit dans le message de news:[EMAIL PROTECTED] Hi everybody, I've trying to store a into a MSSQL Server (7

[PHP] Re: value not passed

2003-07-15 Thread Baroiller Pierre-Emmanuel
, P.E. Baroiller Joaco [EMAIL PROTECTED] a écrit dans le message de news:[EMAIL PROTECTED] Can anyone tell me why the addDivName field is always passed as a blank... This is killing me. ?php if($i = 8) {? td input type=text name=addDivName class=textfield /td td align

[PHP] Re: Problem with Apache Web Server config file and PHP working together Please help!!

2003-07-15 Thread Baroiller Pierre-Emmanuel
Have you loaded php module into apache ? Have you defined .php files into your httpd.conf ? Try with easyphp on windows... I can't help you more... I hate windows! :D Regards, P.E Baroiller Karen Santmyer [EMAIL PROTECTED] a écrit dans le message de news:[EMAIL PROTECTED] HI: I

[PHP] Re: just wondering

2003-07-11 Thread Baroiller Pierre-Emmanuel
hmm... and... what would you do with a clear screen function on a web page with php ? I can't see how it could work.. :) PHP is server side, so you can't clear the user screen like with C or other language ... Regards, P.E. Baroiller Artoo [EMAIL PROTECTED] a écrit dans le message de news

[PHP] Re: mysql - get actual row

2003-06-10 Thread BAROILLER Pierre-Emmanuel
Hy, try with mysql_insert_id() [ if you've set the first field as index in your table ]. Regards. Harry.De [EMAIL PROTECTED] a écrit dans le message de news:[EMAIL PROTECTED] Hi, if i insert into a mysql table a row e.g. mysql_query(INSERT into TEST (testfield) VALUES ('This is a

[PHP] Re: can't call htpasswd using PHP

2003-06-10 Thread BAROILLER Pierre-Emmanuel
Does you php or apache process have perms to do this? Billy [EMAIL PROTECTED] a écrit dans le message de news:[EMAIL PROTECTED] Dear all, i can't call the htpasswd command after i used RedHat 8 ( which i can do so in Red Hat 7.2) do u have any idea/ suggestion? thx a lot HPS --

[PHP] Re: Warning: mysql_fetch_row(): supplied argument is not a valid MySQL result resource in f:\.....\none.php on line 286

2003-06-10 Thread BAROILLER Pierre-Emmanuel
Hi... You've made a bad query and there is no result... mysql_fetch_row($result) = if no data found, you've got an error... Marcelo Luiz De Laia [EMAIL PROTECTED] a écrit dans le message de news:[EMAIL PROTECTED] What this message means? What it is the error? Warning: mysql_fetch_row():

[PHP] Re: If else.. display no picture..

2003-04-05 Thread BAROILLER Pierre-Emmanuel
May be this line is wrong : Echo Geen informatie beschikbaar; may be use this instead... echo 'Geen informatie beschikbaar'; no? :) regards. [EMAIL PROTECTED] a écrit dans le message de news: [EMAIL PROTECTED] Hi, I'm trying to do the following.. When $stadpict is filled in it must

[PHP] Re: http$B$G%;%C%7%g%s$r3+;O$7$?l9g!(Bhttps$B$X9T$C$F$b7QB3$5$l$k$N$G$7$g$$+!)(B

2002-11-09 Thread BAROILLER Pierre-Emmanuel
Hi ! Could you write it in english please ? Rich [EMAIL PROTECTED] a ecrit dans le message de news: [EMAIL PROTECTED] PHP$B=i?4T$G$9!#+J,$J$j$K$$$m$$$m$HD4$Y$F$_$^$7$?$,$o$+$i$J$+$C$?$N$G!(B $B$*CN7C$rGRZ$5$;$F$/$@$5$$!#(B

[PHP] Re: Rotating Ads

2002-11-09 Thread BAROILLER Pierre-Emmanuel
The fastest way to do this is very simple : store the last Id of your banner , get another from your SQL table (with rand) and display it (repeat if the Id is the same).. And, in your html page, add a refresh=xx to refresh the ad page. Regards, P.E. Baroiller Stephen [EMAIL PROTECTED] a écrit

[PHP] Re: How to know files in a directory

2002-11-09 Thread BAROILLER Pierre-Emmanuel
use opendir() , and readdir().. you'll get a var like $file, then check is_file($file) to see if it's a file :) (take a look at the php doc.) Mohd_q [EMAIL PROTECTED] a écrit dans le message de news: [EMAIL PROTECTED] I wonder if there is a way to get the files names in a given directory. --

Re: [PHP] Convert GIF to JPG with or without GD

2002-11-08 Thread BAROILLER Pierre-Emmanuel
Yes... I've tried Image Magic , it's good for my work :) Now, I can resize/resample/reformat any kind of picture... thanks for all! :) Krzysztof Dziekiewicz [EMAIL PROTECTED] a écrit dans le message de news: [EMAIL PROTECTED] The GD library bundled with PHP 4.3 can read gif images (but not

Re: [PHP] HTTP POST FILE UPLOAD HELP

2002-11-08 Thread BAROILLER Pierre-Emmanuel
uploading works with php3 php4 and it's very easy to implement. cheers. P.E. Baroiller @ Darwin [EMAIL PROTECTED] a écrit dans le message de news: [EMAIL PROTECTED] Nope, tried that just now. The example doesn't work for me. Any other suggestions? - Darwin -Original Message- From

[PHP] Re: wanted: array_diff for more than values

2002-11-08 Thread BAROILLER Pierre-Emmanuel
array_diff check value, not keys.. Nick Eby [EMAIL PROTECTED] a écrit dans le message de news: [EMAIL PROTECTED] example: $arr1 = array(color = red, flavor = cherry); $arr2 = array(color = cherry, flavor = red); print_r(array_diff($arr1, $arr2)); those 2 arrays are different, but array_diff

[PHP] Re: big include

2002-11-08 Thread BAROILLER Pierre-Emmanuel
If you have a lot of code to process, it may be longer but, if it's a class include, it's very fast to load .. I've got classes about 60Kb, and the average for processing a page (from loading to the html output) is less than 5ms... Khalid El-Kary [EMAIL PROTECTED] a écrit dans le message de news:

[PHP] Re: how can I unsubscribe from this

2002-11-08 Thread BAROILLER Pierre-Emmanuel
go to php.net and unsubsbribe this mailing list :) Joe Reichmuth [EMAIL PROTECTED] a écrit dans le message de news: [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: registering object in session - Object to string notice error?

2002-11-08 Thread BAROILLER Pierre-Emmanuel
To this : session_register('somevar') and it'll work.. if your're using PHP4, you can also do this : $_SESSIONS['somevar']=$somevar Regards, P.E. Baroiller Paul [EMAIL PROTECTED] a écrit dans le message de news: 002601c28743$42bebbf0$[EMAIL PROTECTED] I have a simple object/class: Class

[PHP] Convert GIF to JPG with or without GD

2002-11-07 Thread BAROILLER Pierre-Emmanuel
P.E. Baroiller -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Convert GIF to JPG with or without GD

2002-11-07 Thread BAROILLER Pierre-Emmanuel
thanks for all! :) I'll take a look at this product. P.E. Baroiller Krzysztof Dziekiewicz [EMAIL PROTECTED] a écrit dans le message de news: [EMAIL PROTECTED] does anyone know a way to convert a gif file to jpg ? I've made a photo album and, want to resize pictures to create thumbnails

[PHP] regular expression and exact word search...

2002-11-07 Thread BAROILLER Pierre-Emmanuel
Hi! does someone know how to find an exact word in a content with html tags ? I'm using a regexp like this : $searchRegEx = '\b.$word_search.\b'msi; to get boundary word results, but... if the searched word is like 'word or word. or anything else, the regular expression doesn't work.. if I

Re: [PHP] regular expression and exact word search...

2002-11-07 Thread BAROILLER Pierre-Emmanuel
entry where words is in... .: B I G D O G :. [EMAIL PROTECTED] a écrit dans le message de news: [EMAIL PROTECTED] Which functions are you using to do the regex stuff... That might help...also check out... On Thu, 2002-11-07 at 15:42, BAROILLER Pierre-Emmanuel wrote: Hi! does someone

[PHP] Re: Need help...

2002-10-31 Thread BAROILLER Pierre-Emmanuel
Received fro Yves le duaron : Try this for example ; '.$pattern.([^]*)?(\/)?(?(2)|(.*)?\/.$pattern.)'siU Please notice the U (ungreedy) to enhance the speed. This also match empty tags ... Sorry I have no login to send this to the mailing list, do this for me please ! Baroiller Pierre

[PHP] Re: strange echo() effect

2002-10-31 Thread BAROILLER Pierre-Emmanuel
You've forgotten the /table in your echo... html_header() and html_footer() put html in the right place in your page but, like you haven't close your table tag, the footer dans be everywhere in your page (depends on the web browser you're using).. Regards, P.E. Baroiller I have a small piece

[PHP] Re: Need help...

2002-10-30 Thread Baroiller Pierre-Emmanuel
[0]); $eregstr=/head[^]*(.*)\/head[^]*/si; $str=preg_replace($eregstr,head\\1.$styles./head,$str); And, actually, it works fine.. Any other solution ? ( faster...??) Baroiller Pierre-Emmanuel [EMAIL PROTECTED] a écrit dans le message de news: [EMAIL PROTECTED] Hi everyone... I've got

[PHP] find html links..

2002-10-29 Thread Baroiller Pierre-Emmanuel
Hi... I'm looking for a preg_match regular expression to find all href tags into a text field... can someone help me?? I've tried a lot of regexp but... nothing work correctly... I can't get all matching href ( such as a href='xxx'/a or a href=xx/a , ... ) any idea? cheers.. P.E -- PHP

[PHP] Need help...

2002-10-29 Thread BAROILLER Pierre-Emmanuel
' or 'style' but.. It doesn't work... Like I'm not a regex guru ...I'm looking for help.. Regards, P.E. Baroiller -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: Best way to store Votes for Survey app

2002-10-27 Thread BAROILLER Pierre-Emmanuel
month.. No? Regards, P.E. Baroiller Monty [EMAIL PROTECTED] a écrit dans le message de news: [EMAIL PROTECTED] I'm writing a survey app in PHP (4.2.2) that will allow people to view a set of photos and then rate each photo from 1-5 using a little dropdown under each photo. When they are done

[PHP] You to prevent site hacking by 'pirates' ?

2002-10-27 Thread BAROILLER Pierre-Emmanuel
of the site, I check the session, the cookie and database fields for the user.. The crypted data contains some user values (the encryption is done with mcrypt lib). Is it a good way or is there a better way (without SSL)... ? Regards, P.E. Baroiller -- PHP General Mailing List (http

Re: [PHP] You to prevent site hacking by 'pirates' ?

2002-10-27 Thread BAROILLER Pierre-Emmanuel
.. The crypted data contains some user values (the encryption is done with mcrypt lib). Is it a good way or is there a better way (without SSL)... ? Regards, P.E. Baroiller -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: What is this??

2002-10-27 Thread BAROILLER Pierre-Emmanuel
You only have a difference into your insert query like this : insert into table (x,y,z) values(x,y) .. Miguel BráS [EMAIL PROTECTED] a écrit dans le message de news: [EMAIL PROTECTED] Hi guys, I was doing a script to insert data on a table, and the following message appeared me when

[PHP] Re: Option value

2002-10-16 Thread BAROILLER
you can do this with javascript calls. Uma Shankari T. [EMAIL PROTECTED] a écrit dans le message de news: [EMAIL PROTECTED] Hello, Is it possible to extract the value option which item name selected..for example i am having list of soap brand in the options..is it possible that to tell

[PHP] test

2002-10-16 Thread BAROILLER Pierre-Emmanuel
only to see if i can post messages -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] File upload and php... not a beginner question...

2002-10-16 Thread Baroiller Pierre-Emmanuel
Hi, everyone know how to upload files from the browser to your web server using multipart-form method with move_downloaded_file() php function. But... It's a slow method for multiple files huge files transfert. I'm currently working on a big photo album tool, and I want to provide user the

[PHP] Re: Need help with HTTP-Authentication

2002-10-16 Thread BAROILLER
Hi, a simple question.. :) how do you do ? You can use 2 methods : with a .htaccess file on your webserver, updated with your table fields or a direct authentification with http headers and a little bit of php... Tell me more? may be I could help you. Regards, P.E. Baroiller Davy Obdam [EMAIL

[PHP] file upload and php (Not a begginer question!)

2002-10-16 Thread Baroiller Pierre-Emmanuel
Hi, everyone know how to upload files from the browser to your web server using multipart-form method with move_downloaded_file() php function. But... It's a slow method for multiple files huge files transfert. I'm currently working on a big photo album tool, and I want to provide user the

[PHP] test..

2002-10-16 Thread BAROILLER
don't replay, thanks.. It's only to see if i can post messages... -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: Creating a voting system.

2002-10-16 Thread Baroiller Pierre-Emmanuel
take a look on php website, there is a lot of scripts for this : http://www.hotscripts.com others. Regards. P.E. Thomas Goeminne [EMAIL PROTECTED] a écrit dans le message de news: [EMAIL PROTECTED] Hello, I am making a page where people can vote for their favourite image. People can give

[PHP] Re: class variable shared by all objects

2002-10-16 Thread BAROILLER Pierre-Emmanuel
You can use this function : get_object_vars to retreive vars from a class.. Here is the example from phpdoc : ?php class Point2D { var $x, $y; var $name; function Point2D($x, $y) { $this-x = $x; $this-y = $y; } function setName($name) { $this-name =