[PHP] Re: Multiple Form Submit Buttons

2002-10-11 Thread Johannes Janson

Hi,

Jonathan Rosenberg wrote:
 I have been digging through the documentation for a while, but I can't find
 the answer to this ...
 
 If I have a form with multiple submit buttons, how can I tell in PHP which
 button was clicked?

just give them different names e.g. submit1, submit2 ... and then do
what you want with an if clause and $_POST[submit1] on the action
page.

hope it helps
Johannes

 
 --
 JR
 
 


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




[PHP] Re: Undefined variable

2002-10-09 Thread Johannes Janson

Hi,

Muhammad Khairuzzaman wrote:
 Hi, thanks for the help!
 
 I worked, but i dont get it, why use $_POST['name'] or $_GET['name'] when
 the text from the internet and books I've read says just put a dollar sign
 before the variable's name.

from php version 4.?.x on register_globals is turned
off by default in your php.ini so you can't use the posted variables (or
the ones passed by url) by just putting a $ at the beginning of the
variable name.

cheers
J


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




[PHP] Re: numrows

2001-08-23 Thread Johannes Janson

Hi,

$query = SELECT * FROM question WHERE answer'1' AND id250 ORDER BY id
DESC;

$result = MYSQL_QUERY($query);

add or die(mysql_error()) see what MySQL doesn't like about the query.

cheers
johannes





-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP] Re: Form help

2001-08-13 Thread Johannes Janson

Hi,

 input type=checkbox name=sif_? echo $wponud[6]; ? value=1

I'd do it like this: inpuut type=checkbox name=magazines[] Value=?php
echo $wpound[6]; ?
Now you have an array containing all the checked magazines. To get and write
them into
the DB you could use implode() in combination with a field of the type SET
or
do a
while (list($key,$value)=each($magazines)) {
Do some query stuff with your primary key in $value;
}

cheers
Johannes



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP] Re: http header

2001-07-10 Thread Johannes Janson

Hi,

Dear all folks,
I want to get the url of the previous page that my visitor came from. Is
this correct to use http_header? Or what function that will help me do this
job?

the variable $HTTP_REFERER will do the job but not all browsers support it.
Manual - Variables - predefined variables for more info.

cheers
Johannes




-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] Does anyone know where I can get mcrypt.dll?

2001-05-16 Thread Johannes Janson

Hi,

 Does anyone know where I can get mcrypt.dll?

I'm  not sure but it might be included in the dist from
www.php4win.de

johannes




-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] Extensions for PHP

2001-05-15 Thread Johannes Janson

Hi,

 does anybody know which extension I need to connect to a MSSQL DB, and
wher
 I could get it?

go to www.php4win.de they offer a .exe with lots of extensions.

hope it helps
Johannes



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] Install Prob PHP4

2001-05-15 Thread Johannes Janson

Hi,

 checking lex output file root... ./configure: lex: command not found
 configure: error: cannot find output from lex; giving up

you have to go into YaST an install a programm called lex. It might be
that you also need flex. Just install lex and see if you get more errors.

hope it helps
Johannes



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] Php Newbie

2001-05-14 Thread Johannes Janson

Hi,

 i created a helloworld php file and put it in my
 inetpub/wwwroot/php folder and then tried to display
 it in the browser but all i saw was my html code.
 Can someone help please?!

You'll need to configure IIS to parse your PHP files. Use the instruction
below.
If you wonder which one to use isapi or CGI I'd say for home developement
it doesn't matter. CGI is said to be more stable but I had no problem with
the
isapi module with IIS. But anyway give it a thought to get Apache.
To test your installation just use your helloworld or create a file with
?php phpinfo(); ? in it.

hope it helps
Johannes

IIS 4.0+ (isapi):
1. Copy the php.ini-dist to your systemroot (the directory where you
installed windows), rename it to php.ini, and
edit it to fit your needs
2. Start the Microsoft Management Console or the Internet Services Manager,
located in your Control Panel
3. Click on your webserver, and select properties
4. If you don't want to perform HTTP Authentication using PHP, you can (and
should) skip this step. Under ISAPI Filters,
add a new ISAPI filter. Use PHP as the filter name, and supply a path to the
php4isapi.dll
5. Under Home Directory, click on the Configuration button. Add a new entry
to the Application Mappings. Use the path the
php4isapi.dll as the Executable, supply .php as the extension, leave Method
exclusions, blank, and check the Script engine
checkbox
6. Stop IIS completely
7. Start IIS again


