[PHP-WIN] Re: Changing INI information inline

2003-12-03 Thread J.Veenhuijsen
ini_set("sendmail_from","[EMAIL PROTECTED]"); Jochem Ron Herhuth wrote: I remember there is a way to change php.ini information temporarily on a page...specifically I want to change the sent from email address on a page that will email a confirmation message...I forgot how to do it though. Does a

[PHP-WIN] Re: How to find out if PC is online

2003-12-01 Thread J.Veenhuijsen
Try : gethostbyaddr (PHP 3, PHP 4 ) Get the Internet host name corresponding to a given IP address string gethostbyaddr (string ip_address) Returns the host name of the Internet host specified by ip_address. If an error occurs, eturns ip_address. See also gethostbyname(). Jochem Jan Hrebenar wr

[PHP-WIN] Re: timeout question

2003-10-06 Thread J.Veenhuijsen
see in php.ini max_execution_time = 30 ; Maximum execution time of each script, in seconds or set_time_limit (PHP 3, PHP 4 ) limit the maximum execution time void set_time_limit (int seconds) Set the number of seconds a script is allowed to run. If this is reached, the script returns a

[PHP-WIN] Re: clearing cache ......

2003-09-15 Thread J.Veenhuijsen
header ("Pragma : no-cach"); or header ("Cache-Control : no-cache, must-revalidate"); ? Jochem Toby z wrote: hay guyz this is a rather silly thing but its starting to drive me now i have a page with a million switches checkin and including files for each case . the files on their turn ru

[PHP-WIN] Re: How to preserve value , this question so difficult

2003-08-14 Thread J.Veenhuijsen
Try this for page 2: In your version session_start() should be sent before any other output is sent. Jochem Thomas Edward Lawrence wrote: this is page1.php Next page this is page2.php when I come back to page1.php from page2.php , this is result : page1.php ( run at first time)

[PHP-WIN] Re: How to preserve value , this question so difficult

2003-08-14 Thread J.Veenhuijsen
\baitap\session.php:11) in C:\PHP\baitap\session.php on line 12 Notice: Undefined index: value in C:\PHP\baitap\session.php on line 13 1 Next page "J.Veenhuijsen" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] Try this for page 2: In your version sessio

[PHP-WIN] Re: find libsasl.dll

2003-03-27 Thread J.Veenhuijsen
See : http://www.phpbuilder.com/board/showthread.php?threadid=10227168 Here you can download libsasl.dll Jochem Ronen Kfir wrote: From PHP manual: "Note to Win32 Users: In order to enable this module on a Windows environment, you must copy libsasl.dll from the DLL folder of the PHP/Win32 binar

[PHP-WIN] Re: I am try to upload an image to a folder on my web server

2003-03-07 Thread J.Veenhuijsen
move_uploaded_file(); Jochem Stephen K Knight wrote: I am trying to upload an image to my webserver. This is the PHP page that is called from my html page. I am trying to upload the image to my folder called "logos" the direct link would be: C:\Program Files\Apache Group\Apache2\htdocs\logos

[PHP-WIN] Re: php.ini

2003-03-03 Thread J.Veenhuijsen
Try extension_dir = C:\PHP\ Jochem Anthony Ritter wrote: I run the following script: // the page loads o.k. when the semi-colon remains as in: ;extension=php_gd2.dll but if I remove the semicolon as in: extension=php_gd2.dll the page won't load and the server hangs up. ...

[PHP-WIN] Re: < Previous and Next > Buttons

2003-02-17 Thread J.Veenhuijsen
I once used the script below on a dbase database. Jochem
$step=30;

$file_name='dbs/files.DBF';

$ret=dbase_open($file_name,0);

$max=dbase_numrecords($ret);

