[PHP] Update PHP

2002-06-16 Thread Christian Ista
Hello, I have a dedied server (with linux RedHat 7.2) and PHP 4.1.2. I'd like to update to the version 4.2.1 Is it enought : tar -zxvf phpfile4-2-1.gz It's the first time I install PHP on linux in general I work on Windows. Bye -- PHP General Mailing List (http://www.php.net/) To

RE: [PHP] Update PHP

2002-06-16 Thread Christian Ista
If you were the person who installed PHP before, then you probably remember the process. It's a configure/make/make install process. Sure :) But I rent a dedicated server with all preinstalled, PHP, MySQL ... Bye -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

[PHP] RE4: Update PHP

2002-06-16 Thread Christian Ista
Ok, if you're saying you do not have root access, then you have to have someone with root access do it for you. I have root access :) If you are saying that you didn't do it the first time and you don't know how, then read the instruction manual or tutorial _very_ closely, since it will

RE: [PHP] Update PHP

2002-06-16 Thread Christian Ista
You may want to do a phpinfo() on your existing installation, to determine the configuration directives that were used. Likely, you will want to use the same ones (or nearly the same) with this new build. I have that : System Linux localhost.localdomain 2.4.7-10BOOT #1 Thu Sep 6 16:15:00

[PHP] HTML in PHP

2002-04-28 Thread Christian Ista
Hello, I have a newbie question for you. I do a query, I'd like to display the result but I'd like to go to a new line for each row. I use this code that's work : ?php for ($i = 0; $imysql_num_rows($result); $i++) { echo mysql_result($result,$i, NAME); } ? but this not work ?php

[PHP] Query Close

2002-05-01 Thread Christian Ista
Hello, What's happen if when I used a query, I don't do that : mysql_close($connection); Bye -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: Query Close

2002-05-01 Thread Christian Ista
Depends on how you opened it. Did you use mysql_pconnect or mysql_connect? mysql_connect bye -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Session question

2002-05-25 Thread Christian Ista
Hello, I'm a newbie in PHP, I use a lot ColdFusion (at work). With ColdFusion, it's very easy to create and use session variable. I do something like that : cfset session.myvariable = hello and this variable can be use everywhere. Could you tell me how that's work in PHP. I saw in help file

Re: [PHP] Session question

2002-05-25 Thread Christian Ista
Just be sure you call session_start() on any page you want to access session variables. I have to call this function on each page I use session variable or juste once ? This assumes the latest version of PHP. The procedure is similar on older versions, you just have to use

[PHP] IP and Language

2002-08-11 Thread Christian Ista
Hello, I'd like to know if it's possible to redirect a visitor of my website to the page index.php if he comes from Belgium, France, Luxembourg, Switzerland and all the others redirect to index_uk.php Possible ? Thanks, Christian, -- PHP General Mailing List (http://www.php.net/) To

[PHP] Session variable problem

2002-08-13 Thread Christian Ista
Hello, I'd like to use session variable. I do that (see below) but I receive an error. Other question, how can I do to know if a session variable is already defined ? ?php session_start()? ?php$_SESSION[LG] = 'EN';? !DOCTYPE HTML PUBLIC -//W3C//DTD HTML 4.01 Transitional//EN html head

Re: [PHP] Session variable problem

2002-08-13 Thread Christian Ista
Add a missing space. ok thanks :) How use this variable in a query (mysql_query) ? Is it possible if a session variable is already defined ? Bye -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] parse URL good syntaxe please