IIS 4.0+ (CGI)
1. Copy the php.ini-dist to your systemroot (the directory where you
installed windows), rename it to php.ini, and
edit it to fit your needs
2. Start the Microsoft Management Console (may appear as 'Internet Services
Manager', either in your Windows NT 4.0
Option Pack branch or the Control Panel-Administrative Tools under Windows
2000).
3. Right click on your Web server node (will most probably appear as
'Default Web Server'), and select 'Properties'.
4. Under 'Home Directory', click on the 'Configuration' button. Add a new
5. entry to the Application Mappings; Use the path to php.exe as the
Executable, supply .php as the extension, leave
'Method exclusions', blank, and check the Script engine checkbox.
6. Put a .php file under your Web server's document root and check if it
works!




-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] update statement

2001-05-11 Thread Johannes Janson

Hi,

I got a series of string value in this format ie: 1,2,3, say pretend that
these are telephone number, which is one feild in user table.
I need to update this telephone number field, I got 3 user ID in series
like this too, ie: 3,4,5 and normally it is like

update set  where userID IN (3,4,5)  ( when there is one vaule to
update, not series of string to update).

I would think about the general layout of the DB. It is not good
to store more than one value in one field. Do some normalisation
on your DB or read:
http://www.devshed.com/Server_Side/MySQL/Normal/ and
http://www.devshed.com/Server_Side/MySQL/Normal2/

hope it helps

Johannes



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] Update statement sent by PHP to MySQL

2001-05-11 Thread Johannes Janson

Hi,

 update $T1 set caption = $caption where name = $name

put single quotes aroud the variables: caption='$caption'.

You can do this aswell:

$result = mysql_query(UPDATE $T1 SET caption='$caption WHERE name='$name',
$DB)
or die(mysql_error());

if (! $result) {
send the haeder...
}

hope it helps
Johannes



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP] function not working after header call

2001-05-08 Thread Johannes Janson

Hi,

I just don't get it...I have a form where the user enters name, surname
and a personal code. The action page checks for correct input which
is only letters for the two names and only numbers for the code.
If there is a wrong input in one of the fields a variable is set
which is then (amongst others) passed in the URL to the page containing
the form.

formscript.php?code=1name=1surname=1.. // for all three fields wrong,
if they are ok they aren't passed

Now in order to highlight the fields with worng input I worte a
function.

function wrong_input($var)

global $var;
echo isset($var) ? font face=\Times\ size=\2\
color=\#FF\ : font face=\Times\ size=\3\ color=\#00\;
}

This function is called in the td like this:
td?php wrong_input($code); ?Code/font/td

It is executed the first time but if the input is wrong and the user is sent
back to the form page it is not.
Desperately trying to get it to work I tried lots of combinations like using
print in the function or use
echo function($var) in the td but nothing worked out.

I'm completely stuck.
Any hlep is greately appreciated



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] function not working after header call

2001-05-08 Thread Johannes Janson

Well, what can I say??? Magic windows
Reboot the system or post a message and it works!

johannes


Johannes Janson [EMAIL PROTECTED] schrieb im Newsbeitrag
9d93c3$7d8$[EMAIL PROTECTED]">news:9d93c3$7d8$[EMAIL PROTECTED]...
 Hi,

 I just don't get it...I have a form where the user enters name, surname
 and a personal code. The action page checks for correct input which
 is only letters for the two names and only numbers for the code.
 If there is a wrong input in one of the fields a variable is set
 which is then (amongst others) passed in the URL to the page containing
 the form.

 formscript.php?code=1name=1surname=1.. // for all three fields
wrong,
 if they are ok they aren't passed

 Now in order to highlight the fields with worng input I worte a
 function.

 function wrong_input($var)

 global $var;
 echo isset($var) ? font face=\Times\ size=\2\
 color=\#FF\ : font face=\Times\ size=\3\
color=\#00\;
 }

 This function is called in the td like this:
 td?php wrong_input($code); ?Code/font/td

 It is executed the first time but if the input is wrong and the user is
sent
 back to the form page it is not.
 Desperately trying to get it to work I tried lots of combinations like
using
 print in the function or use
 echo function($var) in the td but nothing worked out.

 I'm completely stuck.
 Any hlep is greately appreciated



 --
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 To contact the list administrators, e-mail: [EMAIL PROTECTED]




-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] very basic question, needs direction!

2001-05-03 Thread Johannes Janson

Hi,

have a look at this article:
http://www.devshed.com/Server_Side/PHP/SoothinglySeamless/
it describes the setup of Apache, PHP, SSL and MySQL.

Johannes

Web master [EMAIL PROTECTED] schrieb im Newsbeitrag
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
 Hello,

 I am using PHP as my main language in my websites. I am planning to set
 up my own server to host all my domains. Is there a place, where I can
 see, how do I set up a server with PHP as the main language and what are
 the hardware/software requirements for this?
 All I need is just a url or if anybody already did this, please let me
know.

 Thanks in advance.


 --
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 To contact the list administrators, e-mail: [EMAIL PROTECTED]




-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] how to get var value

