[PHP-WIN] randomize ??
Hi NG. Can anyone tell me how to make a random number from a limiter like "randomize(10);" or somthing like that? It seems that the function "gmp_ramdom()" doesn't work. I get "Fatal error: Call to undefined function: gmp_random()" if I try to use it. Can anyone help please... /Aidal -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP-WIN] randomize ??
"0" being the lower limit, "10" being the upper. You should read into the function srand() at php.net (type "srand" into the search input field - top right). At 09:17 AM 1/16/2003 +0100, Aidal wrote: >Hi NG. > >Can anyone tell me how to make a random number from a limiter like >"randomize(10);" or somthing like that? >It seems that the function "gmp_ramdom()" doesn't work. >I get "Fatal error: Call to undefined function: gmp_random()" if I try to >use it. > >Can anyone help please... > >/Aidal > > > >-- >PHP Windows Mailing List (http://www.php.net/) >To unsubscribe, visit: http://www.php.net/unsub.php -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP-WIN] 4.3.0 and apache 1.3.27 on win98 -- LDAP cant load...
have the combo listed: php 4.3.0 and apache 1.3.27 running on a win98 SE. this is my test machine. i uncommmented out the line: extension=php_ldap.dll and as soon as i manually launch apache, i get the error: PHP Warning: Unknown(): Unable to load dynamic library c:\php\extensions\php_ldap.dll' - A device attached to the system is not functioning. in Unknown on line 0 the file is there. i try to load other modules like "php_oci8.dll" and i get the same error. funny thing is that "php_pdf.dll" loads up fine, with no problems. do i have to do anything on apache's side? -- --- Leo G. Divinagracia III [EMAIL PROTECTED] -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP-WIN] ssl:// with fsockopen () on Windows XP
Hello, when I try to open a SSL-connection via ssl:// with fsockopen () on Windows XP and PHP 4.3.0, I get the following error message: "no SSL support in this build..." I tried to add "extension=php_openssl.dll" in my php.ini and copied libeay32.dll into the SYSTEM32-directory, but that doesn't help. Is it possible to use SSL-support in the standard windows binary distribution or do I have to build PHP from the source by myself? Thanks in advance, alex. -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP-WIN] 4.3.0 and apache 1.3.27 on win98 -- LDAP cant load...
>From the PHP Manual regarding the php_ldap.dll extension: 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 binary package to the SYSTEM32 folder of your windows machine. (Ex: C:\WINNT\SYSTEM32 or C:\WINDOWS\SYSTEM32) -Original Message- From: leo g. divinagracia iii [mailto:[EMAIL PROTECTED]] Sent: Thursday, 16 January 2003 8:35 PM Cc: [EMAIL PROTECTED] Subject: [PHP-WIN] 4.3.0 and apache 1.3.27 on win98 -- LDAP cant load... have the combo listed: php 4.3.0 and apache 1.3.27 running on a win98 SE. this is my test machine. i uncommmented out the line: extension=php_ldap.dll and as soon as i manually launch apache, i get the error: PHP Warning: Unknown(): Unable to load dynamic library c:\php\extensions\php_ldap.dll' - A device attached to the system is not functioning. in Unknown on line 0 the file is there. i try to load other modules like "php_oci8.dll" and i get the same error. funny thing is that "php_pdf.dll" loads up fine, with no problems. do i have to do anything on apache's side? -- --- Leo G. Divinagracia III [EMAIL PROTECTED] -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP-WIN] How to use oracle transaction with php
Dear php gurus, Does anyone here know about how to setup an oracle transaction with php. If you have any sample source code, please give me currently i am using : - PHP 4.3 -Apache -Oracle 8.1.7 -Unix server Thanks you very much Thien -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP-WIN] xslt : sablot.dll
Hi, as seen on php bugs 21539 and 21666, the sablot.dll extension shipped with 4.3.0 didn't get the < xsl:sort > at all. I got it to work when I installed Expat-1.95.5, and some "I-don't-know-where-it-comes-from" sablot.dll that weighs 224ko and is dated 19 nov 2002. All other dlls come from latest distro of full sablot package (sablot-0.97, lib-iconv1.8). The sablot.dll from that distro never worked ... Could anyone tell us more about that strange sablot.dll story , and why features apparently went backward with new version of sablotron ?
php-windows Digest 16 Jan 2003 11:32:38 -0000 Issue 1538
php-windows Digest 16 Jan 2003 11:32:38 - Issue 1538 Topics (messages 17896 through 17905): HOWTO Install PHP under Windows .NET Server 17896 by: nuno Re: Looking for something simple 17897 by: toby z Help using Mail() on XP standalone config 17898 by: Allan Hardy randomize ?? 17899 by: Aidal 17900 by: Antaeogo 4.3.0 and apache 1.3.27 on win98 -- LDAP cant load... 17901 by: leo g. divinagracia iii 17903 by: Sean Malloy ssl:// with fsockopen () on Windows XP 17902 by: Alexander Stirmlinger How to use oracle transaction with php 17904 by: Ha Duy Thien xslt : sablot.dll 17905 by: Erwan Pianezza 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] -- --- Begin Message --- FAQ http://www.vbulletin.com/forum/showthread.php?threadid=63223 Thats all folks. {:-)} --- End Message --- --- Begin Message --- hi john im starting to work on a similar thingg well im finalazing the pretty messedup scheema rite now may b we cud workout togather on this one how bout it toby . __ Do You Yahoo!? Everything you'll ever need on one web page from News and Sport to Email and Music Charts http://uk.my.yahoo.com --- End Message --- --- Begin Message --- Hi, need just a bit of help or point in the right direction I have a working php / apache/ mysql set up that I use to develop/test application before hosting it. I've just started using the mail() function and it fails. Failed to connect to mailserver, verify your "SMTP" setting in php.ini in I need to know what to set up for a local XP / Apache (1.3.) configuration? Allan --- End Message --- --- Begin Message --- Hi NG. Can anyone tell me how to make a random number from a limiter like "randomize(10);" or somthing like that? It seems that the function "gmp_ramdom()" doesn't work. I get "Fatal error: Call to undefined function: gmp_random()" if I try to use it. Can anyone help please... /Aidal --- End Message --- --- Begin Message --- "0" being the lower limit, "10" being the upper. You should read into the function srand() at php.net (type "srand" into the search input field - top right). At 09:17 AM 1/16/2003 +0100, Aidal wrote: >Hi NG. > >Can anyone tell me how to make a random number from a limiter like >"randomize(10);" or somthing like that? >It seems that the function "gmp_ramdom()" doesn't work. >I get "Fatal error: Call to undefined function: gmp_random()" if I try to >use it. > >Can anyone help please... > >/Aidal > > > >-- >PHP Windows Mailing List (http://www.php.net/) >To unsubscribe, visit: http://www.php.net/unsub.php --- End Message --- --- Begin Message --- have the combo listed: php 4.3.0 and apache 1.3.27 running on a win98 SE. this is my test machine. i uncommmented out the line: extension=php_ldap.dll and as soon as i manually launch apache, i get the error: PHP Warning: Unknown(): Unable to load dynamic library c:\php\extensions\php_ldap.dll' - A device attached to the system is not functioning. in Unknown on line 0 the file is there. i try to load other modules like "php_oci8.dll" and i get the same error. funny thing is that "php_pdf.dll" loads up fine, with no problems. do i have to do anything on apache's side? -- --- Leo G. Divinagracia III [EMAIL PROTECTED] --- End Message --- --- Begin Message --- >From the PHP Manual regarding the php_ldap.dll extension: 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 binary package to the SYSTEM32 folder of your windows machine. (Ex: C:\WINNT\SYSTEM32 or C:\WINDOWS\SYSTEM32) -Original Message- From: leo g. divinagracia iii [mailto:[EMAIL PROTECTED]] Sent: Thursday, 16 January 2003 8:35 PM Cc: [EMAIL PROTECTED] Subject: [PHP-WIN] 4.3.0 and apache 1.3.27 on win98 -- LDAP cant load... have the combo listed: php 4.3.0 and apache 1.3.27 running on a win98 SE. this is my test machine. i uncommmented out the line: extension=php_ldap.dll and as soon as i manually launch apache, i get the error: PHP Warning: Unknown(): Unable to load dynamic library c:\php\extensions\php_ldap.dll' - A device attached to the system is not functioning. in Unknown on line 0 the file is there. i try to load other modules like "php_oci8.dll" and i get the same error. funny thing is that "php_pdf.dll" loads up fine, with no problems. do i have to do anything on apache's side? -- --- Leo G. Divinagracia III [EMAIL PROTECTED] -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php --- End Message --- --- Begin Message --- Hello, whe
Re: [PHP-WIN] Help using Mail() on XP standalone config
Allan, You need some kind of an SMTP server for mail() on Win32. Either find a free one that you can load on your machine for testing, or use your ISP's (or if you're at work, possibly their internal mail server) mailserver. Then point your php.ini's 'SMTP = ' line towards the mailserver. Note that if you load an SMTP server on your localhost, it is possible that other mailservers won't take your mail - spam relay issues abound. Good luck. -Dash Nine megs for the secretaries fair, Seven megs for the hackers scarce, Five megs for the grads in smoky lairs, Three megs for system source; One disk to rule them all, One disk to bind them, One disk to hold the files And in the darkness grind 'em. On Sat, 11 Jan 2003, Allan Hardy wrote: > Hi, need just a bit of help or point in the right direction > I have a working php / apache/ mysql set up that I use to develop/test > application before hosting it. > > I've just started using the mail() function and it fails. > Failed to connect to mailserver, verify your "SMTP" setting in php.ini in > > I need to know what to set up for a local XP / Apache (1.3.) configuration? > > Allan > > > > -- > PHP Windows Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > > -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP-WIN] PHP Search
Hi all I got (i think) heavy task for my school project. I hope someone can help me. Script needs to find key words (for example: computer, science) It should search in url or mail Script should find words within meta-tags (i know how to do it) and: In the body of html (url or email) but only if the words are different color than the background! BG could be table, tr, td, body... Do i need to parse it, how can i obtain color of the found text, is preg() helpful...? Could anyone help me with the tips Thx, Radovan __ Do you Yahoo!? Yahoo! Mail Plus - Powerful. Affordable. Sign up now. http://mailplus.yahoo.com -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP-WIN] Help using Mail() on XP standalone config
Dash, thanks. I eventually configured it and go it to work using the smtp server of my ISP. I tried using the XP smtp service that comes with OS (or was that with IIS ?), but didn't get it to work. Might be because I had Apache and IIS conflict, just not sure. Anyway, I've done my deed, thanks for the follow up Passion and Presence Allan Hardy -Original Message- From: Dash McElroy [mailto:[EMAIL PROTECTED]] Sent: Thursday, January 16, 2003 12:24 PM To: Allan Hardy Cc: [EMAIL PROTECTED] Subject: Re: [PHP-WIN] Help using Mail() on XP standalone config Allan, You need some kind of an SMTP server for mail() on Win32. Either find a free one that you can load on your machine for testing, or use your ISP's (or if you're at work, possibly their internal mail server) mailserver. Then point your php.ini's 'SMTP = ' line towards the mailserver. Note that if you load an SMTP server on your localhost, it is possible that other mailservers won't take your mail - spam relay issues abound. Good luck. -Dash Nine megs for the secretaries fair, Seven megs for the hackers scarce, Five megs for the grads in smoky lairs, Three megs for system source; One disk to rule them all, One disk to bind them, One disk to hold the files And in the darkness grind 'em. On Sat, 11 Jan 2003, Allan Hardy wrote: > Hi, need just a bit of help or point in the right direction > I have a working php / apache/ mysql set up that I use to develop/test > application before hosting it. > > I've just started using the mail() function and it fails. > Failed to connect to mailserver, verify your "SMTP" setting in php.ini in > > I need to know what to set up for a local XP / Apache (1.3.) configuration? > > Allan > > > > -- > PHP Windows Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > > -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP-WIN] Image Creation Error
I'm running PHP 4.3 and W2k with IIS 5.0. I have enabled php_gd and it does show up when I do a phpinfo. The php_gd.dll is in the winnt/system32 directory and it's in the extensions directory (I've also tried it in almost every other directory too) and I get this error message: Fatal error: Call to undefined function: imagecreate() in C:\Inetpub\wwwroot\template\index.php on line 4 Here's the code: Any help would be appreciated. -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP-WIN] What kind of Editor you used to build PHP script ?
I like SSEditor, because I made it. and I use it to build my web site:) What features should be in a PHP Editor ? can you tell me ? http://www.skyweb2k.com/sseditor [EMAIL PROTECTED] -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP-WIN] What kind of Editor you used to build PHP script ?
Check out HTML-Kit (www.chami.com). Fully functional (PHP preview and validation), very powerful, and free! At 03:14 PM 1/16/2003, skyweb wrote: I like SSEditor, because I made it. and I use it to build my web site:) What features should be in a PHP Editor ? can you tell me ? http://www.skyweb2k.com/sseditor [EMAIL PROTECTED] -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- To insure that you receive proper support, please include all past correspondence (where applicable), and any relevant information pertinent to your situation when submitting a problem report to the GW Micro Technical Support Team. Aaron Smith GW Micro Phone: 260/489-3671 Fax: 260/489-2608 WWW: http://www.gwmicro.com FTP: ftp://ftp.gwmicro.com Technical Support & Web Development -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP-WIN] What kind of Editor you used to build PHP script ?
I use visual studio. The editor is good, but the database integration is second to none, and its what I've become accustomed to. -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP-WIN] What kind of Editor you used to build PHP script ?
Line numbers... Colours are nice, but I like it simple. And line numbers are about as nice as I like :) I pretty much stick to dreamweaver MX, but I disable most of the crap in it. Just plain line numbers, and some colouring :) Suites me just fine!!! chris kranz fatcuban.com -Original Message- From: skyweb [mailto:[EMAIL PROTECTED]] Sent: Thursday, January 16, 2003 8:14 PM To: [EMAIL PROTECTED] Subject: [PHP-WIN] What kind of Editor you used to build PHP script ? I like SSEditor, because I made it. and I use it to build my web site:) What features should be in a PHP Editor ? can you tell me ? http://www.skyweb2k.com/sseditor [EMAIL PROTECTED] -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP-WIN] What kind of Editor you used to build PHP script ?
As crazy as this may sound NOTEPAD... or if on my freebsd machines... vi =) Regards, Nick H. - Original Message - From: "Chris Kranz" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Thursday, January 16, 2003 4:45 PM Subject: RE: [PHP-WIN] What kind of Editor you used to build PHP script ? > Line numbers... > > Colours are nice, but I like it simple. And line numbers are about as > nice as I like :) > > I pretty much stick to dreamweaver MX, but I disable most of the crap in > it. Just plain line numbers, and some colouring :) > > Suites me just fine!!! > > chris kranz > fatcuban.com > > > -Original Message- > From: skyweb [mailto:[EMAIL PROTECTED]] > Sent: Thursday, January 16, 2003 8:14 PM > To: [EMAIL PROTECTED] > Subject: [PHP-WIN] What kind of Editor you used to build PHP script ? > > I like SSEditor, because I made it. and I use it to build my web site:) > > What features should be in a PHP Editor ? can you tell me ? > > http://www.skyweb2k.com/sseditor > > [EMAIL PROTECTED] > > > > -- > PHP Windows Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > > > > > -- > PHP Windows Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP-WIN] What kind of Editor you used to build PHP script ?
> As crazy as this may sound > > NOTEPAD... or if on my freebsd machines... vi =) Had to stick my 2c in on this one... UltraEdit (http://www.ultraedit.com) is fantastic. It has configurable syntax highlighting, save to FTP, templates, macros and a whole lot more. I would have to agree about vi on *nix machines although I think you need to be a true masochist to use Notepad :-) regards, Mikey -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP-WIN] Re: What kind of Editor you used to build PHP script ?
I uses zend studio. It has a preview pane, code completion, and it's own server. It also has the PHP documentation in the help files. Personal use is a free download. "Skyweb" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > I like SSEditor, because I made it. and I use it to build my web site:) > > What features should be in a PHP Editor ? can you tell me ? > > http://www.skyweb2k.com/sseditor > > [EMAIL PROTECTED] > > -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP-WIN] Re: Image Creation Error
Hi Ed I have a similar probelm with resizing and cannot work it out. My phpinfo (ver 4.3) says jpeg support enabled and put php_gd.dll in the same directories as you. My code is: $imagesrc = ImageCreateFromJpeg($image); $imagedst = ImageCreate($im_width,$im_height); ImageCopyResized($imagedst, $imagesrc, 0, 0, 0, 0, $im_width,$im_height,$width,$height); header("Content-type: image/jpeg"); ImageJpeg($imagedst, '', -1); ImageDestroy($imagesrc); ImageDestroy($imagedst); Any help on appreciated.. Pat "Ed" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > I'm running PHP 4.3 and W2k with IIS 5.0. I have enabled php_gd and it does > show up when I do a phpinfo. The php_gd.dll is in the winnt/system32 > directory and it's in the extensions directory (I've also tried it in almost > every other directory too) and I get > this error message: > > Fatal error: Call to undefined function: imagecreate() in > C:\Inetpub\wwwroot\template\index.php on line 4 > > Here's the code: > > header("Content-type: image/png"); > $im = imagecreate(100, 20); > > $red = imagecolorallocate($im, 255, 0, 0); > $white = imagecolorallocate($im, 255, 255, 255); > > $ImageString($im, 3, 3, 3, "Home", $white); > imagepng($im); > > ImagegDestroy($im); > > ?> > Any help would be appreciated. > > > > -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
php-windows Digest 17 Jan 2003 00:06:55 -0000 Issue 1539
php-windows Digest 17 Jan 2003 00:06:55 - Issue 1539 Topics (messages 17906 through 17917): Re: Help using Mail() on XP standalone config 17906 by: Dash McElroy 17908 by: Allan PHP Search 17907 by: Radovan Radic Image Creation Error 17909 by: Ed 17917 by: Pat Johnston What kind of Editor you used to build PHP script ? 17910 by: skyweb 17911 by: Aaron Smith 17912 by: Sean Malloy 17913 by: Chris Kranz 17914 by: Nick H. -- Technical Support Engineer 17915 by: Mikey 17916 by: Ed 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] -- --- Begin Message --- Allan, You need some kind of an SMTP server for mail() on Win32. Either find a free one that you can load on your machine for testing, or use your ISP's (or if you're at work, possibly their internal mail server) mailserver. Then point your php.ini's 'SMTP = ' line towards the mailserver. Note that if you load an SMTP server on your localhost, it is possible that other mailservers won't take your mail - spam relay issues abound. Good luck. -Dash Nine megs for the secretaries fair, Seven megs for the hackers scarce, Five megs for the grads in smoky lairs, Three megs for system source; One disk to rule them all, One disk to bind them, One disk to hold the files And in the darkness grind 'em. On Sat, 11 Jan 2003, Allan Hardy wrote: > Hi, need just a bit of help or point in the right direction > I have a working php / apache/ mysql set up that I use to develop/test > application before hosting it. > > I've just started using the mail() function and it fails. > Failed to connect to mailserver, verify your "SMTP" setting in php.ini in > > I need to know what to set up for a local XP / Apache (1.3.) configuration? > > Allan > > > > -- > PHP Windows Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > > --- End Message --- --- Begin Message --- Dash, thanks. I eventually configured it and go it to work using the smtp server of my ISP. I tried using the XP smtp service that comes with OS (or was that with IIS ?), but didn't get it to work. Might be because I had Apache and IIS conflict, just not sure. Anyway, I've done my deed, thanks for the follow up Passion and Presence Allan Hardy -Original Message- From: Dash McElroy [mailto:[EMAIL PROTECTED]] Sent: Thursday, January 16, 2003 12:24 PM To: Allan Hardy Cc: [EMAIL PROTECTED] Subject: Re: [PHP-WIN] Help using Mail() on XP standalone config Allan, You need some kind of an SMTP server for mail() on Win32. Either find a free one that you can load on your machine for testing, or use your ISP's (or if you're at work, possibly their internal mail server) mailserver. Then point your php.ini's 'SMTP = ' line towards the mailserver. Note that if you load an SMTP server on your localhost, it is possible that other mailservers won't take your mail - spam relay issues abound. Good luck. -Dash Nine megs for the secretaries fair, Seven megs for the hackers scarce, Five megs for the grads in smoky lairs, Three megs for system source; One disk to rule them all, One disk to bind them, One disk to hold the files And in the darkness grind 'em. On Sat, 11 Jan 2003, Allan Hardy wrote: > Hi, need just a bit of help or point in the right direction > I have a working php / apache/ mysql set up that I use to develop/test > application before hosting it. > > I've just started using the mail() function and it fails. > Failed to connect to mailserver, verify your "SMTP" setting in php.ini in > > I need to know what to set up for a local XP / Apache (1.3.) configuration? > > Allan > > > > -- > PHP Windows Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > > --- End Message --- --- Begin Message --- Hi all I got (i think) heavy task for my school project. I hope someone can help me. Script needs to find key words (for example: computer, science) It should search in url or mail Script should find words within meta-tags (i know how to do it) and: In the body of html (url or email) but only if the words are different color than the background! BG could be table, tr, td, body... Do i need to parse it, how can i obtain color of the found text, is preg() helpful...? Could anyone help me with the tips Thx, Radovan __ Do you Yahoo!? Yahoo! Mail Plus - Powerful. Affordable. Sign up now. http://mailplus.yahoo.com --- End Message --- --- Begin Message --- I'm running PHP 4.3 and W2k with IIS 5.0. I have enabled php_gd and it does show up when I do a phpinfo. The php_gd.dll is in the winnt/system32 directory and it's in the extensions directory (I've also tried it in
RE: [PHP-WIN] Re: Image Creation Error
Have either of you tried using GD v2 (php_gdf2.dll)? regards, Mikey > -Original Message- > From: Pat Johnston [mailto:[EMAIL PROTECTED]] > Sent: 17 January 2003 00:06 > To: [EMAIL PROTECTED] > Subject: [PHP-WIN] Re: Image Creation Error > > > Hi Ed > I have a similar probelm with resizing and cannot work it out. My phpinfo > (ver 4.3) says jpeg support enabled and put php_gd.dll in the same > directories as you. > > My code is: > > $imagesrc = ImageCreateFromJpeg($image); > $imagedst = ImageCreate($im_width,$im_height); > ImageCopyResized($imagedst, $imagesrc, 0, 0, 0, 0, > $im_width,$im_height,$width,$height); > header("Content-type: image/jpeg"); > ImageJpeg($imagedst, '', -1); > ImageDestroy($imagesrc); > ImageDestroy($imagedst); > > Any help on appreciated.. > Pat > > > "Ed" <[EMAIL PROTECTED]> wrote in message > [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > > I'm running PHP 4.3 and W2k with IIS 5.0. I have enabled php_gd and it > does > > show up when I do a phpinfo. The php_gd.dll is in the winnt/system32 > > directory and it's in the extensions directory (I've also tried it in > almost > > every other directory too) and I get > > this error message: > > > > Fatal error: Call to undefined function: imagecreate() in > > C:\Inetpub\wwwroot\template\index.php on line 4 > > > > Here's the code: > > > > > header("Content-type: image/png"); > > $im = imagecreate(100, 20); > > > > $red = imagecolorallocate($im, 255, 0, 0); > > $white = imagecolorallocate($im, 255, 255, 255); > > > > $ImageString($im, 3, 3, 3, "Home", $white); > > imagepng($im); > > > > ImagegDestroy($im); > > > > ?> > > Any help would be appreciated. > > > > > > > > > > > > -- > PHP Windows Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > > > > -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP-WIN] Re: Image Creation Error
Oops - that should be php_gd2.dll > -Original Message- > From: Mikey [mailto:[EMAIL PROTECTED]] > Sent: 17 January 2003 00:11 > To: [EMAIL PROTECTED] > Subject: RE: [PHP-WIN] Re: Image Creation Error > > > Have either of you tried using GD v2 (php_gdf2.dll)? > > regards, > > Mikey > > > -Original Message- > > From: Pat Johnston [mailto:[EMAIL PROTECTED]] > > Sent: 17 January 2003 00:06 > > To: [EMAIL PROTECTED] > > Subject: [PHP-WIN] Re: Image Creation Error > > > > > > Hi Ed > > I have a similar probelm with resizing and cannot work it out. > My phpinfo > > (ver 4.3) says jpeg support enabled and put php_gd.dll in the same > > directories as you. > > > > My code is: > > > > $imagesrc = ImageCreateFromJpeg($image); > > $imagedst = ImageCreate($im_width,$im_height); > > ImageCopyResized($imagedst, $imagesrc, 0, 0, 0, 0, > > $im_width,$im_height,$width,$height); > > header("Content-type: image/jpeg"); > > ImageJpeg($imagedst, '', -1); > > ImageDestroy($imagesrc); > > ImageDestroy($imagedst); > > > > Any help on appreciated.. > > Pat > > > > > > "Ed" <[EMAIL PROTECTED]> wrote in message > > [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > > > I'm running PHP 4.3 and W2k with IIS 5.0. I have enabled > php_gd and it > > does > > > show up when I do a phpinfo. The php_gd.dll is in the winnt/system32 > > > directory and it's in the extensions directory (I've also tried it in > > almost > > > every other directory too) and I get > > > this error message: > > > > > > Fatal error: Call to undefined function: imagecreate() in > > > C:\Inetpub\wwwroot\template\index.php on line 4 > > > > > > Here's the code: > > > > > > > > header("Content-type: image/png"); > > > $im = imagecreate(100, 20); > > > > > > $red = imagecolorallocate($im, 255, 0, 0); > > > $white = imagecolorallocate($im, 255, 255, 255); > > > > > > $ImageString($im, 3, 3, 3, "Home", $white); > > > imagepng($im); > > > > > > ImagegDestroy($im); > > > > > > ?> > > > Any help would be appreciated. > > > > > > > > > > > > > > > > > > > > -- > > PHP Windows Mailing List (http://www.php.net/) > > To unsubscribe, visit: http://www.php.net/unsub.php > > > > > > > > -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP-WIN] What kind of Editor you used to build PHP script ?
skyweb wrote: I like SSEditor, because I made it. and I use it to build my web site:) What features should be in a PHP Editor ? can you tell me ? i started out on php coder, which has been bought out by magumi or is maguma. anyways, i like that it can access downloaded php and mysql documentation. i like syntax highlighting/coloring. caught a silly error once. line numbers. geez, how we take that for granted. being able to turn on and off CLASS stuff. syntax auto completion. another silly error once... configurable smart tabs and brackets. -- Leo G. Divinagracia III [EMAIL PROTECTED] z -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP-WIN] Php module
Hello everybody!!! I've installed PHp on my computer, Windows 2000 but it doesn't work with php. I've istalled the latest binary, but I can't find the php module to add it... What do I have to do??? I want to have the mysql database funtioning too, but it seems the modules doesn't come with the installer. What should I do? Thank you very much for you time! Sabina Alejandra Schneider[EMAIL PROTECTED]
Re: [PHP-WIN] Re: Image Creation Error
Yes, I've tried both and get the same error. Ed "Mikey" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > Oops - that should be php_gd2.dll > > > -Original Message- > > From: Mikey [mailto:[EMAIL PROTECTED]] > > Sent: 17 January 2003 00:11 > > To: [EMAIL PROTECTED] > > Subject: RE: [PHP-WIN] Re: Image Creation Error > > > > > > Have either of you tried using GD v2 (php_gdf2.dll)? > > > > regards, > > > > Mikey > > > > > -Original Message- > > > From: Pat Johnston [mailto:[EMAIL PROTECTED]] > > > Sent: 17 January 2003 00:06 > > > To: [EMAIL PROTECTED] > > > Subject: [PHP-WIN] Re: Image Creation Error > > > > > > > > > Hi Ed > > > I have a similar probelm with resizing and cannot work it out. > > My phpinfo > > > (ver 4.3) says jpeg support enabled and put php_gd.dll in the same > > > directories as you. > > > > > > My code is: > > > > > > $imagesrc = ImageCreateFromJpeg($image); > > > $imagedst = ImageCreate($im_width,$im_height); > > > ImageCopyResized($imagedst, $imagesrc, 0, 0, 0, 0, > > > $im_width,$im_height,$width,$height); > > > header("Content-type: image/jpeg"); > > > ImageJpeg($imagedst, '', -1); > > > ImageDestroy($imagesrc); > > > ImageDestroy($imagedst); > > > > > > Any help on appreciated.. > > > Pat > > > > > > > > > "Ed" <[EMAIL PROTECTED]> wrote in message > > > [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > > > > I'm running PHP 4.3 and W2k with IIS 5.0. I have enabled > > php_gd and it > > > does > > > > show up when I do a phpinfo. The php_gd.dll is in the winnt/system32 > > > > directory and it's in the extensions directory (I've also tried it in > > > almost > > > > every other directory too) and I get > > > > this error message: > > > > > > > > Fatal error: Call to undefined function: imagecreate() in > > > > C:\Inetpub\wwwroot\template\index.php on line 4 > > > > > > > > Here's the code: > > > > > > > > > > > header("Content-type: image/png"); > > > > $im = imagecreate(100, 20); > > > > > > > > $red = imagecolorallocate($im, 255, 0, 0); > > > > $white = imagecolorallocate($im, 255, 255, 255); > > > > > > > > $ImageString($im, 3, 3, 3, "Home", $white); > > > > imagepng($im); > > > > > > > > ImagegDestroy($im); > > > > > > > > ?> > > > > Any help would be appreciated. > > > > > > > > > > > > > > > > > > > > > > > > > > > > -- > > > PHP Windows Mailing List (http://www.php.net/) > > > To unsubscribe, visit: http://www.php.net/unsub.php > > > > > > > > > > > > > -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP-WIN] Php module
Here's a silly question: Have you installed a web server? If not, that could very well be your problem... This list seems to reccomend Apache (If you're working on a small traffic, Apache 2 is just as fine as Apache 1.3). I personally have used Apache on Win32 for about 3-4 years now with no problems. Follow the install instructions at apache.org, then follow the instructions on php.net for installing under windows (it's as simple as adding three or four lines and copying two files). You'll want to load PHP as a module. Here are PHP 4.3.0 on Apache2 instructions: http://www.php.net/manual/en/install.apache2.php#install.apache2.windows Here are PHP 4.x.x on Apache 1.3 instructions: http://www.php.net/manual/en/install.apache.php#install.apache.windows MySQL support is built into PHP. Works just fine :) Good luck! -Dash How long a minute is depends on which side of the bathroom door you're on. On Thu, 16 Jan 2003, Sabina A. Schneider wrote: > Hello everybody!!! I've installed PHp on my computer, Windows 2000 > but it doesn't work with php. I've istalled the latest binary, but I > can't find the php module to add it... What do I have to do??? I want to > have the mysql database funtioning too, but it seems the modules doesn't > come with the installer. What should I do? Thank you very much for you > time! > > Sabina Alejandra Schneider > [EMAIL PROTECTED] > -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP-WIN] RE: What kind of Editor you used to build PHP script ?
i hv been using plain text editor (Notetab Light) mostly, and hv also tried some IDEs but found them not stable enough... apart from powerful text editor, here's the wishlist from a php script editor: * ROCK SOLID stability * syntax highlighting (with monochrome mode) * VB like immediate warnings in a line of code that has syntax problem, improper loop etc. * Code completion, including methods, properties of referenced objects. * Braces matching & highlighting {} * Function browser (php as well as UDF) * Class browser * Database integration, especially MySQL (ability to at least view if not create/modify available databases, tables, field names etc.) * Custom Sandbox -Ability to specify run time environment variables (get/post/session/server etc.) and let the script play in it. * Preview output i.e. previewing raw script output (including headers) * Preview in browser * Step-thru-code mode with output view (for debugging) / probing variable values at steps. * Integrated php.ini GUI editor * Integrated php help * Built in updatable frequently used code snippets i leave the rest for others to add... Overall, the emphasis is on the features which enable the programmer to concentrate on the logic of the code rather than the code itself. peps up! -Original Message- From: skyweb [mailto:[EMAIL PROTECTED]] Sent: Friday, January 17, 2003 01:44 To: [EMAIL PROTECTED] Subject: What kind of Editor you used to build PHP script ? I like SSEditor, because I made it. and I use it to build my web site:) What features should be in a PHP Editor ? can you tell me ? http://www.skyweb2k.com/sseditor [EMAIL PROTECTED] -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP-WIN] RE: What kind of Editor you used to build PHP script ?
And would you want all of that for free too? -Original Message- From: Uttam [mailto:[EMAIL PROTECTED]] Sent: Friday, 17 January 2003 5:55 PM To: 'skyweb'; [EMAIL PROTECTED] Subject: [PHP-WIN] RE: What kind of Editor you used to build PHP script ? i hv been using plain text editor (Notetab Light) mostly, and hv also tried some IDEs but found them not stable enough... apart from powerful text editor, here's the wishlist from a php script editor: * ROCK SOLID stability * syntax highlighting (with monochrome mode) * VB like immediate warnings in a line of code that has syntax problem, improper loop etc. * Code completion, including methods, properties of referenced objects. * Braces matching & highlighting {} * Function browser (php as well as UDF) * Class browser * Database integration, especially MySQL (ability to at least view if not create/modify available databases, tables, field names etc.) * Custom Sandbox -Ability to specify run time environment variables (get/post/session/server etc.) and let the script play in it. * Preview output i.e. previewing raw script output (including headers) * Preview in browser * Step-thru-code mode with output view (for debugging) / probing variable values at steps. * Integrated php.ini GUI editor * Integrated php help * Built in updatable frequently used code snippets i leave the rest for others to add... Overall, the emphasis is on the features which enable the programmer to concentrate on the logic of the code rather than the code itself. peps up! -Original Message- From: skyweb [mailto:[EMAIL PROTECTED]] Sent: Friday, January 17, 2003 01:44 To: [EMAIL PROTECTED] Subject: What kind of Editor you used to build PHP script ? I like SSEditor, because I made it. and I use it to build my web site:) What features should be in a PHP Editor ? can you tell me ? http://www.skyweb2k.com/sseditor [EMAIL PROTECTED] -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP-WIN] date and time operation
Hello everybody ! Does anybody here deal with date and time operation in php ? If you don't mind, please show me they way to do this. I have some date and time functions in ASP and now I have to convert it to PHP. Here are some functions in ASP yr = year(date()) mon = month(date()) currentmonth = cdate(yr & "-" & mon & "- 1") start_week = weekday(currentmonth) nextmonth = cdate(yr & "-" & nextmon & "- 1") first_start_week = dateadd("d", 7, currentmonth) ff_end_week = dateadd("d", -1, first_start_week) diffaweek = datediff("w", first_start_week, nextmonth) day(currentmonth) day(ff_end_week) Do you have any date and time class written in PHP, please share with me Thanks you very much for your attention Thien -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php