2002-08-13 Thread Christian Ista
Hello, Could you tell me why on PHP 4.2.2 this code work ?php switch ($_GET['fuseaction']) { case 0: print i equals 0; break; default: print i is not equal to 0, 1 or 2; } ? and this one not : ?php switch ($fuseaction) { case 0: print i

[PHP] Re: parse URL good syntaxe please

2002-08-13 Thread Christian Ista
Could you tell me why on PHP 4.2.2 this code work My previous mail it was for my development machine, IIS, windows 2000 and PHP4.2.2. My host use PHP4.2.2 on linux and that's work. Could you tell me why this difference ? Bye -- PHP General Mailing List (http://www.php.net/) To

RE: [PHP] parse URL good syntaxe please

2002-08-13 Thread Christian Ista
First of all, you need to use the $_* superglobals if register_globals is off. That is, to access get variables, you use $_GET['variable_name'] What do you mean by that ? (I'm newbie in PHP) Bye -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

[PHP] relocation

2002-08-13 Thread Christian Ista
Hello, Is there a possibility to call (jump not include) with some parameters (index.php?var1=var2=) a php page without click. For example : case todo: call here index.php?var1=var2= --- jump to this page break; bye Christian, -- PHP General Mailing List

[PHP] Destroy session variable when IE close

2002-08-14 Thread Christian Ista
Hello, Is it possible to set to null (or destroy) the session variables when I close IE ? Bye -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Header utilisation problem

2002-08-14 Thread Christian Ista
Hello, I'd like to know why this code not work : case : include(act_create_new_compte.php); header(Location: ../manager/index.php); break; I receive this error : Warning: Cannot add header information - headers already sent by (output started at

[PHP] Destroy session variable when IE close

2002-08-14 Thread Christian Ista
Hello, Is it possible to set to null (or destroy) the session variables when I close IE ? Bye -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Header and Target

2002-08-15 Thread Christian Ista
Hello, I have some frame on the website, and I'd like specify a target name in the header function, is it possible ? Bye -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Header and Target

2002-08-15 Thread Christian Ista
That's a HTML thing. I think you're confusing header() with HEAD/HEAD I believe. No no I explaine, I do that : FRAMESET FRAMESET rows=80,*,80 FRAME src=top.html noresize scrolling=No border=0 frameborder=No FRAMESET cols=150,* FRAME src=left.html noresize scrolling=No

[PHP] Error

2002-08-15 Thread Christian Ista
Hello, Could you tell me the signification of this error : Parse error: parse error, unexpected T_CONSTANT_ENCAPSED_STRING in d:\inetpub\wwwroot\TEST\test3\act_language_fr.php on line 20 Bye -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

RE: [PHP] Error

2002-08-15 Thread Christian Ista
Havn't the foggiest idea what it means, but what has usually happened is that I missed a ; on an earlier line. That's happen when I include a page. But the strange this, I include the same page earlier and without any problem. The content of this page is a lot of variable (string), like that

[PHP] PHP, MySQL and Transaction

2002-08-16 Thread Christian Ista
Hello, In an MySQL table, I insert some records. Before each insert (just before), I do a Select max() ... and I increment the result by one, to give a number (unique), and I have an auto_incremente field too. I'd like to know if there is a mechanism in PHP, if several person do the same thing

[PHP] Drop down reload

2002-08-16 Thread Christian Ista
Hello, Could you tell me if it possible to reload the current page when I select a value in a drop down ? On a page, I have 2 drop down, the content on the first one come from the database. The content of the second one too (from database) but depend of the first drop down value. An idea to do

[PHP] Session variable in query

2002-08-16 Thread Christian Ista
Hello, Is it possible to use a session variable in a query (mysql_query) without passé by an temp variable ? Bye -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Server date and time

2002-09-10 Thread Christian Ista
Hello, When a use insert the row in a table, I'd like to know the date and time of this insertion. Is there a function to know the server date and time, not the local time user ? Bye -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Query result to an array

2002-09-11 Thread Christian Ista
Hello, A query return x rows, by rows there are 4 fields. I'd like to put the result in an array, a 2 dimensions array. Could you tell me how to do that ? Bye -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] Query result to an array

2002-09-11 Thread Christian Ista
while( $temp = mysql_fetch_row($mysql_result_handle) ) { $array[] = array( 'key0' = array( 'keya' = $temp[0], 'keyb' = $temp[1], ), 'key1' = array( 'keya' = $temp[2],

Re: [PHP] Query result to an array

2002-09-11 Thread Christian Ista
array( array( $temp[0], $temp[1] ), array( $temp[1], $temp[2] ) ) I thinks it's not the right way. I have a query, this query can return 1,5,20, 200, ... rows, each row has 5 fields (or more or less). I'd like a 2 dimensions array, one line by row and each cell is a field

Re: [PHP] Query result to an array

2002-09-12 Thread Christian Ista
fields for each row : Christian, Ista, Belgium zak, PhpNet, Dontknowfrom resulf of SELECT NAME, LASTNAME, COUNTRY FROM MyTable; I'd like to put that in an array and later because I use a session array. I'd like via a for loop access these data by echo(MyArray[1][1]); result is PhpNet echo(MyArray[0

[PHP] Trouble on php.net

2002-09-12 Thread Christian Ista
Hello, I use in general the chm help file in English. Today I downloaded the french version (php_manual_fr.chm) but it's not french it's a mix german/english. Downloaded from this page : http://www.php.net/download-docs.php Christian, -- PHP General Mailing List (http://www.php.net/) To

[PHP] session_register trouble ?

2002-09-12 Thread Christian Ista
Hello, I use this code : $myarray= array(); session_register (myarray); $i=0; while ($row = mysql_fetch_object($result)) { $myarray[$i][0] = $row-ID; $myarray[$i][1] = $row-NOM; $myarray[$i][2] = $row-PRENOM; $i = $i + 1; } for($i=0; $isizeof($myarray);$i++){ ? a

[PHP] Click....download and update

2002-09-19 Thread Christian Ista
Hello, I'd like when I click on a link a href=http://www.website.com/file.zip update a table and start the download without change the page. Could you tell me how to do ? Christian, -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] Click....download and update

2002-09-19 Thread Christian Ista
You'll need to prompt the download by sending the appropriate headers. Something like.. a href=http://www.mydomain.com/downloadmyfile.phpDownload/a ? // downloadmyfile.php header(Content-Type: application/zip); header(Content-Disposition: attachment); readfile(file.zip); ? It's not

[PHP] Create login procedure...

2002-09-24 Thread Christian Ista
Hello, I change the procedure to create an account for users. For the moment, the user (to create and log in), have to create an account with e-mail + password. I'd like to create a procedure to check the e-mail (login) validity. But I'd like to check if the e-mail used exist or not. The

[PHP] Send mail in HTML

2002-09-27 Thread Christian Ista
Hello, I use the mail function to send mail. On my development PC, I receive the mail in HTML, with the high priority,... I put the files on the production server, a linux machine, when I receive the mail is not in HTML but in plain text, I don't see the high priority. I receive that :

[PHP] PHP/MYSQL Connection trouble (charset)

2005-12-26 Thread Christian Ista
me ? Thanks, Christian, ___ Christian Ista http://www.cista.be -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] PHP/MYSQL Connection trouble (charset)

2005-12-26 Thread Christian Ista
From: Christian Ista [mailto:[EMAIL PROTECTED] File 'c:\mysql\share\charsets\?.conf' not found (Errcode: 2) Character set '#33' is not a compiled character set and is not specified in the 'c:\mysql\share\charsets\Index' file Resource id #5 I answer to myself. In fact I reinstall MySQL 4.x

RE: [PHP] SELECT?

2005-12-28 Thread Christian Ista
From: William Stokes [mailto:[EMAIL PROTECTED] I have one MySQL table with about 500 rows. I need to read the table one row at a time, make some changes to data in one field and then store the changed data to another table. 1. May be add a column, CHANGED_FL with default value N. 2. Select

[PHP] Location ....

2005-12-28 Thread Christian Ista
? Thanks, C. ___ Christian Ista http://www.cista.be -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] Location ....

2005-12-28 Thread Christian Ista
From: Jay Blanchard [mailto:[EMAIL PROTECTED] Header is a good solution, and is the only one available in PHP for redirects. It requires that you do not send anything else out to the browsers before sending the redirect, which is what is causing your error. You can always use the output

[PHP] PHP query to javascript array

2002-12-06 Thread Christian Ista
Hello, Could you tell me how to transform a PHP query result to a javascript array ? Same question, if you want to store several field from the query to the javascript. Christian, -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Know the path

2002-12-10 Thread Christian Ista
Hello, I have a web site with several directories or subdorectories, I'd like to know when I call (include) php page, the path where I'm. Is it possible? Christian, -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Sendmail function

2003-01-25 Thread Christian Ista
Hello, A friend would like to know how to check on the server (dedicated) if the function sendmail is enable or not, how ? if not activated how activate ? Thanks, -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Use Pop3

2003-01-29 Thread Christian Ista
Hello, Is it possible via PHP to : - join a pop3 server - make a query to recover mails header, subject, date, sender, to create a list. - we I have the list when I click on an element of the list recever the email content (text and attachment) and why not see the email's header - Have the

[PHP] HTML and PHP

2003-06-05 Thread Christian Ista
Hello, Look the code below. Is it an obligation to multiply the number of ?php ?. There is no other way ? not possible to use only an open php tag (?php) and a clode php tag (?) ? Christian, ?php switch($constant_lastupdate[$i][3]){ case '1' :? img src=design/logo_windows.gif alt=

[PHP] POP3 ... syntax error

2003-02-05 Thread Christian Ista
, --- Christian Ista (AFAS member) Hosting - Dedicated server http://www.bee-hosting.com http://www.your-softwares.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Find IP address

2003-02-19 Thread Christian Ista
Hello, I'd like when a customer fill in a form to recover his IP address, is there a PHP function to do that ? Thanks, Christian, -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Find IP address

2003-02-19 Thread Christian Ista
Be warned: This is NOT a reliable way to identify a user. These days you are probably /more/ likely to get the address of a proxy than the address of the user. Is there a better way to be sure, I have the IP address of the user (the ISP ip address) Your suggestions are welcome. Christian,

[PHP] Javascript function

2003-02-19 Thread Christian Ista
Hello, Example, I have this function : void function MyExampleFunction(){ document.form_name.element_name.focus(); } I'd like do something like that, I call the function like that : MyExampleFunction('form_name.element_name'); And do that : void function MyExampleFunction(theelement){

[PHP] Javascript function

2003-02-19 Thread Christian Ista
Hello, Example, I have this function : void function MyExampleFunction(){ document.form_name.element_name.focus(); } I'd like do something like that, I call the function like that : MyExampleFunction('form_name.element_name'); And do that : void function MyExampleFunction(theelement){

[PHP] Manager SQL error

2002-09-30 Thread Christian Ista
Hello, I'd like to catch all the queries. I'd like to use a log table, when I have a problem with the query, add a record with the query number, the query, date and time, and have a url to go to a page without error. My idea was to create a session array with, by cell : - the query - query

[PHP] MySQLLimit size

2002-10-05 Thread Christian Ista
Hello, I have a form with a textarea. When I put a long text(one word page for example), when I submit, the form is not submitted. I have to remove some line to submit. I don't have any limit in the textarea. The content of this form is sorted in a MySQL database. I tried to set the field where

RE: [PHP] MySQLLimit size

2002-10-06 Thread Christian Ista
Are you using POST or GET for your form? Show some code... I use get. But I tried to post and look ok. Why this difference ? Christian, -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Put an query in a DB field

2002-10-08 Thread Christian Ista
Hello, I change my code to catch error query. I have a table with 4 files (Query, Error_no, create_date, create_time). When I have an error on a query, I call a page and I add a row in a table log_query. The query (with error is like that) : $query= SELECT auteur.NO AS AUTEUR_NOM,

[PHP] Trouble wirh in a string

2002-10-11 Thread Christian Ista
Hello, I have a small problem a string I have for example : $myvar= hello my friend; When I display the content of $myvar with echo I see hell and not the rest. I suppose the problem come from the how solve the problem ? Bye -- PHP General Mailing List (http://www.php.net/) To

[PHP] An small SQL problem

2002-10-12 Thread Christian Ista
Hello, I'm probably sleepy because I can't do a very easy query. :( I have 2 tables TableA(FieldA1, FieldA2, FieldA3) and TableB(FieldB1, FieldB2, FieldB3). I'd like to see the TableA records (FieldA2) where the FieldA1(Primary key) not exist in TableB(FieldB2). I tried not exists without

[PHP] Image resize

2002-10-13 Thread Christian Ista
Hello, I have an image (selected via a form), I know the original size of this picture 800x600. I'd like when I put the files in the database resize to 240x180, or 120x90. How do that ? Bye -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

[PHP] Read XML file

2002-10-16 Thread Christian Ista
Hello, Look the code below. The code work I can see on the screen the value of each tags (except SOFT, no need it). I'd like now put the value in a 2 dimensions array, for each tag, first cell the tag name, and the value in the second cell. Could you tell me the change to do ? Thanks,

[PHP] Trouble with \\ and form

2002-10-16 Thread Christian Ista
Hello, I'm trying the example1 give in xml_parse_into_struct section here : http://www.php.net/manual/en/function.xml-parse-into-struct.php works fine. But know I'm trying to change the file name moldb.xml by a file name come from a form input type=file . I receive from the form

[PHP] Add picture in DB

2002-10-28 Thread Christian Ista
Hello, I have a form, with 2 inputs ( a type file and a type text) and a submit. When I submit I receive an error, like this : ':\\Inetpub\\wwwroot\\test\\small2158.jpg)' at line 3 Could you tell me what can I do ? The better solution is save the picture in the database or save the link to

[PHP] SQLInsert and recover the ID

2002-10-31 Thread Christian Ista
Hello, In a table, I have some fields and the primary key is an autoincrement field. I insert an row and I'd like to recover the ID used for the last record I inserted. For the moment, I do a select max(Id) just after the insert but there is, my be a best way to do it. Thanks for your help

RE: [PHP] SQLInsert and recover the ID

2002-10-31 Thread Christian Ista
use mysql_insert_id(). Much more reliable when and if you use the system with more than one person inserting at the same time. Sure it's for that I ask Thanks for your help. Christian, -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Date to string (with mask)

2003-11-08 Thread Christian Ista
Hello, I have in a database a date field (this format yyy/mm/dd). I'd like when I display the value use an another format dd/mm/ (format in europ), could you tell me if there is a format DateString function ? Thanks, Christian, -- PHP General Mailing List (http://www.php.net/) To

[PHP] Reset auto_increment field

2003-11-11 Thread Christian Ista
Hello, It's not really a PHP question, sorry. How reset a MySQL auto_incrment field ? Thanks, -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] include_path and safe_mode in virtualhost

2004-09-30 Thread Christian Ista
Hello, I have a didecated server (linux redhat + apache 1.31.x and PHP 4.3.x). I'd like for a specific virualhost, set the include_path and safe_mode To do that, I did : Virtualhost . php_admin_value safe_mode on php_admin_value include_path .:/design:/home:/manager:/login:/style

[PHP] Re: include_path and safe_mode in virtualhost

2004-10-01 Thread Christian Ista
because you've got allow_url_fopen = On. safe_mode doesn't stop that. You need to turn the allow_url_fopen Off to limit that ability... Thanks, That's work fine :) Christian, -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] PHP in CGI ....php.in

2004-10-29 Thread Christian Ista
Hello, On a server with linux redhat and apache 1.3 I have PHP4 and 5 installed in CGI. In the php.ini, register_globals is set to off. I'd like for a website have this flag set to on,. I tried with a .htaccess file with this value in : php_flag register_globals on but that's not work.

Re: [PHP] PHP in CGI ....php.in

2004-10-29 Thread Christian Ista
php -c /path/to/php.ini Could you explain ?? My php pages are in /home/mysite/www Thanks, -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] PHP in CGI ....php.in

2004-10-30 Thread Christian Ista
#!/usr/bin/php -c /path/to/php.ini I tried this #!/usr/local/lib/php -c php.ini In the php.ini : register_globals = on but that's not work Any idea ? Christian, -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] PHP in CGI ....php.in

2004-10-31 Thread Christian Ista
where did you place your php.ini? In the root of my application in www. /home/mydomaine/www Thanks, Christian, -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Recover POST form

2004-11-06 Thread Christian Ista
Hello, In a PHP page I use a form with POST method. I'd like in the action page recover all the variable posted. Could you tell me how to do that ? Thanks, Christian, -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Recover POST form

2004-11-06 Thread Christian Ista
echo 'pre'; print_r($_POST); echo '/pre'; I have something like that : Array ( [5980915] = on [ToDo5980915] = N [5941846] = on [ToDo5941846] = N [5916500] = on [ToDo5916500] = N [5907115] = on [ToDo5907115] = N [5900019] = on [ToDo5900019] = N

Re: [PHP] Recover POST form

2004-11-06 Thread Christian Ista
I tried $_POST[2] but not work with arrays_keys :) Thanks, -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php