2001-04-26 Thread Johannes Janson

hi,
by .= you assign the value to a var in this case a string.

$test = 1;
$var = test;

$newvar = $$var;

echo $newvar; // outputs 1

Johannes



AJDIN BRANDIC [EMAIL PROTECTED] schrieb im Newsbeitrag
Pine.OSF.3.91.1010426114338.17213A-10@leofric">news:Pine.OSF.3.91.1010426114338.17213A-10@leofric...
 Hi,

 (this is just an example)
 I have on one page

 $test=1;
 $var1='test';

 on another page I want to be able to construct variable from the value in
 $var1 (test in this case)  and print its value.   So,

 $newvar=$;
 $newvar.=echo$var1;

 now $newvar contains string '$test' but not the value of $test (1 in this
 case).

 There has to be way aroud this but I am just cannot find it :(.

 Regards

 Ajdin

 --
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 To contact the list administrators, e-mail: [EMAIL PROTECTED]




-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] insert into

2001-04-24 Thread Johannes Janson


shawn [EMAIL PROTECTED] schrieb im Newsbeitrag
001c01c0cce3$c114c420$5c52a040@admin">news:001c01c0cce3$c114c420$5c52a040@admin...
Could someone tell me how to actually execute this script please?

$mysql_query = mysql_query(INSERT INTO $userstable (client, contact, email,
address, city, state, zip, phone, fax, model, country, details, type)
VALUES('$client', '$contact', '$email', '$address', '$city', '$state',
'$zip', '$phone', '$fax', '$model', '$country', '$details', '$type'));

for tutorial look at
www.devshed.com
www.phpbuilder.com
www.webmonkey.com
www.hotscripts.com

just do a search on PHP and MySQL.

Cheers
johannes



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] I don't get it ... suddenly my script doesn't work ...

2001-04-21 Thread Johannes Janson

Hi,

a general thought at first. When posting a rahter long sxrpit it
would be helpful to mark the lines which produce the errors.

But now straight to the point. change the inside of
your if/elseif parethesis from just the variable to
(isset($variable)) respectively to (! isset($variable)).

hope it helps
Johannes



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] Connection to postgresql DB used by 2 scripts ?

2001-04-18 Thread Johannes Janson

Hi,

put: include("connect.php"); at the beginning of query.php.

Johannes

""Picard, Cyril"" [EMAIL PROTECTED] schrieb im Newsbeitrag
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
 I would like to query a postgresql db with the php language.
 Today I wrote a script (connectandquery.php) performing the following :
 - connect to the DB : $conn = pg_Connect("dbname = foo");
 - execute the query : $res = pg_Exec($conn,"SELECT * from BAR");


 But I would like to write this in two scripts :
 - connect.php : $conn = pg_Connect("dbname = foo");
 - query.php : $res = pg_Exec($conn,"SELECT * from BAR");

 but I don't know how to get the $conn variable (defined in connect.php) in
 the script query.php.

 Any idea is welcome !


 --
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 To contact the list administrators, e-mail: [EMAIL PROTECTED]




-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] Cannot destroy session cookie

2001-04-18 Thread Johannes Janson

Hi,

Why destroying it "before" a user logs in? Isn't it
better to start the session "after" a successful login?
And then destroying the session when the user logs out.
Or did I get it wrong. A few lines of code would help
to understand.

Johannes


"Jens Kisters" [EMAIL PROTECTED] schrieb im Newsbeitrag
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
Hi there,
i'm having a little trouble with cleaning up sessions.
I have a login page that sets a certain session variable that is used to
determine wether a user is logged on.
When the user has cookies turned on the application recognizes the
running session an resumes it, that also happens on the login-page,
i'd like to explicitly destroy the session before logging on, i tried
unsetting the session variable, destroying the session, unsetting the
session cookie, but nothing worked, the session is always continued with
the same SessionID.
What can i do to destroy the session?

tks
Jens

--
Grüße aus dem schönen Kleve
Jens Kisters

rosomm et partner
Agentur für neue Medien GmbH
Dienstleistungszentrum am
Weißen Tor - Eingang B
Gocher Landstrasse 2
47551 Kleve / Bedburg-Hau

Telefon: 02821 - 97856-20
Telefax: 02821 - 97856-77
[EMAIL PROTECTED]
http://www.rosomm-partner.de



--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] HTTP_POST_VARS variable names?

2001-04-18 Thread Johannes Janson

Hi,

this will list all your posted variables with name and
the posted value.

while (list($key, $value)=each($HTTP_POST_VARS) ) {
echo "$key = $value br";
}

Johannes

