php-windows Digest 11 Jul 2001 19:41:17 -0000 Issue 647 Topics (messages 8239 through 8263): Re: How to use imagettftext() on NT running Apache, php 4.0.6 8239 by: Ruslan Ohitin Re: How to remove a value from a array 8240 by: Ruslan Ohitin Re: Access Violation error. PLEASE HELP 8241 by: Johan 8244 by: elias Re: Error on viewing test.php 8242 by: Johan Re: PHP and IIS and Win2k and Access Violation problems... 8243 by: Phil Driscoll Re: IMAP c-client [solved] 8245 by: Gormley, David How use SSL in php ? 8246 by: Mad Nas Security in CGI Programming and HTML Parameter Passing 8247 by: Mad Nas Security in HTML Parameters Pass to CGI Programming 8248 by: Mad Nas php web host 8249 by: Fritz Mesedilla 8250 by: tony.wordwrap.co.uk 8260 by: Mad Nas large number of data in MSSQL 8251 by: gary 8252 by: Dario Carnelutti Upgrading 8253 by: Christopher King 8259 by: Asendorf, John IIS5 and Windows 2000 8254 by: Warwick Chapman (Budgee) 8255 by: Phil Driscoll 8256 by: Warwick Chapman (Budgee) 8257 by: Phil Driscoll 8258 by: postmaster.dostuff.net Passing Variables from One Function to Another 8261 by: Flint Doungchak 8262 by: Phillip Bow How to get a php_gd.dll with TTF support 8263 by: Steen RAbol Administrivia: To subscribe to the digest, e-mail: [EMAIL PROTECTED] To unsubscribe from the digest, e-mail: [EMAIL PROTECTED] To post to the list, e-mail: [EMAIL PROTECTED] ----------------------------------------------------------------------
Hi Steen, >Warning: Could not find/open font in d:\www\webreklamer\thepic.php on >line NNN Find in the page produced by phpinfo() line FreeType Linkage in GD section. It must be "With TTF ..." (In PHP4.0.4pl1 from php.net). PHP 4.0.6 (from php.net) have "with freetype". This don't work with ttf on my computer (php as apache module on WinNT 4 Srv) -- Best regards, Ruslan Ohitin mailto:[EMAIL PROTECTED]
Hi Steen, See array_splice() in manual SR> Hi SR> How can I remove a vale from a array() SR> eg; SR> $a = array("1","2","3"); SR> if I then unset($a[1]) the value is NULL, or the offset is empty, and you get a error if yoy try to access that element. SR> What I want/need is a function whic can remove a valy/key from a array SR> Does such a function exists ? SR> Thanks in advance SR> Steen -- Best regards, Ruslan Ohitin mailto:[EMAIL PROTECTED]
Hi, Try an upgrade to 4.0.6, it helped me with alot of problems... Is it just one script running on the server? Coul'd it be that there's one function/script that's not used more than once every 2-3 hours or so, and that one has some bad functions/errors?? /Johan > I have the following setup. > > PHP 4.04 running on windows 2000 using SQL Server 7.0 > > The script runs fine for sometime, then I get the following errors > PHP has encountered Access Violation at 013A2466. So I have to reboot > everytime. This happens > almost every 2 to 3 hours or so. I have to use PHP on windows 2000. > > Please help. > > Thank you > PHPFAN > >
I had this problem...same one exactly! Install PHP as CGI instead of ISAPI. If you don't know how, go to php.net and search for PHP installation on IIS/PWS "Phpfan" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > I have the following setup. > > PHP 4.04 running on windows 2000 using SQL Server 7.0 > > The script runs fine for sometime, then I get the following errors > PHP has encountered Access Violation at 013A2466. So I have to reboot > everytime. This happens > almost every 2 to 3 hours or so. I have to use PHP on windows 2000. > > Please help. > > Thank you > PHPFAN > >
Hi Wayne, Did you copy the files to C:\WINNT? /Johan > Hi all, > > Please help I'm a newbie to PHP stuff. > > When I try and view test.php, it keeps saying that it carn't find the > dynamic librarys. In PHP.INI it has all the default values and file > locations but it just won't work. I'm running windows 2000 Professional with > their server and PHP 4.0.4. > > Wayne >
On Wednesday 11 July 2001 08:12, elias wrote: > I don't really know how i can setup CGI instead of ISAPI under NT systems.. > I only got the installer from php.net and ran it and chose in the installer > IIS. > The installer didn't ask me about whether I want to install as CGI or > ISAPI. But I feel it's installed as ISAPI... > > So plz tell me how I can install it as ISAPI. > > Thanks. If you used the installer then you have the CGI version which in my experience is rock solid stable. Do you have any extension dlls enabled in your php.ini If the error repeatable - does it always break with the same code - if so, what's the code doing? Cheers -- Phil Driscoll
hi, and thanks, i enabled the extension for php_imap.dll and set the path correctly. i didn't need to recompile anything just enable extension and path and use the dll that came with php4. thanks, dave. -----Original Message----- From: Derek Comartin [mailto:[EMAIL PROTECTED]] Sent: Tuesday, July 10, 2001 4:40 AM To: [EMAIL PROTECTED] Subject: IMAP c-client David, Under Linux, all you have to do is download and compile the latest c-client library. You can grab it at ftp://ftp.cac.washington.edu/imap/ Once compiled, copy c-client/c-client.a to /usr/local/lib/libc-client.a or some other directory on your link path and copy c-client/rfc822.h, mail.h and linkage.h to /usr/local/include or some other directory in your include path. Then you will need to re-configure and compile php. To use imap support you will need to configure with the --option command. Example: ./configure --with-imap make make install Once thats done you should now be able to use all of the imap_* functions. Under windows, open up your php.ini and under the "Dynamic Extensions" section, un-comment: ;extension=php_imap.dll So it will look like: extension=php_imap.dll Note: make sure you extension_dir path points to the correct folder (this option is in your php.ini under Paths and Directories) And that should do it... Hope this helps :) Derek This e-mail and any attachments accompanying this transmission may contain information which is or may be confidential and / or legally privileged. The information is intended for the use of the individuals or entities named on this transmission. If you are not the intended recipient you are hereby notified that any disclosure, copying, distribution or the taking of any action in reliance on the contents of this information is strictly prohibited, and that this e-mail and any attachments should be returned to the sender immediately. If you have received this e-mail in error please notify the sender immediately and permanently delete the original and any copy or print-out thereof. Although this e-mail and any attachments are believed to be free of any virus, or any other defect which might affect any computer or IT system into which they are received and opened, it is the responsibility of the recipient to ensure that they are virus free and no responsibility is accepted by RCI Europe for any loss or damage arising in any way from receipt or use thereof. RCI Europe. Registered office: Kettering Parkway, Kettering, Northants NN15 6EY, England. Registered in England and Wales: Registered No: 1148410. VAT No: 217 7047 68
Hello 1) How use SSL in php ? 2) How encrypt parameters between <FORM> and CGI program? 3) How can share variable ( for example UserID and Password ) between CGI Programs ? 4) How can used variable ( for example UserID and Password ) between Web Pages ? Thanks for answer Mad Nas
Hello 1) How use SSL in php ? 2) How encrypt parameters between <FORM> and CGI program? 3) How can share variable ( for example UserID and Password ) between CGI Programs ? 4) How can used variable ( for example UserID and Password ) between Web Pages ? Thanks for answer Mad Nas
Hello 1) How use SSL in php ? 2) How encrypt parameters between <FORM> and CGI program? 3) How can share variable ( for example UserID and Password ) between CGI Programs ? 4) How can used variable ( for example UserID and Password ) between Web Pages ? Thanks for answer Mad Nas
hi! can you please suggest any free php web host? thanks. Fritz Mesedilla Systems Administrator Summit Interactive, Inc. FHM | Seventeen | Candy | Cosmopolitan | Preview | Good Housekeeping femalenetwork.com | candymag.com | fhm.com.ph | cosmo.com.ph Palm Pilot Software: TVSked - Download from the link below ---------------------------------------------------------------------------- http://mesedilla.tripod.com +Basta Ikaw Lord > -----Original Message----- > From: Mad Nas [mailto:[EMAIL PROTECTED]] > Sent: Wednesday, July 11, 2001 4:56 PM > To: [EMAIL PROTECTED] > Subject: [PHP-WIN] How use SSL in php ? > > > Hello > 1) How use SSL in php ? > 2) How encrypt parameters between <FORM> and CGI program? > 3) How can share variable ( for example UserID and Password ) between CGI > Programs ? > 4) How can used variable ( for example UserID and Password ) between Web > Pages ? > > Thanks for answer > > Mad Nas > > > > > -- > 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] >
www.f2s.com -----Original Message----- From: Fritz Mesedilla [mailto:[EMAIL PROTECTED]] Sent: 11 July 2001 10:11 To: [EMAIL PROTECTED] Subject: [PHP-WIN] php web host hi! can you please suggest any free php web host? thanks. Fritz Mesedilla Systems Administrator Summit Interactive, Inc. FHM | Seventeen | Candy | Cosmopolitan | Preview | Good Housekeeping femalenetwork.com | candymag.com | fhm.com.ph | cosmo.com.ph Palm Pilot Software: TVSked - Download from the link below ---------------------------------------------------------------------------- http://mesedilla.tripod.com +Basta Ikaw Lord > -----Original Message----- > From: Mad Nas [mailto:[EMAIL PROTECTED]] > Sent: Wednesday, July 11, 2001 4:56 PM > To: [EMAIL PROTECTED] > Subject: [PHP-WIN] How use SSL in php ? > > > Hello > 1) How use SSL in php ? > 2) How encrypt parameters between <FORM> and CGI program? > 3) How can share variable ( for example UserID and Password ) between CGI > Programs ? > 4) How can used variable ( for example UserID and Password ) between Web > Pages ? > > Thanks for answer > > Mad Nas > > > > > -- > 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] > -- 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] ================================ WordWrap Web Development Limited t +44 (0) 131 555 3535 f +44 (0) 870 135 3656 m +44 (0) 7768 626588 ================================
http://cgi-bin.spaceports.com "Fritz Mesedilla" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > hi! > > can you please suggest any free php web host? > > thanks. > > Fritz Mesedilla > Systems Administrator > > Summit Interactive, Inc. > FHM | Seventeen | Candy | Cosmopolitan | Preview | Good Housekeeping > femalenetwork.com | candymag.com | fhm.com.ph | cosmo.com.ph > > Palm Pilot Software: TVSked - Download from the link below > -------------------------------------------------------------------------- -- > http://mesedilla.tripod.com +Basta Ikaw Lord > > > -----Original Message----- > > From: Mad Nas [mailto:[EMAIL PROTECTED]] > > Sent: Wednesday, July 11, 2001 4:56 PM > > To: [EMAIL PROTECTED] > > Subject: [PHP-WIN] How use SSL in php ? > > > > > > Hello > > 1) How use SSL in php ? > > 2) How encrypt parameters between <FORM> and CGI program? > > 3) How can share variable ( for example UserID and Password ) between CGI > > Programs ? > > 4) How can used variable ( for example UserID and Password ) between Web > > Pages ? > > > > Thanks for answer > > > > Mad Nas > > > > > > > > > > -- > > 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] > > >
Hi. does anybody know how to update data which is over 255 character in MSSQL? Thanks!
The data field must be a BLOB field (TEXT, IMAGE). You can use ADO for instance and the appendchunk method will allow you to this update. If you any other question, contact me, then i'll send you a example. Dario Carnelutti Oficina de Organización e Informática CONICIT ----- Original Message ----- From: "gary" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Wednesday, July 11, 2001 6:00 AM Subject: [PHP-WIN] large number of data in MSSQL > Hi. does anybody know how to update data which is over 255 character in > MSSQL? Thanks! > > > -- > 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] >
Should I upgrade version 4.01 using apache with mysql on NT 4 to the latest version. If so, what is the best way to do it. Thanks -- Christopher King [EMAIL PROTECTED]
Is everything running for you the way that you want it to run? If it is, leave it alone. If it isn't, upgrade to 4.0.6 and be careful and follow the instructions. --------------------- 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 iucundum est > -----Original Message----- > From: Christopher King [mailto:[EMAIL PROTECTED]] > Sent: Wednesday, July 11, 2001 8:45 AM > To: [EMAIL PROTECTED] > Subject: [PHP-WIN] Upgrading > > > > Should I upgrade version 4.01 using apache with mysql on NT 4 > to the latest > version. > > If so, what is the best way to do it. > > Thanks > > -- > Christopher King > [EMAIL PROTECTED] > > > -- > 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] >
Howdy I have been running PHP and IIS5 on Windows 2000 for about a year now, and have never experienced this problem. After re-installing Windows 2000 server, I downloaded 4.06 and installed it. Used the wizard. It put my php.ini file in C:\Documents and Settings\Administrator - so I copied it to C:\WINNT - made no difference. Registry entry maybe? So PHP is running without the INI file and my sessions have gone bananas. :) Any help would be appreciated, as always. :) Cheers Warwick Chapman (Glenwood 1999) http://www.boatrace.co.za Assistant IT Manager Glenwood High School, Durban, South Africa 031 2055241 083 7797094 http://www.glenwoodhighschool.co.za
On Wednesday 11 July 2001 13:57, Warwick Chapman (Budgee) wrote: > Howdy > > I have been running PHP and IIS5 on Windows 2000 for about a > year now, and have never experienced this problem. > > After re-installing Windows 2000 server, I downloaded 4.06 and > installed it. Used the wizard. It put my php.ini file in C:\Documents > and Settings\Administrator - so I copied it to C:\WINNT - made no > difference. Registry entry maybe? I can assure you that the only way that the Installation wizard would put php.ini into C:\Documents would be if for some strage reason you had configured your machine so that systemroot was set to c:\Documents. I guess that this is most unlikely, but not impossible. In that case, I suspect php would also look in that directory for the file. Cgeers -- Phil Driscoll
Howdy I think it has something with Windows 2000 being in Terminal Server mode. Dunnow? Cheers Budgee On 11 Jul 2001, at 14:12, Phil Driscoll wrote: > On Wednesday 11 July 2001 13:57, Warwick Chapman (Budgee) wrote: > > Howdy > > > > I have been running PHP and IIS5 on Windows 2000 for about a > > year now, and have never experienced this problem. > > > > After re-installing Windows 2000 server, I downloaded 4.06 and > > installed it. Used the wizard. It put my php.ini file in C:\Documents > > and Settings\Administrator - so I copied it to C:\WINNT - made no > > difference. Registry entry maybe? > I can assure you that the only way that the Installation wizard would put > php.ini into C:\Documents would be if for some strage reason you had > configured your machine so that systemroot was set to c:\Documents. > I guess that this is most unlikely, but not impossible. In that case, I > suspect php would also look in that directory for the file. > > Cgeers > > -- > Phil Driscoll ------- End of forwarded message ------- Warwick Chapman (Glenwood 1999) http://www.boatrace.co.za Assistant IT Manager Glenwood High School, Durban, South Africa 031 2055241 083 7797094 http://www.glenwoodhighschool.co.za
On Wednesday 11 July 2001 14:15, Warwick Chapman (Budgee) wrote: > Howdy > > I think it has something with Windows 2000 being in Terminal > Server mode. > > Dunnow? > That's outside my area of expertise - and will hopefully remain so :) PHP will be looking for the file in the directory returned by the windows api call GetWindowsDirectory(). If you are in a position to knock up a quick C program to print this value our, then at least you'll know where it's looking. Alternatively, you can explicitly set the place where it looks by calling php.exe with the -c <path> switch. Cheers -- Phil Driscoll
Hi, Likewise, I have also had difficulty with sessions going bananas when I upgraded to PHP 4.0.6 on Win98 with PWS. So I just downgraded to PHP 4.0.5 and it still works. Frankly, I'm not going to worry about it and am not actively looking for a solution, but if someone does find one, please share! So my suggestion to you is to download 4.0.5 and see if that works. -- Original Message -- From: "Warwick Chapman (Budgee)" <[EMAIL PROTECTED]> To: p:\[EMAIL PROTECTED] Send: 09:15 AM Subject: Re: [PHP-WIN] IIS5 and Windows 2000 Howdy I think it has something with Windows 2000 being in Terminal Server mode. Dunnow? Cheers Budgee On 11 Jul 2001, at 14:12, Phil Driscoll wrote: > On Wednesday 11 July 2001 13:57, Warwick Chapman (Budgee) wrote: > > Howdy > > > > I have been running PHP and IIS5 on Windows 2000 for about a > > year now, and have never experienced this problem. > > > > After re-installing Windows 2000 server, I downloaded 4.06 and > > installed it. Used the wizard. It put my php.ini file in C:\Documents > > and Settings\Administrator - so I copied it to C:\WINNT - made no > > difference. Registry entry maybe? > I can assure you that the only way that the Installation wizard would put > php.ini into C:\Documents would be if for some strage reason you had > configured your machine so that systemroot was set to c:\Documents. > I guess that this is most unlikely, but not impossible. In that case, I > suspect php would also look in that directory for the file. > > Cgeers > > -- > Phil Driscoll ------- End of forwarded message ------- Warwick Chapman (Glenwood 1999) http://www.boatrace.co.za Assistant IT Manager Glenwood High School, Durban, South Africa 031 2055241 083 7797094 http://www.glenwoodhighschool.co.za -- 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-list-: [EMAIL PROTECTED] ___________________________________ DoStuff Webmail, http://www.dostuff.net
Hey All, I'm feeling pretty dumb right now. Is there a way to pass a variable from one function to another. So for instance, if I have one function that returns x such as function boo() { $foo = 3; return $foo; } And then I have another function and I want to use $foo. function ahh() { $foo; $fum = $foo + $fi; } I'm missing something but any help would be nice. Thanks. -Flint
You'd need the second function to accept and argument. That way you can do: function boo() { $foo = 3; return $foo; } function ahh($foo) { $fum = $foo + $fi; } $test = boo(); ahh($test); Or you could declare $foo as a global variable, but I tend not to do it that way. -- phill > Hey All, > > I'm feeling pretty dumb right now. Is there a way to pass a variable from > one function to another. So for instance, if I have one function that > returns x such as > > function boo() { > > $foo = 3; > return $foo; > > } > > And then I have another function and I want to use $foo. > > function ahh() { > > $foo; > $fum = $foo + $fi; > > } > > I'm missing something but any help would be nice. Thanks. > > -Flint >
Hi For some reasson, the php_gd.dll in PHP v 4.0.6, is with freetype, which have the effect that imagettfbbox() don't work on NT/Apache, where can I find a php_gd.dll with TTF support ? Even better, how can I find information on compiling PHP on win32 ? Thanks in advance Steen