[PHP-WIN] Problems coding in PHP

2001-05-22 Thread Khai Mun
Hello, I am a ASP, VB developer, and new to PHP world, in ASP they is an object name Application and Session use to store variable. i wondering in PHP is they any object like that. How do i store variable, that can access multiple pages -

Re: [PHP-WIN] include - one more thing

2001-05-22 Thread Mike Flynn
Sorry, should have mentioned -- if you are doing it on windows, then try something like this: include(getcwd().'\\path\\to\\file\\test.php'); -Mike At 01:37 PM 5/23/01 +0700, you wrote: >help...!! > >ilustration: >i got trouble with include on the virtual directory... > >a myfile.php -->> incl

Re: [PHP-WIN] include

2001-05-22 Thread Mike Flynn
Try... include(getcwd().'/path/to/file/test.php'); -Mike At 01:37 PM 5/23/01 +0700, you wrote: >help...!! > >ilustration: >i got trouble with include on the virtual directory... > >a myfile.php -->> include file on directory includes/test.php > >why it shouldn't work?. when i moved my file test.

RE: [PHP-WIN] include

2001-05-22 Thread Ignatius Teo
You need to specify the full path (unless you're using the include_dir setting in php.ini). ie. include ("d:/inetpub/wwwroot/project/includes/test.php"); OR include (get_env("DOCUMENT_ROOT")."/includes/test.php"); Ignatius Teo Project Manager, Internet Access Services Information Technolog

[PHP-WIN] include

2001-05-22 Thread sunker
help...!! ilustration: i got trouble with include on the virtual directory... a myfile.php -->> include file on directory includes/test.php why it shouldn't work?. when i moved my file test.php from directoy includes, with the same level of myfile.php directory it's work ? examples: include "t

Re: [PHP-WIN] RE:escape loop on timeout

2001-05-22 Thread Zak Greant
Brendan wrote: > Thanks guys > > sorry about the delay .. I am in Australia.. > checking the time each loop would only work if the loops complete correctly > .. if the process locks mid loop php wont reach the criterion break because > it deals with each command linearly. ie > > for (x=0;x!="array

Re: [PHP-WIN] Runtime Errors on Win2k IIS 5

2001-05-22 Thread SLundwall
Thanks alot, it is nice to get a quick response when you are new to something. Everything is working fine it just had me a bit concerned. "Ignatius Teo" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > You have error_reporting set to E_ALL in your php.ini - which

RE: [PHP-WIN] problems with php_track_vars. please help

2001-05-22 Thread Ignatius Teo
Try $GLOBALS["HTTP_POST_VARS"]... -Original Message- From: juanma cola [mailto:[EMAIL PROTECTED]] Sent: Tuesday, 22 May 2001 22:40 To: [EMAIL PROTECTED] Subject: [PHP-WIN] problems with php_track_vars. please help I have the following code in two files: First file: DELETE DOCUMENTS

RE: [PHP-WIN] RE:escape loop on timeout

2001-05-22 Thread Ignatius Teo
In that case put the timing loop INSIDE dothisfunction() and rather than breaking out of the loop, execute a return to the calling script. Ignatius Teo Project Manager, Internet Access Services Information Technology Directorate Southern Cross University PO Box 157, Lismore NSW 2480 Email: iteo_a

RE: [PHP-WIN] Runtime Errors on Win2k IIS 5

2001-05-22 Thread Ignatius Teo
You have error_reporting set to E_ALL in your php.ini - which is probably a good thing, because it's telling you that these variables have not been defined. You could set error_reporting to a lower setting like E_ALL & ~E_NOTICE instead, but the preferably fix would be to define these variables fi

RE: [PHP-WIN] PLEASE HELP.

2001-05-22 Thread Ivan Milanez Castellanos
I also have this configuration and have no problems, allthough I'm handling the database calls using ODBC functions instead of the php-mssql70.dll extension. Why don't you try it, it might fix the problem. Also IIS really hates the ISAPI module, so it's best to change to

RE: [PHP-WIN] PLEASE HELP.

2001-05-22 Thread Flint Doungchak
Well PHPFAN, I think we're all fans, but what the heck. I'm using the same configuration you are. Are you using PHP in CGI mode or ISAPI mode. It doesn't like ISAPI so don't use it. I had similar problems with ISAPI. Also, I think the fdf module that shipped with 4.0.5 might be kind of funny so

[PHP-WIN] RE:escape loop on timeout

2001-05-22 Thread Brendan
Zak Greant wrote: > Johan Lundqvist wrote: > > This is a way of doing it: > > > > $s = time() + 10; > > for ($i = time(); $i <= $s; $i++) { > > print $i; > > } > > > > Will run for about ten seconds... > > Did you leave a bit of code out? > In most cases, this will run for only a fe

[PHP-WIN] Runtime Errors on Win2k IIS 5

2001-05-22 Thread SLundwall
I get the following errors when loading admin.php Warning: Undefined variable: SCRIPT_FILENAME in c:\inetpub\wwwroot\phpnuke\html\admin.php on line 393 Warning: Undefined variable: wdir in c:\inetpub\wwwroot\phpnuke\html\admin.php on line 397 Warning: Undefined variable: cancel in c:\inetpub\ww

[PHP-WIN] PLEASE HELP.

2001-05-22 Thread PHPFAN
I am running PHP 4.0.5 on Windows 2000 with SQL server databases. If there is an error with my PHP code, my computer becomes very very slow and nothing works. The PHP process is using 99 % of the CPU. So I have to restart the computer. This happens everytime there is an error in my PHP code. For

RE: [PHP-WIN] php 4.0/win 2000/sql server

2001-05-22 Thread andrew morton
Are you running PHP through ISASP or CGI? If you're not I'd recomend switching to CGI or if you don't have any ASP code switch to Apache. andrew -Original Message- From: PHPFAN [mailto:[EMAIL PROTECTED]] Sent: Tuesday, May 22, 2001 14:03 To: [EMAIL PROTECTED] Subject: [PHP-WIN] php 4.0/w

RE: [PHP-WIN] OK, I'm officially screwed if I can't get some sugg estions

2001-05-22 Thread Jason Gan
Hi John, It's probably a good idea to consider installing the Apache server on another port, just to interface with the database persistently. Funny that PHP doesn't have the equivalent of "ASP Application Object". -Original Message- From: Asendorf, John [mailto:[EMAIL PROTECTED]] Sent

[PHP-WIN] php 4.0/win 2000/sql server

2001-05-22 Thread PHPFAN
When ever I am trying to access a php file with an error,my system is overwelmingly slowing down and restarting is the only solution. Previously I worked on linux/apache/php 4.0/mysql ,I never had such problem.I used to get some errors and I used to correct them but working in this environment is

RE: [PHP-WIN] Need help with Cookies

2001-05-22 Thread Ivan Milanez Castellanos
Thanx Brian but I allready resolved the problem by switching the web server from IIS 5 to Apache aparentrly IIS has problems setting cookies from PHP scripts. I'll still try your files and tell you what happened ok. Later. -Original Message- From: Brian Little [mailto:[EMAIL PROTECTED]

php-windows Digest 22 May 2001 20:03:44 -0000 Issue 612

2001-05-22 Thread php-windows-digest-help
php-windows Digest 22 May 2001 20:03:44 - Issue 612 Topics (messages 7803 through 7845): Re: OK, I'm officially screwed if I can't get some suggestions 7803 by: Jason Gan 7808 by: Johan Lundqvist 7812 by: Paco Ortiz 7813 by: Svensson, B.A.T. 7815 by:

Re: [PHP-WIN] Multiple value selection box (mix php/html problem) returning only one value

2001-05-22 Thread Michael Kelley
I'm not to clear on exactly what you meant. What I tried with your code was to add these lines print ""; print ""; print " document.frmForm.earnType.name = \"earnType[]\" "; print ""; prior to my submit button print ""; I still get a single value returned. Vasu Gokaraju wrote: > I think we

Re: [PHP-WIN] Need help with Cookies

2001-05-22 Thread Brian Little
Can't say I know what the problem is, but here are two test files, that work on my Windows 2000, IIS 5, SQL 7 machine. Let me know if you have a problem with them and maybe we can find the problem. Brian "Iván Milanez Castellanos" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED]... >

RE: [PHP-WIN] SQL Server stored procedures and functions

2001-05-22 Thread andrew morton
I'll back that up, I ended up having to reboot constantly to clear out a stalled IIS service. Two problems with stored procedures, no return value and no output parameters. You'll need to reformat all your procedures to have a SELECT statement return those values. I've been told that the 4.0.6

[PHP-WIN] Need Help!!

2001-05-22 Thread Brian Little
I want to try to fix the character truncation problem when using an mssql database, but I can't seem to figure out how to compile PHP under VC 6. I have searched all over the site for some insight into what to do, but I am still having problems creating/finding TSRM.mak. Any and all help would b

Re: [PHP-WIN] Multiple value selection box (mix php/html problem) returning only one value

2001-05-22 Thread Vasu Gokaraju
I think we can handle this by changing the element name before you submit the form. For example, you have a select box like: Value1 Value2 before you submit the form, change the tag name like this document.frmForm.selTest.name = "selTest[]"; It worked for me with multiple check bo

[PHP-WIN] RE: dual web servers?

2001-05-22 Thread Dickerson, Monty
You can only have one service listening to any TCP port at once, so you'd have to bind IIS to a different port number (say, 8080) than Domino R5; this is not difficult. Same is true for SSL (if Domino uses 443, then use another port for IIS https). There's no reason (assuming you have sufficient

RE: [PHP-WIN] OK, I'm officially screwed if I can't get some sugg estions

2001-05-22 Thread Asendorf, John
LATEST UPDATE: It looks like I've found my culprit... I have an include (dl_app.inc) which contains the following lines: These lines are eating up 12-14 second of the 14-16 second run time... (EVEN WITH THE connection check commented out i.e. the check didn't seem to make any difference) I ge

[PHP-WIN] dual web servers?

2001-05-22 Thread Deborah Dennison
Hi, First of all. NEWBIE ALERT!.. For all those still here, I have a question. I currently have an NT server using Domino R5 as the web server. It is our production machine. I want to gradually get rid of it and use php and IIS (Apache later but have to use IIS to start.) Can I have both web

Re: [PHP-WIN] Multiple value selection box (mix php/html problem)

2001-05-22 Thread Michael Kelley
Svensson, B.A.T. wrote: > I am not sure I get what it is you want to do > > >> Situation: >> I'm using a DB query to bring back a list of values to populate a >> selection box on a form. I would like the user to be able to select >> multiple values. > > > I dont understand this. You c

Re: [PHP-WIN] Multiple value selection box (mix php/html problem) returning only one value

2001-05-22 Thread Michael Kelley
Sorry Matt, That returns Key: 0, Value: Array If you don't mind, point out the suspect HTML Matt Williams wrote: > Hi Michael > > Sorry brain fade > > Try changing your selectname to earnType[] > > >> print ""; > > >> print ""; > > > Also I don't know if that's all your code but there i

Re: [PHP-WIN] Speed

2001-05-22 Thread John Lim
Aha, an ex-ASP programmer! I've heard that the stop and start is faster, but it really doesn't matter with PHP. In ASP its an issue because ASP does a context switch every time from HTML to the VBScript/JScript compiler. PHP doesn't do any context switches so there's no overhead to stop and start

[PHP-WIN] Speed

2001-05-22 Thread Jerry Nelson
I am fairly new to PHP and am right now writing my first complicated script. There is a lot of HTML in the page and I was wondering which method is faster. To always be inside the tags or to stop and start. Here is a quick example (not necessarily a good one) OR ";

RE: [PHP-WIN] Multiple value selection box (mix php/html problem) returning only one value

2001-05-22 Thread Matt Williams
Hi Michael Sorry brain fade Try changing your selectname to earnType[] > print ""; > print ""; Also I don't know if that's all your code but there is some suspect html in there M@ -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional co

RE: [PHP-WIN] Multiple value selection box (mix php/html problem) returning only one value

2001-05-22 Thread Svensson, B.A.T.
I am not sure I get what it is you want to do >Situation: >I'm using a DB query to bring back a list of values to populate a >selection box on a form. I would like the user to be able to select >multiple values. I dont understand this. You can only select one item from a selct box(?). >As

[Fwd: Re: [PHP-WIN] Multiple value selection box (mix php/html problem) returning only one value]

2001-05-22 Thread Michael Kelley
My idea NO WORK, I tried replacing the value = \"%s\" with versions of value = \"$earnType\"[] value = \"$earnType[]\" value = earnType[] value = $earnType[] Still not what I'm looking for Michael Kelley wrote: > I tried the [] inside & outside the quotes, only difference was that > inside

Re: [PHP-WIN] Multiple value selection box (mix php/html problem) returning only one value

2001-05-22 Thread Michael Kelley
I tried the [] inside & outside the quotes, only difference was that inside gave me Key: 0, Value: ACL[] outside gave me Key: 0, Value: ACL Since we changed the %s to an array I changed the Explode statement and the while Got the message that $earnType not an array . Got an idea .

Re: [PHP-WIN] Multiple value selection box (mix php/html problem) returning only one value

2001-05-22 Thread Michael Kelley
Nope, output is now Key: 0, Value: ACL[] instead of Key: 0, Value: ACL Matt Williams wrote: > Hi Michael > > Try changing this line > > >> printf("%s", > > > To > > printf("%s", > > This should solve your problem > > HTH > > M@ -- Michael Kelley [EMAIL PROTECTED]

RE: [PHP-WIN] Multiple value selection box (mix php/html problem) returning only one value

2001-05-22 Thread Matt Williams
Hi Michael Try changing this line > printf("%s", To printf("%s", This should solve your problem HTH M@ -- PHP Windows 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

[PHP-WIN] Multiple value selection box (mix php/html problem) returning only one value

2001-05-22 Thread Michael Kelley
Situation: I'm using a DB query to bring back a list of values to populate a selection box on a form. I would like the user to be able to select multiple values. As it stands my code is only returning the last value selected. I plan to use the selected values to run more queries so I believe the

Re: [PHP-WIN] SQL Server stored procedures and functions

2001-05-22 Thread Pavel Kalian
It sure can. example: $result = mssql_query("execute your_proc '$your_var', $another_var"); note that you will probably have to go with the CGI version under IIS as the ISAPI one is EXTREMELY unstable when used with MS SQL Server in my experience. Pavel - Original Message - From: "Scot

RE: [PHP-WIN] OK, I'm officially screwed if I can't get some sugg estions

2001-05-22 Thread Svensson, B.A.T.
So we can exclude the hardware then. :) Assuming the queries runs for about the same time in the RDBMS', then I would like to agree with Johan Lundqvits: It seams to be something wrong on (ISO) Transport, Network, Session level, etc. Maybe you should review which transport protocols are used with

[PHP-WIN] SQL Server stored procedures and functions

2001-05-22 Thread Scott
Hi- I was using PHP on WinNT at my old job, when they closed I took this new job where everything is/was done in ASP 3.0. Now I have been told that I am welcome to explore other options--translation, I can use PHP again :) This db they have set-up does a ton of stored procedures and functions i

RE: [PHP-WIN] OK, I'm officially screwed if I can't get some sugg estions

2001-05-22 Thread Asendorf, John
No noticeable delays coming out of anything else I'm afraid. Everything else seems to blaze... - John Asendorf - [EMAIL PROTECTED] Web Applications Developer http://www.lcounty.com - NEW FEATURES ADDED DAILY! Licking County, Ohio, USA 740-349-3631 Aliquando et insanire iucund

RE: [PHP-WIN] OK, I'm officially screwed if I can't get some sugg estions

2001-05-22 Thread Asendorf, John
1) About the only difference is the server where the dbs reside and they are still VERY similar. Other than that, wiring is similar or identical and the databases are quite a bit difference, but our Oracle dba (who I trust to the nth degree) says the db is indexed as well as he can imagine indexi

RE: [PHP-WIN] OK, I'm officially screwed if I can't get some suggestions

2001-05-22 Thread Asendorf, John
I'd be happy to send these scripts via email to anyone who would request them, but I don't want to post them to the forum. - John Asendorf - [EMAIL PROTECTED] Web Applications Developer http://www.lcounty.com - NEW FEATURES ADDED DAILY! Licking County, Ohio, USA 740-349-3631 A

RE: [PHP-WIN] OK, I'm officially screwed if I can't get some suggestions

2001-05-22 Thread Asendorf, John
We thought so too, but other scripts and ASP stuff runs fine... Regular http, firewal gets banged pretty hard all day. Client for this app are on the private side. - John Asendorf - [EMAIL PROTECTED] Web Applications Developer http://www.lcounty.com - NEW FEATURES ADDED DAIL

[PHP-WIN] problems with php_track_vars. please help

2001-05-22 Thread juanma cola
I have the following code in two files: First file: DELETE DOCUMENTS FILE NAME "; $connId = ftpConnect(); $dir = ftp_pwd ($connId); $list=Array(); $list=ftp_nlist($connId, "$dir"); $i=0; $number = count($list); for ($i = 0; $i < $number; $i++) { $destinationFile = getFi

[PHP-WIN] sessions without trans_id

2001-05-22 Thread Dalyyla
hi, I have pbs with sessions. I would like to know first how to do , (enable or disable) about sessions in the php.ini file while I don't want to use cookies on the client at all. I suppose I must put the id myself in each page. About this pint, I'd like to check something : if in my application

[PHP-WIN] php install

2001-05-22 Thread Dalyyla
Hi, I have installed php with windows installer and i would like to add extensions but these ones doesn't work with my module so I would like to install php again. I would like to know where to put where the php.exe file is located. In the Personal Web Server I don't find the place and in the reg

[PHP-WIN] Programming in the small WAS: [PHP-WIN] escape loop on timeout

2001-05-22 Thread Svensson, B.A.T.
>for ($x=0; $x < 10; ++$x) { > >if ( (0 === ($x % 1000)) && (time () - $start_time) > $timeout) >break; > >echo ($x, ''); >} I am a little bit conservative when it comes to use the break-statement, and the rule of thumb I uses is; any singular block sh

RE: [PHP-WIN] OK, I'm officially screwed if I can't get some sugg estions

2001-05-22 Thread Svensson, B.A.T.
>I don't think that it's an SQL issue. Searches on the customer "Smith" run >through and back (including formating the data) in about 3.5 seconds (per >the timer in the script) but take about 15 seconds to see a response on the >client. The whole building is base-T and fiber Sound like the

Re: [PHP-WIN] Upload troubles

2001-05-22 Thread FX Liagre
My File field is named FILENAME, and I copy it into ./download directory (from the uploadtemp dir defined in php.ini) In php.ini, I have parametered 2 lines : file_uploads = On; Whether to allow HTTP file uploads upload_max_filesize = 2M ; Maximum allowed size for uploaded files My for

RE: [PHP-WIN] OK, I'm officially screwed if I can't get some suggestions

2001-05-22 Thread Svensson, B.A.T.
>I've tried making the code as clean as possible, and the scripts themselves >seem to be running very fast. Would sessions be the most likely culprit for >my speed loss? It's (the slowness) threatening to kill the whole project... >We have a similar ASP/M$SQL server application (vendor product)

Re: [PHP-WIN] OK, I'm officially screwed if I can't get some suggestions

2001-05-22 Thread Paco Ortiz
Hi, perhaps I am missing something, but I want to help, >PHP 4.0.4. IIS 4, Oracle 8 client, Oracle 7.3.4 backend, webserver in DMZ could it be that you need Oracle 7.3.4 client software, instead using Oracle8? Then you would use Ora_Logon (OCI7), instead OCILogon (OCI8) I experienced some mont

Re: [PHP-WIN] escape loop on timeout

2001-05-22 Thread Johan Lundqvist
U R right Zak, I'm a bit dizzy today, thanx. -- PHP Windows 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-WIN] escape loop on timeout

2001-05-22 Thread Zak Greant
Johan Lundqvist wrote: > This is a way of doing it: > > $s = time() + 10; > for ($i = time(); $i <= $s; $i++) { > print $i; > } > > Will run for about ten seconds... Did you leave a bit of code out? In most cases, this will run for only a few milliseconds. :) Try something like

Re: [PHP-WIN] escape loop on timeout

2001-05-22 Thread Johan Lundqvist
This is a way of doing it: $s = time() + 10; for ($i = time(); $i <= $s; $i++) { print $i; } Will run for about ten seconds... /Johan Brendan Gogarty wrote: > > hi, > just wondering if there was any easy way to break/escape from a loop > (for loop) if the loop exceeds a maximum time. > I r

Re: [PHP-WIN] OK, I'm officially screwed if I can't get some suggestions

2001-05-22 Thread Johan Lundqvist
Sounds to me like it might be the firewall messing things up. Are the clients connecting with https? What's the workload on the firewall? You said that the web server is in the DMZ. Where are the clients? On the Private or Public side of the firewall? /Johan "Asendorf, John" wrote: > > I don't

Re: [PHP-WIN] HELP !

2001-05-22 Thread Phil Driscoll
On Tuesday 22 May 2001 09:39, mihai wrote: > > I can install PHP on PWS for Windows. > I follow the instructions but when run a php script i have an error message > Error message: 500 internal server error. > > Thank you >

[PHP-WIN] Upload troubles

2001-05-22 Thread Warwick Chapman (Budgee)
Howdy I am trying to get a picture gallery going on a family site. I want family members to be able to upload scans, and the gallery code to display them. I have the gallery code working fine, but I cannot get uploads to work at all. IIS 5 + Windows 2000 Professional + PHP 4.05 (I have also t

Re: [PHP-WIN] Variable in the statement

2001-05-22 Thread Johannes Janson
Hi, >global $titel; > $titel='html' missing colon; > $db = mysql_connect("localhost", "root") or die ("Kan geen connectie > maken met het database programma. De Database server kan uit staan.");; > mysql_select_db("setf",$db) or die ("Kan geen connectie maken met de > database"); > > $r

[PHP-WIN] HELP !

2001-05-22 Thread mihai
I can install PHP on PWS for Windows. I follow the instructions but when run a php script i have an error message Error message: 500 internal server error. Thank you Mihai

RE: [PHP-WIN] OK, I'm officially screwed if I can't get some suggestions

2001-05-22 Thread Jason Gan
Hi John Asendorf, Can you supply a short example of the PHP code, so that someone can suggest ways of optimising it? What do you mean "sessions via files"? Do you mean PHP's built-in support for sessions? Maybe it's just the server having a bad day. -Original Message- From: Asendorf, J

php-windows Digest 22 May 2001 07:52:20 -0000 Issue 611

2001-05-22 Thread php-windows-digest-help
php-windows Digest 22 May 2001 07:52:20 - Issue 611 Topics (messages 7789 through 7802): OK, I'm officially screwed if I can't get some suggestions 7789 by: Asendorf, John 7790 by: Asendorf, John 7791 by: Tim Uckun 7792 by: Asendorf, John Question about TRUE

[PHP-WIN] Variable in the statement

2001-05-22 Thread Pepijn Minderhoud
Hi, I've got a problem with variables. I am trying to make a select staement for mysql using a variable in the where clause. If i don't use the variable the result comes out fine but with it there are parser errors on other lines. Can anybody tell me how to insert a variable in such a script.