RE: [PHP] Re: E-Commerce: go TEP

2002-01-08 Thread Kraa de Simon

BTW

TEP is called osCommerce nowadays.

http://www.oscommerce.com/

 -Original Message-
 From: Vincent Stoessel [mailto:[EMAIL PROTECTED]]
 Sent: dinsdag 8 januari 2002 17:08
 To: Julio Nobrega Trabalhando
 Cc: [EMAIL PROTECTED]
 Subject: Re: [PHP] Re: E-Commerce: go TEP
 
 
 I have to second the TEP recommendation. I am using it for
 an E-tailer client of mine and it is performing flawlessly. Also,
 the project has a lot of enthusiastic developers behind it.
 
 Julio Nobrega Trabalhando wrote:
 
  
  
 --
 --
  
  Subject:
 
  
  
I haven't used, but heard good stuff from folks of the 
 local mailing list,
  from TEP.
  
  http://theexchangeproject.org/
  
  --
  
  Julio Nobrega.
  
  Um dia eu chego lá:
  http://sourceforge.net/projects/toca
  
  Ajudei? Salvei? Que tal um presentinho?
  http://www.submarino.com.br/wishlistclient.asp?wlid=664176742884
  
  
  
  
  
  
 
 
 
 -- 
 Vincent Stoessel [EMAIL PROTECTED]
 Java Linux Apache Mysql Php (JLAMP) Engineer
 (301) 362-1750 Mobile (410) 419-8588
 AIM, MSN: xaymaca2020 , Yahoo Messenger: vks_jamaica
 
 
 -- 
 PHP General 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]
 

--
PHP General 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] Internal Server Error?

2002-01-06 Thread Kraa de Simon

This only works if PHP is installed as an Apache module on the Linux/UNIX
platforms.

From the docs:

One additional note about PHP: if PHP is installed as an Apache module on
the Linux/UNIX platforms, there are additional global variables available to
your PHP script: 

$PHP_AUTH_USER -- Authenticated User name 
$PHP_AUTH_PW -- Authenticated Password 
$PHP_AUTH_TYPE -- Authentication Type 

Additionally, your PHP program can force Apache to prompt the user for a
username and password with the following PHP commands: 

header('WWW-Authenticate: Basic realm=My Private Stuff'); 
header('HTTP/1.0 401 Unauthorized'); 
echo 'Authorization Required.'; 

From then on, your application logic can decide how to respond to the user.
Note that on the Windows platform, PHP is installed as a CGI, and these
features are therefore not available. 

 -Original Message-
 From: GoodFella [mailto:[EMAIL PROTECTED]]
 Sent: zondag 6 januari 2002 17:31
 To: php Mail
 Subject: [PHP] Internal Server Error?
 
 
 Hello,
 
 Does anybody have any ideas why the code below is giving me 
 internal server errors?
 
 if (!isset($PHP_AUTH_USER)) {
 
  header('WWW-Authenticate: Basic realm=XYZ Company Admin Area');
  header('HTTP/1.0 401 Unauthorized');
  echo 'Authorization Required.';
  exit;
 
 } else if (isset($PHP_AUTH_USER)) {
 
  if (($PHP_AUTH_USER != admin) || ($PHP_AUTH_PW != password)) {
  
   header('WWW-Authenticate: Basic realm=XYZ Company Admin Area');
   header('HTTP/1.0 401 Unauthorized');
   echo 'Authorization Required.';
   exit;
 
 
 Do I need to set or change anything in my PHP set-up?
 
 Thanks in advance,
 
 GF.
 

-- 
PHP General 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]




[PHP] HTML doc check in PHP? How to?

2002-01-05 Thread Kraa de Simon

Hi,

I would like to be able to check html documents against a template html
document using PHP.

In the example below I would like to check if the document starts with a
h1 + string + /h1,  and is followed by a h1 + version + ... etc.
etc.

Should/could I use XML?

Any ideas would be greatly appreciated!

center
h1DataSelect Installation and Configuration/h1
h3version 1.0 - Dec 20th, 2001 (dsl/d0001v10)/h3
by Simon.de.Kraa ([EMAIL PROTECTED])
/center
h2Table of content/h2
ul
lia href=#introductionIntroduction/a
lia href=#installationInstallation/a
lia href=#configurationConfiguration/a
ul
lia href=#dataselect_objectsDataSelect Objects/a
lia href=#dataselectDataSelect/a
/ul
/ul

!-- --- INTRODUCTION --- --

h2a name=introductionIntroduction/a/h2
This document describes the complete process of installing and configuring
DataSelect.

!-- --- INSTALLATION --- --

h2a name=installationInstallation/a/h2
...

!-- --- CONFIGURATION --- --

h2a name=configurationConfiguration/a/h2
h3a name=dataselect_objectsDataSelect Objects/a/h3
...
h3a name=dataselectDataSelect/a/h3
...

Met vriendelijke groet / With kind regards,

ICL Nederland B.V.  Simon de Kraa
e-Applications / Logistic Systems   Systems Architect
Het Kwadrant 1  Tel. +31 346 598865
Postbus 4000Fax  +31 346 562703
3600 KA  MAARSSEN
The Netherlands mailto:[EMAIL PROTECTED]

---

Progress 9.1c, Roundtable 9.1c, NuSphere Pro Advantage 2.3.1 @ MS Windows
2000 5.00.2195 SP 2
Progress 9.1c @ SCO UnixWare 7.1.1

-- 
PHP General 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] Desperate: odbc_connect() does not work! Please help!

2001-11-19 Thread Kraa de Simon

I checked openlinksw and the driver for Progress 9.1b is indeed available...
(for client is Linux glibc2.1 (x86) and server is UnixWare 7 (x86))

...but we are on Progress 9.1c.

When will the Progress 9.1c driver for this client/server config be
available?

Regards,

