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
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
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
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
Christian,
---
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
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
> 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
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){
documen
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){
documen
Hello,
Look the code below. Is it an obligation to multiply the number of .
There is no other way ? not possible to use only an open php tag () ?
Christian,
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
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 unsubs
Hello,
I'd like to implement on my web site an "whois" to know the information
about a domain name (.com, org, )
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
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 ?
But I receive this error :
Parse error: parse error, unexpected T_VARIABLE in
d:\inetpub\wwwroot\test\index.php on l
> 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
Hello,
In some language (like Java, C#, ...) you can find a hashtable.
I execute query, this query return some records, each records are composed
by 2 fields. I'd like to put these records in a 2 dimensions array (or
something like that) and find easily the records I want.
An example, the query
Hello,
Could you tell me why on PHP 4.2.2 this code work
and this one not :
In both cases when fuseaction is not defined, I receive an error. Could you
tell me how to know if the variable is defined in the URL. In coldfusion you
can do
but in php ?
Bye
--
PHP General Mailing List (ht
> 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 unsubscri
> 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: http://www.php.net/u
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 (http://www.p
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
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
d:\inetpub\wwwro
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
Hello,
I'm trying to use mail function. It's not possible to precise the ISP
stmp server (or other) ? I checked the documentation but no precision
about the stmp.
Is it possible to test this function on development machine ?
Christian,
--
PHP General Mailing List (http://www.php.net/)
To uns
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
> That's a HTML thing. I think you're confusing header() with
I
> believe.
No no
I explaine, I do that :
I'd like to display all my pages in the frame "content". Some times, from
the menu for example, I do a that it's ok
but sometimes, I call a php page
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: http://www.php.net/unsub.ph
> 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 t
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 thin
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
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
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
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
> while( $temp = mysql_fetch_row($mysql_result_handle) ) {
> $array[] = array(
> 'key0' = array(
> 'keya' => $temp[0],
> 'keyb' => $temp[1],
> ),
> 'key1' = array(
> 'keya' => $temp[2]
> while( $temp = mysql_fetch_row($mysql_result_handle) ) {
> $array[] = array(
> 'key0' => array(
> 'keya' => $temp[0],
> 'keyb' => $temp[1]
> ),
> 'key1' => array(
> 'keya' => $temp[2
> 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 fie
2 row and 3 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.
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 un
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; $i
That's work. But when I add an to call an another
Hello,
I'd like when I click on a link 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
> You'll need to prompt the download by sending the appropriate headers.
> Something like..
>
> http://www.mydomain.com/downloadmyfile.php>Download
>
> header("Content-Type: application/zip");
> header("Content-Disposition: attachment");
> readfile("file.zip");
> ?>
It's not only .zip file but
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 proc
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 :
Content-
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 num
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 t
> 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
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,
auteur.PR
Hello,
I have a small problem a string I have for example : $myvar= "hellhttp://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
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 suc
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: http://www.php.net/unsub.p
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,
Christ
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 .
I receive from the form something like that :
C:\\D
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
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
Chri
> 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
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 unsubsc
> 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
> 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 wi
> 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:0
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 unsubscri
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
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 :
but this not work
}
?>
Could you tell me how I can do to have a after each row.
Thanks for your help :)
Bye
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
> 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
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 :
and this variable can be use
everywhere.
Could you tell me how that's work in PHP. I saw in help file session.start.
But it's not very cl
> 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 session_reg
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 :
.
php_admin_value safe_mode on
php_admin_value include_path ".:/design:/home:/manager:/login:/style"
Then I make 2 tes
> 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
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. Some
> 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
> #!/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
> 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
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
> echo '';
> print_r($_POST);
> echo '';
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
> 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
but no result.
Could you help 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
> 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 an
> 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. Selec
;
Is there a good solution in php ?
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
> 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 b
79 matches
Mail list logo