[PHP-WIN] R: [PHP-WIN] Php on windows - Linux and Windows Editors

2002-05-02 Thread Alberto. Sartori
HomeSite 5.0 is another good editor for HTML with a nice php parser. Isn't free but you can download a trial copy from www.macromedia.com regards,Alb -Messaggio originale- Da: Russell Griechen [mailto:[EMAIL PROTECTED]] Inviato: venerdì 3 maggio 2002 1.25 A: Sukhwinder Singh; [EMAIL PRO

[PHP-WIN] Re: Why Global Variables turned off??

2002-05-02 Thread theN
Hi At the cost of sounding dense...wouldn't POSTing the variables solve the problem. Then the user would not see them in the URL. [EMAIL PROTECTED] (Matt Parlane) wrote in [EMAIL PROTECTED]:">news:[EMAIL PROTECTED]: > Hi... > > The problem comes when you are mixing variables recieved from t

[PHP-WIN] Re: Why Global Variables turned off??

2002-05-02 Thread Matt Parlane
Hi... The problem comes when you are mixing variables recieved from the HTTP request, and your own user variables. Consider the following code: function authenticate_user(){ if($password == 'secret'){ $authenticated = 'yes'; } return $authenticated; } If someone passes the variable a

RE: [PHP-WIN] Simple string function help needed

2002-05-02 Thread Ross Fleming
Here you go: $string = substr($string, 0, -4); Ross -Original Message- From: RS Herhuth [mailto:[EMAIL PROTECTED]] Sent: 04 May 2001 02:06 To: [EMAIL PROTECTED] Subject: [PHP-WIN] Simple string function help needed List, This is an easy one but I'm under the gun and need some help.

[PHP-WIN] Simple string function help needed

2002-05-02 Thread RS Herhuth
List, This is an easy one but I'm under the gun and need some help. I have a situation where I need to trim the last four elements of a string off from a variable. Examples of what the string will look like(teses are known, trusted values and won't change): $string = "Atlanta CEO" $string = "L

Re: [PHP-WIN] Php on windows - Linux and Windows Editors

2002-05-02 Thread Russell Griechen
CoffeeCup at http://www.coffeecup.com has a Linux Version of CoffeeCup Html Editor. You can download a Trial copy to see if it works for you. I am thinking of making a Linux box...if you do check it out ...please post your evaluation. I have used the Windows Version for several years. Russell Gr

RE: [PHP-WIN] Re: PHP generation of fields

2002-05-02 Thread Dash McElroy
It's been a while since I've done a 'for' statement... Here's my new working code: ".date("F",mktime(0,0,0,$i ))."\n"; } ?> I found that you have to put quotes around the date() paramaters (like date("m") instead of date(m)) or PHP will put an error message in your error.log file in Apache (2.0

php-windows Digest 2 May 2002 22:16:48 -0000 Issue 1124

2002-05-02 Thread php-windows-digest-help
php-windows Digest 2 May 2002 22:16:48 - Issue 1124 Topics (messages 13482 through 13497): Re: PHP and Java 13482 by: Sandeep Murphy zip functions 13483 by: Michael Dransfield Re: Access databse 13484 by: Paul Roberts window.open and php... 13485 by: Sande

[PHP-WIN] Re: PHP generation of fields

2002-05-02 Thread George Nicolae
you make two mistakes. let's see the correct code: for ($i=1;$i<=12;$i++) { if($i == date(m)) //first here ^^^ (must be == not just one "=") { $selected = " selected"; } //here is the second: if $selected ="selected" for $i=4 (may) $i will be remain selected for all month

RE: [PHP-WIN] Sessions

2002-05-02 Thread Scott Hurring
you have to setup the directory for sessions in your 'php.ini' file. It defaults to '/tmp', which is *not* a subdir, but a root-dir (AFAIK), so either create "C:/tmp" or set it to something else. --- Scott Hurring Systems Programmer EAC Corporation [EMAIL PROTECTED] Voice: 201-462-2149 Fax: 20

[PHP-WIN] Why Global Variables turned off??

2002-05-02 Thread theN
Hi All I am a PHP newbie. I don't understand why global variables are turned off by default in PHP4.2.0... something to do with security. Could some one please help me understand how it's a security issue. Thanks -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit: http://

[PHP-WIN] Sessions

2002-05-02 Thread Peter Finch
I am learning PHP from the Greenspan and Bulger book, on a Windows development system using PHP 4.1.2 and Apache. All has worked fine until I got to sessions. This simple program: produces this output: Warning: open(/tmp\sess_d7e26c0283f94a430da8f7fc4138ca21, O_RDWR) failed: No such file or dir

Re: [PHP-WIN] printer_set_option

2002-05-02 Thread James Earl
I gave that a try and it still didn't work for me. I noticed in the PHP documentation, one individual wasn't able to use printer_write() in Win98. Is it possible that the printer_set_option() isn't working in Win98? I've also tried re-arranging in other ways, and also simplifying the code so i