Simon.

 -Original Message-
 From: Andrew Hill [mailto:[EMAIL PROTECTED]]
 Sent: woensdag 31 oktober 2001 21:32
 To: Kraa de Simon; Php-General (E-mail)
 Subject: RE: [PHP] Desperate: odbc_connect() does not work! 
 Please help!
 
 
 Kraa,
 
 Sorry for the confusion; we should have that component 
 available by the end
 of the week.
 
 Best regards,
 Andrew
 
 
  -Original Message-
  From: Kraa de Simon [mailto:[EMAIL PROTECTED]]
  Sent: Wednesday, October 31, 2001 2:50 PM
  To: '[EMAIL PROTECTED]'; Php-General (E-mail)
  Subject: RE: [PHP] Desperate: odbc_connect() does not work! 
 Please help!
 
 
  Hi,
 
  The problem is that a Progress 9.1c is not available at
  openlinksw.com for:
 
  Client: Linux glibc2.1 (x86)
  Server: UnixWare 7 (x86)
 
  Only Progress 8.3b is supported.
 
  So you are saying that a setting in the .ini files or some 
 environment
  variable could be missing.
 
  I will have a look at it.
 
  Thanks,
 
  Simon.
 
   -Original Message-
   From: Andrew Hill [mailto:[EMAIL PROTECTED]]
   Sent: woensdag 31 oktober 2001 20:25
   To: Kraa de Simon; Php-General (E-mail)
   Subject: RE: [PHP] Desperate: odbc_connect() does not work!
   Please help!
  
  
   Kraa,
  
   I'm not sure why the two sample apps are using different
   connection calls;
   It's not terribly relevant - both are legal.
  
   Driver manager and driver are not typically dependent on each
   other, no.
   The fact that the connection fails in odbctest is probably
   due to a missing
   parameter that iODBC wants in the DSN or the environment
   variables. You can
   look at error messages for the Merant driver - I'm not going
   to get into
   debugging it :)
  
   If you want to try OpenLink's ODBC drivers, you will find
   they work fine
   with PHP and Progress.
   I suggest you download the Multi-Tier driver from our site -
   they comes free
   with a 2 user connection.  I would also suggest that you
   compile --with-iodbc, as it is in greater use and has been
   more thoroughly
   tested with PHP.
  
   Free support is available as well if you have difficulties, at:
   http://www.openlinksw.com/support/suppindx.htm.
  
   Best regards,
   Andrew Hill
   Director of Technology Evangelism
   OpenLink Software  http://www.openlinksw.com
   Universal Data Access  Data Integration Technology Providers
  
-Original Message-
From: Kraa de Simon [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, October 31, 2001 1:59 PM
To: '[EMAIL PROTECTED]'; Php-General (E-mail)
Subject: RE: [PHP] Desperate: odbc_connect() does not work!
   Please help!
   
   
Hi Andrew,
   
I'm using the Merant DataDirect 3.6 Progress SQL92 ODBC
   drivers and they
seem to be working fine when I try their test C program. I
   can connect to
the Progress database en retrieve data.
   
I'm using their driver manager as well (--with-custom-odbc).
   
The test C program uses:
   
SQLConnect (hdbc, driver, SQL_NTS, uid, SQL_NTS, pwd, SQL_NTS);
   
SQLConnect is executed without problems. A connection 
 can be made.
   
When I try odbctest (from iODBC / odbcsdk) the connect fails
(same drivers,
same odbc.ini, same odbcinst.ini).
   
SQLDriverConnect (hdbc, 0, (UCHAR *) dataSource, SQL_NTS,
   (UCHAR *) buf,
sizeof (buf), buflen, SQL_DRIVER_COMPLETE);
   
SQLDriverConnect returns -1. A connection cannot be made.
   
Why is the first program using SQLConnect() and the other
SQLDriverConnect()?
   
Are ODBC driver and ODBC driver manager dependent on each other?
   
Or can I use the iODBC driver manager and the Merant 
 ODBC drivers
together?
   
Are there alternatives to the Merant ODBC drivers?
   
I am connect a Progress 9.1c database on SCO UnixWare 7.1.1
   from Red Hat
Linux 7.1 with Merant DataDirect 3.6 Progress SQL92 ODBC
   drivers and ODBC
driver manager.
   
Any ideas?
   
Regards,
   
Simon.
   
 -Original Message-
 From: Andrew Hill [mailto:[EMAIL PROTECTED]]
 Sent: woensdag 31 oktober 2001 16:12
 To: Kraa de Simon; Php-General (E-mail)
 Subject: RE: [PHP] Desperate: odbc_connect() does not work!
 Please help!


 Kraa,

 The 01000 error is a 'General Error', probably at 
 connect time.
 This suggest that your DSN settings might be bad or not being
 passed into
 PHP.
 Is your DSN named results and is that the one you are using
 in your tests?

 Also, are you setting your environment variables as
   appropriate? e.g.:
 setenv(ODBCINI=/path/to/odbc.ini);
 setenv(LD_LIBRARY_PATH=/path/to/your/driver/manager/lib);

 You may also

[PHP] Mail and mime and attachments

2001-11-02 Thread Kraa de Simon

Hi,

I've read all docs on how to send multiple attachments with mime headers...

But all I get is the headers in plain text in the resulting e-mail!

No attachments at all!

Could anyone give me short working example please...

Thanks,

Simon.

-- 
PHP General 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]




[PHP] Weekly reporting. How to?

2001-11-01 Thread Kraa de Simon

Hello,

I want to send a weekly report to a mailinglist. 

I would like to automate the process and use a cron job to execute 'php.exe
weekly.php' or something. 

I could gather the information, put it in a string and pass the string to
mail(). 

But...is it also possible to grab the html output of a .php file already
used in the application (some report) and e-mail it to someone? 

Any ideas? 

Met vriendelijke groet / With kind regards,

ICL Nederland B.V.  Simon de Kraa
e-Applications / Logistic Systems   Systems Architect
Het Kwadrant 1  Tel. +31 346 598865
Postbus 4000Fax  +31 346 562703
3600 KA  MAARSSEN
The Netherlands mailto:[EMAIL PROTECTED]

---

Progress 9.1c, Roundtable 9.1c, NuSphere Pro Advantage 2.3.1 @ MS Windows
2000 5.00.2195 SP 2
Progress 9.1b @ SCO UnixWare 7.1.1

-- 
PHP General 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]




[PHP] Desperate: odbc_connect() does not work! Please help!

2001-10-31 Thread Kraa de Simon

Hi,

When I execute:

? odbc_pconnect(results, sysprogress, mls); ?

I get error:

Warning: SQL error: , SQL state 01000 in SQLConnect in
/usr/local/apache/htdocs/odbc.php on line 1

