page works on public web site, but not on my computer

page works on public web site, but not on my computer

am 26.08.2009 02:20:27 von mike bode

I have posted the question in another thread a bit down, but only buried
within the thread, so please excuse me when I ask again.

I want to use some PHP code from a web site
(http://www.dynamicdrive.com/dynamicindex4/php-photoalbum.ht m), and I am
following their instruction how to implement it. I was not able to get it to
work. Then I uploaded the code to a server, and lo and behold, it does work
on the server. On the public site you see thumbnails of images (never mind
the junk above them), when I run the SAME html and php code on my omputer, I
get a blank white page.

The error log has several entries, but they are all warnings:

[Tue Aug 25 18:12:00 2009] [error] [client 127.0.0.1] PHP Warning: date():
It is not safe to rely on the system's timezone settings. You are *required*
to use the date.timezone setting or the date_default_timezone_set()
function. In case you used any of those methods and you are still getting
this warning, you most likely misspelled the timezone identifier. We
selected 'America/Denver' for '-6.0/DST' instead in
C:\\webdev\\rmv3\\album\\getalbumpics.php on line 11, referer:
http://localhost/album.htm

(this error is repeated for as many images I have in the directory that the
php script is reading).

Between php.ini, httpd.conf, and Windows Vista, I can't figure out where to
start to diagnose this, and how. Anybody out there who can give me a pointer
on how to roubleshoot this issue? I am almost ready to throw in the towel
and either start from scratch (although this is alrady the second time that
I have uninstalled and re-installed everything), or simply forget about php
altogether. that would be a shame, though...


--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Re: page works on public web site, but not on my computer

am 26.08.2009 05:40:41 von mike bode

I just de-installed, then re-installed MySQL, Apache and PHP 5.3. No
changes. The script does not work on my computer.

Now I get in addition to the error message below this:

[Tue Aug 25 21:29:11 2009] [error] [client 127.0.0.1] PHP Deprecated:
Function eregi() is deprecated in C:\\webdev\\rmv3\\album\\getalbumpics.php
on line 11, referer: http://localhost/album.php

Don't know if those warnings would stop the execution of the php script.


""mike bode"" wrote in message
news:99.F2.08117.CCF749A4@pb1.pair.com...
>I have posted the question in another thread a bit down, but only buried
>within the thread, so please excuse me when I ask again.
>
> I want to use some PHP code from a web site
> (http://www.dynamicdrive.com/dynamicindex4/php-photoalbum.ht m), and I am
> following their instruction how to implement it. I was not able to get it
> to work. Then I uploaded the code to a server, and lo and behold, it does
> work on the server. On the public site you see thumbnails of images (never
> mind the junk above them), when I run the SAME html and php code on my
> omputer, I get a blank white page.
>
> The error log has several entries, but they are all warnings:
>
> [Tue Aug 25 18:12:00 2009] [error] [client 127.0.0.1] PHP Warning:
> date(): It is not safe to rely on the system's timezone settings. You are
> *required* to use the date.timezone setting or the
> date_default_timezone_set() function. In case you used any of those
> methods and you are still getting this warning, you most likely misspelled
> the timezone identifier. We selected 'America/Denver' for '-6.0/DST'
> instead in C:\\webdev\\rmv3\\album\\getalbumpics.php on line 11, referer:
> http://localhost/album.htm
>
> (this error is repeated for as many images I have in the directory that
> the php script is reading).
>
> Between php.ini, httpd.conf, and Windows Vista, I can't figure out where
> to start to diagnose this, and how. Anybody out there who can give me a
> pointer on how to roubleshoot this issue? I am almost ready to throw in
> the towel and either start from scratch (although this is alrady the
> second time that I have uninstalled and re-installed everything), or
> simply forget about php altogether. that would be a shame, though...


--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Re: Re: page works on public web site, but not on my computer

am 26.08.2009 06:50:13 von hack988 hack988

It Just Deprecated Function used.It mean source code wouldn't work
wall based on newer php versions.
see this link http://cn.php.net/manual/en/function.eregi.php
If you want fix that warning ,replace eregi to preg_match_all and use
/s instead.

2009/8/26 mike bode :
> I just de-installed, then re-installed MySQL, Apache and PHP 5.3. No
> changes. The script does not work on my computer.
>
> Now I get in addition to the error message below this:
>
> [Tue Aug 25 21:29:11 2009] [error] [client 127.0.0.1] PHP Deprecated:
> Function eregi() is deprecated in C:\\webdev\\rmv3\\album\\getalbumpics.php
> on line 11, referer: http://localhost/album.php
>
> Don't know if those warnings would stop the execution of the php script.
>
>
> ""mike bode"" wrote in message
> news:99.F2.08117.CCF749A4@pb1.pair.com...
>>
>> I have posted the question in another thread a bit down, but only buried
>> within the thread, so please excuse me when I ask again.
>>
>> I want to use some PHP code from a web site
>> (http://www.dynamicdrive.com/dynamicindex4/php-photoalbum.ht m), and I am
>> following their instruction how to implement it. I was not able to get it to
>> work. Then I uploaded the code to a server, and lo and behold, it does work
>> on the server. On the public site you see thumbnails of images (never mind
>> the junk above them), when I run the SAME html and php code on my omputer, I
>> get a blank white page.
>>
>> The error log has several entries, but they are all warnings:
>>
>> [Tue Aug 25 18:12:00 2009] [error] [client 127.0.0.1] PHP Warning: date():
>> It is not safe to rely on the system's timezone settings. You are *required*
>> to use the date.timezone setting or the date_default_timezone_set()
>> function. In case you used any of those methods and you are still getting
>> this warning, you most likely misspelled the timezone identifier. We
>> selected 'America/Denver' for '-6.0/DST' instead in
>> C:\\webdev\\rmv3\\album\\getalbumpics.php on line 11, referer:
>> http://localhost/album.htm
>>
>> (this error is repeated for as many images I have in the directory that
>> the php script is reading).
>>
>> Between php.ini, httpd.conf, and Windows Vista, I can't figure out where
>> to start to diagnose this, and how. Anybody out there who can give me a
>> pointer on how to roubleshoot this issue? I am almost ready to throw in the
>> towel and either start from scratch (although this is alrady the second time
>> that I have uninstalled and re-installed everything), or simply forget about
>> php altogether. that would be a shame, though...
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Re: Re: page works on public web site, but not on my computer

am 26.08.2009 07:18:00 von Lars Torben Wilson

2009/8/25 mike bode :
> I just de-installed, then re-installed MySQL, Apache and PHP 5.3. No
> changes. The script does not work on my computer.
>
> Now I get in addition to the error message below this:
>
> [Tue Aug 25 21:29:11 2009] [error] [client 127.0.0.1] PHP Deprecated:
> Function eregi() is deprecated in C:\\webdev\\rmv3\\album\\getalbumpics.php
> on line 11, referer: http://localhost/album.php

Hi Mike,

No, those messages don't indicate anything which would cause PHP to
fail or abort. Do you see anything different if you change
error_reporting to error_reporting = E_ALL, display_errors = On, and
display_startup_errors = On in php.ini? (Note: if you do turn on
display_errors and display_startup_errors, be sure to turn them off
again before making your page available to the public).

Are you using the PHP Apache module or fastcgi or some other method?


Torben

> Don't know if those warnings would stop the execution of the php script.
>
>
> ""mike bode"" wrote in message
> news:99.F2.08117.CCF749A4@pb1.pair.com...
>>
>> I have posted the question in another thread a bit down, but only buried
>> within the thread, so please excuse me when I ask again.
>>
>> I want to use some PHP code from a web site
>> (http://www.dynamicdrive.com/dynamicindex4/php-photoalbum.ht m), and I am
>> following their instruction how to implement it. I was not able to get it to
>> work. Then I uploaded the code to a server, and lo and behold, it does work
>> on the server. On the public site you see thumbnails of images (never mind
>> the junk above them), when I run the SAME html and php code on my omputer, I
>> get a blank white page.
>>
>> The error log has several entries, but they are all warnings:
>>
>> [Tue Aug 25 18:12:00 2009] [error] [client 127.0.0.1] PHP Warning: date():
>> It is not safe to rely on the system's timezone settings. You are *required*
>> to use the date.timezone setting or the date_default_timezone_set()
>> function. In case you used any of those methods and you are still getting
>> this warning, you most likely misspelled the timezone identifier. We
>> selected 'America/Denver' for '-6.0/DST' instead in
>> C:\\webdev\\rmv3\\album\\getalbumpics.php on line 11, referer:
>> http://localhost/album.htm
>>
>> (this error is repeated for as many images I have in the directory that
>> the php script is reading).
>>
>> Between php.ini, httpd.conf, and Windows Vista, I can't figure out where
>> to start to diagnose this, and how. Anybody out there who can give me a
>> pointer on how to roubleshoot this issue? I am almost ready to throw in the
>> towel and either start from scratch (although this is alrady the second time
>> that I have uninstalled and re-installed everything), or simply forget about
>> php altogether. that would be a shame, though...
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Re: page works on public web site, but not on my computer

am 26.08.2009 08:47:10 von Lester Caine

mike bode wrote:
> I have posted the question in another thread a bit down, but only buried
> within the thread, so please excuse me when I ask again.
>
> I want to use some PHP code from a web site
> (http://www.dynamicdrive.com/dynamicindex4/php-photoalbum.ht m), and I am
> following their instruction how to implement it.

Mike it is probably worth pointing out that PHP5.3 has a LOT of changes
that will be flagged with warnings when running PHP5.2 or earlier code.
Since it will be some time (if ever) before the existing code samples
are updated, then switching display_errors off in php.ini will be the
only way of hiding them. This does not help of cause if you ARE trying
to do additional development and these additional error messages get in
the way :(

Certainly some major projects are simply not yet compatible with PHP5.3

--
Lester Caine - G8HFL
-----------------------------
Contact - http://lsces.co.uk/wiki/?page=contact
L.S.Caine Electronic Services - http://lsces.co.uk
EnquirySolve - http://enquirysolve.com/
Model Engineers Digital Workshop - http://medw.co.uk//
Firebird - http://www.firebirdsql.org/index.php

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

RE: Re: page works on public web site, but not on my computer

am 26.08.2009 14:27:27 von Bob McConnell

I recommend you start by replacing Vista. There are so many problems
with it that Microsoft is rushing to ship a replacement as soon as
possible. It remains to be seen whether Windows 7 is a real fix or
merely more of the same problems.

I am not aware of any serious developers writing code specifically for
Vista. We only test our products on it enough to decide if we will
support each product on that OS. If they don't work out of the box, we
don't support them nor recommend our clients install them on Vista.
There are no copies of Vista installed in the company outside of the ESX
servers used for testing.

I would recommend Red Hat as the replacement.

Bob McConnell

-----Original Message-----
From: mike bode [mailto:mikebode1@hotmail.com]=20
Sent: Tuesday, August 25, 2009 11:41 PM
To: php-general@lists.php.net
Subject: [PHP] Re: page works on public web site, but not on my computer

I just de-installed, then re-installed MySQL, Apache and PHP 5.3. No=20
changes. The script does not work on my computer.

Now I get in addition to the error message below this:

[Tue Aug 25 21:29:11 2009] [error] [client 127.0.0.1] PHP Deprecated:=20
Function eregi() is deprecated in
C:\\webdev\\rmv3\\album\\getalbumpics.php=20
on line 11, referer: http://localhost/album.php

Don't know if those warnings would stop the execution of the php script.


""mike bode"" wrote in message=20
news:99.F2.08117.CCF749A4@pb1.pair.com...
>I have posted the question in another thread a bit down, but only
buried=20
>within the thread, so please excuse me when I ask again.
>
> I want to use some PHP code from a web site=20
> (http://www.dynamicdrive.com/dynamicindex4/php-photoalbum.ht m), and I
am=20
> following their instruction how to implement it. I was not able to get
it=20
> to work. Then I uploaded the code to a server, and lo and behold, it
does=20
> work on the server. On the public site you see thumbnails of images
(never=20
> mind the junk above them), when I run the SAME html and php code on my

> omputer, I get a blank white page.
>
> The error log has several entries, but they are all warnings:
>
> [Tue Aug 25 18:12:00 2009] [error] [client 127.0.0.1] PHP Warning:=20
> date(): It is not safe to rely on the system's timezone settings. You
are=20
> *required* to use the date.timezone setting or the=20
> date_default_timezone_set() function. In case you used any of those=20
> methods and you are still getting this warning, you most likely
misspelled=20
> the timezone identifier. We selected 'America/Denver' for '-6.0/DST'=20
> instead in C:\\webdev\\rmv3\\album\\getalbumpics.php on line 11,
referer:=20
> http://localhost/album.htm
>
> (this error is repeated for as many images I have in the directory
that=20
> the php script is reading).
>
> Between php.ini, httpd.conf, and Windows Vista, I can't figure out
where=20
> to start to diagnose this, and how. Anybody out there who can give me
a=20
> pointer on how to roubleshoot this issue? I am almost ready to throw
in=20
> the towel and either start from scratch (although this is alrady the=20
> second time that I have uninstalled and re-installed everything), or=20
> simply forget about php altogether. that would be a shame, though...=20


--=20
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

RE: Re: page works on public web site, but not on my computer

am 26.08.2009 14:38:53 von Ashley Sheridan

On Wed, 2009-08-26 at 08:27 -0400, Bob McConnell wrote:
> I recommend you start by replacing Vista. There are so many problems
> with it that Microsoft is rushing to ship a replacement as soon as
> possible. It remains to be seen whether Windows 7 is a real fix or
> merely more of the same problems.
>
> I am not aware of any serious developers writing code specifically for
> Vista. We only test our products on it enough to decide if we will
> support each product on that OS. If they don't work out of the box, we
> don't support them nor recommend our clients install them on Vista.
> There are no copies of Vista installed in the company outside of the ESX
> servers used for testing.
>
> I would recommend Red Hat as the replacement.
>
> Bob McConnell
>
> -----Original Message-----
> From: mike bode [mailto:mikebode1@hotmail.com]
> Sent: Tuesday, August 25, 2009 11:41 PM
> To: php-general@lists.php.net
> Subject: [PHP] Re: page works on public web site, but not on my computer
>
> I just de-installed, then re-installed MySQL, Apache and PHP 5.3. No
> changes. The script does not work on my computer.
>
> Now I get in addition to the error message below this:
>
> [Tue Aug 25 21:29:11 2009] [error] [client 127.0.0.1] PHP Deprecated:
> Function eregi() is deprecated in
> C:\\webdev\\rmv3\\album\\getalbumpics.php
> on line 11, referer: http://localhost/album.php
>
> Don't know if those warnings would stop the execution of the php script.
>
>
> ""mike bode"" wrote in message
> news:99.F2.08117.CCF749A4@pb1.pair.com...
> >I have posted the question in another thread a bit down, but only
> buried
> >within the thread, so please excuse me when I ask again.
> >
> > I want to use some PHP code from a web site
> > (http://www.dynamicdrive.com/dynamicindex4/php-photoalbum.ht m), and I
> am
> > following their instruction how to implement it. I was not able to get
> it
> > to work. Then I uploaded the code to a server, and lo and behold, it
> does
> > work on the server. On the public site you see thumbnails of images
> (never
> > mind the junk above them), when I run the SAME html and php code on my
>
> > omputer, I get a blank white page.
> >
> > The error log has several entries, but they are all warnings:
> >
> > [Tue Aug 25 18:12:00 2009] [error] [client 127.0.0.1] PHP Warning:
> > date(): It is not safe to rely on the system's timezone settings. You
> are
> > *required* to use the date.timezone setting or the
> > date_default_timezone_set() function. In case you used any of those
> > methods and you are still getting this warning, you most likely
> misspelled
> > the timezone identifier. We selected 'America/Denver' for '-6.0/DST'
> > instead in C:\\webdev\\rmv3\\album\\getalbumpics.php on line 11,
> referer:
> > http://localhost/album.htm
> >
> > (this error is repeated for as many images I have in the directory
> that
> > the php script is reading).
> >
> > Between php.ini, httpd.conf, and Windows Vista, I can't figure out
> where
> > to start to diagnose this, and how. Anybody out there who can give me
> a
> > pointer on how to roubleshoot this issue? I am almost ready to throw
> in
> > the towel and either start from scratch (although this is alrady the
> > second time that I have uninstalled and re-installed everything), or
> > simply forget about php altogether. that would be a shame, though...
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>
I'll second that. I don't use Windows myself anymore for anything except
World of Warcraft, but my little time spent using Vista has left me
wanting to do violence! You can't go too wrong with using a Linux OS as
your development server, as that is what is in use on the majority of
the worlds web servers anyway. I've also not yet seen any PHP apps which
will only work on Windows, and I believe that most of the modules that
are in mainstream use at the moment are available on Linux (and more
than likely were available to that platform before Windows) and in a lot
of cases perform better.

Also, having a good bit of Linux experience under your belt can work
wonders on your CV!

RedHat is good for this sort of thing, or Fedora if you intend to use it
as your desktop machine also (as they are pretty much the same, but
Fedora is where new features, etc are seen first out of the two. Suse
isn't bad, and has some good Windows network integration (for things
like Active Directory) if you are using it as a work desktop machine as
well as a development server.



Thanks,
Ash
http://www.ashleysheridan.co.uk




--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Re: Re: page works on public web site, but not on my computer

am 27.08.2009 16:49:27 von mike bode

I understand, but that's not an option. I am not interested in getting into
a Linux vs. Windows fight here, let's just say that I am stuck with Windows.

Now, somthing's gotta be seriously wrong here. I have tried now 4 or 5
different scripts for the photo gallery that I am trying to implement and
NONE of them has worked. I have enabled all extensions and loaded all
modules in Apache and php -- still nothing.

I can't believe that the Apache Society out there simply ignores the 80% or
so that use Windows. Can anybody point me to a group that deals with Apache
(PHP) on Windows? Thanks.

mike

"Ashley Sheridan" wrote in message
news:1251290333.27899.27.camel@localhost...
> On Wed, 2009-08-26 at 08:27 -0400, Bob McConnell wrote:
>> I recommend you start by replacing Vista. There are so many problems
>> with it that Microsoft is rushing to ship a replacement as soon as
>> possible. It remains to be seen whether Windows 7 is a real fix or
>> merely more of the same problems.
>>
>> I am not aware of any serious developers writing code specifically for
>> Vista. We only test our products on it enough to decide if we will
>> support each product on that OS. If they don't work out of the box, we
>> don't support them nor recommend our clients install them on Vista.
>> There are no copies of Vista installed in the company outside of the ESX
>> servers used for testing.
>>
>> I would recommend Red Hat as the replacement.
>>
>> Bob McConnell
>>
>> -----Original Message-----
>> From: mike bode [mailto:mikebode1@hotmail.com]
>> Sent: Tuesday, August 25, 2009 11:41 PM
>> To: php-general@lists.php.net
>> Subject: [PHP] Re: page works on public web site, but not on my computer
>>
>> I just de-installed, then re-installed MySQL, Apache and PHP 5.3. No
>> changes. The script does not work on my computer.
>>
>> Now I get in addition to the error message below this:
>>
>> [Tue Aug 25 21:29:11 2009] [error] [client 127.0.0.1] PHP Deprecated:
>> Function eregi() is deprecated in
>> C:\\webdev\\rmv3\\album\\getalbumpics.php
>> on line 11, referer: http://localhost/album.php
>>
>> Don't know if those warnings would stop the execution of the php script.
>>
>>
>> ""mike bode"" wrote in message
>> news:99.F2.08117.CCF749A4@pb1.pair.com...
>> >I have posted the question in another thread a bit down, but only
>> buried
>> >within the thread, so please excuse me when I ask again.
>> >
>> > I want to use some PHP code from a web site
>> > (http://www.dynamicdrive.com/dynamicindex4/php-photoalbum.ht m), and I
>> am
>> > following their instruction how to implement it. I was not able to get
>> it
>> > to work. Then I uploaded the code to a server, and lo and behold, it
>> does
>> > work on the server. On the public site you see thumbnails of images
>> (never
>> > mind the junk above them), when I run the SAME html and php code on my
>>
>> > omputer, I get a blank white page.
>> >
>> > The error log has several entries, but they are all warnings:
>> >
>> > [Tue Aug 25 18:12:00 2009] [error] [client 127.0.0.1] PHP Warning:
>> > date(): It is not safe to rely on the system's timezone settings. You
>> are
>> > *required* to use the date.timezone setting or the
>> > date_default_timezone_set() function. In case you used any of those
>> > methods and you are still getting this warning, you most likely
>> misspelled
>> > the timezone identifier. We selected 'America/Denver' for '-6.0/DST'
>> > instead in C:\\webdev\\rmv3\\album\\getalbumpics.php on line 11,
>> referer:
>> > http://localhost/album.htm
>> >
>> > (this error is repeated for as many images I have in the directory
>> that
>> > the php script is reading).
>> >
>> > Between php.ini, httpd.conf, and Windows Vista, I can't figure out
>> where
>> > to start to diagnose this, and how. Anybody out there who can give me
>> a
>> > pointer on how to roubleshoot this issue? I am almost ready to throw
>> in
>> > the towel and either start from scratch (although this is alrady the
>> > second time that I have uninstalled and re-installed everything), or
>> > simply forget about php altogether. that would be a shame, though...
>>
>>
>> --
>> PHP General Mailing List (http://www.php.net/)
>> To unsubscribe, visit: http://www.php.net/unsub.php
>>
>>
> I'll second that. I don't use Windows myself anymore for anything except
> World of Warcraft, but my little time spent using Vista has left me
> wanting to do violence! You can't go too wrong with using a Linux OS as
> your development server, as that is what is in use on the majority of
> the worlds web servers anyway. I've also not yet seen any PHP apps which
> will only work on Windows, and I believe that most of the modules that
> are in mainstream use at the moment are available on Linux (and more
> than likely were available to that platform before Windows) and in a lot
> of cases perform better.
>
> Also, having a good bit of Linux experience under your belt can work
> wonders on your CV!
>
> RedHat is good for this sort of thing, or Fedora if you intend to use it
> as your desktop machine also (as they are pretty much the same, but
> Fedora is where new features, etc are seen first out of the two. Suse
> isn't bad, and has some good Windows network integration (for things
> like Active Directory) if you are using it as a work desktop machine as
> well as a development server.
>
>
>
> Thanks,
> Ash
> http://www.ashleysheridan.co.uk
>
>
>


--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

RE: Re: page works on public web site, but not on my computer

am 27.08.2009 16:51:31 von Bob McConnell

Mike,

It's not MS-Windows, it's just Vista. Vista was designed and distributed
for use as a home entertainment center. It was loaded with DRM and other
restrictions to entice the RIAA and MPAA to use it as their primary
platform for distributing music and movies, respectively. That pretty
much broke it for any serious uses.

If you can't avoid MS-Windows, at least upgrade to XP.

Bob McConnell

-----Original Message-----
From: mike bode [mailto:mikebode1@hotmail.com]=20
Sent: Thursday, August 27, 2009 10:49 AM
To: php-general@lists.php.net
Subject: Re: [PHP] Re: page works on public web site, but not on my
computer

I understand, but that's not an option. I am not interested in getting
into=20
a Linux vs. Windows fight here, let's just say that I am stuck with
Windows.

Now, somthing's gotta be seriously wrong here. I have tried now 4 or 5=20
different scripts for the photo gallery that I am trying to implement
and=20
NONE of them has worked. I have enabled all extensions and loaded all=20
modules in Apache and php -- still nothing.

I can't believe that the Apache Society out there simply ignores the 80%
or=20
so that use Windows. Can anybody point me to a group that deals with
Apache=20
(PHP) on Windows? Thanks.

mike

"Ashley Sheridan" wrote in message=20
news:1251290333.27899.27.camel@localhost...
> On Wed, 2009-08-26 at 08:27 -0400, Bob McConnell wrote:
>> I recommend you start by replacing Vista. There are so many problems
>> with it that Microsoft is rushing to ship a replacement as soon as
>> possible. It remains to be seen whether Windows 7 is a real fix or
>> merely more of the same problems.
>>
>> I am not aware of any serious developers writing code specifically
for
>> Vista. We only test our products on it enough to decide if we will
>> support each product on that OS. If they don't work out of the box,
we
>> don't support them nor recommend our clients install them on Vista.
>> There are no copies of Vista installed in the company outside of the
ESX
>> servers used for testing.
>>
>> I would recommend Red Hat as the replacement.
>>
>> Bob McConnell
>>
>> -----Original Message-----
>> From: mike bode [mailto:mikebode1@hotmail.com]
>> Sent: Tuesday, August 25, 2009 11:41 PM
>> To: php-general@lists.php.net
>> Subject: [PHP] Re: page works on public web site, but not on my
computer
>>
>> I just de-installed, then re-installed MySQL, Apache and PHP 5.3. No
>> changes. The script does not work on my computer.
>>
>> Now I get in addition to the error message below this:
>>
>> [Tue Aug 25 21:29:11 2009] [error] [client 127.0.0.1] PHP Deprecated:
>> Function eregi() is deprecated in
>> C:\\webdev\\rmv3\\album\\getalbumpics.php
>> on line 11, referer: http://localhost/album.php
>>
>> Don't know if those warnings would stop the execution of the php
script.
>>
>>
>> ""mike bode"" wrote in message
>> news:99.F2.08117.CCF749A4@pb1.pair.com...
>> >I have posted the question in another thread a bit down, but only
>> buried
>> >within the thread, so please excuse me when I ask again.
>> >
>> > I want to use some PHP code from a web site
>> > (http://www.dynamicdrive.com/dynamicindex4/php-photoalbum.ht m), and
I
>> am
>> > following their instruction how to implement it. I was not able to
get
>> it
>> > to work. Then I uploaded the code to a server, and lo and behold,
it
>> does
>> > work on the server. On the public site you see thumbnails of images
>> (never
>> > mind the junk above them), when I run the SAME html and php code on
my
>>
>> > omputer, I get a blank white page.
>> >
>> > The error log has several entries, but they are all warnings:
>> >
>> > [Tue Aug 25 18:12:00 2009] [error] [client 127.0.0.1] PHP Warning:
>> > date(): It is not safe to rely on the system's timezone settings.
You
>> are
>> > *required* to use the date.timezone setting or the
>> > date_default_timezone_set() function. In case you used any of those
>> > methods and you are still getting this warning, you most likely
>> misspelled
>> > the timezone identifier. We selected 'America/Denver' for
'-6.0/DST'
>> > instead in C:\\webdev\\rmv3\\album\\getalbumpics.php on line 11,
>> referer:
>> > http://localhost/album.htm
>> >
>> > (this error is repeated for as many images I have in the directory
>> that
>> > the php script is reading).
>> >
>> > Between php.ini, httpd.conf, and Windows Vista, I can't figure out
>> where
>> > to start to diagnose this, and how. Anybody out there who can give
me
>> a
>> > pointer on how to roubleshoot this issue? I am almost ready to
throw
>> in
>> > the towel and either start from scratch (although this is alrady
the
>> > second time that I have uninstalled and re-installed everything),
or
>> > simply forget about php altogether. that would be a shame,
though...
>>
>>
>> --=20
>> PHP General Mailing List (http://www.php.net/)
>> To unsubscribe, visit: http://www.php.net/unsub.php
>>
>>
> I'll second that. I don't use Windows myself anymore for anything
except
> World of Warcraft, but my little time spent using Vista has left me
> wanting to do violence! You can't go too wrong with using a Linux OS
as
> your development server, as that is what is in use on the majority of
> the worlds web servers anyway. I've also not yet seen any PHP apps
which
> will only work on Windows, and I believe that most of the modules that
> are in mainstream use at the moment are available on Linux (and more
> than likely were available to that platform before Windows) and in a
lot
> of cases perform better.
>
> Also, having a good bit of Linux experience under your belt can work
> wonders on your CV!
>
> RedHat is good for this sort of thing, or Fedora if you intend to use
it
> as your desktop machine also (as they are pretty much the same, but
> Fedora is where new features, etc are seen first out of the two. Suse
> isn't bad, and has some good Windows network integration (for things
> like Active Directory) if you are using it as a work desktop machine
as
> well as a development server.
>
>
>
> Thanks,
> Ash
> http://www.ashleysheridan.co.uk
>
>
>=20


--=20
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Re: Re: page works on public web site, but not on my computer

am 27.08.2009 16:53:22 von Ashley Sheridan

On Thu, 2009-08-27 at 08:49 -0600, mike bode wrote:
> I understand, but that's not an option. I am not interested in getting into
> a Linux vs. Windows fight here, let's just say that I am stuck with Windows.
>
> Now, somthing's gotta be seriously wrong here. I have tried now 4 or 5
> different scripts for the photo gallery that I am trying to implement and
> NONE of them has worked. I have enabled all extensions and loaded all
> modules in Apache and php -- still nothing.
>
> I can't believe that the Apache Society out there simply ignores the 80% or
> so that use Windows. Can anybody point me to a group that deals with Apache
> (PHP) on Windows? Thanks.
>
> mike
>
> "Ashley Sheridan" wrote in message
> news:1251290333.27899.27.camel@localhost...
> > On Wed, 2009-08-26 at 08:27 -0400, Bob McConnell wrote:
> >> I recommend you start by replacing Vista. There are so many problems
> >> with it that Microsoft is rushing to ship a replacement as soon as
> >> possible. It remains to be seen whether Windows 7 is a real fix or
> >> merely more of the same problems.
> >>
> >> I am not aware of any serious developers writing code specifically for
> >> Vista. We only test our products on it enough to decide if we will
> >> support each product on that OS. If they don't work out of the box, we
> >> don't support them nor recommend our clients install them on Vista.
> >> There are no copies of Vista installed in the company outside of the ESX
> >> servers used for testing.
> >>
> >> I would recommend Red Hat as the replacement.
> >>
> >> Bob McConnell
> >>
> >> -----Original Message-----
> >> From: mike bode [mailto:mikebode1@hotmail.com]
> >> Sent: Tuesday, August 25, 2009 11:41 PM
> >> To: php-general@lists.php.net
> >> Subject: [PHP] Re: page works on public web site, but not on my computer
> >>
> >> I just de-installed, then re-installed MySQL, Apache and PHP 5.3. No
> >> changes. The script does not work on my computer.
> >>
> >> Now I get in addition to the error message below this:
> >>
> >> [Tue Aug 25 21:29:11 2009] [error] [client 127.0.0.1] PHP Deprecated:
> >> Function eregi() is deprecated in
> >> C:\\webdev\\rmv3\\album\\getalbumpics.php
> >> on line 11, referer: http://localhost/album.php
> >>
> >> Don't know if those warnings would stop the execution of the php script.
> >>
> >>
> >> ""mike bode"" wrote in message
> >> news:99.F2.08117.CCF749A4@pb1.pair.com...
> >> >I have posted the question in another thread a bit down, but only
> >> buried
> >> >within the thread, so please excuse me when I ask again.
> >> >
> >> > I want to use some PHP code from a web site
> >> > (http://www.dynamicdrive.com/dynamicindex4/php-photoalbum.ht m), and I
> >> am
> >> > following their instruction how to implement it. I was not able to get
> >> it
> >> > to work. Then I uploaded the code to a server, and lo and behold, it
> >> does
> >> > work on the server. On the public site you see thumbnails of images
> >> (never
> >> > mind the junk above them), when I run the SAME html and php code on my
> >>
> >> > omputer, I get a blank white page.
> >> >
> >> > The error log has several entries, but they are all warnings:
> >> >
> >> > [Tue Aug 25 18:12:00 2009] [error] [client 127.0.0.1] PHP Warning:
> >> > date(): It is not safe to rely on the system's timezone settings. You
> >> are
> >> > *required* to use the date.timezone setting or the
> >> > date_default_timezone_set() function. In case you used any of those
> >> > methods and you are still getting this warning, you most likely
> >> misspelled
> >> > the timezone identifier. We selected 'America/Denver' for '-6.0/DST'
> >> > instead in C:\\webdev\\rmv3\\album\\getalbumpics.php on line 11,
> >> referer:
> >> > http://localhost/album.htm
> >> >
> >> > (this error is repeated for as many images I have in the directory
> >> that
> >> > the php script is reading).
> >> >
> >> > Between php.ini, httpd.conf, and Windows Vista, I can't figure out
> >> where
> >> > to start to diagnose this, and how. Anybody out there who can give me
> >> a
> >> > pointer on how to roubleshoot this issue? I am almost ready to throw
> >> in
> >> > the towel and either start from scratch (although this is alrady the
> >> > second time that I have uninstalled and re-installed everything), or
> >> > simply forget about php altogether. that would be a shame, though...
> >>
> >>
> >> --
> >> PHP General Mailing List (http://www.php.net/)
> >> To unsubscribe, visit: http://www.php.net/unsub.php
> >>
> >>
> > I'll second that. I don't use Windows myself anymore for anything except
> > World of Warcraft, but my little time spent using Vista has left me
> > wanting to do violence! You can't go too wrong with using a Linux OS as
> > your development server, as that is what is in use on the majority of
> > the worlds web servers anyway. I've also not yet seen any PHP apps which
> > will only work on Windows, and I believe that most of the modules that
> > are in mainstream use at the moment are available on Linux (and more
> > than likely were available to that platform before Windows) and in a lot
> > of cases perform better.
> >
> > Also, having a good bit of Linux experience under your belt can work
> > wonders on your CV!
> >
> > RedHat is good for this sort of thing, or Fedora if you intend to use it
> > as your desktop machine also (as they are pretty much the same, but
> > Fedora is where new features, etc are seen first out of the two. Suse
> > isn't bad, and has some good Windows network integration (for things
> > like Active Directory) if you are using it as a work desktop machine as
> > well as a development server.
> >
> >
> >
> > Thanks,
> > Ash
> > http://www.ashleysheridan.co.uk
> >
> >
> >
>
>
It's actually probably a lot closer to 20% who use Windows.

You've mentioned that you are new to PHP. Are you able to post the whole
script somewhere so we can look at it and figure out what is going
wrong?

Thanks,
Ash
http://www.ashleysheridan.co.uk




--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Re: Re: page works on public web site, but not on my computer

am 27.08.2009 17:02:50 von Lars Torben Wilson

2009/8/27 mike bode :
> I understand, but that's not an option. I am not interested in getting in=
to
> a Linux vs. Windows fight here, let's just say that I am stuck with Windo=
ws.
>
> Now, somthing's gotta be seriously wrong here. I have tried now 4 or 5
> different scripts for the photo gallery that I am trying to implement and
> NONE of them has worked. I have enabled all extensions and loaded all
> modules in Apache and php -- still nothing.
>
> I can't believe that the Apache Society out there simply ignores the 80% =
or
> so that use Windows. Can anybody point me to a group that deals with Apac=
he
> (PHP) on Windows? =A0Thanks.
>
> mike

Hi Mike,

First off, it's hard to say whether your problem actually is
OS-related or whether it's due to a system misconfiguration or what.
That said, while the majority of desktop users may still use Windows,
I don't think you'll find that Windows or Vista make up a very large
percentage of Apache's target market at all.

Anyway, have you tried running just a script containing only phpinfo(); ?> ? This should at least give you an indication of whether
the installation is working at all.

I haven't gone back over both threads on this so if you've already
tried this and it worked, please ignore this. :)


Cheers,

Torben

> "Ashley Sheridan" wrote in message
> news:1251290333.27899.27.camel@localhost...
>>
>> On Wed, 2009-08-26 at 08:27 -0400, Bob McConnell wrote:
>>>
>>> I recommend you start by replacing Vista. There are so many problems
>>> with it that Microsoft is rushing to ship a replacement as soon as
>>> possible. It remains to be seen whether Windows 7 is a real fix or
>>> merely more of the same problems.
>>>
>>> I am not aware of any serious developers writing code specifically for
>>> Vista. We only test our products on it enough to decide if we will
>>> support each product on that OS. If they don't work out of the box, we
>>> don't support them nor recommend our clients install them on Vista.
>>> There are no copies of Vista installed in the company outside of the ES=
X
>>> servers used for testing.
>>>
>>> I would recommend Red Hat as the replacement.
>>>
>>> Bob McConnell
>>>
>>> -----Original Message-----
>>> From: mike bode [mailto:mikebode1@hotmail.com]
>>> Sent: Tuesday, August 25, 2009 11:41 PM
>>> To: php-general@lists.php.net
>>> Subject: [PHP] Re: page works on public web site, but not on my compute=
r
>>>
>>> I just de-installed, then re-installed MySQL, Apache and PHP 5.3. No
>>> changes. The script does not work on my computer.
>>>
>>> Now I get in addition to the error message below this:
>>>
>>> [Tue Aug 25 21:29:11 2009] [error] [client 127.0.0.1] PHP Deprecated:
>>> Function eregi() is deprecated in
>>> C:\\webdev\\rmv3\\album\\getalbumpics.php
>>> on line 11, referer: http://localhost/album.php
>>>
>>> Don't know if those warnings would stop the execution of the php script=
..
>>>
>>>
>>> ""mike bode"" wrote in message
>>> news:99.F2.08117.CCF749A4@pb1.pair.com...
>>> >I have posted the question in another thread a bit down, but only
>>> buried
>>> >within the thread, so please excuse me when I ask again.
>>> >
>>> > I want to use some PHP code from a web site
>>> > (http://www.dynamicdrive.com/dynamicindex4/php-photoalbum.ht m), and I
>>> am
>>> > following their instruction how to implement it. I was not able to ge=
t
>>> it
>>> > to work. Then I uploaded the code to a server, and lo and behold, it
>>> does
>>> > work on the server. On the public site you see thumbnails of images
>>> (never
>>> > mind the junk above them), when I run the SAME html and php code on m=
y
>>>
>>> > omputer, I get a blank white page.
>>> >
>>> > The error log has several entries, but they are all warnings:
>>> >
>>> > [Tue Aug 25 18:12:00 2009] [error] [client 127.0.0.1] PHP Warning:
>>> > date(): It is not safe to rely on the system's timezone settings. You
>>> are
>>> > *required* to use the date.timezone setting or the
>>> > date_default_timezone_set() function. In case you used any of those
>>> > methods and you are still getting this warning, you most likely
>>> misspelled
>>> > the timezone identifier. We selected 'America/Denver' for '-6.0/DST'
>>> > instead in C:\\webdev\\rmv3\\album\\getalbumpics.php on line 11,
>>> referer:
>>> > http://localhost/album.htm
>>> >
>>> > (this error is repeated for as many images I have in the directory
>>> that
>>> > the php script is reading).
>>> >
>>> > Between php.ini, httpd.conf, and Windows Vista, I can't figure out
>>> where
>>> > to start to diagnose this, and how. Anybody out there who can give me
>>> a
>>> > pointer on how to roubleshoot this issue? I am almost ready to throw
>>> in
>>> > the towel and either start from scratch (although this is alrady the
>>> > second time that I have uninstalled and re-installed everything), or
>>> > simply forget about php altogether. that would be a shame, though...
>>>
>>>
>>> --
>>> PHP General Mailing List (http://www.php.net/)
>>> To unsubscribe, visit: http://www.php.net/unsub.php
>>>
>>>
>> I'll second that. I don't use Windows myself anymore for anything except
>> World of Warcraft, but my little time spent using Vista has left me
>> wanting to do violence! You can't go too wrong with using a Linux OS as
>> your development server, as that is what is in use on the majority of
>> the worlds web servers anyway. I've also not yet seen any PHP apps which
>> will only work on Windows, and I believe that most of the modules that
>> are in mainstream use at the moment are available on Linux (and more
>> than likely were available to that platform before Windows) and in a lot
>> of cases perform better.
>>
>> Also, having a good bit of Linux experience under your belt can work
>> wonders on your CV!
>>
>> RedHat is good for this sort of thing, or Fedora if you intend to use it
>> as your desktop machine also (as they are pretty much the same, but
>> Fedora is where new features, etc are seen first out of the two. Suse
>> isn't bad, and has some good Windows network integration (for things
>> like Active Directory) if you are using it as a work desktop machine as
>> well as a development server.
>>
>>
>>
>> Thanks,
>> Ash
>> http://www.ashleysheridan.co.uk
>>
>>
>>
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

RE: Re: page works on public web site, but not on my computer

am 27.08.2009 17:22:54 von Arno Kuhl

-----Original Message-----
From: mike bode [mailto:mikebode1@hotmail.com]
Sent: 27 August 2009 04:49 PM
To: php-general@lists.php.net
Subject: Re: [PHP] Re: page works on public web site, but not on my computer

I understand, but that's not an option. I am not interested in getting into
a Linux vs. Windows fight here, let's just say that I am stuck with Windows.

Now, somthing's gotta be seriously wrong here. I have tried now 4 or 5
different scripts for the photo gallery that I am trying to implement and
NONE of them has worked. I have enabled all extensions and loaded all
modules in Apache and php -- still nothing.

I can't believe that the Apache Society out there simply ignores the 80% or
so that use Windows. Can anybody point me to a group that deals with Apache
(PHP) on Windows? Thanks.

mike

>> -----Original Message-----
>> From: mike bode [mailto:mikebode1@hotmail.com]
>> Sent: Tuesday, August 25, 2009 11:41 PM
>> To: php-general@lists.php.net
>> Subject: [PHP] Re: page works on public web site, but not on my
>> computer
>>
>> I just de-installed, then re-installed MySQL, Apache and PHP 5.3. No
>> changes. The script does not work on my computer.
>>
>> Now I get in addition to the error message below this:
>>
>> [Tue Aug 25 21:29:11 2009] [error] [client 127.0.0.1] PHP Deprecated:
>> Function eregi() is deprecated in
>> C:\\webdev\\rmv3\\album\\getalbumpics.php
>> on line 11, referer: http://localhost/album.php
>>
>> Don't know if those warnings would stop the execution of the php script.
>>
>>
>> ""mike bode"" wrote in message
>> news:99.F2.08117.CCF749A4@pb1.pair.com...
>> >I have posted the question in another thread a bit down, but only
>> buried
>> >within the thread, so please excuse me when I ask again.
>> >
>> > I want to use some PHP code from a web site
>> > (http://www.dynamicdrive.com/dynamicindex4/php-photoalbum.ht m), and
>> > I
>> am
>> > following their instruction how to implement it. I was not able to
>> > get
>> it
>> > to work. Then I uploaded the code to a server, and lo and behold,
>> > it
>> does
>> > work on the server. On the public site you see thumbnails of images
>> (never
>> > mind the junk above them), when I run the SAME html and php code on
>> > my
>>
>> > omputer, I get a blank white page.
>> >
>> > The error log has several entries, but they are all warnings:
>> >
>> > [Tue Aug 25 18:12:00 2009] [error] [client 127.0.0.1] PHP Warning:
>> > date(): It is not safe to rely on the system's timezone settings.
>> > You
>> are
>> > *required* to use the date.timezone setting or the
>> > date_default_timezone_set() function. In case you used any of those
>> > methods and you are still getting this warning, you most likely
>> misspelled
>> > the timezone identifier. We selected 'America/Denver' for '-6.0/DST'
>> > instead in C:\\webdev\\rmv3\\album\\getalbumpics.php on line 11,
>> referer:
>> > http://localhost/album.htm
>> >
>> > (this error is repeated for as many images I have in the directory
>> that
>> > the php script is reading).
>> >
>> > Between php.ini, httpd.conf, and Windows Vista, I can't figure out
>> where
>> > to start to diagnose this, and how. Anybody out there who can give
>> > me
>> a
>> > pointer on how to roubleshoot this issue? I am almost ready to
>> > throw
>> in
>> > the towel and either start from scratch (although this is alrady
>> > the second time that I have uninstalled and re-installed
>> > everything), or simply forget about php altogether. that would be a
shame, though...
>>
>>
>> --

I'm sure there are many on this list that develop on the Windows platform,
including myself. I deploy on Linux, and personally I find the two
environments to be very compatible (in fact besides the url and filename
case differences I haven't found any practical difference between the two at
all). So it's not at all true that Apache "simply ignores the 80% or so that
use Windows". You previously said you're new to php, so what are the chances
that this has more to do with your own inexperience with php rather than
some Windows-only bug you've discovered and are revealing to the rest of the
php community?

The error message mentions the script name and a line number, have you
checked what code is causing the error?

You said you installed php 5.3 on your pc. Chances are very high that the
host you uploaded this to is not running php 5.3. Someone previously
mentioned that there are differences between 5.3 and the previous versions
that could account for your issues. Have you tried installing php 5.2 and
trying it again? There are also settings in php ini file that you can change
to change the error reporting, but it's not clear if you've tried that yet.
One final thing, have you tried to google with the error message to see how
others dealt with this problem?

Cheers
Arno




--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Re: page works on public web site, but not on my computer

am 27.08.2009 17:26:14 von Shawn McKenzie

mike bode wrote:
> I have posted the question in another thread a bit down, but only buried
> within the thread, so please excuse me when I ask again.
>
> I want to use some PHP code from a web site
> (http://www.dynamicdrive.com/dynamicindex4/php-photoalbum.ht m), and I am
> following their instruction how to implement it. I was not able to get
> it to work. Then I uploaded the code to a server, and lo and behold, it
> does work on the server. On the public site you see thumbnails of images
> (never mind the junk above them), when I run the SAME html and php code
> on my omputer, I get a blank white page.
>
> The error log has several entries, but they are all warnings:
>
> [Tue Aug 25 18:12:00 2009] [error] [client 127.0.0.1] PHP Warning:
> date(): It is not safe to rely on the system's timezone settings. You
> are *required* to use the date.timezone setting or the
> date_default_timezone_set() function. In case you used any of those
> methods and you are still getting this warning, you most likely
> misspelled the timezone identifier. We selected 'America/Denver' for
> '-6.0/DST' instead in C:\\webdev\\rmv3\\album\\getalbumpics.php on line
> 11, referer: http://localhost/album.htm
>
> (this error is repeated for as many images I have in the directory that
> the php script is reading).
>
> Between php.ini, httpd.conf, and Windows Vista, I can't figure out where
> to start to diagnose this, and how. Anybody out there who can give me a
> pointer on how to roubleshoot this issue? I am almost ready to throw in
> the towel and either start from scratch (although this is alrady the
> second time that I have uninstalled and re-installed everything), or
> simply forget about php altogether. that would be a shame, though...

I just had a look at this script. It is very small and mostly builds a
list of all files in a dir and outputs javascript that interacts with
javascript that has been included in your HTML page. The first thing
that jumped out at me was the short tags in the PHP. Try changing the
first line from
--
Thanks!
-Shawn
http://www.spidean.com

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php