[PHP-WIN] multiple root paths with Apache

2001-03-15 Thread Damien du Toit
Is it at all possible to create multiple ("virtual") root paths on a single Apache installation? I have seperate folders for the different sites I am concurrently developing and would like to have each as it's own root for the site files that it contains, because I am referencing my code from t

[PHP-WIN] Website, Design, hosting and maintenance for only $999.00 per year

2001-03-15 Thread Netmark Desing
Warning Could not process message with given Content-Type: multipart/mixed;boundary= "Z_MULTI_PART_MAIL_BOUNDAEY_S"

[PHP-WIN] popen() and fputs() functions work?

2001-03-15 Thread Josh Seward
Hello, I would like to know if anyone can get the popen() function and the fputs() function to work on a windows machine. (I use win200.) thanks, Josh Seward [EMAIL PROTECTED]

php-windows Digest 16 Mar 2001 00:58:07 -0000 Issue 493

2001-03-15 Thread php-windows-digest-help
php-windows Digest 16 Mar 2001 00:58:07 - Issue 493 Topics (messages 6050 through 6086): Re: Download Prompt Problem 6050 by: Fernando Madruga Re: Mail/PHP/Apache 6051 by: Matt Williams Re: Help Needed on MSSQL 6052 by: Fernando Madruga 6061 by: Andrian Per

Re: [PHP-WIN] JavaScript Help!

2001-03-15 Thread Marius Manolea
Hi, I had problems with dates and times too! Once, I managed to make it work and when I moved my app to another server It didn't work because of different locale settings. So here is my idea : leave the locale away, use some independent string dates! I will attach an example also

[PHP-WIN] JavaScript Help!

2001-03-15 Thread Brinkman, Theodore
Let me preface this request by saying that I know this request for help isn't quite on-topic, but I haven't found any good places to ask for help on this. Thank you for not flogging me with wet noodles. Now, on to the question: We're having some problems relating to using MS SQL Server 2000 with

RE: [PHP-WIN] Showing source code with .phps extension

2001-03-15 Thread Keith Stevenson
You need to edit the mod_php4.conf and edit the following section ForceType application/x-httpd-php this will allow PHP scripts to be parsed in phps, html and htm hope this helps -Original Message- From: Anders Pettersson [mailto:[EMAIL PROTECTED]] Sent: Thursday, Mar

[PHP-WIN] Showing source code with .phps extension

2001-03-15 Thread Anders Pettersson
On my Linux RH 6.2 computer - when working with Apache, mySQL and PHP - there is no problems showing the source code to my code developing friends. If I rename the php-file to phps it works just well. BUT, when doing the very same thing on my W98 or W2k machines, the source code will not show. Th

Re: [PHP-WIN] Uninitialized Variables

2001-03-15 Thread Phil Driscoll
Florian wrote: >error_reporting = E_ALL & ~E_NOTICE Better yet, leave your warning levels as they are and don't have uninitialised variables. They are a *bad* thing. Aside from general sloppiness, they are a security breach waiting to happen. What if someone initialises one to a dangerous value b

[PHP-WIN] problem loading php_oci8.dll - IIS 5-0 - PHP 4.0.4

2001-03-15 Thread "Barraud, Stéphane"
I'm trying to use oci8 to acces an oracle database. I have install PHP4.0.4pl1 as CGI on Windows2000 with IIS 5.0. When I uncomment the line extension for php_oci8.dll I get the following error message : "unable to load dynamic library d:\php\extensions\php_oci8.dll. The specified module could

Fw: [PHP-WIN] php3 var question

2001-03-15 Thread afan
Try this: $var_1 = "one"; $var_2 = "two"; $var_3 = "three"; for($i=1; $i<4; $i++) { echo"$i. "; echo ${var_ . $i}; echo" "; } - Original Message - From: "Mize, Robert" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Thursday, March 15, 2001 9:32 AM Subject: [PHP-WIN] php3 var que

Re: [PHP-WIN] php3 var question

2001-03-15 Thread Phillip Bow
Is there any particular reason you don't just use an array for this? -- phill ""Mize, Robert"" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > If I have a set of variables named say: > $var_1 > $var_2 > $var_3 > > and I want to use a for loop to do something wi