See attachment for phpinfo().

BTW 1

The ODBC config itself works fine. I can make a connection and retrieve data
from the database using a test C program.

BTW 2

I used --with-custom-odbc and set env var CUSTOM_ODBC_LIBS to the lib dirs
and env var CFLAGS to the include dirs.

Met vriendelijke groet / With kind regards,

ICL Nederland B.V.  Simon de Kraa
e-Applications / Logistic Systems   Systems Architect
Het Kwadrant 1  Tel. +31 346 598865
Postbus 4000Fax  +31 346 562703
3600 KA  MAARSSEN
The Netherlands mailto:[EMAIL PROTECTED]

---

Progress 9.1c, Roundtable 9.1c, NuSphere Pro Advantage 2.3.1 @ MS Windows
2000 5.00.2195 SP 2
Progress 9.1b @ SCO UnixWare 7.1.1

-- 
PHP General 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] Desperate: odbc_connect() does not work! Please help!

2001-10-31 Thread Kraa de Simon

So desperate I even forgot the attachment...

 -Original Message-
 From: Kraa de Simon [mailto:[EMAIL PROTECTED]]
 Sent: woensdag 31 oktober 2001 14:40
 To: Php-General (E-mail)
 Subject: [PHP] Desperate: odbc_connect() does not work! Please help!
 
 
 Hi,
 
 When I execute:
 
   ? odbc_pconnect(results, sysprogress, mls); ?
 
 I get error:
 
   Warning: SQL error: , SQL state 01000 in SQLConnect in
 /usr/local/apache/htdocs/odbc.php on line 1
 
 See attachment for phpinfo().
 
 BTW 1
 
 The ODBC config itself works fine. I can make a connection 
 and retrieve data
 from the database using a test C program.
 
 BTW 2
 
 I used --with-custom-odbc and set env var CUSTOM_ODBC_LIBS to 
 the lib dirs
 and env var CFLAGS to the include dirs.
 
 Met vriendelijke groet / With kind regards,
 
 ICL Nederland B.V.  Simon de Kraa
 e-Applications / Logistic Systems   Systems Architect
 Het Kwadrant 1  Tel. +31 346 598865
 Postbus 4000Fax  +31 346 562703
 3600 KA  MAARSSEN
 The Netherlands mailto:[EMAIL PROTECTED]
 
 ---
 
 Progress 9.1c, Roundtable 9.1c, NuSphere Pro Advantage 2.3.1 
 @ MS Windows
 2000 5.00.2195 SP 2
 Progress 9.1b @ SCO UnixWare 7.1.1
 
 -- 
 PHP General 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]
 




-- 
PHP General 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] Desperate: odbc_connect() does not work! My settings...

2001-10-31 Thread Kraa de Simon

Sorry, here are my settings:

Configure Command:

'./configure' '--with-mysql' '--with-apache=../apache_1.3.19'
'--enable-track-vars' '--with-custom-odbc=/progress/dlc91/odbc/lib'

ODBC Supportenabled
--
Active Persistent Links 0
Active Links0
ODBC librarycustom
ODBC_INCLUDE@ODBC_INCLUDE@
ODBC_LFLAGS @ODBC_LFLAGS@
ODBC_LIBS   @ODBC_LIBS@

Directive   Local Value Master Value
--
odbc.allow_persistent   On  On
odbc.check_persistent   On  On
odbc.default_db no valueno value
odbc.default_pw
odbc.default_user   no valueno value
odbc.defaultbinmode return as isreturn as is
odbc.defaultlrl return up to 4096 bytes return up to 4096 bytes
odbc.max_links  Unlimited   Unlimited
odbc.max_persistent Unlimited   Unlimited

VariableValue
--
ODBCINI /root/.odbc.ini
ODBCINSTINI /root/.odbcinst.ini
CUSTOM_ODBC_LIBS-L/progress/dlc91/odbc/lib -lodbc -lodbcinst
CFLAGS  -I/progress/dlc91/odbc/include
-I/usr/local/src/apache_1.3.19/include

 -Original Message-
 From: Kraa de Simon [mailto:[EMAIL PROTECTED]]
 Sent: woensdag 31 oktober 2001 14:44
 To: Php-General (E-mail)
 Subject: RE: [PHP] Desperate: odbc_connect() does not work! 
 Please help!
 
 
 So desperate I even forgot the attachment...
 
  -Original Message-
  From: Kraa de Simon [mailto:[EMAIL PROTECTED]]
  Sent: woensdag 31 oktober 2001 14:40
  To: Php-General (E-mail)
  Subject: [PHP] Desperate: odbc_connect() does not work! Please help!
  
  
  Hi,
  
  When I execute:
  
  ? odbc_pconnect(results, sysprogress, mls); ?
  
  I get error:
  
  Warning: SQL error: , SQL state 01000 in SQLConnect in
  /usr/local/apache/htdocs/odbc.php on line 1
  
  See attachment for phpinfo().
  
  BTW 1
  
  The ODBC config itself works fine. I can make a connection 
  and retrieve data
  from the database using a test C program.
  
  BTW 2
  
  I used --with-custom-odbc and set env var CUSTOM_ODBC_LIBS to 
  the lib dirs
  and env var CFLAGS to the include dirs.
  
  Met vriendelijke groet / With kind regards,
  
  ICL Nederland B.V.  Simon de Kraa
  e-Applications / Logistic Systems   Systems Architect
  Het Kwadrant 1  Tel. +31 346 598865
  Postbus 4000Fax  +31 346 562703
  3600 KA  MAARSSEN
  The Netherlands mailto:[EMAIL PROTECTED]
  
  ---
  
  Progress 9.1c, Roundtable 9.1c, NuSphere Pro Advantage 2.3.1 
  @ MS Windows
  2000 5.00.2195 SP 2
  Progress 9.1b @ SCO UnixWare 7.1.1
  
  -- 
  PHP General 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]
  
 
 
 

-- 
PHP General 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] PHP-arnings

2001-10-31 Thread Kraa de Simon

From my php.ini:

;;
; Error handling and logging ;
;;

