Re: [PHP-WIN] Cookie problem
hay clay letts start over 1st page where u ll take input into a from n post it - echo(" "); echo(" password "); ** a simple form ! ! ! ! ** logn_p.php --- include"cnctdb.php"; // a file for ur connection to database with the connection query n all // get the variables passed from the form $flogin=$_POST['frm_login']; $fpw=$_POST['frm_pw']; // qry for gettin the login and password fields from db table $query = "SELECT role_id,fName, logn.memb_id FROM mbr_inf, logn WHERE logn.login = '$flogin' and logn.pw = '$fpw' and mbr_inf.memb_id = logn.memb_id "; $result = mysql_query ($query) or die ('qry failed ! DA tbl must xixt in DA db specifyd bov '); $rows = mysql_num_rows($result); if($rows>0) { // chk n disply fo membrz only ! ! ! ! $data = mysql_fetch_row($result); if ($data[0] == 0 && $flogin != "") // chk fo mbr { $name=$data[1]; // initiate a session session_start(); // register some session variables session_register("SESSION"); header("Location: /dir_path/mbrchk.php?flogin=" . $flogin. "&varble2=" .$varble2); exit(); } // endda membr chk ! ! ! ! else { // no lgn found header("Location: /dir_path/nologn.php"); exit(); } --- mbrchk.php -- ** now this is the file that actually displayz the material only a member has access to ** // session check session_start(); if (!session_is_registered("SESSION")) { // if session check fails, invoke error handler header("Location: /sir/nolgn.php"); exit(); } $flogin=$_GET['flogin']; $name_qry = "select fName,lastName from mbr_inf where email='$flogin'"; $name_qry_result = mysql_query ($name_qry) or die ('qry failed ! DA tbl must xixt in DA db specifyd bov '); and after this u can fetch row or dsply what ever u want to * --- hope this helps . good luck toby .. --- Clay Culver <[EMAIL PROTECTED]> wrote: > Hi, > I am having a problem trying to set a cookie with > the > register_globals variable turned OFF. I have a > script that just checks a > password in a MySQL database through a form, if the > password is the same > in the db then the cookie is set and access is > allowed to any page that > has the other part of the code. Right now the > password is not being > validated, below is the code I am using. > > [html form] > > Enter Password > /> > > [/html form] > > [validate.php] >include("phpDB.php"); > include("db.php"); > $result = $db->execute("SELECT Password FROM > password WHERE > Location='members'"); > if (!strcasecmp($result->fields['Password'], > $password)) { > > setcookie ("access", "access", 0, "", "weburlhere", > 0); > > ?> > > > Identification > > > > > Password accepted > >include("footer.htm"); > ?> > ?> > Transitional//EN" > "http://www.w3.org/tr/xhtml1/dtd/transitional.dtd";> > encoding=\"iso-8859-1\"?>\n"); ?> > > > Bad Password > > > > Bad Password >include("footer.htm"); > ?> > > > > > [/validate.php] > [password.php this is what is included at the top of > the pages I wish to > protect] > if (isset ($access)) { > if (!strcasecmp("access", $access)) { > } > else { > header ("Location: http://url/breach.php";); // > Redirect > browser > exit; // Make sure that code below does not get > executed when we redirect. > } > } > else { > header ("Location: http://url/breach.php";); // > Redirect browser > exit; // Make sure that code below does not get > executed when we > redirect. > } > ?> > [/password.php] > > I have tried changing > if (!strcasecmp($result->fields['Password'], > $password)) { > > to > > if > (!strcasecmp($result->fields{$_POST['Password']}, > $password)) > { > > But when I do this you can just click on the submit > button and it will > say you are authenticated, and the cookie is not > set. When just > if (!strcasecmp($result->fields['Password'], > $password)) { is used the > cookie is not set thus not allowing access to the > pages protected by the > script. I hope I have explained this so everyone can > understand me. > > Clay > > > -- > PHP Windows Mailing List (http://www.php.net/) > To unsubscribe, visit: http:/
[PHP-WIN] Help on \t \r \n
Can anyone help me on this very simple problem, I'm a newbie, but the problem seems so simple and it's buggering me. I have 423 xp version installed. When trying out how to display any of the escaped characters e.g. echo("blah blah. \n"); echo("more blahs..."); in an HTML file, with IE6, I get blah blah. more blahs... why? -- shall I just forget it and use ? -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
php-windows Digest 3 Nov 2002 17:18:40 -0000 Issue 1421
php-windows Digest 3 Nov 2002 17:18:40 - Issue 1421 Topics (messages 16696 through 16699): Re: Login from another page (pardon me :$) 16696 by: erythros Cookie problem 16697 by: Clay Culver 16698 by: toby z Help on \t \r \n 16699 by: dee Administrivia: To subscribe to the digest, e-mail: [EMAIL PROTECTED] To unsubscribe from the digest, e-mail: [EMAIL PROTECTED] To post to the list, e-mail: [EMAIL PROTECTED] -- --- Begin Message --- depends it could be a bulletin board server. whats the reference? "Toby z" <[EMAIL PROTECTED]> wrote in message news:20021102133916.95416.qmail@;web20807.mail.yahoo.com... > > pardon my ignorance guyz but what on earth is BBS > > > pretty embaressed > toby . > > > --- "Douglas F. Keim" <[EMAIL PROTECTED]> wrote: > > I installed php, mysql and phpbb on my web site. > > The bbs is great and a > > wonderful way to communicate with clients and > > family. > > > > However, there is an area on my web that I have > > password protected earlier > > with a MS Access database. Now I have two databases > > to maintain and two > > areas that I have to set up users. Though > > relatively easy to do, it is a > > duplication of effort. > > > > What I think that I would like to do is use one or > > the other for both > > functions. Since the BBS is working so well in the > > PHP world, I am leaning > > towards MySQL as the preferred database of choice. > > > > My question is this. > > > > How do I access the mysql database from a web page > > that is not going to go > > into the bbs? > > > > I would also like to allow a user to update his/her > > own profile. Maybe even > > change their own password on occasion if they would > > like. > > > > Anyone help? > > > > > > > > -- > > PHP Windows Mailing List (http://www.php.net/) > > To unsubscribe, visit: http://www.php.net/unsub.php > > > > __ > Do You Yahoo!? > Everything you'll ever need on one web page > from News and Sport to Email and Music Charts > http://uk.my.yahoo.com --- End Message --- --- Begin Message --- Hi, I am having a problem trying to set a cookie with the register_globals variable turned OFF. I have a script that just checks a password in a MySQL database through a form, if the password is the same in the db then the cookie is set and access is allowed to any page that has the other part of the code. Right now the password is not being validated, below is the code I am using. [html form] Enter Password [/html form] [validate.php] execute("SELECT Password FROM password WHERE Location='members'"); if (!strcasecmp($result->fields['Password'], $password)) { setcookie ("access", "access", 0, "", "weburlhere", 0); ?> Identification Password accepted http://www.w3.org/tr/xhtml1/dtd/transitional.dtd";> \n"); ?> Bad Password Bad Password [/validate.php] [password.php this is what is included at the top of the pages I wish to protect] http://url/breach.php";); // Redirect browser exit; // Make sure that code below does not get executed when we redirect. } } else { header ("Location: http://url/breach.php";); // Redirect browser exit; // Make sure that code below does not get executed when we redirect. } ?> [/password.php] I have tried changing if (!strcasecmp($result->fields['Password'], $password)) { to if (!strcasecmp($result->fields{$_POST['Password']}, $password)) { But when I do this you can just click on the submit button and it will say you are authenticated, and the cookie is not set. When just if (!strcasecmp($result->fields['Password'], $password)) { is used the cookie is not set thus not allowing access to the pages protected by the script. I hope I have explained this so everyone can understand me. Clay --- End Message --- --- Begin Message --- hay clay letts start over 1st page where u ll take input into a from n post it - echo(" "); echo(" password "); ** a simple form ! ! ! ! ** logn_p.php --- include"cnctdb.php"; // a file for ur connection to database with the connection query n all // get the variables passed from the form $flogin=$_POST['frm_login']; $fpw=$_POST['frm_pw']; // qry for gettin the login and password fields from db table $query = "SELECT role_id,fName, logn.memb_id FROM mbr_inf, logn WHERE logn.login = '$flogin' and logn.pw = '$fpw' and mbr_inf.memb_id = logn.memb_id "; $result = mysql_query ($query) or die ('qry failed ! DA tbl must xixt in DA db specifyd bov '); $rows = mysql_num_rows($result);
RE: [PHP-WIN] Help on \t \r \n
Hi dee > Can anyone help me on this very simple problem, I'm a newbie, > but the problem seems so simple and it's buggering me. > > I have 423 xp version installed. When trying out how to > display any of the escaped characters e.g. > > echo("blah blah. \n"); > echo("more blahs..."); Use both and \n in this case. is a linebreak in HTML and \n is a linebreak in your code, makes your html code more readable. blah blah. \n"); echo("more blahs..."); ?> > > in an HTML file, with IE6, I get > > blah blah. more blahs... > > why? -- shall I just forget it and use ? > If you want your code to be more readable instead of all the html codes on one really big line, use dont forget \n :-) Best regards, Davy Obdam mailto:info@;davyobdam.com -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP-WIN] Unable to fork ...
Hi! I use PHP 4.2.3 on Windows XP and IIS 5.1. It works fine, but when I try to execute ImageMagick I get the following message: Warning: Unable to fork [C:\PHP\ImageMagick\convert ...] You can find a lot of Sites if you search the Internet, but I couldn't find a solution or a workaround up to now. Has anyone an idea, how I can get rid of this problem? Thanks. Peter -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP-WIN] Help on \t \r \n
dee, Use the string function nl2br($myblahstring) This converts ordinary linebreaks (newline chars) to html tags on the fly when displaying text out of a database for instance. In your example though with straight echos you have to expicitly echo at end of each blah echo, no matter what browser is used. CD - Original Message - From: "dee" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Friday, November 01, 2002 12:18 PM Subject: [PHP-WIN] Help on \t \r \n > Can anyone help me on this very simple problem, I'm a newbie, but the > problem seems so simple and it's buggering me. > > I have 423 xp version installed. When trying out how to display any of the > escaped characters e.g. > > echo("blah blah. \n"); > echo("more blahs..."); > > in an HTML file, with IE6, I get > > blah blah. more blahs... > > why? -- shall I just forget it and use ? > > > > -- > PHP Windows Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > > -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP-WIN] uploading help please again
Ok I'm back This script is to upload 2 image files Whit register_globals = on it Works fine script A "p.php" Jornal O Leme Imagem pequena Imagem grande "pi.php" echo $page; ---> returns inserir1 _correct echo $origem; ---> returns the temp path of the file _correct set_time_limit(60); $path=(dirname($PATH_TRANSLATED))."/primeirapagina/"; $origem_name="fdx.jpg"; $dest= $path.$origem_name; if (($origem <> "none") && ($origem <> "")){ if (copy($origem,$dest)){; } else { echo "directoria sem direitos de escrita "; } unlink ($origem); } set_time_limit(60); $path2=(dirname($PATH_TRANSLATED))."/primeirapagina/"; $origem2_name="porra.jpg"; $dest2= $path2.$origem2_name; //printf("$path"); //printf(""); //printf("$origem_name"); if (($origem2 <> "none") && ($origem2 <> "")){ if (copy($origem2,$dest2)){; //echo "upload do ficheiro $origem_name efectuada com sucesso !!!"; // echo "tamanho do ficheiro $origem_size"; // echo " tipo de ficheiro $origem_type"; } else { echo "directoria sem direitos de escrita "; } unlink ($origem2); } ?> but Whit register_globals = off the script B dont work script B: "p.php" Jornal O Leme Imagem pequena Imagem grande "pi.php" echo $_REQUEST['page']; returns inserir1 _correct echo $_FILES['origem']; returns ARRAY _error why ? what i have to do to return the temp path of the file to ? im lost set_time_limit(60); $path=(dirname($PATH_TRANSLATED))."/primeirapagina/"; $origem_name="fdx.jpg"; $dest= $path.$origem_name; if (($origem <> "none") && ($origem <> "")){ if (copy($origem,$dest)){; } else { echo "directoria sem direitos de escrita "; } unlink ($origem); } set_time_limit(60); $path2=(dirname($PATH_TRANSLATED))."/primeirapagina/"; $origem2_name="porra.jpg"; $dest2= $path2.$origem2_name; //printf("$path"); //printf(""); //printf("$origem_name"); if (($origem2 <> "none") && ($origem2 <> "")){ if (copy($origem2,$dest2)){; //echo "upload do ficheiro $origem_name efectuada com sucesso !!!"; // echo "tamanho do ficheiro $origem_size"; // echo " tipo de ficheiro $origem_type"; } else { echo "directoria sem direitos de escrita "; } unlink ($origem2); } ?> -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP-WIN] setup open_basedir with apache and php on a per-virtalhost basis?
Does anyone know how to set the open_basedir in Apache 1.3x running on win2k on a per-virtual host basis? I've been looking for hours and I haven't found any information that works :( PHP is running as several SAPI modules (maybe this is the problem, but I've read that SAPI is better than the cgi executable..?) I have tried configurations like: DocumentRoot /www/ ServerName test.yourdomain.com php_admin_value user_dir "/www/yourdomain.com/" That gives this error when I restart apache :( C:\>Syntax error on line 96 of C:/apache/config/virtualhosts.conf: php_admin_value not allowed here Can anyone help me? Thanks, -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP-WIN] open_basedir with apache on a per-virtalhost basis?
Does anyone know how to set the open_basedir in Apache 1.3x running on win2k on a per-virtual host basis? I've been looking for hours and I haven't found any information that works :( PHP is running as several SAPI modules (maybe this is the problem, but I've read that SAPI is better than the cgi executable..?) I have tried configurations like: DocumentRoot /www/ ServerName test.yourdomain.com php_admin_value user_dir "/www/yourdomain.com/" That gives this error when I restart apache :( C:\>Syntax error on line 96 of C:/apache/config/virtualhosts.conf: php_admin_value not allowed here Can anyone help me? Thanks, Luke! -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP-WIN] Form submossion with php - not passing variables
I am trying to submit a form using php on my apache 1.3 server running win2k and php4, but I get the error: Notice: Undefined variable: submitform in C:\www\emailform.php on line 9 The exact same php script works on another server running linux/apache1.3/php4 Do I need to load any extensions in my php.ini file in order for php to receive variables defined in an html form? Maybe you have another suggestion of what the problem might be? Here is the script: Email "; } } if($error) { ?> Error "); print(" Thanks! Go Back \n"); exit(); } else { ?> Contact Form Your Name: Your Email: Message: Thanks! Luke :) -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP-WIN] Any special functions need to be loded to accept forms?
I am trying to submit a form on my apache server running win2k and php4 using php, but I get the error: Notice: Undefined variable: submitform in C:\www\\emailform.php on line 9 The exact same php script works on another server running linux/apache/php4 Does anyone know if I need to load any extensions in my php.ini file in order for php to receive variables defined in an html form? Or maybe what else might be the problem? here are the lines around line 1-20: Email "; } Thanks! Luke :) } -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP-WIN] Re: Any special functions need to be loded to accept forms?
Hi "Luke" <[EMAIL PROTECTED]> wrote in message news:20021103231622.13841.qmail@;pb1.pair.com... > I am trying to submit a form on my apache server running win2k and php4 > using php, but I get the error: > > Notice: Undefined variable: submitform in C:\www\\emailform.php on line 9 > > The exact same php script works on another server running linux/apache/php4 > > Does anyone know if I need to load any extensions in my php.ini file in > order for php to receive variables defined in an html form? Or maybe what > else might be the problem? > > here are the lines around line 1-20: > > > > Email > > > $youremail = "[EMAIL PROTECTED]"; > $subject = "Contact Form"; > if($submitform) { > $dcheck = explode(",",$require); > while(list($check) = each($dcheck)) { > if(!$$dcheck[$check]) { > $error .= "Missing $dcheck[$check]"; > } > > > > Thanks! > > Luke :) > } > > This is due to a setting in your php.ini file register_globals: off If this is the case, variables that come from a form need to be accessed by the superglobals (PHP 4.2+) ie $_POST["variablename"]; OR the HTTP vars.. $HTTP_POST_VARS["variablename"]; HTH Brad -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP-WIN] calling a html file to a different frame
hello, how am i able to call an normal html file to a different frame from php? Clarification: I got two frames, in the left one you log in, then the database will be connected,in the left frame an navigationmenu will(should) appear, but on the main frame an html file with various things should appear.. so how do i target that file for the "main"frame from within php script? Please help its rather urgent thanks in advance jan -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP-WIN] Re: setup open_basedir with apache and php on a per-virtalhost basis?
Sorry for so many of the same posts, but this was my first time ever submitting to a news group, and I kept getting emails saying that I needed to validate my email address... oops I finally figured out how to setup the open_basedir in windows! yay :) For people who want to know, or for people that would care to add to this, here is what I found: php_admin_value open_basedir /www/ Is that all I should need in each virtual host block, or are there more settings I should add to make php more secure? Thanks, Luke! "Luke" <[EMAIL PROTECTED]> wrote in message news:20021104012043.67066.qmail@;pb1.pair.com... > Does anyone know how to set the open_basedir in Apache 1.3x running on win2k > on a per-virtual host basis? I've been looking for hours and I haven't > found any information that works :( PHP is running as several SAPI modules > (maybe this is the problem, but I've read that SAPI is better than the cgi > executable..?) > > I have tried configurations like: > > > DocumentRoot /www/ > ServerName test.yourdomain.com > php_admin_value user_dir "/www/yourdomain.com/" > > > That gives this error when I restart apache :( > > C:\>Syntax error on line 96 of C:/apache/config/virtualhosts.conf: > php_admin_value not allowed here > > Can anyone help me? > > Thanks, > > -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP-WIN] Re: open_basedir with apache on a per-virtalhost basis?
Sorry for so many of the same posts, but this was my first time ever submitting to a news group, and I kept getting emails saying that I needed to validate my email address... oops I finally figured out how to setup the open_basedir in windows! yay :) For people who want to know, or for people that would care to add to this, here is what I found: php_admin_value open_basedir /www/ Is that all I should need in each virtual host block, or are there more settings I should add to make php more secure? Thanks, Luke! "Luke" <[EMAIL PROTECTED]> wrote in message news:20021103230908.10040.qmail@;pb1.pair.com... > Does anyone know how to set the open_basedir in Apache 1.3x running on win2k > on a per-virtual host basis? I've been looking for hours and I haven't > found any information that works :( PHP is running as several SAPI modules > (maybe this is the problem, but I've read that SAPI is better than the cgi > executable..?) > > I have tried configurations like: > > > DocumentRoot /www/ > ServerName test.yourdomain.com > php_admin_value user_dir "/www/yourdomain.com/" > > > That gives this error when I restart apache :( > > C:\>Syntax error on line 96 of C:/apache/config/virtualhosts.conf: > php_admin_value not allowed here > > Can anyone help me? > > Thanks, > Luke! > > -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP-WIN] Re: Any special functions need to be loded to accept forms?
Thanks for the help! You were right about the register_globals being off! I tried to turn it on just to see if it fixes the problem, but I still get the same error: When I use: if($submitform){ I get the error: Notice: Undefined variable: submitform in C:\www\emailform.php on line 9 and when I use: if($_POST["submitform"]) or if($HTTP_POST_VARS["submitform"]) I get the error: Notice: Undefined index: submitform in C:\www\emailform.php on line 9 Does anyone have any more suggestions? Thanks Brad! Luke "Brad Thomas" <[EMAIL PROTECTED]> wrote in message news:20021104020732.94208.qmail@;pb1.pair.com... > Hi > > "Luke" <[EMAIL PROTECTED]> wrote in message > news:20021103231622.13841.qmail@;pb1.pair.com... > > I am trying to submit a form on my apache server running win2k and php4 > > using php, but I get the error: > > > > Notice: Undefined variable: submitform in C:\www\\emailform.php on line 9 > > > > The exact same php script works on another server running > linux/apache/php4 > > > > Does anyone know if I need to load any extensions in my php.ini file in > > order for php to receive variables defined in an html form? Or maybe what > > else might be the problem? > > > > here are the lines around line 1-20: > > > > > > > > Email > > > > > > > $youremail = "[EMAIL PROTECTED]"; > > $subject = "Contact Form"; > > if($submitform) { > > $dcheck = explode(",",$require); > > while(list($check) = each($dcheck)) { > > if(!$$dcheck[$check]) { > > $error .= "Missing $dcheck[$check]"; > > } > > > > > > > > Thanks! > > > > Luke :) > > } > > > > > > This is due to a setting in your php.ini file > > register_globals: off > > If this is the case, variables that come from a form need to be accessed by > the superglobals (PHP 4.2+) ie $_POST["variablename"]; > > OR > the HTTP vars.. $HTTP_POST_VARS["variablename"]; > > HTH > Brad > > -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP-WIN] Re: Any special functions need to be loded to accept forms?
I just noticed something. I never wrote this script, and the variable submitform comes from the line: I think I just have to figure out what setting I have to change in php.ini so that it automatically looks at each element of the form. -- I say that I think I need to edit php.ini because the script works on my linux server.. here is the entire form submitter: Email "; } } if($error) { ?> Error "); print(" Thanks! Go Back \n"); exit(); } else { ?> Contact Form Your Name: Your Email: Message: Thanks again! Luke "Luke" <[EMAIL PROTECTED]> wrote in message news:20021104030118.29591.qmail@;pb1.pair.com... > Thanks for the help! You were right about the register_globals being off! > I tried to turn it on just to see if it fixes the problem, but I still get > the same error: > When I use: if($submitform){ > I get the error: > > Notice: Undefined variable: submitform in C:\www\emailform.php on line 9 > > and when I use: if($_POST["submitform"]) or > if($HTTP_POST_VARS["submitform"]) > I get the error: > > Notice: Undefined index: submitform in C:\www\emailform.php on line 9 > > Does anyone have any more suggestions? > > Thanks Brad! > > Luke > > > "Brad Thomas" <[EMAIL PROTECTED]> wrote in message > news:20021104020732.94208.qmail@;pb1.pair.com... > > Hi > > > > "Luke" <[EMAIL PROTECTED]> wrote in message > > news:20021103231622.13841.qmail@;pb1.pair.com... > > > I am trying to submit a form on my apache server running win2k and php4 > > > using php, but I get the error: > > > > > > Notice: Undefined variable: submitform in C:\www\\emailform.php on line > 9 > > > > > > The exact same php script works on another server running > > linux/apache/php4 > > > > > > Does anyone know if I need to load any extensions in my php.ini file in > > > order for php to receive variables defined in an html form? Or maybe > what > > > else might be the problem? > > > > > > here are the lines around line 1-20: > > > > > > > > > > > > Email > > > > > > > > > > > $youremail = "[EMAIL PROTECTED]"; > > > $subject = "Contact Form"; > > > if($submitform) { > > > $dcheck = explode(",",$require); > > > while(list($check) = each($dcheck)) { > > > if(!$$dcheck[$check]) { > > > $error .= "Missing $dcheck[$check]"; > > > } > > > > > > > > > > > > Thanks! > > > > > > Luke :) > > > } > > > > > > > > > > This is due to a setting in your php.ini file > > > > register_globals: off > > > > If this is the case, variables that come from a form need to be accessed > by > > the superglobals (PHP 4.2+) ie $_POST["variablename"]; > > > > OR > > the HTTP vars.. $HTTP_POST_VARS["variablename"]; > > > > HTH > > Brad > > > > > > -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP-WIN] 404 documents
>I there a way to have the .php page pickup the url that was typed in e.g. >usertype= www.mydomain.com/wRongurl $usertype = getenv('REQUEST_URI'); I believe this is one of those server-dependent environment variables, but it works with Apache. - Steve Yates - Who is General Failure and why is he reading my drive? ~ Do you like my taglines? Add them to your messages and ~ laugh through hundreds more by downloading Taglinator ~ at www.srtware.com today! -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
php-windows Digest 4 Nov 2002 06:21:07 -0000 Issue 1422
php-windows Digest 4 Nov 2002 06:21:07 - Issue 1422 Topics (messages 16700 through 16714): Re: Help on \t \r \n 16700 by: Davy Obdam 16702 by: Cam Dunstan Unable to fork ... 16701 by: Peter uploading help please again 16703 by: Marcelo setup open_basedir with apache and php on a per-virtalhost basis? 16704 by: Luke 16710 by: Luke open_basedir with apache on a per-virtalhost basis? 16705 by: Luke 16711 by: Luke Form submossion with php - not passing variables 16706 by: Luke Any special functions need to be loded to accept forms? 16707 by: Luke 16708 by: Brad Thomas 16712 by: Luke 16713 by: Luke calling a html file to a different frame 16709 by: jan behrens Re: 404 documents 16714 by: Steve Yates Administrivia: To subscribe to the digest, e-mail: [EMAIL PROTECTED] To unsubscribe from the digest, e-mail: [EMAIL PROTECTED] To post to the list, e-mail: [EMAIL PROTECTED] -- --- Begin Message --- Hi dee > Can anyone help me on this very simple problem, I'm a newbie, > but the problem seems so simple and it's buggering me. > > I have 423 xp version installed. When trying out how to > display any of the escaped characters e.g. > > echo("blah blah. \n"); > echo("more blahs..."); Use both and \n in this case. is a linebreak in HTML and \n is a linebreak in your code, makes your html code more readable. blah blah. \n"); echo("more blahs..."); ?> > > in an HTML file, with IE6, I get > > blah blah. more blahs... > > why? -- shall I just forget it and use ? > If you want your code to be more readable instead of all the html codes on one really big line, use dont forget \n :-) Best regards, Davy Obdam mailto:info@;davyobdam.com --- End Message --- --- Begin Message --- dee, Use the string function nl2br($myblahstring) This converts ordinary linebreaks (newline chars) to html tags on the fly when displaying text out of a database for instance. In your example though with straight echos you have to expicitly echo at end of each blah echo, no matter what browser is used. CD - Original Message - From: "dee" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Friday, November 01, 2002 12:18 PM Subject: [PHP-WIN] Help on \t \r \n > Can anyone help me on this very simple problem, I'm a newbie, but the > problem seems so simple and it's buggering me. > > I have 423 xp version installed. When trying out how to display any of the > escaped characters e.g. > > echo("blah blah. \n"); > echo("more blahs..."); > > in an HTML file, with IE6, I get > > blah blah. more blahs... > > why? -- shall I just forget it and use ? > > > > -- > PHP Windows Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > > --- End Message --- --- Begin Message --- Hi! I use PHP 4.2.3 on Windows XP and IIS 5.1. It works fine, but when I try to execute ImageMagick I get the following message: Warning: Unable to fork [C:\PHP\ImageMagick\convert ...] You can find a lot of Sites if you search the Internet, but I couldn't find a solution or a workaround up to now. Has anyone an idea, how I can get rid of this problem? Thanks. Peter --- End Message --- --- Begin Message --- Ok I'm back This script is to upload 2 image files Whit register_globals = on it Works fine script A "p.php" Jornal O Leme Imagem pequena Imagem grande "pi.php" echo $page; ---> returns inserir1 _correct echo $origem; ---> returns the temp path of the file _correct set_time_limit(60); $path=(dirname($PATH_TRANSLATED))."/primeirapagina/"; $origem_name="fdx.jpg"; $dest= $path.$origem_name; if (($origem <> "none") && ($origem <> "")){ if (copy($origem,$dest)){; } else { echo "directoria sem direitos de escrita "; } unlink ($origem); } set_time_limit(60); $path2=(dirname($PATH_TRANSLATED))."/primeirapagina/"; $origem2_name="porra.jpg"; $dest2= $path2.$origem2_name; //printf("$path"); //printf(""); //printf("$origem_name"); if (($origem2 <> "none") && ($origem2 <> "")){ if (copy($origem2,$dest2)){; //echo "upload do ficheiro $origem_name efectuada com sucesso !!!"; // echo "tamanho do
[PHP-WIN] Re: 2 Issues for Mail() in Win/PHP4-
"Marie Monday" <[EMAIL PROTECTED]> wrote in message news:3DC3F4BB.D40352A5@;nomail.net... > I'm a PHP newbie and have just installed php4.2.3 Earlier versions of 4.x would auto-create variables for you. 4.2 no longer does that. Your Apache server is probably using an older version of PHP, or has register_globals turned on. Use $variable = $_POST['variable']; // or echo $_POST['variable']; or, extract($_POST) or extract($HTTP_POST_VARS) to create all POSTed variables. - Steve Yates - Wicked witch parking only -- Violators will be toad. ~ Do you like my taglines? Add them to your messages and ~ laugh through hundreds more by downloading Taglinator ~ at www.srtware.com today! -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP-WIN] PHP.INI Configuration Problems
Hi, i think i need some help to configure my php.ini. All php apps don't work so i want. Can somebody help me to make a proper configuration on a w2k server? Please write me to [EMAIL PROTECTED] so i can send you my php.ini file. Thank you verry much! Ronny -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php