""Mat Marlow"" [EMAIL PROTECTED] schrieb im Newsbeitrag
9bk11q$dvq$[EMAIL PROTECTED]">news:9bk11q$dvq$[EMAIL PROTECTED]...
 Hi,
 Does anyone know if php stores POST variable names as well as values? I'm
 using HTTP_POST_VARS for the values but I'm having to create my own array
 for the names.

 cheers,

 Mat



 --
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 To contact the list administrators, e-mail: [EMAIL PROTECTED]




-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] Cannot destroy session cookie

2001-04-18 Thread Johannes Janson

Hi,

how about setting a expiry time for the cookie. Like
45 min after logging in or whatever suits your needs.

You could use session_set_cookie_params() and set
the cookie lifetime to 0. That would at least prevent a login after
the browser window is closed.

Your site is nice by the way.

cheers
Johannes
--
Grüße aus dem schönen Tübingen
Johannes Janson ;)

"Jens Kisters" [EMAIL PROTECTED] schrieb im Newsbeitrag
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
 Why destroying it "before" a user logs in? Isn't it

In case the user did not log out properly, his session would still be marked
as valid  logged in

 better to start the session "after" a successful login?

starting works fine, restarting is the problem

 And then destroying the session when the user logs out.

You can't count on an explicit logout,
never rely on the users, they just don't act like you want them to ;)

cu
Jens
--
Grüße aus dem schönen Kleve
Jens Kisters

rosomm et partner
Agentur für neue Medien GmbH
Dienstleistungszentrum am
Weißen Tor - Eingang B
Gocher Landstrasse 2
47551 Kleve / Bedburg-Hau

Telefon: 02821 - 97856-20
Telefax: 02821 - 97856-77
[EMAIL PROTECTED]
http://www.rosomm-partner.de



--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] Characters counting

2001-04-18 Thread Johannes Janson

Hi,

to get the first 150 chars of a mysql filed do this:
SELECT LEFT(YourField, '150') FROM YourTable WHERE YourCondition=true;
This does it in MySQL and for PHP follow the mentioned substr-method.

cheers
Johannes

""Jorn van Eck"" [EMAIL PROTECTED] schrieb im Newsbeitrag
9bkpd8$r77$[EMAIL PROTECTED]">news:9bkpd8$r77$[EMAIL PROTECTED]...
 Hi there,

 Does someone know how to display for example150 characters from a $ set by
 MySQL?
 --
 Jorn van Eck
 Student Information Engineering
 Almere
 Tel: +31 614430902
 E-mail: [EMAIL PROTECTED]
 Website: http://www.iie.nl/~eck13



 --
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 To contact the list administrators, e-mail: [EMAIL PROTECTED]




-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] Mail help!!!!!

2001-04-17 Thread Johannes Janson

Hi,

I think you can put more than one recipient into the mail-function
by seperating them with a ",". Look in the manual for detailed info.

Johannes

"Bruno Freire" [EMAIL PROTECTED] schrieb im Newsbeitrag
454D444FF5C0D211891800A0C98C7D90359A44@SERVIDOR">news:454D444FF5C0D211891800A0C98C7D90359A44@SERVIDOR...
Hi! My name is Bruno.

Somebody can tell me how to send the same message to more than one recipient
without repeat de code??

something like

  $corpo.="\n";
  $corpo.="\tData de Saída:\t\t$dt_saida\n\n\n";
  $corpo.="\tClique no link abaixo para visualização da Folha de
Cotação:\n\n";
  $corpo.="\t";
  $remetente="From: [EMAIL PROTECTED]";
  mail(email_one and email_two,$assunto,$corpo,$remetente);


and not

  $corpo.="\n";
  $corpo.="\tData de Saída:\t\t$dt_saida\n\n\n";
  $corpo.="\tClique no link abaixo para visualização da Folha de
Cotação:\n\n";
  $corpo.="\t";
  $remetente="From: [EMAIL PROTECTED]";
  mail($email_ONE,$assunto,$corpo,$remetente);

  $corpo.="\n";
  $corpo.="\tData de Saída:\t\t$dt_saida\n\n\n";
  $corpo.="\tClique no link abaixo para visualização da Folha de
Cotação:\n\n";
  $corpo.="\t";
  $remetente="From: [EMAIL PROTECTED]";
  mail($email_TWO,$assunto,$corpo,$remetente);




-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] HTML and slashes.

2001-04-17 Thread Johannes Janson

Hi,

there is NO way of hiding the html from the user.
the browser can't output otherwise. You can only
try to make it difficult to get the source.

Where does the " 's " problem come in? More detail plz.
Is it a part of a text? Then try htmlspecialchars() or
htmlentities().

Johannes