; error_reporting is a bit-field.  Or each number up to get desired error
; reporting level
; E_ALL - All errors and warnings
; E_ERROR   - fatal run-time errors
; E_WARNING - run-time warnings (non-fatal errors)
; E_PARSE   - compile-time parse errors
; E_NOTICE  - run-time notices (these are warnings which often
result
; from a bug in your code, but it's possible that it was
; intentional (e.g., using an uninitialized variable and
; relying on the fact it's automatically initialized to
an
; empty string)
; E_CORE_ERROR  - fatal errors that occur during PHP's initial startup
; E_CORE_WARNING- warnings (non-fatal errors) that occur during PHP's
; initial startup
; E_COMPILE_ERROR   - fatal compile-time errors
; E_COMPILE_WARNING - compile-time warnings (non-fatal errors)
; E_USER_ERROR  - user-generated error message
; E_USER_WARNING- user-generated warning message
; E_USER_NOTICE - user-generated notice message
;
; Examples:
;
;   - Show all errors, except for notices
;
;error_reporting = E_ALL  ~E_NOTICE
;
;   - Show only errors
;
;error_reporting = E_COMPILE_ERROR|E_ERROR|E_CORE_ERROR
;
;   - Show all errors except for notices
;
error_reporting  =  E_ALL  ~E_NOTICE

; Print out errors (as a part of the output).  For production web sites,
; you're strongly encouraged to turn this feature off, and use error logging
; instead (see below).  Keeping display_errors enabled on a production web
site
; may reveal security information to end users, such as file paths on your
Web
; server, your database schema or other information.
display_errors = On

; Even when display_errors is on, errors that occur during PHP's startup
; sequence are not displayed.  It's strongly recommended to keep
; display_startup_errors off, except for when debugging.
display_startup_errors = Off

; Log errors into a log file (server-specific log, stderr, or error_log
(below))
; As stated above, you're strongly advised to use error logging in place of
; error displaying on production web sites.
log_errors = Off

; Store the last error/warning message in $php_errormsg (boolean).
track_errors = Off

; String to output before an error message.
;error_prepend_string = font color=ff

; String to output after an error message.
;error_append_string = /font

; Log errors to specified file.
;error_log = filename

; Log errors to syslog (Event Log on NT, not valid in Windows 95).
;error_log = syslog

; Warn if the + operator is used with strings.
warn_plus_overloading = Off

 -Original Message-
 From: Harald Witt [mailto:[EMAIL PROTECTED]]
 Sent: woensdag 31 oktober 2001 15:18
 To: [EMAIL PROTECTED]
 Subject: [PHP] PHP-arnings
 
 
 Hi,
 
 I have a hopefully simple problem. Look at the following 
 simple script:
 
 ?php
   if  ($x) {
 echo $x;
   }
 ?
 
 This script runs properly on my productive system (Linux, Apache, PHP
 4.0.3pl1). But on my Development-System (W2k Server, Apache 
 1.3.20, PHP 4.0.6) I
 always get a Warning, that variable x in not definded.
 Ok, thats true. But how can I suppress that Messages??? They 
 destroy my
 HTML-Code. I've searched in the PHP.INI file, but I can't 
 find anything, that
 looks like warning-suppression.
 
 Thanx for your help
 
 Harald
 
 -- 
 GMX - Die Kommunikationsplattform im Internet.
 http://www.gmx.net
 
 
 -- 
 PHP General 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]
 

-- 
PHP General 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] Desperate: odbc_connect() does not work! Please help!

2001-10-31 Thread Kraa de Simon

Hi Andrew,

I'm using the Merant DataDirect 3.6 Progress SQL92 ODBC drivers and they
seem to be working fine when I try their test C program. I can connect to
the Progress database en retrieve data.

I'm using their driver manager as well (--with-custom-odbc).

The test C program uses:

SQLConnect (hdbc, driver, SQL_NTS, uid, SQL_NTS, pwd, SQL_NTS);

SQLConnect is executed without problems. A connection can be made.

When I try odbctest (from iODBC / odbcsdk) the connect fails (same drivers,
same odbc.ini, same odbcinst.ini).

SQLDriverConnect (hdbc, 0, (UCHAR *) dataSource, SQL_NTS, (UCHAR *) buf,
sizeof (buf), buflen, SQL_DRIVER_COMPLETE);

SQLDriverConnect returns -1. A connection cannot be made.

Why is the first program using SQLConnect() and the other
SQLDriverConnect()?

Are ODBC driver and ODBC driver manager dependent on each other?

Or can I use the iODBC driver manager and the Merant ODBC drivers together?

Are there alternatives to the Merant ODBC drivers?

I am connect a Progress 9.1c database on SCO UnixWare 7.1.1 from Red Hat
Linux 7.1 with Merant DataDirect 3.6 Progress SQL92 ODBC drivers and ODBC
driver manager.

Any ideas?

Regards,

Simon.

 -Original Message-
 From: Andrew Hill [mailto:[EMAIL PROTECTED]]
 Sent: woensdag 31 oktober 2001 16:12
 To: Kraa de Simon; Php-General (E-mail)
 Subject: RE: [PHP] Desperate: odbc_connect() does not work! 
 Please help!
 
 
 Kraa,
 
 The 01000 error is a 'General Error', probably at connect time.
 This suggest that your DSN settings might be bad or not being 
 passed into
 PHP.
 Is your DSN named results and is that the one you are using 
 in your tests?
 
 Also, are you setting your environment variables as appropriate? e.g.:
 setenv(ODBCINI=/path/to/odbc.ini);
 setenv(LD_LIBRARY_PATH=/path/to/your/driver/manager/lib);
 
 You may also which to try this connection with odbctest, a sample
 application available in the iODBC SDK at www.iodbc.org.
 
 HTH!
 
 Best regards,
 Andrew Hill
 Director of Technology Evangelism
 OpenLink Software  http://www.openlinksw.com
 Universal Data Access  Data Integration Technology Providers
 
  -Original Message-
  From: Kraa de Simon [mailto:[EMAIL PROTECTED]]
  Sent: Wednesday, October 31, 2001 8:44 AM
  To: Php-General (E-mail)
  Subject: RE: [PHP] Desperate: odbc_connect() does not work! 
 Please help!
 
 
  So desperate I even forgot the attachment...
 
   -Original Message-
   From: Kraa de Simon [mailto:[EMAIL PROTECTED]]
   Sent: woensdag 31 oktober 2001 14:40
   To: Php-General (E-mail)
   Subject: [PHP] Desperate: odbc_connect() does not work! 
 Please help!
  
  
   Hi,
  
   When I execute:
  
 ? odbc_pconnect(results, sysprogress, mls); ?
  
   I get error:
  
 Warning: SQL error: , SQL state 01000 in SQLConnect in
   /usr/local/apache/htdocs/odbc.php on line 1
  
   See attachment for phpinfo().
  
   BTW 1
  
   The ODBC config itself works fine. I can make a connection
   and retrieve data
   from the database using a test C program.
  
   BTW 2
  
   I used --with-custom-odbc and set env var CUSTOM_ODBC_LIBS to
   the lib dirs
   and env var CFLAGS to the include dirs.
  
   Met vriendelijke groet / With kind regards,
  
   ICL Nederland B.V.  Simon de Kraa
   e-Applications / Logistic Systems   Systems Architect
   Het Kwadrant 1  Tel. +31 346 598865
   Postbus 4000Fax  +31 346 562703
   3600 KA  MAARSSEN
   The Netherlands 
 mailto:[EMAIL PROTECTED]
  
   ---
  
   Progress 9.1c, Roundtable 9.1c, NuSphere Pro Advantage 2.3.1
   @ MS Windows
   2000 5.00.2195 SP 2
   Progress 9.1b @ SCO UnixWare 7.1.1
  
   --
   PHP General 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]
  
 
 
 
 
 

