[PHP-WIN] RE: form question

2003-01-13 Thread Uttam
is it because your ISP has register_globals turned off? if so this may correct the problem: function handleform() { global $_POST['comments']; global $_POST['yourname']; global $_POST['youremail']; $comments=stripslashes($_POST['comments']); $yourname=stripslashes($_POST['yourname']); $your

Re: [PHP-WIN] secure ldap connections

2003-01-13 Thread Leon
Hi Daniel Very important: TLS is NOT SSL The start TLS is almost guaranteed not to work for secure layer communication to your LDAP server. (You do need two dll files in your win\sys32 directory though) What I suggest is the following: Install STUNNEL accept connections on a port... send all

RE: [PHP-WIN] PHP + Win98 Question

2003-01-13 Thread Uttam
i hv been using sessions on Win98 / Xitami / PHP 4.2.3 without any problem. regds, -Original Message- From: Dash McElroy [mailto:[EMAIL PROTECTED]] Sent: Monday, January 13, 2003 13:53 To: Dean Hayes Cc: [EMAIL PROTECTED] Subject: Re: [PHP-WIN] PHP + Win98 Question Dean, What kind of pr

RE: [PHP-WIN] initialize variables

2003-01-13 Thread Howard, Robert P
Looking at your earlier posts I would suggest that yes it should be ListBox1 and not Course1. Also change the foreach line to read foreach (array($_POST['ListBox1'], $_POST['ListBox2']) as $val) The $_ is only used for the Automatic Global Variables. Regards Rob Howard -Original Mes

Re: [PHP-WIN] initialize variables

2003-01-13 Thread Wade
01132003 2251 CST Thanks Robert. I was close before. I had tried something similar but just didnt get it straight. Have another question. I made the change to the code and the result is: Your order was for the following: Entree: "" Dessert: "Ice Cream ($2)" TOTAL BILL = $"0" Now, for all var

RE: [PHP-WIN] initialize variables

2003-01-13 Thread Howard, Robert P
Hi Wade, This is what you should have put in the Echo Lines echo 'Entree: "' . $_POST['Course1'] . '"'; echo 'Dessert: "' . $_POST['ListBox2'] . '"'; the $_POST variable is set as an array with the names of each of the POST variables as Keys to the array. As such $_POST['Course1

Re: [PHP-WIN] initialize variables

2003-01-13 Thread Wade
01132003 2203 CST I thought I was starting to get it until I got to the last section. Original code from the book: $total = 0; echo "Your order was for the following:"; echo "Entree: $Course1"; echo "Dessert: $ListBox2"; foreach (array($Course1, $ListBox2) as $val) { if (ereg("[0-9]+

RE: [PHP-WIN] initialize variables

2003-01-13 Thread Sean Malloy
String concatenation? Its a way ogf combining strings into one. $string = 'Hello'; $string = $string . ' World'; echo $string; would output 'Hello World' -Original Message- From: Wade [mailto:[EMAIL PROTECTED]] Sent: Tuesday, 14 January 2003 4:02 PM To: [EMAIL PROTECTED] Subject: Re:

Re: [PHP-WIN] initialize variables

2003-01-13 Thread Wade
01132003 2059 CST Sean, Thats a new one for me. In the line below, what does the " ' . $Entrees[0] . ' "> do? The " . ", do they have some value or do they negate something? echo '' . $Entrees[0] . ''; Wade -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit: http://

Re: [PHP-WIN] permission denied

2003-01-13 Thread Anthony Ritter
The file has been uploaded and resides on my ISP's IIS server. TR ... - Original Message - From: "Sean Malloy" <[EMAIL PROTECTED]> To: "Anthony Ritter" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]> Sent: Monday, January 13, 2003 9:35 PM Subject:

RE: [PHP-WIN] permission denied

2003-01-13 Thread Sean Malloy
Is the file on Your local machine, or on your ISP's web server? (Because I doubt they are running web servers on windows 98) If it is running on your ISPs server. Create a 'data' folder, and have them give the IUSR account modify access to the directory. That way the web server can read and write

RE: [PHP-WIN] initialize variables

2003-01-13 Thread Sean Malloy
Using double quotes ("), to create strings, PHP will handle any $ sign in the string as a variable.. There are two ways around this. $Entrees= array('Steak ($9)', 'Pizza ($7)', 'Pasta ($6)'); Or $Entrees=array("Steak (\$9)", "Pizza (\$7)", "Pasta (\$6)"); also, when using echo in this context:

[PHP-WIN] initialize variables

2003-01-13 Thread Wade
01132003 2014 CST Ok. Im so happy that you guys explained the $_POST thing to me. Just implementing that in every tutorial after that worked. Now, I have another problem. This, again, is right out of the book. Everything in this book is in . What is it that I cannot see and my book will not t

[PHP-WIN] permission denied

2003-01-13 Thread Anthony Ritter
Using MS Win98 / php 4: Any ideas on how I can change my permssion settings on a file called data.txt so it can be read to and written to or do I have to take that up with my ISP. I get the following after I submit a form: Warning: fopen("data.txt", "a+") - Permission denied

[PHP-WIN] graphics not displaying

2003-01-13 Thread Steph Jobes
Hi, I'm learning PHP, and I'm sure there is a simple answer to this question. I've created a simple test web site with each of the pages using PHP to call included files for the header, footer, and navigational bar. The files for the header, footer, and navigational bar are simple HTML files with

Re: [PHP-WIN] Installation problems =(

2003-01-13 Thread Dash McElroy
Bobo, Perhaps your zlib issue could be due to an old php_zlib.php dll file. I would definitely upgrade your MySQL to at least 4.0.8, if you're set on 4.0. There were a few nasty bugs in the older versions (4.0.4 in particular bugger'd me up big time). -Dash The only possible interpretation of a

Re: [PHP-WIN] form question

2003-01-13 Thread Anthony Ritter
Joseph, Thanks for the reply. My ISP has a MS IIS server. I am testing the following script on Apache Server / MS Win 98 / IE 5.5 and it works fine. When I publish the script to their server and try the formpage, I get: "inetpub...Undefined index 1... "inetpub...Undefinded index 2... "inetpub..

[PHP-WIN] PHP Locks Up - Help!

2003-01-13 Thread Bil Click
Hello - I am trying to use a simple email script. When the php file is called, the browser just hangs. If I look in Task Manager, the php.exe has stopped - shows no activity. I am a PHP novice, so have tried several email scripts from the 'Net. Currently trying the PHP Email Responder from http://

Re: [PHP-WIN] Re: Subject: Download Script Name - Download fails (PHP4.0.5/Apache)

2003-01-13 Thread Aaron Smith
Neil, My actual download portion looks a little something like this: $filename = "c:\\somewhere\\foo.exe"; $length = filesize($filename); header("Accept-Ranges: bytes\n"); header("Content-Length: $length\n"); header("Content-Type: application/octet-stream\n"); header("Content-Disposition: attachm

[PHP-WIN] Re: Subject: Download Script Name - Download fails (PHP4.0.5/Apache)

2003-01-13 Thread Neil Smith
HI Aaron, List - Do you get the same result by sending instead the following header : header("Content-Disposition:inline; filename=test.zip"); I have got round this filename thing to some extent using .htaccess / mod_rewrite to wildcard the requested name for a directory, passing the parameter

Re: [PHP-WIN] form question

2003-01-13 Thread Joseph W. Goff
The php.ini settings for error reporting on your IIS machine is set to E_ALL whereas your local machine has the setting of E_ALL & ~E_NOTICE. You can either change the php.ini file, use the error_reporting() function in your program (http://www.php.net/error_reporting) or use isset() on the variab

[PHP-WIN] secure ldap connections

2003-01-13 Thread Daniel Fisher
Hello, I'm using the 4.3.0 version of php on Windows 2000 SP3. I'm trying to get php to make a secure connection to our ldap server. I am able to make insecure connections and queries just fine. In the php.ini file I have enabled php_ldap.dll and php_openssl.dll. If I attempt to use ldap_start_tls

php-windows Digest 13 Jan 2003 20:08:44 -0000 Issue 1533

2003-01-13 Thread php-windows-digest-help
php-windows Digest 13 Jan 2003 20:08:44 - Issue 1533 Topics (messages 17798 through 17830): PHP + Win98 Question 17798 by: Dean Hayes 17800 by: Dash McElroy sessions expire for dial up users and old browers 17799 by: Olav Bringedal 17801 by: Ignatius Reilly

[PHP-WIN] form question

2003-01-13 Thread Anthony Ritter
Hi, I'm testing the following form on: MS Win98 / IE 5.5 / PHP 4.0 / Apache and it works fine. However...when I publish the .php file and the data.txt file on the ISP's MS IIS server, I get undeclared variables and indexes when the form page loads. The script follows. Any help would be grea

[PHP-WIN] Download Script Name

2003-01-13 Thread Aaron Smith
Hello all, I have a script that successfully provides a user with an open/save confirmation dialog box when downloading a file, and the correct filename displays in the file name edit box (thanks to Content-Disposition). But when the file actually starts to download, the title bar of the IE dow

Re: [PHP-WIN] PHP Math

2003-01-13 Thread Ignatius Reilly
you don't use functions, but operators (unary, binary, ternary) like in all usual languages. see the PHP manual under "operators" section. always better to look up the manual first. your question does not belong to this mailing list. Ignatius - Ori

RE: [PHP-WIN] initialize variables (was: Using the GET Method)

2003-01-13 Thread Mikey
The variable is $_POST - PHP is case sensitive... Mikey > -Original Message- > From: Wade [mailto:[EMAIL PROTECTED]] > Sent: 13 January 2003 16:31 > To: [EMAIL PROTECTED] > Subject: Re: [PHP-WIN] initialize variables (was: Using the GET Method) > > > 01132003 0826 CST > > Ok. This code

[PHP-WIN] PHP Math

2003-01-13 Thread James Meers
Simple question, what is the function for doing simple MATH calculations? For example: 10 + 10 James -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP-WIN] initialize variables (was: Using the GET Method)

2003-01-13 Thread Wade
01132003 0826 CST Ok. This code is right off the PHP.net site. I changed the action="action.php" to action="form.php" only. But, when I run the page I receive "Hi . You are years old." Only. Is this because I have global_variables turned off, even through Im using $_post? Wade ** PH

Re: [PHP-WIN] Problem with extensions on W2K

2003-01-13 Thread Luis Moreira
Try http://php.weblogs.com/php_gd Here you have a zip file containing the DLL and instructions It is not my site, I don't garantee its contents. Luis - Original Message - From: "George Pitcher" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Monday, January 13, 2003 2:15 PM Subject: [

Re: [PHP-WIN] Problem with extensions on W2K

2003-01-13 Thread Luis Moreira
First of all, are you sure that "php_gd.dll" exists ? On my installation, for instance, it doesn't. Uncommenting it on the INI only makes that name loadable... Luis - Original Message - From: "George Pitcher" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Monday, January 13, 2003 2:15

[PHP-WIN] Problem with extensions on W2K

2003-01-13 Thread George Pitcher
Hi all, If I uncomment the php_gd.dll extension in php.ini (after making sure that the extesnion path points to where the extensions are), I get an error message saying that it has not been able to load the said extension. Any ideas as to what I should be looking for here? Cheers George -- P

Re: [PHP-WIN] $_SESSION

2003-01-13 Thread Bobo Wieland
Oh... I know what was wrong now! After reading some post here I thought that you initiated a session variable with: $test = $_SESSION['test']; and then you could use $test as it is whitout having to write $_SESSION[] all the time. But as I see now, I have to make $test a reference to the session

RE: [PHP-WIN] $_SESSION

2003-01-13 Thread Rich Gray
well it would seem that you aren't assigning anything to $_SESSION['xhtmlStart'] - so does it work if you have this on page one? test"); ?> -Original Message- From: Bobo Wieland [mailto:[EMAIL PROTECTED]] Sent: 13 January 2003 13:50 To: Rich Gray Cc: [EMAIL PROTECTED] Subject: Re: [PHP-WI

Re: [PHP-WIN] $_SESSION

2003-01-13 Thread Bobo Wieland
okej.. here it comes as short as I could get it... try the 'test' link to go to page2... page one: test"); ?> page 2: - Original Message - From: "Rich Gray" <[EMAIL PROTECTED]> To: "Bobo Wieland" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]> Sent: Monday, January 13, 2003 2:21 PM Subject: R

RE: [PHP-WIN] $_SESSION

2003-01-13 Thread Rich Gray
Can you post some code that doesn't work Rich -Original Message- From: Bobo Wieland [mailto:[EMAIL PROTECTED]] Sent: 13 January 2003 12:14 To: Rich Gray; [EMAIL PROTECTED] Subject: Re: [PHP-WIN] $_SESSION First of all; I had written the wrong save_path in php.ini. Thanks for that Rico

Re: [PHP-WIN] php.ini

2003-01-13 Thread Per Lundberg
Naqashzade, Sadeq wrote: I know that in Linux I must be able to use .httaccess but do not know how? and in Windows I do not know at all. You can use .htaccess in Apache both on Linux and Windows. Like this: php_value auto_prepend_file platform/platform.php Make sure AllowOverride in the Apa

[PHP-WIN] Trouble with php4ts.dll

2003-01-13 Thread Per Lundberg
Hey folks, I have now managed to compile php4ts.dll successfully (thanks to you who helped me with this!) and I've managed to link a test application to this library. However, it does not work properly. The same program works fine when running with the non-TS PHP4 library on Linux, so I'm su

[PHP-WIN] Re: Ping, Script ends before it's finished

2003-01-13 Thread J.Veenhuijsen
Sorry I missed : set_time_limit(0); J.Veenhuijsen wrote: Your first problem is likely to be the 30 sec runtime a script is allowed to take . See php.ini for this. Jochem Torben Dehn wrote: Hello ! I am tryin to make a script that will ping a whole subnet and it looks like it works, b

[PHP-WIN] Re: Ping, Script ends before it's finished

2003-01-13 Thread J.Veenhuijsen
Your first problem is likely to be the 30 sec runtime a script is allowed to take . See php.ini for this. Jochem Torben Dehn wrote: Hello ! I am tryin to make a script that will ping a whole subnet and it looks like it works, but it does not... It will ping around 60 to 70 computers and then it

[PHP-WIN] Can't type national characters

2003-01-13 Thread Peter Henriksen
Help please I'm trying to put some national characters out with this function: imagestring ($image, $font_size, 5, 5, "Hej æøå from Peter", $colour); The national characters comes out unreadable. What can I do? Peter Henriksen Denmark -- PHP Windows Mailing List (http://www.php.net/) To uns

[PHP-WIN] PEAR bootstrapper

2003-01-13 Thread Michele Manzato
PHP 4.3.0/Win32 misses a PEAR installer/bootstrapper. Attached you'll find a .bat file which does the job. (remove the '.txt' from the filename and copy to c:\php. Then, run 'go-pear' from 'c:\php'). (then you'll get some errors in the installed pear.bat, but that's another issue...) I'd like to

Re: [PHP-WIN] $_SESSION

2003-01-13 Thread Bobo Wieland
First of all; I had written the wrong save_path in php.ini. Thanks for that Rico! It had just slipped my mind. Second, Rich; The test you suggested I try, did work, but my own pages doesn't. It works only when I do: page1: page2: why?!? .bobo > don't use session_register(). > > Try creatin

[PHP-WIN] Hi all

2003-01-13 Thread Leon
Dear Newbie I would like to request on behalf of all of us registered on this mailing list that newbies PLEASE check the PHP manual before requesting help on the MOST BASIC of functions that are VERY WELL explained in the manual. This will alow us be able to stay registered on the list to help ea

RE: [PHP-WIN] $_SESSION

2003-01-13 Thread Rich Gray
don't use session_register(). Try creating a couple of test pages as follows... page1.php page2.php HTH Rich -Original Message- From: Bobo Wieland [mailto:[EMAIL PROTECTED]] Sent: 13 January 2003 10:56 To: [EMAIL PROTECTED] Subject: [PHP-WIN] $_SESSION Hi... Feels like I'm spaming t

Re: [PHP-WIN] $_SESSION

2003-01-13 Thread Rico Derks
Hi, Make sure you have a valid dir in your: session.save_path = c:/session This is located in php.ini -> [session] RICO. -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP-WIN] php.ini

2003-01-13 Thread Naqashzade, Sadeq
Hi, I'm using Win2K Prof. and installed Apache 1.3.2 as my web server plus PHP 4.0.6 as module. I have several sie on my computer. for one of them I need to include certain file before any thing. I know that there is auto_prepend_file in php.ini but this will run for all of my sites :-( Is there an

[PHP-WIN] $_SESSION

2003-01-13 Thread Bobo Wieland
Hi... Feels like I'm spaming this list with this many questions all at once. But here is one more: I'm having problems with displaying session variables now since I turned register_globals off... before I had this code for a session variable: session_register("test"); $test = "Hello world"; and

[PHP-WIN] Installation problems =(

2003-01-13 Thread Bobo Wieland
Hi all... Thought that I should upgrade from PHP4.0 to 4.3 and so I did... But I ran into trouble, as always. when ever I try to load an PHP page I get an alert message saying: "Unknown(): Unable to load dynamic library 'G:\PHP\extensions\php_zlib.dll'" I really do hate php.ini... Why should all

RE: [PHP-WIN] initialize variables (was: Using the GET Method)

2003-01-13 Thread Sean Malloy
Nope, you're slightly wrong! when you access a page: index.php?i=3 you would code: $i = $_GET['i']; :) POST is for when you are POSTING to a page from a form. GET, is when you are getting a page via the web browser. Geddit? :) -Original Message- From: Bobo Wieland [mailto:[EMAIL PROTE

Re: [PHP-WIN] initialize variables (was: Using the GET Method)

2003-01-13 Thread Dash McElroy
On Mon, 13 Jan 2003, Bobo Wieland wrote: > Just wanted to say thanks to those of you who've helped me on this one! =) > Thanks... > > One more question to clarify one thing, though: > > if someone is calling 'index.php' like this: 'index.php?i=10' > > and on that page I have: > > while ($i <= 10)

Re: [PHP-WIN] initialize variables (was: Using the GET Method)

2003-01-13 Thread Bobo Wieland
Just wanted to say thanks to those of you who've helped me on this one! =) Thanks... One more question to clarify one thing, though: if someone is calling 'index.php' like this: 'index.php?i=10' and on that page I have: while ($i <= 10) { do something; $i++; } that piece of code wouldn't be

Re: [PHP-WIN] sessions expire for dial up users and old browers

2003-01-13 Thread Ignatius Reilly
It is advisable to write the cookie in full details: // at the top of each page: session_start() ; setcookie( session_name(), session_id(), time()+3600, "/" ) ; ob_start() ; // etc Ignatius - Original Message - From: "Olav Bringedal" <[EMAIL PR

Re: [PHP-WIN] PHP + Win98 Question

2003-01-13 Thread Dash McElroy
Dean, What kind of problems are you encountering? I have done reasonable testing on Win9x and a huge amount of testing on Win2k with the only problems relating to pathnames or special extensions (i.e. PDFLib). So far... I have not tested session code on Win9x, but it works flawless on Win2k. Hav

[PHP-WIN] sessions expire for dial up users and old browers

2003-01-13 Thread Olav Bringedal
I have a problem with sessions. Or maybe two, i don't know. Im pretty sure the code is ok so I'll not enclose that for now. The problem is following: When a dial up user logs into my page they often loose the cookie to the session (or dont get a cookie at all). This also happens for users with