[PHP-WIN] php3 var question

2001-03-15 Thread Mize, Robert
If I have a set of variables named say: $var_1 $var_2 $var_3 and I want to use a for loop to do something with the variables like: for($i=1; $i<4; $i++){ echo $var_$i; } how do I do this so that $var_$i is interpreted as the variable ($var_1 ect)? Thanks, rob. -- PHP Windows Mailing List (

php-windows@lists.php.net

2001-03-15 Thread Tom Mathews
Yep - Apache bug - upgrade it! Aleksey Filimonov wrote: > Hi all, > > I have some problems installing php-4.0.4pl1 on apache-1.3.14 on win98... > The apache server is running fine before adding this line in httpd.conf: > LoadModule php4_module c:/php/sapi/php4apache.dll > After adding module apa

RE: [PHP-WIN] exec/system/passthru ??????

2001-03-15 Thread Fernando Madruga
Is the program a simple one or does it have an elaborate look and feel? If it's a simple one, you can probably generate a file, then redirect the program's input to accept the data from that file; if it's a more elaborated program, it will probably disregard standard input, so it's a lot harder to

Re: [PHP-WIN] exec/system/passthru ??????

2001-03-15 Thread Josh Seward
Hello, The program I want to run is a command-line program running on a dos-shell; I need to run this program and send commands to it whiel its running. The program I am running excepts keyboard input commands, but I want my program to give it the commands it needs. Is there anyway of doing this

RE: [PHP-WIN] Print variables coming from a form not controled by me...

2001-03-15 Thread Michael Rudel
What error pops up ?? Make sure, that 'register_globals = On' in your php.ini ! Greetinx, Mike -Original Message- From: Dream [mailto:[EMAIL PROTECTED]] Sent: Thursday, March 15, 2001 9:50 AM To: [EMAIL PROTECTED] Subject: Re: [PHP-WIN] Print variables coming from a form not controled

Re: [PHP-WIN] Uninitialized Variables

2001-03-15 Thread Florian Poizac
in your php.ini you certainly have error_reporting = E_ALL this line active put a ; before and you can use this one instead error_reporting = E_ALL & ~E_NOTICE Cheers Florian - Original Message - From: Dwight Sparling <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Thursday, March

RE: [PHP-WIN] exec/system/passthru ??????

2001-03-15 Thread Fernando Madruga
Why would you want to leave a program running in the background, if you're using it to generate content? First, I believe that Windows NT/2K does not accept or like the ampersand (&) on the end: all programs launched will run in the background, unless they are command-line programs running on a do

php-windows@lists.php.net

2001-03-15 Thread Fernando Madruga
Yes: go get the 1.3.17 windows binary and install it. (http://httpd.apache.org/dist/binaries/win32/apache_1.3.19-win32-src-r2.msi) You can also try the php4apache-eapi.dll instead if your php distribution comes with one... HTH, Fernando Madruga -Original Message- From: Aleksey Filimon

php-windows@lists.php.net

2001-03-15 Thread Aleksey Filimonov
Hi all, I have some problems installing php-4.0.4pl1 on apache-1.3.14 on win98... The apache server is running fine before adding this line in httpd.conf: LoadModule php4_module c:/php/sapi/php4apache.dll After adding module apache crash with alert: This program has performed an illegal oper

Re: [PHP-WIN] PHP+Apache question

2001-03-15 Thread Chris Adams
On 15 Mar 2001 06:12:43 -0800, Martin Lindhe <[EMAIL PROTECTED]> wrote: >the execution can take a long time, so i would want to execute it >on a regular interval instead, so the data can be fetched from >the database only, with close enough up-to-date information. > >however php (of course) execut

[PHP-WIN] exec/system/passthru ??????

2001-03-15 Thread Josh Seward
I am trying to open a program and leave it running in the background. The script will always hang until I close the program that it opens? Here is my code $result = passthru($command."& 1> output.txt 2>&1; print output.txt; &", $pass); I have tried using exec() system() and passthru() all with

Re: [PHP-WIN] Print variables coming from a form not controled by me...

2001-03-15 Thread Dream
Thank you very much I'm gonna test it! Por cierto, Fernado, hablas español? yo soy de barcelona marc "Fernando Madruga" <[EMAIL PROTECTED]> escribió en el mensaje 3685A91F554BD411BA310008C759B6CC02527BFC@MAIL_CBR">news:3685A91F554BD411BA310008C759B6CC02527BFC@MAIL_CBR... I have PHP 4.0.4 an

[PHP-WIN] mime problems

2001-03-15 Thread Free Beachler
can anyone help with this? I'm using a mime class based out of S. Hughes' SAMS book "PHP Developer's cookbook". ...running PHP 4.0.3pl1 on NT 2000 IIS 5... I've modified the MIME class using the RFC 1521 spec and an article by Kartic Krishnamurthy on phpbuilder.com. It looks to me like the clas

[PHP-WIN] Acessing a DDE server

2001-03-15 Thread Chris Hills
How can i access a dde server using php? -- 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] PHP+Apache question

2001-03-15 Thread Fernando Madruga
The easy way is to use register_shutdown_function('function_name') and that function will be executed AFTER the script finishes, so the end use will not have to wait for it to complete... HTH, Fernando Madruga -Original Message- From: Martin Lindhe [mailto:[EMAIL PROTECTED]] Sent: quin

[PHP-WIN] PHP+Apache question

2001-03-15 Thread Martin Lindhe
hey fellow php fans :) i wrote a php script that fetches some information from warious places on the web and stores the data in a mysql database. tho the execution can take a long time, so i would want to execute it on a regular interval instead, so the data can be fetched from the database only,