""Dddogbruce (@home.com)"" [EMAIL PROTECTED] schrieb im Newsbeitrag
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
 Hi.

 Considering PHP takes " 's " into consideration as part of the script,
 and adds a slash infront of them I need a way to overcome this.  And
 second of all, I need a way to prevent HTML code from being seen, none
 the less used on the output.

 ?
 $space = " ";
 if( $submitfrm )
  {
 echo "your entry will be added shortly.";
 $submitmsg = file( "gb.txt" );
 $fp = fopen( "gb.txt", 'a' );
 rewind($fp);
 fwrite( $fp, "table border=\"0\" cellpadding=\"0\" cellspacing=\"0\"
 tr td width=\"236\"pfont size=\"1\"b$subject/b :  a
 href=\"mailto:$email\"$name/a/td /tr tr td width=\"236\"font
 size=\"1\"p$submition/td /tr /tablebr" );
 fclose( $fp );
  }
 else
  {
 include ( "guestbooks.php" );
  }
 ?

 All help's welcome, since I need it..  :P

 -Owen


 --
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 To contact the list administrators, e-mail: [EMAIL PROTECTED]




-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] HTML and slashes.

2001-04-17 Thread Johannes Janson

use srtipslashes() before writing it to the
file.

Johannes
""Dddogbruce (@home.com)"" [EMAIL PROTECTED] schrieb im Newsbeitrag
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
  there is NO way of hiding the html from the user.
  the browser can't output otherwise. You can only
  try to make it difficult to get the source.

 I want to hide the HTML from the browser.  If someone adds some malicious
 code, or even u/u I don't want it to underline.

  Where does the " 's " problem come in? More detail plz.
  Is it a part of a text? Then try htmlspecialchars() or
  htmlentities().

 Say I right "Hiya, my name's Owen" on the submission part of the form.
It'll
 show up as "Hiya, my name\'s Owen" on the output (which is a .txt file.)

 HTH,
 Owen


 --
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 To contact the list administrators, e-mail: [EMAIL PROTECTED]




-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] What variable are being sent to my script?

2001-04-13 Thread Johannes Janson

"Brandon Orther" [EMAIL PROTECTED] schrieb im Newsbeitrag
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
 Hello,

 I there a way for me to find out what variables are being sent to script?
 Example:

 http://www.myscript.com/myscript.php?var1=asdfvar2=asdf

 that above would be $var1 and $var2


if it is a form with post as method you can use this script to
see all submitted vars:

while (list($key, $value)=each($HTTP_POST_VARS) ) {
echo "$key = $value br";
}

Johannes



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] install question: idiot guide to apache and phph and mysql on win NT 4

2001-04-13 Thread Johannes Janson

Hi,

I'll spare you from the stuff with stupid question and answers
http://httpd.apache.org/dist/httpd/binaries/win32/ is the address
to the win32 binary. get 1.3.19 cause some more einvironment variables
are supported. To set the wholee thing up I can recommend this:
http://www.devshed.com/Server_Side/PHP/SoothinglySeamless/
covers the installation of PHP, Apache, MySQL and SSL.

good luck
Johannes

"Peter Van Dijck" [EMAIL PROTECTED] schrieb im Newsbeitrag
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
 Apologies if this is off topic, and apologies for double posting to the
 install list! I'm just completely stuck...

 for home development I want to install apache and phph and mysql on win NT
4.
 It's my first time.
 I was trying to find the apache install for win but I can't seem to find
it
 here:
 http://httpd.apache.org/dist/httpd/
 On this page:
 http://httpd.apache.org/docs/windows.html
 it says:
 "You should download the binary build of Apache for Windows named as
 apache_1_3_#-win32-with_src.msi if you are interested in the source code,
 or simply apache_1_3_#-win32-no_src.msi if you don't plan to do anything
 with the source code and appreciate a faster download"

 But I can't find that file for download!
 Is there any idiot's guide to doing these installs? (I'm going to have to
 turn mod-rewrite on, and maybe a few options for PHP but that will be it)

 Thanks for any help! I would really love to get this done this weekend
asap...
 Peter

 ~~
 http://liga1.com: building multiple language/culture websites


 --
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 To contact the list administrators, e-mail: [EMAIL PROTECTED]




-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] Validation Email in PHP programs

2001-04-03 Thread Johannes Janson

Hi,

this is the regular expression from a PHP book.

ereg("^[_a-zA-Z0-9-]+(\.[_a-zA-Z0-9-]+)*@([a-zA-Z0-9-]+\.)+([a-zA-z]{2,3})$,
$formfield");
looks horrible but works.

"Sharat Hegde" [EMAIL PROTECTED] schrieb im Newsbeitrag
30402B4CB8C7D311A3C600C04F1513BC3BDAE4@bg2ipmail">news:30402B4CB8C7D311A3C600C04F1513BC3BDAE4@bg2ipmail...
 Hello,

 I am trying to validate the email address in my PHP program using the ereg
 function. I have different combinations of regular expressions to get the
 chunks of the email substring before and after the @ symbol and the dot
(.)
 character. However, this does not seem to work.

 Can anyone suggest a method using ereg or otherwise to validate the email
 address in a PHP program?

 Regards,
 Sharat Hegde



 --
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 To contact the list administrators, e-mail: [EMAIL PROTECTED]








-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] form and php