-- 
PHP General 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] Desperate: odbc_connect() does not work! Please help!

2001-10-31 Thread Kraa de Simon

Hi,

The problem is that a Progress 9.1c is not available at openlinksw.com for:

Client: Linux glibc2.1 (x86)
Server: UnixWare 7 (x86)

Only Progress 8.3b is supported.

So you are saying that a setting in the .ini files or some environment
variable could be missing.

I will have a look at it.

Thanks,

Simon.

 -Original Message-
 From: Andrew Hill [mailto:[EMAIL PROTECTED]]
 Sent: woensdag 31 oktober 2001 20:25
 To: Kraa de Simon; Php-General (E-mail)
 Subject: RE: [PHP] Desperate: odbc_connect() does not work! 
 Please help!
 
 
 Kraa,
 
 I'm not sure why the two sample apps are using different 
 connection calls;
 It's not terribly relevant - both are legal.
 
 Driver manager and driver are not typically dependent on each 
 other, no.
 The fact that the connection fails in odbctest is probably 
 due to a missing
 parameter that iODBC wants in the DSN or the environment 
 variables. You can
 look at error messages for the Merant driver - I'm not going 
 to get into
 debugging it :)
 
 If you want to try OpenLink's ODBC drivers, you will find 
 they work fine
 with PHP and Progress.
 I suggest you download the Multi-Tier driver from our site - 
 they comes free
 with a 2 user connection.  I would also suggest that you
 compile --with-iodbc, as it is in greater use and has been 
 more thoroughly
 tested with PHP.
 
 Free support is available as well if you have difficulties, at:
 http://www.openlinksw.com/support/suppindx.htm.
 
 Best regards,
 Andrew Hill
 Director of Technology Evangelism
 OpenLink Software  http://www.openlinksw.com
 Universal Data Access  Data Integration Technology Providers
 
  -Original Message-
  From: Kraa de Simon [mailto:[EMAIL PROTECTED]]
  Sent: Wednesday, October 31, 2001 1:59 PM
  To: '[EMAIL PROTECTED]'; Php-General (E-mail)
  Subject: RE: [PHP] Desperate: odbc_connect() does not work! 
 Please help!
 
 
  Hi Andrew,
 
  I'm using the Merant DataDirect 3.6 Progress SQL92 ODBC 
 drivers and they
  seem to be working fine when I try their test C program. I 
 can connect to
  the Progress database en retrieve data.
 
  I'm using their driver manager as well (--with-custom-odbc).
 
  The test C program uses:
 
  SQLConnect (hdbc, driver, SQL_NTS, uid, SQL_NTS, pwd, SQL_NTS);
 
  SQLConnect is executed without problems. A connection can be made.
 
  When I try odbctest (from iODBC / odbcsdk) the connect fails
  (same drivers,
  same odbc.ini, same odbcinst.ini).
 
  SQLDriverConnect (hdbc, 0, (UCHAR *) dataSource, SQL_NTS, 
 (UCHAR *) buf,
  sizeof (buf), buflen, SQL_DRIVER_COMPLETE);
 
  SQLDriverConnect returns -1. A connection cannot be made.
 
  Why is the first program using SQLConnect() and the other
  SQLDriverConnect()?
 
  Are ODBC driver and ODBC driver manager dependent on each other?
 
  Or can I use the iODBC driver manager and the Merant ODBC drivers
  together?
 
  Are there alternatives to the Merant ODBC drivers?
 
  I am connect a Progress 9.1c database on SCO UnixWare 7.1.1 
 from Red Hat
  Linux 7.1 with Merant DataDirect 3.6 Progress SQL92 ODBC 
 drivers and ODBC
  driver manager.
 
  Any ideas?
 
  Regards,
 
  Simon.
 
   -Original Message-
   From: Andrew Hill [mailto:[EMAIL PROTECTED]]
   Sent: woensdag 31 oktober 2001 16:12
   To: Kraa de Simon; Php-General (E-mail)
   Subject: RE: [PHP] Desperate: odbc_connect() does not work!
   Please help!
  
  
   Kraa,
  
   The 01000 error is a 'General Error', probably at connect time.
   This suggest that your DSN settings might be bad or not being
   passed into
   PHP.
   Is your DSN named results and is that the one you are using
   in your tests?
  
   Also, are you setting your environment variables as 
 appropriate? e.g.:
   setenv(ODBCINI=/path/to/odbc.ini);
   setenv(LD_LIBRARY_PATH=/path/to/your/driver/manager/lib);
  
   You may also which to try this connection with odbctest, a sample
   application available in the iODBC SDK at www.iodbc.org.
  
   HTH!
  
   Best regards,
   Andrew Hill
   Director of Technology Evangelism
   OpenLink Software  http://www.openlinksw.com
   Universal Data Access  Data Integration Technology Providers
  