RE: [PHP-WIN] News with MySQL

2001-03-15 Thread Mangiola Nunzio Datavia
Thanks. But you misunderstood. What I want to do is strip the first part of the html document and display it. Then have a link that will lead to the rest of the document. So you see there is no physical split but a virtual split. The reason I don't use the method that you have is because I don't

Re: [PHP-WIN] Help Needed on MSSQL

2001-03-15 Thread Andrian Pervazov
That's right, you need to have SQL Server or its client installed on the machine that runs PHP. At least, you should have NTWDBLIB.DLL in your system folder (this DLL is otherwise installed by SQL Server). Andrian Fernando Madruga wrote: > > I have no experience on MSSQL, but it looks like you

RE: [PHP-WIN] News with MySQL

2001-03-15 Thread Asendorf, John
I'm doing the same thing kind of differently. Instead of storing the first paragraph seperately from the whole story I'm just reading up to the first (which I insert when the story is typed in by the user) The code for just using the first paragraph looks like this: else { $story =

Re: [PHP-WIN] PHP Session

2001-03-15 Thread Jürgen Lasn
if you want to expire cookie set it's date in the past ... (eq. 0 or 10 or something smaller then time() gives you :) greets, Jürgen. ""Glenn"" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > Please, can anybody tell me how to set the lifetime > of a session

[PHP-WIN] PHP Session

2001-03-15 Thread Glenn
Please, can anybody tell me how to set the lifetime of a session without cookies, in PHP 4 and IIS? I have tryied this on the main.php file but it did't work session_set_cookie_params ( time()+10); the session did't killed best regards //Glenn _

Re: [PHP-WIN] apache + php + system() = error :(

2001-03-15 Thread Jürgen Lasn
Hi! No the error is not generated while exec'ing external program but while it attemts to call the system() command ... it's like the system() and exec() are malfuncioning ... using backticks (`) made the script to hang there is something very fundamental that i do wrong but ... where? what?

RE: [PHP-WIN] apache + php + system() = error :(

2001-03-15 Thread Fernando Madruga
You could try replacing "batch.bat" with "c:\windows\command.com /c batch.bat" for windows 9x or "C:\winnt\cmd.exe /c batch.bat" or something like that. HTH, Fernando Madruga -Original Message- From: Jürgen Lasn [mailto:jyrgen[@][EMAIL PROTECTED]] Sent: quinta-feira, 15 de Março de 200

[PHP-WIN] apache + php + system() = error :(

2001-03-15 Thread Jürgen Lasn
Hi! i have PHP version 4.0.4pl1 running on apache webserver and i have trouble using command "system" it gives me errormessage : Warning: Unable to fork [batch.bat] in c:/apache/htdocs/xxx/xxx/index.php on line xx and on line xx is : $bla=system("batch.bat",$ex_code); HOW can i make it FOR

RE: [PHP-WIN] Print variables coming from a form not controled by me...

2001-03-15 Thread Fernando Madruga
I have PHP 4.0.4 and I get the same error... After retyping the whole line manually (no copy/paste), it stopped complaining! There's a missing parentheses on that line between 'each' and '$HTTP_GET_VARS' !! However, even though it does not complain, it still doesn't give the values expected!! We

[PHP-WIN] Interbase: ibase_pconnect() problem

2001-03-15 Thread Wolfgang Hege
Hi ! I have following problem when connecting to Interbase: When trying to establish a persistent connection using 'ibase_pconnect()' a new connection is created each time. The database connection remains open, but it will not be re-used later. So I have loads of database connections and a huge

RE: [PHP-WIN] Help Needed on MSSQL

2001-03-15 Thread Fernando Madruga
I have no experience on MSSQL, but it looks like you may have some missing dll. Note that, when windows complains about a missing dll, it may happen that that dll itself is present but depends on another one which is not... I had a look at the php_mssql70.dll on my system and found out that it de

RE: [PHP-WIN] Mail/PHP/Apache

2001-03-15 Thread Matt Williams
I've had problems with sending mails if I try to use \n in the mail. try send ing a one line email with no extra headers. and no \n's anywhere Also to set up the php as an apache module, get the latest version from php.net. copy php4ts.dll to windows\system and add this to your http.conf LoadMo

RE: [PHP-WIN] Download Prompt Problem

2001-03-15 Thread Fernando Madruga
You are probably running it as a cgi, if that's the case, you'll have to add the following lines to your httpd.conf inside the AddType application/x-httpd-php .php AddType application/x-httpd-php-source .phps These will let Apache know how to handle .php files and will

php-windows Digest 15 Mar 2001 09:09:49 -0000 Issue 492

2001-03-15 Thread php-windows-digest-help
php-windows Digest 15 Mar 2001 09:09:49 - Issue 492 Topics (messages 6034 through 6049): Re: How to use COM 6034 by: Phillip Bow 6038 by: Alain Samoun Re: Mail/PHP/Apache 6035 by: Gaylen Fraley Help! 6036 by: Robin Bolton 6037 by: Robin Bolton

Re: [PHP-WIN] Download Prompt Problem

2001-03-15 Thread Urmil Parikh
It seems that your web server doesn't recognize .php extension. Read the installation notes (of php) for your web server. It will help you solve the problem. Regards, | Linux Urmil Parikh | It is now safe to turn on your computer -Original Message- I am very new to php, but i tr

RE: [PHP-WIN] Uninitialized Variables

2001-03-15 Thread Darvin Andrioli
You may use the function isset. Try this code: if (!isset($id)) { // variable not set } Regards Darvin -Original Message- From: Dwight Sparling [SMTP:[EMAIL PROTECTED]] Sent: Thursday, March 15, 2001 3:44 AM To: [EMAIL PROTECTED] Subject:[PHP-WIN]

[PHP-WIN] Help Needed on MSSQL

2001-03-15 Thread R. Srinath
>Dear Sir >I installed PHP (Latest version) on my machine which runs on WIN 2000 >Advanced server and as MSSql 7.0 but as given in the site if I take >comment from the extension file that is in the PHP.INI file I have all the >Dlls but it is telling the Dll is not found. I copied the Dll and p

Re: [PHP-WIN] Print variables coming from a form not controled by me...

2001-03-15 Thread Dream
Hi Michael, Also, when I run the page, it give me a parse error in line 22, that is: while ( list ( $key, $val ) = each ( $HTTP_GET_VARS ) ) Any idea? Here's the complete page Untitled Document $val\n"; if ( "array" == GetType( $val ) ) { while (