if (isset($start))
{
$start_record=$start;

[PHP-WIN] Re: [introduction - Import text file]

2003-02-13 Thread J.Veenhuijsen
Try LOAD DATA LOCAL INFILE 'C:\\WINDOWS\\TEMP\\phpC255.TMP' Rg wrote: Let me introduce myself : I write to this list from Corsica (the nearest of the farest french overseas territories), and I am a newbie in Php, for those who have'nt realized yet :) and my error is : I try to do an import

Re: [PHP-WIN] Re: Is there something like findfirst/findnext

2003-02-12 Thread J.Veenhuijsen
_ - Original Message - From: "J.Veenhuijsen" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Wednesday, February 12, 2003 4:55 PM Subject: [PHP-WIN] Re: Is there something like findfirst/findnext I should have read the manual better. J.Veenhuijsen wrote:

[PHP-WIN] Re: Is there something like findfirst/findnext

2003-02-12 Thread J.Veenhuijsen
I should have read the manual better. J.Veenhuijsen wrote: I need to retrieve a list of files (jpg) in a directory. Is there a function like findfirst(*.jpg) like there is in Delphi? Thanks in advance ? Jochem -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit: http

[PHP-WIN] Is there something like findfirst/findnext

2003-02-12 Thread J.Veenhuijsen
I need to retrieve a list of files (jpg) in a directory. Is there a function like findfirst(*.jpg) like there is in Delphi? Thanks in advance ? Jochem -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP-WIN] Re: reading lines from a file

2003-02-11 Thread J.Veenhuijsen
Is this the same problem we discussed a week ago?? Jochem George Pitcher wrote: Hi, I have a huge file that I want to get into a db format. There are over 5000 records and I need to create fieldnames on the fly. Each record comprises a number of lines (fields) containing 2 elements (fieldname

[PHP-WIN] Re: copy() for file upload

2003-02-05 Thread J.Veenhuijsen
Try move_uploaded_file and check rights for destination directory. Jochem [EMAIL PROTECTED] wrote: Hi guys, I realize that this might be rather a question for the general list, but i will try it here anyway (still have to subscribe to general). I am using the copy() method to upload pictures to

[PHP-WIN] Re: Counter problems!

2003-01-30 Thread J.Veenhuijsen
This is working on my test system. "; ?> Jochem Cybot wrote: CORRECT use $_SESSION ! counter.php: "; ?> index.php "; include("counter.php"); ?> Radovan Radic wrote: Hi I want to add simple counter on my index.php page. counter.php: "; ?> index.php "; include("counter.php"); ?> This

Re: [PHP-WIN] Re: Counter problems!

2003-01-29 Thread J.Veenhuijsen
nd it. CASE 3: Dynamically assigned IP# IP# might dynamically be assigned to different user at different times points -Original Message- From: J.Veenhuijsen [mailto:[EMAIL PROTECTED]] Sent: Wednesday, January 29, 2003 2:35 PM To: [EMAIL PROTECTED] Subject: [PHP-WIN] Re: Counter problems!

[PHP-WIN] Re: Counter problems!

2003-01-29 Thread J.Veenhuijsen
I use this on my site. $counter_file="./count.dat"; if (!($fp=fopen($counter_file,"r"))) die ("Cannot open $counter_file."); $counter= (int) fread($fp,20); fclose($fp); if ($REMOTE_ADDR<>"000.000.000.000") { $counter++; $fp=fopen($counter_file,"w"); fwrite($fp,$counter); fclose($fp); } T

[PHP-WIN] Re: Counter problems!

2003-01-29 Thread J.Veenhuijsen
You could check the IP adress of the visitor. If it has not changed the the visitor is the same. Last IP adress in the counter file? Jochem Radovan Radic wrote: Hi I want to add simple counter on my index.php page. counter.php: "; ?> index.php "; include("counter.php"); ?> This should work,

[PHP-WIN] Re: windows installation issues

2003-01-28 Thread J.Veenhuijsen
Configure your webserver manually!! Jochem Jason Thibeault wrote: I'm trying to install php 4.3.0 for Windows on a Win2k box with SP3. Everything installs fine until the end where I get the folowing error: "Due to a missing OCX control on your system, this installer is unable to configure your

Re: [PHP-WIN] Re: parsing tricky text file

2003-01-28 Thread J.Veenhuijsen
book has multiple authors, then there is a USAU field for each, likewise for editors, levels, and quotes. And that is only from the 150 records I've looked at. george -Original Message- From: J.Veenhuijsen [mailto:[EMAIL PROTECTED]] Sent: 28 January 2003 10:56 am To: George Pi

[PHP-WIN] Re: parsing tricky text file

2003-01-28 Thread J.Veenhuijsen
What I would do in this case is writing my own little parser program to spool it in to a MySQL database. I often use Delphi for this. What is the record delimiter? OTOP with nothing behind it means emty field? Execept for the USAU fields it seem all very fieldname/content like. Jochem George P

[PHP-WIN] Re: PHP on IIS4 problem

2003-01-21 Thread J.Veenhuijsen
In my configuration .php and .php4 is mapped to c:\WINNT\System32\php4isapi.dll And this works. Jochem Patrick Chemali wrote: Hello, I am newbie to PHP and have been trying to install PHP on my local W2k IIS4 until I get the chance to setup a Linux box. I used the window binary from php.net wit

[PHP-WIN] Re: Ping, Script ends before it's finished

2003-01-13 Thread J.Veenhuijsen
Sorry I missed : set_time_limit(0); J.Veenhuijsen wrote: Your first problem is likely to be the 30 sec runtime a script is allowed to take . See php.ini for this. Jochem Torben Dehn wrote: Hello ! I am tryin to make a script that will ping a whole subnet and it looks like it works

[PHP-WIN] Re: Ping, Script ends before it's finished

2003-01-13 Thread J.Veenhuijsen
Your first problem is likely to be the 30 sec runtime a script is allowed to take . See php.ini for this. Jochem Torben Dehn wrote: Hello ! I am tryin to make a script that will ping a whole subnet and it looks like it works, but it does not... It will ping around 60 to 70 computers and then it

[PHP-WIN] Re: unexpected +ACQ-

2002-12-18 Thread J.Veenhuijsen
Check missing ) or +AH0- Nino V wrote: > Hi all, > please help me to understand why I get this error: > > Parse error: parse error, unexpected +ACQ- in install.php on line 340 >>> > > Where line 340 is a EOF. > > Thanks a lot. > > Ciao, > Nino > > = > ht