-Original Message-
From: Kraa de Simon [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, October 31, 2001 8:44 AM
To: Php-General (E-mail)
Subject: RE: [PHP] Desperate: odbc_connect() does not work!
   Please help!
   
   
So desperate I even forgot the attachment...
   
 -Original Message-
 From: Kraa de Simon [mailto:[EMAIL PROTECTED]]
 Sent: woensdag 31 oktober 2001 14:40
 To: Php-General (E-mail)
 Subject: [PHP] Desperate: odbc_connect() does not work!
   Please help!


 Hi,

 When I execute:

   ? odbc_pconnect(results, sysprogress, mls); ?

 I get error:

   Warning: SQL error: , SQL state 01000 in SQLConnect in
 /usr/local/apache/htdocs/odbc.php on line 1

 See attachment for phpinfo().

 BTW 1

[PHP] Problem with --with-custom-odbc

2001-10-24 Thread Kraa de Simon

Hello,

I configured PHP 4.0.5 with the --with-custom-odbc option.

I get no errors but the odbc functions are not available.

When I look at phpinfo() I can see that the configure command is:

'./configure' '--with-mysql' '--with-apache=../apache_1.3.19'
'--enable-track-vars'

Is --with-custom-odbc ignored? Any ideas?

I did set CUSTOM_ODBC_LIBS and CFLAGS and created a odbc.h include file:

[/root] echo $CUSTOM_ODBC_LIBS
-L/progress/dlc91/odbc/lib -lodbc -lodbcinst
[/root] echo $CFLAGS
-I/progress/dlc91/odbc/include -I/usr/local/src/apache_1.3.19/include
[/root] echo $LDFLAGS

[/root] cat /progress/dlc91/odbc/include/odbc.h
#include sql.h
#include sqlext.h
#include odbcinst.h
[/root]

Met vriendelijke groet / With kind regards,

ICL Nederland B.V.  Simon de Kraa
e-Applications / Logistic Systems   Systems Architect
Het Kwadrant 1  Tel. +31 346 598865
Postbus 4000Fax  +31 346 562703
3600 KA  MAARSSEN
The Netherlands mailto:[EMAIL PROTECTED]

---

Progress 9.1c, Roundtable 9.1c, NuSphere Pro Advantage 2.3.1 @ MS Windows
2000 5.00.2195 SP 2
Progress 9.1b @ SCO UnixWare 7.1.1

-- 
PHP General 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]




[PHP] Max int value of char field? How to find...

2001-10-22 Thread Kraa de Simon

Hello all,

How can I find the highest integer value in a result set like:

1
10
11
2
3
a
ab
abc

I'm looking for the value 11.

The statement 'select max(field) from table' gives me 'abc' so this won't
do.

Any ideas for a SQL statement that will do the trick?

I'm using PHP / MySQL.

Thanks!

Simon.

-- 
PHP General 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] mail() ERROR - WHY, WHY, WHY

2001-09-10 Thread Kraa de Simon

What does phpinfo() think of it?

? phpinfo() ?

Search for sendmail_from, sendmail_path, SMTP under Configuration / PHP core
and see if the values are correct.

Simon.

 -Original Message-
 From: Badger [mailto:[EMAIL PROTECTED]]
 Sent: maandag 10 september 2001 9:24
 To: [EMAIL PROTECTED]
 Subject: [PHP] mail() ERROR - WHY, WHY, WHY
 
 
 Hello ,
 
 
 I drowing here and need a life-ring!  I have a site relying heavily on
 e-mail registration, forums, etc. and mail() is broken in my php
 install.  I've been using an smtp server other than sendmail, but
 based on recommendations I have removed that smtp server, removed php,
 installed sendmail, reinstalled php, and php still complains that
 Warning: mail() is not supported in this PHP build and sendmail is
 clearly in my /var/lib/php.ini sendmail_path and the location is
 correct.  I can send mail from the command line, but not via php's
 mail()
 
 Need Heelp! real bad.
 
 (beg, beg)
 -- 
 Best regards,
  Badger  mailto:[EMAIL PROTECTED]
 
 
 -- 
 PHP General 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]
 

-- 
PHP General 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] How to implement e-mail facility?

2001-09-06 Thread Kraa de Simon

Edit the [mail function] section in php.ini:

[mail function]
; For Win32 only.
SMTP = localhost

; For Win32 only.
sendmail_from = [EMAIL PROTECTED]

; For Unix only.  You may supply arguments as well (default: 'sendmail -t
-i').
;sendmail_path =

HTH,

Simon.

 -Original Message-
 From: Balaji Ankem [mailto:[EMAIL PROTECTED]]
 Sent: donderdag 6 september 2001 23:00
 To: [EMAIL PROTECTED]
 Cc: Renze Munnik
 Subject: [PHP] How to implement e-mail facility?
 
 
 
 Hi friend,
 I want to mail a user if he forget password .
 How to implement that.
 What are all the requirements.
 
 please see the following code.
 
 
 
 ?php
 
 $user_name=Balaji Ankem;
 $user_mail=[EMAIL PROTECTED];
 
 mail($user_mail,Thanks for visiting,Dear $user_name,\n We 
 appreciate
 your visit.);
 
 ?
 
 
 Thanks and regards
 -Balaji Ankem
 
 

-- 
PHP General 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]




[PHP] iODBC support (--with-iodbc[=DIR])

2001-09-04 Thread Kraa de Simon

Hi,

I'd like to configure the iODBC support (--with-iodbc[=DIR])

On http://www.iodbc.org I can choose between 'iODBC Driver Manager' and
'OpenLink iODBC SDK binaries'.

When I choose 'iODBC Driver Manager' I see the following options:

- iODBC Driver Manager  Administrator SOURCE Release V3.0.5
- iODBC RPM Packaging Source Files
- iODBC Driver Manager Runtime Package (For Linux glibc21)
- iODBC RPM Developers Kit (Linux glibc21)
- iODBC Administrator (Linux glibc21)

And when I choose 'OpenLink iODBC SDK binaries':

- Linux libc5 (Intel)
- Linux glibc2 (Intel)
- Linux glibc2.1.1 (Intel) 

Can anyone please give me a hint what I need to download?

I'm running on Red Hat Linux 7.1 / PHP 4.0.5.

