[PHP-WIN] Mail-function! Help!

2001-03-14 Thread Vegard
I have php4 and Apache running on Windows 2000, and Im not able to get the mail-function to work. The mailsystem is on an other PC, and so I added SMTP= in the php.ini file. But still I get "Failed to connect" when I run mail(). I have heard that there can be a problem if the mailserver is separat

[PHP-WIN] News with MySQL

2001-03-14 Thread Mangiola Nunzio Datavia
Hi What I would like to do is save a news item as a html or text file. Then place it into a MySQL database. Afterwards I would like to display the fist paragraph of each news posting on a site in a summary format. If the user would like to see more all he has to do is click on the corresponding

[PHP-WIN] Email Problem....SOLVED!!!!

2001-03-14 Thread OoCobra97
Hello, I've been seeing quite a few e-mails about the mail() function not working...well mine worked fine until today i believe, but it looks like it has to do with the php ini setting, althoug Ive changed my ini, it still didnt work, so heres a workaround I found on php.net that works great.

Re: [PHP-WIN] Help!

2001-03-14 Thread Dreamvale
Perhaps try creating 25 uniq random numbers which correspond to the row numbers, with upper limit tied to the number of rows. - Original Message - From: "Robin Bolton" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Thursday, March 15, 2001 6:52 AM Subject: [PHP-WIN] Help! > Ok, I'v

Re: [PHP-WIN] Uninitialized Variables

2001-03-14 Thread Olivier Hubert
What exactly is the error message? I know this sounds stupid, but are you sure it isn't just a warning? By default, PHP will output all warnings and errors to standard output (e.g. the browser). Olivier >Can PHP deal with variables that are not initialized? It is kicking out an >error when it

[PHP-WIN] Uninitialized Variables