[PHP-WIN] Re: PHP sessions in Windows

2002-12-05 Thread J.Veenhuijsen
Check if the directory where PHP stores session info exists in PHP.ini and on the harddisk ( C:\temp ??) Jochem Juan Rosero wrote: Hello, I've been trying to run a PHP program called PHPList 1.9.3 available at http://www.phplist.com/files/. The program does not seem to retain it's sessions when

[PHP-WIN] Re: Fast Web server

2002-12-05 Thread J.Veenhuijsen
Try Sambar or Xitami Radovan Radic wrote: Hi Can you tell me your experiences about web servers. I need fast web server which runs on Win2000, compatible with PHP (i mean that php works without problems) and is not IIS Thx Radovan -- PHP Windows Mailing List (http://www.php.net/) To unsub

[PHP-WIN] Re: I cant run an external command

2002-12-03 Thread J.Veenhuijsen
Maybe this is caused by Safe-mode If php is in safe-mode shell_exec won't run Jochem S wrote: Hi, I wrote a form for add user on email server but the line $f =shell_exec( `d:\imail\adduser.exe -u $userid -p $password2`); return alway error -- PHP Windows Mailing List (http://www.php.net/

[PHP-WIN] Re: Stupid Question About IIS and PHP

2002-11-27 Thread J.Veenhuijsen
Diggy Bell wrote: Ok, I've left several handfuls of hair on the floor over this one, but I gotta ask... I apologize in advance for the stupidity. I normally work with Apache, but the client is always rignt! :P. I'm running IIS 5 on Win2K with PHP 4.2.3. I've been able to get one application co