php-windows Digest 17 Jan 2003 12:10:44 -0000 Issue 1540
Topics (messages 17918 through 17936):
Re: Image Creation Error
17918 by: Mikey
17919 by: Mikey
17922 by: Ed
Re: What kind of Editor you used to build PHP script ?
17920 by: Leo G. Divingracia III
17924 by: Uttam
17925 by: Sean Malloy
17927 by: Ignatius Reilly
17928 by: Uttam
17930 by: Dash McElroy
17931 by: skyweb
17934 by: Luis Ferro
Php module
17921 by: Sabina A. Schneider
17923 by: Dash McElroy
date and time operation
17926 by: Ha Duy Thien
17929 by: Dash McElroy
Help needed about mailing!
17932 by: Burak Ata
SQL-query
17933 by: Bobo Wieland
Re: PHP/PWS 3.0
17935 by: Waldemar Brand Neto
It just doesn't make sense!
17936 by: Stephen Edmonds
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 ---
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:
> > <?php
> >
> > 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
>
>
>
>
--- End Message ---
--- Begin Message ---
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:
> > > <?php
> > >
> > > 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
> >
> >
> >
> >
--- End Message ---
--- Begin Message ---
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:
> > > > <?php
> > > >
> > > > 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
> > >
> > >
> > >
> > >
>
--- End Message ---
--- Begin Message ---
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]
zzzzz
--- End Message ---
--- Begin Message ---
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]
--- End Message ---
--- Begin Message ---
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
--- End Message ---
--- Begin Message ---
I would add to this list a visual editor of HTML tables. To me a most
important feature, and the reason I continue to use Dreamweaver 4 to code
PHP, despite the absence of colour highlighting.
Ignatius.
----- Original Message -----
From: "Uttam" <[EMAIL PROTECTED]>
To: "'skyweb'" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>
Sent: Friday, January 17, 2003 7:54 AM
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
>
>
--- End Message ---
--- Begin Message ---
if you have MySQL, Apache and PHP then why not? thats in line with
open-source paradigm.
regds,
-----Original Message-----
From: Sean Malloy [mailto:[EMAIL PROTECTED]]
Sent: Friday, January 17, 2003 12:51
To: Uttam; [EMAIL PROTECTED]
Subject: 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
--- End Message ---
--- Begin Message ---
Just give us a couple of years :)
In the meantime, I'll use editplus (on win32) and pico (on *nix).
-Dash
In a medium in which a News Piece takes a minute and an "In-Depth"
Piece takes two minutes, the Simple will drive out the Complex.
-- Frank Mankiewicz
On Fri, 17 Jan 2003, Uttam wrote:
> if you have MySQL, Apache and PHP then why not? thats in line with
> open-source paradigm.
>
> regds,
> -----Original Message-----
> From: Sean Malloy [mailto:[EMAIL PROTECTED]]
> Sent: Friday, January 17, 2003 12:51
> To: Uttam; [EMAIL PROTECTED]
> Subject: 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
>
>
--- End Message ---
--- Begin Message ---
Good ideas! Thank you! :)
"Uttam" <[EMAIL PROTECTED]> wrote:
[EMAIL PROTECTED]
> 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!
>
--- End Message ---
--- Begin Message ---
I've checked up the latests Eclipse IDE with php and mysql plugins and
it seams so far very good indeed. One or two more iteractions of the
builds and it should become clean of the quirks that a beta/development
release always has (which are normally much minor then the ones existing
in commercial releases from some software houses).
Cheers,
Luis Ferro
TelaDigital.net
Uttam wrote:
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]
---
[This E-mail scanned for viruses by Declude Virus]
--- End Message ---
--- Begin Message ---
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!
|
--- End Message ---
--- Begin Message ---
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]
>
--- End Message ---
--- Begin Message ---
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
--- End Message ---
--- Begin Message ---
By any chance have you looked at the date() function in PHP? Check the
manual at http://www.php.net/manual/en/function.date.php. date() pairs up
nicely with checkdate and with mktime
(http://www.php.net/manual/en/function.mktime.php).
Thusly, Use the following examples:
$year = date("Y"); //4 digit year
$year = date("y"); //2 digit year
$mon = date("M"); //Jan, could also use n for 1-12, m for 01-12, etc
etc etc.
To make a date/time whatever for another day, you should use mktime() and
feed it the variables (note that it's a little oddly ordered...).
When in doubt, RTFM! :) (there are so many options to date() that I keep a
printed up copy nearby!)
-Dash
Where there's a will, there's an Inheritance Tax.
On Fri, 17 Jan 2003, Ha Duy Thien wrote:
> 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
>
>
--- End Message ---
--- Begin Message ---
Well I need some help about mailing
I was using the IP of an exchange server as my SMTP and I was using mail function
without any problem.
Our exchange server has changed and now I am using the ip of that server but the mail
function doesn't work. It always gives "Server Error".
Any idea?
--- End Message ---
--- Begin Message ---
I hope this isn't to much OT... Sorry if it is...
In my MySQL-db that I use for a php-driven site I have many tables with the
Primary Key set as an auto increment value.
If I have 4 records with id 1, 2, 3 and 4 and then delete number 3 and add
one more record I get the id's 1,2,4 and 5. It isn't much of a problem, but
it would be nice to check for the first "hole" in the id's and insert the
record there instead. How would you do this? is there some simple way from
either MySQl or PHP that doesn't take to much time to execute?
thanks in advance
. bobo . www.elstudion.com . [EMAIL PROTECTED] .
--- End Message ---
--- Begin Message ---
According Micro$oft PWS will not work under Windows ME, try Windows 98 or
2000.
----- Original Message -----
From: "Lewis J Hannah" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, January 15, 2003 12:49 PM
Subject: [PHP-WIN] PHP/PWS 3.0
> Hello,
>
> I am trying to get PHP to work under PWS 3.0/WinMe. However, every time
> I try to access a virtual directory on the localhost, I receive an error
> message stating that the server cannot be found, or DNS error. I check
> all the configuration settings in the php.ini file and in the Registry,
> and they seem to be correct. I don't know what else could be wrong.
>
> Thanks,
>
> Lewis J Hannah
>
>
> --
> PHP Windows Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
--- End Message ---
--- Begin Message ---
I am currently re-writing part of my website to allow people who don't use
cookies to still use the site features. However, I have run into a problem.
I send the session ID from page to page via the query string, and retreve it
using $_GET. Everything works fine, and if set I store the details in
$AppendStringToURL
// Code for $AppendStringToURL
if ( isset( $_GET[NonCookieLogin] ) ) {
// Using other method to login
$AppendStringToURL = "?NonCookieLogin=".$_GET[NonCookieLogin];
}
Again, this works fine. I then split the page into two frames as shown
below:
$FrameProperTarget =
"http://".$_SERVER["HTTP_HOST"]."/".$FrameTarget.$AppendStringToURL;
$OffsideTarget =
"http://".$_SERVER["HTTP_HOST"]."/members/interface/"."offside.php".$AppendS
tringToURL;
The problem is that $FrameProperTarget gets the bit added on the end so that
the ID is passed on, but $OffsideTarget does not get any value from
$AppendStringToURL. For example:
Value of $FrameProperTarget -
http://scryt.no-ip.com/members/columns.php?NonCookieLogin=896c972ac44a7babdf
2549ead6f30b86
Value of $OffsideTarget -
http://scryt.no-ip.com/members/interface/offside.php
As you can see, it has not added the bit onto the end... and I have no idea
why. Since one works and the other doesn't, yet they both use the same
construction method, they both use the same variable, and the
$AppendStringToURL does not show up anywhere else in the source code of the
HTML page (i.e. its not outside any ", it doesn't excist. Something has gone
totally up the creek here... any ideas?
--- End Message ---