[PHP-WIN] my forms are not being processed ......

2002-05-02 Thread toby z
hi im having the same problem i have even tried re-writting all the tags but it still doesnt work secondly i have to save the inputs from the form fields in a ".xml" file i did that in asp ... i dont know how to get about it in php the book only talks bout writting a

[PHP-WIN] More than one cookie - more info

2002-05-02 Thread Chris Dion
Ok as i said before the only cookie being written is the last call to setcookie I'm using Php 4.2.0 Apache 2.0.35 Windows XP I'm setting the cookie like: setcookie("dawg_tag", "test1", time()+(24*3600*365)); setcookie("dawg_visits", "test1", time()+(24*3600*365)); setcookie("dawg_session", "test

[PHP-WIN] More than one cookie

2002-05-02 Thread Chris Dion
I am using PHP 4.2.0 and I am trying to set some cookies. The problem is only the last one get set. Yes the cookie names are different. Any ideas? --Chris -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP-WIN] window.open and php...

2002-05-02 Thread Sandeep Murphy
thnx guys.. works now..:) -Original Message- From: Mike Flynn [mailto:[EMAIL PROTECTED]] Sent: quinta-feira, 2 de Maio de 2002 16:46 To: Sandeep Murphy; [EMAIL PROTECTED] Subject: RE: [PHP-WIN] window.open and php... Ok.. try this.. your commas, quotation marks, plus marks, etc are al

RE: [PHP-WIN] window.open and php...

2002-05-02 Thread Mike Flynn
Ok.. try this.. your commas, quotation marks, plus marks, etc are all messed up. var winMy; function ope(page,wid,hgt){ winMy = window.open(page, 'winMy','height='+hgt+',width='+wid+',channelmode=0,dependent=0,directories=0,fullscreen=0,location=0,menubar=0,resizable=0,scrollbars=0,status=0,t

RE: [PHP-WIN] window.open and php...

2002-05-02 Thread Sandeep Murphy
hi, What you have suggeste is exactly what I am doing.. however the function ope() accepts only the URL and ignores the width and height... and sometime it accepts the URL and the first parameter alone... I hv checked and rechecked the code and cant find whats wrong with it any more suggest

Re: [PHP-WIN] window.open and php...

2002-05-02 Thread Mike Flynn
Ummm are we talking JavaScript or PHP here? Opening windows is a function of JavaScript, being that is occurs on the client side and not the server side. If you call ope('stuff.php', 100, 200) somewhere in your page, then your function will work fine. There are a number of ways to have PHP

[PHP-WIN] window.open and php...

2002-05-02 Thread Sandeep Murphy
hi, I hv a problem related to the window popup and my php script.. I need to send values for the widht and height dynamically thru my php like the fwg: function ope(page,wid,hgt){ //open (page, "page", "height="+hgt,"width="+wid,"channelmode=0,dependent=0,directories=0

Re: [PHP-WIN] Access databse

2002-05-02 Thread Paul Roberts
go to Start > programs > administrative tools > Data Sources (ODBC) then set up a system DSN, as the php user will need to access it. the dsn name will then be the Data source name (= string dsn). in odbc_connect(string dsn, string user, string password [, int cursor_type) i found that if you se

[PHP-WIN] zip functions

2002-05-02 Thread Michael Dransfield
Does anyone have a working version of php with zip functions enabled. I do not have a c compiler on windows and i cannot find the php_zip.dll anywhere. Do i just need the dll or do i need it compiled into the binary as well? (i am using a cgi version for php-gtk) Can anyone help? -- PHP Wi

RE: [PHP-WIN] PHP and Java

2002-05-02 Thread Sandeep Murphy
hi, chk out the following in ur PHP.INI file... the php_java.dll file shud be enabled and also chk out the config under the java tab... hv pasted below the config that works for me. gud luck, sands extension=php_java.dll [Java] ;java.class.path = .\php_java.jar ;java.home = c:\jdk ;java.li

php-windows Digest 2 May 2002 10:01:29 -0000 Issue 1123

2002-05-02 Thread php-windows-digest-help
php-windows Digest 2 May 2002 10:01:29 - Issue 1123 Topics (messages 13465 through 13481): Running PHP as CGI 13465 by: Matt Babineau 13466 by: Christoph Grottolo 13468 by: Shane Caraveo 13470 by: Robin Bolton 13471 by: Shane Caraveo Re: Php on windo

[PHP-WIN] troublesome exec

2002-05-02 Thread Michael Langford
I'm trying to run a program using exec but no matter what I do I keep receiving a persistent unable to fork error. I currently have: exec("command.exe", $misspells); which gives me an error, so tried exec("cmd /c command.exe", $misspells); and even exec("C:\WINNT\system32\cmd.exe /c command.exe",