2001-03-14 Thread Dwight Sparling
Can PHP deal with variables that are not initialized? It is kicking out an error when it runs into something that is not defined yet. mysql_select_db("mydb",$db); if ($id) { <=Not initialized and PHP kicks an error? // query the DB Thanks! Dwight --

[PHP-WIN] Download Prompt Problem

2001-03-14 Thread Daniel
I am very new to php, but i tried to install it and i followed the directions i think... But everytime i try to view a .php document in IE it prompts me to download the file instead of viewing it in the browser. And when I do download the file and run it, it opens it up in a "Command Prompt" and r

Re: [PHP-WIN] How to use COM

2001-03-14 Thread Alain Samoun
Check: http://www.phpbuilder.com/columns/alain20001003.php3 Author should be updating it somedays ;) Alain On Wed, Mar 14, 2001 at 10:07:55PM -, Thomas wrote: > Hi all again, > > i' am a very bloody greenhorne with php and maybe i have many questions. > Heres one another: > > Who can e

RE: [PHP-WIN] Help!

2001-03-14 Thread Robin Bolton
Oops, I just realized that range() doesn't even work in PHP 4.0b2. Ack! > -Original Message- > From: Robin Bolton [mailto:[EMAIL PROTECTED]] > Sent: March 14, 2001 3:53 PM > To: [EMAIL PROTECTED] > Subject: [PHP-WIN] Help! > > > Ok, I've managed to get pretty far stuck using MySQL 3.22 an

[PHP-WIN] Help!

2001-03-14 Thread Robin Bolton
Ok, I've managed to get pretty far stuck using MySQL 3.22 and PHP 4.0b2 for a project I'm working on, however I was hoping someone could help me with a problem that's probably really simple to fix, just can't get my head around it right now. I need to pull 25 items out of a database randomly with

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

2001-03-14 Thread Gaylen Fraley
Tried all that -- still no go. Thanks. -- Gaylen [EMAIL PROTECTED] http://home.earthlink.net/~gfraley5/ "Fernando Madruga" <[EMAIL PROTECTED]> wrote in message 3685A91F554BD411BA310008C759B6CC02527B34@MAIL_CBR">news:3685A91F554BD411BA310008C759B6CC02527B34@MAIL_CBR... You need to use mod_php:

Re: [PHP-WIN] How to use COM

2001-03-14 Thread Phillip Bow
Actually the manual is a bit off. In order to instantiate a COM object you need to do: $object = new COM("adodb.recordset"); Then you should be able to call the corresponding methods and properties: $object->property = $sumvar; or what have you. You might check out http://php.net/manual/en/ref.c

php-windows Digest 14 Mar 2001 21:06:12 -0000 Issue 491

2001-03-14 Thread php-windows-digest-help
php-windows Digest 14 Mar 2001 21:06:12 - Issue 491 Topics (messages 6007 through 6033): Re: Mail/PHP/Apache 6007 by: Fernando Madruga 6012 by: Gaylen Fraley 6013 by: Fernando Madruga PHP405 Install 6008 by: Antonio Lopez 6009 by: Tom Mathews Re: CO

[PHP-WIN] How to use COM

2001-03-14 Thread Thomas
Hi all again, i' am a very bloody greenhorne with php and maybe i have many questions. Heres one another: Who can exlpain to use com in php. How can i execute methods and read attributes? I only know how i can craete an object: $object = new ("adodb.recordset") for exsample, is it not

RE: [PHP-WIN] php & Win95

2001-03-14 Thread Fernando Madruga
Mostly the email address and smtp server: if you don't use the mail() function, you can probably leave it as is... You may also want to uncomment some of the extension= lines to load some extensions (if you have them installed). Bye, Madruga -Original Message- From: Marco Laponder [mai

Re: [PHP-WIN] php & Win95

2001-03-14 Thread Marco Laponder
What should I change in the php.ini ? Marco "Fernando Madruga" <[EMAIL PROTECTED]> schreef in bericht 3685A91F554BD411BA310008C759B6CC02527B85@MAIL_CBR">news:3685A91F554BD411BA310008C759B6CC02527B85@MAIL_CBR... > > > I have some problems installing php on apache on win85. >

RE: [PHP-WIN] COM Question

2001-03-14 Thread Mal McKay
use the object's native close function, and then unset the variable, eg $microsoft_word->quit(); $microsoft_word=null; mal -Original Message- From: James Q. Stansfield [mailto:[EMAIL PROTECTED]] Sent: 14 March 2001 02:17 To: php-windows Subject: [PHP-WIN] COM Question Alrigh

[PHP-WIN] Visual Studio.NET

2001-03-14 Thread Craig Davis
I have fallen in love with the new Visual Studio.NET from Microsoft. I've used the Visual Perl and Visual Python additions to the editor, and have been very impressed. Has anyone begun developing PHP syntax highlighting and tools for Visual Studio? If not, I'd love to have a coup

Re: [PHP-WIN] COM Question

2001-03-14 Thread Alain Samoun
In PHP COM, you do not need to close the instance of your object, you can unset it if you want but it's not even necessary. Alain On Tue, Mar 13, 2001 at 09:16:36PM -0500, James Q. Stansfield wrote: > > Alright, I've gotten COM to work under PHP with the following: > > <% > $com = new com(

Re: [PHP-WIN] IIS4 and PHP

2001-03-14 Thread Phil Driscoll
>i has downloaded the latest version of php4. >I want to run php with IIS4 but i don't know how can i do that. Assuming you are running NT4 and already have IIS4... If you downloaded the windows installer, run it. If you downloaded the full binary zip, read the installation instructions and foll

RE: [PHP-WIN] php & Win95

2001-03-14 Thread Fernando Madruga
> I have some problems installing php on apache on win85. ^ First, upgrade your windows 85 to a newer version!!! :) Seriously, you should copy php4tsdll.dll or something like that into the apache/modules directory and make sure that you ch

[PHP-WIN] php & Win95

2001-03-14 Thread Marco Laponder
Hi All, I have some problems installing php on apache on win85. The apache server is running fine before adding the loadmodule in the conf file. After adding load module I get the message the the 'c:/php4/sapi/php4apache.dll' could not be loaded. The dll is present in the given directory. ANy hin

Re: [PHP-WIN] MS Access

2001-03-14 Thread Alain Samoun
Have a look at: http://www.phpbuilder.com/columns/timuckun20001207.php3 Alain On Wed, Mar 14, 2001 at 02:22:02PM +0100, Daniel Sichta wrote: > Hi everybody, > config: linux rh7, php 4.0.4 > I have problem. My client wants to use Access database and PHP script on > linux server. > How can I conne

Re: [PHP-WIN] About PHP405

2001-03-14 Thread Alain Samoun
On Wed, Mar 14, 2001 at 04:01:44PM +0100, Antonio Lopez wrote: > > Why you can not find Php405 in the "www.php.net" page? > > is Php405 an official version of Php ? Not yet, but soon! Alain > > > Thankyou. > > === > Antonio López Luna > In

[PHP-WIN] IIS4 and PHP

2001-03-14 Thread Thomas Häger
Hi all, i has downloaded the latest version of php4. I want to run php with IIS4 but i don't know how can i do that. Have anybody an idea ? Thanks, Thomas -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PR

[PHP-WIN] About PHP405

2001-03-14 Thread Antonio Lopez
Why you can not find Php405 in the "www.php.net" page? is Php405 an official version of Php ? Thankyou. === Antonio López Luna Ingeniería e Integración Avanzadas (Ingenia), S.A. Parque Tecnológico de Andalucía 29590 - Málaga (Spain) Tel. 34-

[PHP-WIN] COM Question

2001-03-14 Thread James Q. Stansfield
Alright, I've gotten COM to work under PHP with the following: <% $com = new com("iUtil.iTemplate"); %> Now, looking at the documentation I can't find any function to close the object when I don't need it any longer. Am I missing anything here? If PHP autocloses objects that wou

[PHP-WIN] MS Access

2001-03-14 Thread Daniel Sichta
Hi everybody, config: linux rh7, php 4.0.4 I have problem. My client wants to use Access database and PHP script on linux server. How can I connect from PHP to Access on Linux ? Thank you Ing. Daniel Šichta CUSTOM.web s.r.o. Hodžova 13 01001 Žilina, SLOVAKIA ++421 89 564 3474 mobile ++421 905 83

RE: [PHP-WIN] date() problem

2001-03-14 Thread Fernando Madruga
This one may be easy to explain, not so easy to fix... According to mktime documentation: 'Year may be a two or four digit value, with values between 0-69 mapping to 2000-2069 and 70-99 to 1970-1999 (on systems where time_t is a 32bit signed integer, as most common today, the valid range for ye

[PHP-WIN] Real values cause havoc ?

2001-03-14 Thread Michael_OShea
Hi, I'm running PHP 4.0.2 with Xitami on Windows NT. Strange bugs have been occurring and I think I've narrowed it down to real values being involved near the problem area. I've figured out a workaround but I thought I'd ask here anyway. I say the bug is strange because its effect is very ind

[PHP-WIN] date() problem

2001-03-14 Thread TPG
Using Windows 2000 IIS php4 mysql, I get this error Warning: unexpected error in date() in C:\Websites\tepcart\catalog\account.php on line 112 when I Any help gratefully recieved Thanks Regards Tony Ayling Brisbane Australia -- PHP Windows Mailing List (http://www.php.net/) To unsubsc

RE: [PHP-WIN] Sending email from PHP on windows 95

2001-03-14 Thread Fernando Madruga
> SMTP: mail.hosthere.com Is this the EXACT contents of your ini? If it is, that's the error: you should have changed to something like: SMTP: xs4all.nl Also, try to use the IP address instead of the name (do a PING xs4all.nl to find out the IP address). HTH, Fernando Madruga -- PHP Windows

[PHP-WIN] Sending email from PHP on windows 95

2001-03-14 Thread Herbert Groot Jebbink
Hi, If I use the mail command it does not work, it seems to going to a black hole. mail('[EMAIL PROTECTED]', 'Test from php/windows95', 'bla bla bla'); I can telnet on port 25 to the smtp server and then I get a 220 ready, so the PC is alowed to talk to the smtp server. If I do a phpinfo the

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

2001-03-14 Thread Fernando Madruga
You need to use mod_php: uncomment the line on your httpd.conf that refers to LoadModule php4_module; on my setup is 'LoadModule php4_module modules/ApacheModulePHP4.dll' then add the following lines to your httpd.conf inside the so as to register .php files with the module:

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

2001-03-14 Thread Gaylen Fraley
I have placed my answers beneath your questions. The answers to all are YES except the module vs. executable. How do I control that? In Apache the PHP file that is called is php.exe. -- Gaylen [EMAIL PROTECTED] "Fernando Madruga" <[EMAIL PROTECTED]> wrote in message 3685A91F554BD411BA310008C7

[PHP-WIN] Php and email problems with localhost

2001-03-14 Thread Lars Eirik Rønning
Is it possible to use the localhost on a w2k computer by specifying the localhost as smtp. I am running with is server and it should have an inbuild smtp server ,but i am unable to use the mail function. I have tried this with apache as well, but as it comes with no smtp server i thought it would

Re: [PHP-WIN] COM error

2001-03-14 Thread Yoann Chevalier
There is no "syntax error" it works for me. $word = new COM("word.application") or die("Unable to instantiate Word"); It's maybe a "configuration error". I have PHP 4.0.5-dev, Apache 1.3.17 and Windows 98 SE Yoann - Original Message - From: "Patrice Mora" <[EMAIL PROTECTED]> To: <[EM

Re: [PHP-WIN] PHP405 Install

2001-03-14 Thread Tom Mathews
It sounds an obvious question, but is it a new script you are trying to run, or is it one that could be sitting in the browser cache and you aren't refreshing it properly? Antonio Lopez wrote: > I installed PHP404pl1 with the automatic installer, and all works right. > > Now, i want to install P

[PHP-WIN] PHP405 Install

2001-03-14 Thread Antonio Lopez
I installed PHP404pl1 with the automatic installer, and all works right. Now, i want to install PHP405, and i have done the follow: - I've modified the Windows registry: [HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\w3svc\parameters\Scrip t Map] ".php"="c:\\php405\\sapi\\php.exe"

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

2001-03-14 Thread Fernando Madruga
I'm also running Apache+PHP4+xtras on a Win98SE machine and have NO problems sending mail; in fact, I use it on my 404.php error generator to send an email to the webmaster (me!) whenever a broken link is requested and it works absolutely fine! Hints: - Have you tried using the IP of your ISP's

php-windows Digest 14 Mar 2001 08:14:29 -0000 Issue 490

2001-03-14 Thread php-windows-digest-help
php-windows Digest 14 Mar 2001 08:14:29 - Issue 490 Topics (messages 6003 through 6006): Re: Apache Modules 6003 by: Ignatius Teo Mail/PHP/Apache 6004 by: Gaylen Fraley 6005 by: Gaylen Fraley Re: [PHP-WINDOWS] PHP don't capture variables 6006 by: wes currie

[PHP-WIN] Re: [PHP-WINDOWS] PHP don't capture variables

2001-03-14 Thread wes currier
So how do you fix variables not being passed to other files. For example I have a form (form.htm) that calls form_parse.php. The echo(); method should print them to the screen. It does not. I know the files are good because I have tried them on another server. PHP is running because phpinfo(); wo