2001-03-27 Thread Johannes Janson

Hi,

i'm sorry but I don't quite get what you mean. Which button is
pressed. or post the code.

Johannes

"Augusto Cesar Castoldi" [EMAIL PROTECTED] schrieb im Newsbeitrag
Pine.GSO.4.10.10103271417160.12546-10@venus">news:Pine.GSO.4.10.10103271417160.12546-10@venus...
 I had a form with just with one button, the action is a PHP file. And when
 I hit "enter" the button (submit) form action was done.


 Then I put other button (change)  on this form, and now when I hit enter,
 beside the
 "pressed" button is the second one (I want that when I hit "enter" the
 submit button is pressed), the PHP stops and the screen of the IE5 stays
 blank.

 What I should do to solve this problem?

 thanks.

 Augusto


 --
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 To contact the list administrators, e-mail: [EMAIL PROTECTED]




-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] Simple If-else statement

2001-03-27 Thread Johannes Janson

Hi,

if ($name == " ") {  checks for a space in $name.
"empty" is either if (§name == "") without a free space
between "" or you could do it with empty($mane)
if (empty($name)) is true if it is empty (who would
have thought this?)

Johannes

"Louis Brooks" [EMAIL PROTECTED] schrieb im Newsbeitrag
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
 Hi:

 I am trying to set up a simple script that will verify that all the blanks
 in a form have been filled out and then submit that to mySQL. If the form
 has not been completely filled out I want it to redirect them back to the
 original form. I know that the mySQL part of the script works, but I am
 unable to get the part of the script that checks the form input to see if
 everything was filled out to work. It seems to bypass this part of the
 script and enter the info into mySQL . Here is what I have so far:


 If (($fname == " ") || ($lname == " "))
  {
  header("Location:
http://callook.org/member_joinform.html");
 }else{
  $db = mysql_connect("localhost", "name", "password");
  mysql_select_db("dBase",$db);
  $sql = "INSERT INTO
 members
 (fname,lname,address,city,state,zip,country,email,username,password)
 VALUES

('$fname','$lname','$address','$city','$state','$zip','$country','$email','$
user
 name','$password')";
  $result = mysql_query($sql);
 }

 I hope the formatting comes out right. I am sure it is something simple I
 have missed but I have tried the script several different ways and nothing
 seems to work. Thank you for any help.

 Sincerely,

 Louis Brooks

 BTW: Is there a faq for this list before I go asking anymore questions?




-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] Simple If-else statement

2001-03-27 Thread Johannes Janson

Hi Louis,

you cuold try it with if (empty($fname)) { redirect...
just check again that your form is ok.

Johannes

"Louis Brooks" [EMAIL PROTECTED] schrieb im Newsbeitrag
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
 Thanks for everyone's response. I am still not able to get the

 if(($fname="")) {

 statement to work even with the suggestions everyone made so I am
beginning
 to wonder if it is a problem with the server. (It is php3 on an Apache
 server. ) Any other suggestions would be greatly appreciated.

 Thanks again,

 Louis Brooks





-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] POP mail delete

2001-03-27 Thread Johannes Janson

Hi,

i'm not that much into mail functions but my manual tells
me that impa_delete selects a message to be deleted.
imp_expunge delets all selected messages.

look into the correct syntax

Johannes

"Miguel Carvalho" [EMAIL PROTECTED] schrieb im Newsbeitrag
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
 I, i'm a little new to PHP.

 I'm sorry if this question has already be answerd, but i have i have
 searched the list, and i have not found any arcticle about it.

 My question is:
 How do i delete a message from a POP server, using  PHP functions?

 I have tried, imap_setflag_full, imap_delete, but no luck.

 Can any one point me to some solution?

 If possible, i dont want to dig into the POP protocol.

 Thanks.
 Miguel Carvalho


 --
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 To contact the list administrators, e-mail: [EMAIL PROTECTED]




-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] Simple If-else statement - Fixed

2001-03-27 Thread Johannes Janson

Hi,

for the haeder just make sure that there is NO output
whatsoever before the header-call. even if line 1 of your
script is empty before the ?php-tag the header doesn't work.


"Louis Brooks" [EMAIL PROTECTED] schrieb im Newsbeitrag
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
 Thanks for all the help. I finally got it to work. I ended up using a
bunch
 of if ($lname=="") { statements instead of if (($lname=="") ||
 ($fname=="")) { and that seems to be working. I still can't get the
 header() statement to work. So I just cheated and put in some text telling
 the user to hit the back button and fill out the rest of the information
on
 the form.

 Louis






-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] just a newbie in php, don't get mad

2001-03-26 Thread Johannes Janson

Hi,

get an editor which suits your needs and demands, a server and
(if needed somr database app) and just do it by trial and error.

tutorials on php:
www.phpbuilder.com
www.webmonkey.com
www.devshed.com

feed any search engine with "php tutorials" and find more.

good luck
Johannes

p.s. what's this ":p" ??

ok as you got it already i am a newbie in php
could anyone please please post me what programs do I need or which could
help me to make some php stuff
sry for this may sound stupid to you all but all the manuals in the web
just were just talkin' 'bout totally technical stuff

ok thnx :p




-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] NEWBIE QUESTION

2001-02-01 Thread Johannes Janson

Hi,

first of all being desperate for help is okay but please don't write in
cabs.

try this:
while ($row = mysql_fetch_array($result) ) {
echo "a href=http://tias.kub.nl/programs/$row[opleiding_afkorting]/
$row[leergang_afkorting/
virtuele.klas/programma/blok$row[module_nummer/$row[leergang_afkorting]_blok
0
$orw[module_nummer].html$row[module_nummer]/abr";
}
this lists the links. If "blok0" should increment you'll need to put
something like
$i = 0 before the while loop and $i++ after the "echo"

good luck
Johannes


"Stinie Steinbach" [EMAIL PROTECTED] schrieb im Newsbeitrag
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
 DOES ANYONE KNOW WHAT'S WRONG WITH THIS CODE
 IK WANT TO GENERATE A CODE THAT SELECTS A COUPELE OF PARAMETERS FROM TWO
 TABLES IN A MYSQL DATABASE...
 THE QUERY THAT I USE WORKS CORRECTLY BUT I HAVE A PROBLEM WITH THE LINKS
 I WANT TO GENERATE WITH PHP...
 I NEED TO CREATE AN ARRAY OF LINKS THAT LOOK LIKE THIS...

 BLOK 0 | BLOK 1 | BLOK 2 | BLOK 3 | BLOK 4 | BLOK 5 | BLOK 6 | BLOK 7 |
 BLOK 8 | BLOK 9

 PLEASE HELP!!!

 ? include("connect.php3") ?
 ?
 $result = mysql_query ("select m.module_id, m.leergang_afkorting,
 m.module_nummer, l.opleiding_afkorting
from module m, leergang l where m.leergang_afkorting =
 l.leergang_afkorting
and m.leergang_afkorting = 'EDP16' order by m.module_nummer");
 while (list
 ($module_id,$leergang_afkorting,$module_nummer,$opleiding_afkorting) =
 mysql_fetch_row ($result)) {
  echo "a

href=\"http://tias.kub.nl/programs/\"opleiding_afkorting=$opleiding_afkortin
g\"/

\"leergang_afkorting=$leergang_afkorting\"/

\"virtuele.klas/programma/blok\"module_nummer=$module_nummer\"/\"leergang_af
korting=$leergang_afkorting\"_blok0\"

module_nummer=$module_nummer.html\"$module_nummer/a
 }
 ?


 --
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 To contact the list administrators, e-mail: [EMAIL PROTECTED]




-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] PHP forms

2001-01-31 Thread Johannes Janson

e.g.
input type=password name=memberid !!NOW!! value=?php echo "whatever"; ? 

Johannes

"Victor Hamutenya" [EMAIL PROTECTED] schrieb im Newsbeitrag
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
 Hi, my name is Victor from Namibia, I do web development with PHP, I
 hapenned to find your email address on one of the PHP sites on the Net,
 as one of the contributors on the PHP notes.

 Can you please, if it is possible, tell me how to write in a form field
 with PHP script. Like in Javascript, if one has a form named members and
 a text field called memberid, one can write in the memberid field as
 follows:
 script language =javascript
 member.memberid.value='M100';
 /script

 I will appreciate your help very much.

 Thanking you in advance.

 Vict



 --
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 To contact the list administrators, e-mail: [EMAIL PROTECTED]




-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] [NEWBIE] PHP.INI

2001-01-29 Thread Johannes Janson

Hi,

I'm not sure but I think it's "--with-config-file-path=/path/to/dir.

Good Luck
Johannes



""Steve Haemelinck"" [EMAIL PROTECTED] schrieb im Newsbeitrag
003901c08a14$3f692bd0$0200a8c0@shaemeli">news:003901c08a14$3f692bd0$0200a8c0@shaemeli...
 I want to put the php.ini in /etc/php

 Which argument do I have to attach to ./configure --?=/etc/php to
accomplish
 this ?

 THX


 --
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 To contact the list administrators, e-mail: [EMAIL PROTECTED]




-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] PHP/MySQL question

2001-01-29 Thread Johannes Janson

reset($array), if this is what you need.
this resets (who would have thought it?) the internal pointer back to the
first
position.


""Julia A . Case"" [EMAIL PROTECTED] schrieb im Newsbeitrag
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
 Is it possible to move through an array that is returned as a recordset
 and then move back to the beginning of the array.

 Julia

 --
 [  Julia Anne Case  ] [Ships are safe inside the harbor,   ]
 [Programmer at large] [  but is that what ships are really for.]
 [   Admining Linux  ] [   To thine own self be true.   ]
 [ Windows/WindowsNT ] [ Fair is where you take your cows to be judged. ]


 --
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 To contact the list administrators, e-mail: [EMAIL PROTECTED]




-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] Session problems

2001-01-24 Thread Johannes Janson

I don't know if it'll help but here my bit of the php.ini:
session.save_handler  = files   ; handler used to store/retrieve data
session.save_path = C:\Programme\Apache
Group\Apache\cgi-bin\php4\sessiondata; argument passed to
save_handler
; in the case of files, this is the
; path where data files are stored
session.use_cookies   = 1   ; whether to use cookies
session.name  = PHPSESSID
; name of the session
; is used as cookie name
session.auto_start= 0   ; initialize session on request startup
session.cookie_lifetime   = 0   ; lifetime in seconds of cookie
; or if 0, until browser is restarted

try this test-script:
?
session_start();
session_register("SESSION");

if (! isset($SESSION)) {
$SESSION["count"] = 0;
echo "liCounter initialized, please reload this page to see it
increment";
} else {
echo "liWaking up session $PHPSESSID";
$SESSION["count"]++;
}
echo "liThe counter is now $SESSION[count] ";
?

johannes

"Jimmy Bäckström" [EMAIL PROTECTED] schrieb im Newsbeitrag
007801c0859d$8ef1e0f0$554d59d5@broder">news:007801c0859d$8ef1e0f0$554d59d5@broder...
Yeah I used a path name with '\' instead of '/' but it still does not work.
Help!

"Johannes Janson" [EMAIL PROTECTED] wrote in message
94kpfm$4cc$[EMAIL PROTECTED]">news:94kpfm$4cc$[EMAIL PROTECTED]...
 you have to set the 'session.save_path' in your php.ini.
 be careful with the slashes you use. as you can see from
 the error msg by default it's '/' but windows uses '\'.

 good luck
 Johannes


 "Jimmy Bäckström" [EMAIL PROTECTED] schrieb im Newsbeitrag
 001201c08564$f7398660$554d59d5@broder">news:001201c08564$f7398660$554d59d5@broder...
 Yo!
 I'm playing a little bit with sessions for the moment and I get a really
 scary errormessage:

 Warning: open(/tmp\sess_1b7577b36d874741ed1e74b4bead0dfd, O_RDWR) failed:
m
 (2) in h:\program\apache\htdocs/boa/sessionTest.php on line 5

 Warning: open(/tmp\sess_1b7577b36d874741ed1e74b4bead0dfd, O_RDWR) failed:
m
 (2) in Unknown on line 0

 Warning: Failed to write session data (files). Please verify that the
 current setting of session.save_path is correct (/tmp) in Unknown on line
0

 I understand that there is a folder missing somewhere (tmp) and I tried to
 create one in the apache directory, but it still does not work. I'm using
 Win2k proffesional with an apache webserver and I don't have a clue what
 changes I should do to php.ini.
 Please help!
 /Broder B




 --
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 To contact the list administrators, e-mail: [EMAIL PROTECTED]





-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] Session problems

2001-01-23 Thread Johannes Janson

you have to set the 'session.save_path' in your php.ini.
be careful with the slashes you use. as you can see from
the error msg by default it's '/' but windows uses '\'.

good luck
Johannes


"Jimmy Bäckström" [EMAIL PROTECTED] schrieb im Newsbeitrag
001201c08564$f7398660$554d59d5@broder">news:001201c08564$f7398660$554d59d5@broder...
Yo!
I'm playing a little bit with sessions for the moment and I get a really
scary errormessage:

Warning: open(/tmp\sess_1b7577b36d874741ed1e74b4bead0dfd, O_RDWR) failed: m
(2) in h:\program\apache\htdocs/boa/sessionTest.php on line 5

Warning: open(/tmp\sess_1b7577b36d874741ed1e74b4bead0dfd, O_RDWR) failed: m
(2) in Unknown on line 0

Warning: Failed to write session data (files). Please verify that the
current setting of session.save_path is correct (/tmp) in Unknown on line 0

I understand that there is a folder missing somewhere (tmp) and I tried to
create one in the apache directory, but it still does not work. I'm using
Win2k proffesional with an apache webserver and I don't have a clue what
changes I should do to php.ini.
Please help!
/Broder B




-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]