[/root] uname -a
Linux nt-cpu04 2.4.2-2 #1 Sun Apr 8 19:37:14 EDT 2001 i586 unknown
[/root] rpm -q --all | grep glib
glibc-common-2.2.2-10
glibc-2.2.2-10
glib-1.2.9-1
glib-devel-1.2.9-1
glibc-devel-2.2.2-10

Thanks!!!

Simon.

-- 
PHP General 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] NuSphere.. what is it???

2001-07-30 Thread Kraa de Simon

NuSphere added a table type called gemini.

From nusphere.com:

Gemini tables provide row-level locking, robust transaction support, and
reliable crash recovery.

It's not included in the free download.

I guess you also pay the easy install (*) and for e-mail/phone support.

(*) It takes a few minutes to install and configure MySQL, PHP, Apache,
Perl and some other stuff.

Simon.

 -Original Message-
 From: B. van Ouwerkerk [mailto:[EMAIL PROTECTED]]
 Sent: maandag 30 juli 2001 8:49
 To: [EMAIL PROTECTED]
 Subject: Re: [PHP] NuSphere.. what is it???
 
 
 snip
 
 What's the deal with that NuShere stuff... I visited their 
 website and 
 download a Free version (40MB)...
 snip
 
 what are we paying for here?
 snip
 
 I don't know.. Perhaps you pay for the tools.. or because of 
 the fact they 
 seem to preconfigure the stuff.. I didn't check their website.
 
 Must be quite some additions they made and tools they added 
 (or they didn't 
 bother to zip/gzip/whatever).. I downloaded MySQL, PHP and 
 Apache (all 
 latest releases).. that was about 17MB (manuals included)..
 
 You can download everything for free from www.mysql.com www.php.net 
 www.apache.org and a step to step guide to install everything 
 can be found 
 at www.devshed.com (amongst others)..
 
 So no reason to pay whatever amount to NuSphere.. If you need a 
 supportcontract for MySQL you could get one from the creators 
 .. found at 
 www.mysql.com
 Don't go to mysql.org since that's NuSphere trying to impersonate the 
 creators of MySQL..
 For MySQL www.mysql.com is the place to be.. all sorts of 
 tools can be 
 found there too best of all: it's FREE.
 
 Bye,
 
 
 B.
 
 
 -- 
 PHP General 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]
 

-- 
PHP General 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] NuSphere.. what is it???

2001-07-30 Thread Kraa de Simon

I agree on most parts, but is there transaction support in MySQL?

So if I try to do 2 updates and the application crashes in the middle, the
1st update is rolled back?

S.

 -Original Message-
 From: B. van Ouwerkerk [mailto:[EMAIL PROTECTED]]
 Sent: maandag 30 juli 2001 12:13
 To: [EMAIL PROTECTED]
 Subject: RE: [PHP] NuSphere.. what is it???
 
 
 
 NuSphere added a table type called gemini.
 
  From nusphere.com:
 
 Gemini tables provide row-level locking, robust transaction 
 support, and
 reliable crash recovery.
 
 Transactions.. you don't need Gemini to have transactions.. 
 INNOBASE (might 
 be it's called INNODB.. think theres an issue with INNOBASE as name).
 According to the manual theres an MySQL way to repair your 
 database.. And 
 MySQL AB is going to create a safe replication scema.. 
 according to the 
 manual.txt found in 3.23.36 .. that is..
 
 Since Gemini is not included in the free download I wonder 
 why that is 
 about 23MB larger than the seperate parts you can download from other 
 websites.. Sure.. a few scripts.. but that shouldn't take much space..
 
 I guess you also pay the easy install (*) and for 
 e-mail/phone support.
 
 lists @php.net and @mysql.com are FREE.. Phone support is (in my 
 experience) only good for simple problems.. but.. perhaps 
 their support is 
 much better than that..
 
 (*) It takes a few minutes to install and configure 
 MySQL, PHP, Apache,
 Perl and some other stuff.
 
 Uhm, it doesn't take that long to install from source using the 
 instructions found on www.devshed.com .. but that highly 
 depends on the 
 hardware you're using.
 
 Bye,
 
 
 
 B.
 
 
 -- 
 PHP General 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]
 

-- 
PHP General 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] Getting mail() to work in PHP for Windows

2001-07-25 Thread Kraa de Simon

In your php.ini file enter the IP of the SMTP server you want to use.

Something like:

[mail function]
SMTP = 255.255.255.255
sendmail_from = [EMAIL PROTECTED]

Search the web for a SMTP server for win32.

HTH,

Simon.

 -Original Message-
 From: Boget, Chris [mailto:[EMAIL PROTECTED]]
 Sent: woensdag 25 juli 2001 16:14
 To: [EMAIL PROTECTED]
 Subject: [PHP] Getting mail() to work in PHP for Windows
 
 
 I couldn't find anything in the docs about this...
 What do you need to have installed to be able to
 use the mail() function (and have mail get sent
 out) in PHP for Windows?
 If you could point me to the proper place in the
 documentation so I can read up on it, I'd be ever
 so grateful!
 
 Chris
 

-- 
PHP General 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]




[PHP] Using Bcc and Cc in mail() on Win32 don't work!

2001-07-18 Thread Kraa de Simon

Hi,

Does anyone know if there is a Windows distribution with a sendmail.c that
actually works when using Bcc and/or Cc headers?

TIA!

Met vriendelijke groet / With kind regards,

ICL Nederland B.V.  Simon de Kraa
e-Applications / Logistic Systems   Systems Architect
Het Kwadrant 1  Tel. +31 346 598865
Postbus 4000Fax  +31 346 562703
3600 KA  MAARSSEN
The Netherlands mailto:[EMAIL PROTECTED]

---

Microsoft Windows 2000 5.00.2195 SP 2, Progress 9.1b, Roundtable 9.1c
SCO UnixWare 7.1.1, Progress 9.1b

-- 
PHP General 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]




[PHP] Get highest value of key most efficiently

2001-07-02 Thread Kraa de Simon

Hi,

SQL newbie...

What is the most efficient way to get the highest value of a key value using
the odbc_* functions/SQL syntax?

E.g. if I have a table with key values 1,2,3...1567 I need the higest value:
1567 so I can create a new record and assign key value 1568.

I don't want to read the whole table...

Met vriendelijke groet / With kind regards,

ICL Nederland B.V.  Simon de Kraa
e-Applications / Logistic Systems   Systems Architect
Het Kwadrant 1  Tel. +31 346 598865
Postbus 4000Fax  +31 346 562703
3600 KA  MAARSSEN
The Netherlands mailto:[EMAIL PROTECTED]

---

Microsoft Windows 2000 5.00.2195 SP 2, Progress 9.1b, Roundtable 9.1c
SCO UnixWare 7.1.1, Progress 9.1b

-- 
PHP General 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] How to catch the output of http:// - text file?

2001-05-03 Thread Kraa de Simon

Thanks,

When I try:


?
$lines = join('', file(http://www.ansilion.com;));
echo $lines;
?


I get the following error:


Warning: file(http://www.ansilion.com;) - No error in c:\program
files\nusphere\apache\htdocs\test.php on line 2

Warning: Bad arguments to join() in c:\program
files\nusphere\apache\htdocs\test.php on line 2


Huh!?!?!

Simon.

 -Original Message-
 From: elias [mailto:[EMAIL PROTECTED]]
 Sent: donderdag 3 mei 2001 1:29
 To: [EMAIL PROTECTED]
 Subject: Re: [PHP] How to catch the output of http:// - text file?
 
 
 Never tried what i'll write you, but it should work though!
 
 for ($i=0;$i2000;$i++)
 {
$lines = join('', file(http://www.mysite.com/generator.php?id=$i));
   // save $lines to a file.
 }
 
 -elias
 http://eassoft.cjb.net
 
 Kraa de Simon [EMAIL PROTECTED] wrote in message
 C1EBEEBBB842D411B412949A1F5875867A@wwmessd135">news:C1EBEEBBB842D411B412949A1F5875867A@wwmessd135...
  Hi,
 
  PHP newbie.
 
  Can anyone help me with the following?
 
  Pseudo code:
 
  for(i=1;i2000;i++)
  {
  catch the output of
  http://www.mysite.com/kb.html?kbid= ? echo i ?
  and put the html code in a text file called
  /www/kb/kbid ? echo i ? .html
  }
 
  So the end result is 2000 html files on disk extacted 
 from the http://
  address...
 
  Thanks...
 
  Met vriendelijke groet / With kind regards,
 
  Simon de Kraa
  ICL Logistic Systems
  mailto:[EMAIL PROTECTED]
 
  ---
 
  Microsoft Windows 2000 Professional SP 1, Progress 9.1b, 
 Roundtable 9.1b
  SCO UnixWare 7.1.1, Progress 9.1a11
 
  --
  PHP General 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]
 
 
 
 
 -- 
 PHP General 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]
 

-- 
PHP General 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] How to catch the output of http:// - text file?

2001-05-03 Thread Kraa de Simon

I'm on Windows 2000, Apache 1.3.12 / PHP 4.0.4pl1 and MySQL 3.23.32.

 -Original Message-
 From: Kraa de Simon [mailto:[EMAIL PROTECTED]]
 Sent: donderdag 3 mei 2001 10:20
 To: 'elias'; [EMAIL PROTECTED]
 Subject: RE: [PHP] How to catch the output of http:// - text file?
 
 
 Thanks,
 
 When I try:
 
 
 ?
   $lines = join('', file(http://www.ansilion.com;));
   echo $lines;
 ?
 
 
 I get the following error:
 
 
 Warning: file(http://www.ansilion.com;) - No error in c:\program
 files\nusphere\apache\htdocs\test.php on line 2
 
 Warning: Bad arguments to join() in c:\program
 files\nusphere\apache\htdocs\test.php on line 2
 
 
 Huh!?!?!
 
 Simon.
 
  -Original Message-
  From: elias [mailto:[EMAIL PROTECTED]]
  Sent: donderdag 3 mei 2001 1:29
  To: [EMAIL PROTECTED]
  Subject: Re: [PHP] How to catch the output of http:// - text file?
  
  
  Never tried what i'll write you, but it should work though!
  
  for ($i=0;$i2000;$i++)
  {
 $lines = join('', 
 file(http://www.mysite.com/generator.php?id=$i));
// save $lines to a file.
  }
  
  -elias
  http://eassoft.cjb.net
  
  Kraa de Simon [EMAIL PROTECTED] wrote in message
  C1EBEEBBB842D411B412949A1F5875867A@wwmessd135">news:C1EBEEBBB842D411B412949A1F5875867A@wwmessd135...
   Hi,
  
   PHP newbie.
  
   Can anyone help me with the following?
  
   Pseudo code:
  
   for(i=1;i2000;i++)
   {
   catch the output of
   http://www.mysite.com/kb.html?kbid= ? echo i ?
   and put the html code in a text file called
   /www/kb/kbid ? echo i ? .html
   }
  
   So the end result is 2000 html files on disk extacted 
  from the http://
   address...
  
   Thanks...
  
   Met vriendelijke groet / With kind regards,
  
   Simon de Kraa
   ICL Logistic Systems
   mailto:[EMAIL PROTECTED]
  
   ---
  
   Microsoft Windows 2000 Professional SP 1, Progress 9.1b, 
  Roundtable 9.1b
   SCO UnixWare 7.1.1, Progress 9.1a11
  
   --
   PHP General 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]
  
  
  
  
  -- 
  PHP General 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]
  
 
 -- 
 PHP General 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]
 

-- 
PHP General 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]




[PHP] Maximum execution time of 30 seconds exceeded...

2001-05-03 Thread Kraa de Simon

Hi,

Any ideas how to get by the following error?

Fatal error: Maximum execution time of 30 seconds exceeded in c:\program
files\nusphere\apache\htdocs\test.php on line 8

?
for($i=1;$i=9;$i++)
{
$lines = join(,
file('http://www.progress.com/services/support/cgi-bin/techweb-kbase.cgi/web
kb.html?TAB=dspkbid=' . $i));

$fp = fopen ($DOCUMENT_ROOT . / . $i . .html, w);
fwrite($fp, $lines, strlen($lines));
fclose($fp);
}
?

Met vriendelijke groet / With kind regards,

Simon de Kraa
ICL Logistic Systems
mailto:[EMAIL PROTECTED]

---

Microsoft Windows 2000 Professional SP 1, Progress 9.1b, Roundtable 9.1b
SCO UnixWare 7.1.1, Progress 9.1a11

-- 
PHP General 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]