# php.net on PHP5

- Thread: https://externals.io/message/10619
- Original archive: https://news-web.php.net/php.internals/10619
- Started by Lester Caine on 2004-06-19T16:22:46+00:00
- Messages: 16
- Reply by email to internals@lists.php.net
- More for agents: search with https://externals.io/search.md?q={query} · JSON API at https://externals.io/api · documentation at https://externals.io/llms.txt

---

## #10619 — Lester Caine — 2004-06-19T16:22:46+00:00

URL: https://externals.io/message/10619#10619

OK I've downloaded phpweb and tried to run it on PHP5, but have fallen 
at the first hurdle.

index.php calls for
include/pregen-events.inc
but I can't see that on the CVS - where am I going wrong :)

Second problem - it seems to be hard coded to be the root web directory, 
is that the same in PHP4? If I want to run it I have to make phpweb my 
root Apache directory. I'm normally designing to a subdirectory which 
can be changed without affecting operations, such as running a new 
version, so fixed paths through me a bit ;)

-- 
Lester Caine
-----------------------------
L.S.Caine Electronic Services

---

## #10620 — Timm Friebe — 2004-06-19T16:23:09+00:00

URL: https://externals.io/message/10619#10620 · In reply to: #10619

Hello Lester,


> OK I've downloaded phpweb and tried to run it on PHP5, but have fallen 
> at the first hurdle.
> 
> index.php calls for
> include/pregen-events.inc
> but I can't see that on the CVS - where am I going wrong :)

Use rsync:

-- snip rsync.sh from our php.net mirror --
#!/bin/sh

base="/home/httpd/php3.de"
/usr/local/bin/rsync -avzC --delete --delete-after rsync.php.net::phpweb
$base/doc_root >/dev/null
-- /snip --

> Second problem - it seems to be hard coded to be the root web directory, 
> is that the same in PHP4? If I want to run it I have to make phpweb my 
> root Apache directory. I'm normally designing to a subdirectory which 
> can be changed without affecting operations, such as running a new 
> version, so fixed paths through me a bit ;)

How about virtualhosts?

- Timm

---

## #10623 — Timm Friebe — 2004-06-19T16:34:27+00:00

URL: https://externals.io/message/10619#10623 · In reply to: #10621

> Timm Friebe wrote:
[...]
> > […]
> 
> And now in English ?

Don't use a cvs checkout, use the above shell script. If you use a cvs
checkout, you'll have to start the build script, which takes quite a
while to complete. The rsync should be faster and you can be sure you
have an exact copy of php.net, including all generated files.

- Timm

---

## #10621 — Lester Caine — 2004-06-19T16:37:16+00:00

URL: https://externals.io/message/10619#10621 · In reply to: #10620

Timm Friebe wrote:

> Hello Lester,
> 
> 
> 
> > […]
> 
> 
> Use rsync:
> 
> -- snip rsync.sh from our php.net mirror --
> #!/bin/sh
> 
> base="/home/httpd/php3.de"
> /usr/local/bin/rsync -avzC --delete --delete-after rsync.php.net::phpweb
> $base/doc_root >/dev/null
> -- /snip --

And now in English ?
I'm running CVS on Eclipse3 (on Windows) - pregen-events.inc is not 
present in HEAD as far as I can see so what should I be 'syncing' with ?

> > […]
> 
> How about virtualhosts?

I've only just sorted out real ones :)

-- 
Lester Caine
-----------------------------
L.S.Caine Electronic Services

---

## #10625 — Lester Caine — 2004-06-19T17:00:27+00:00

URL: https://externals.io/message/10619#10625 · In reply to: #10623

Timm Friebe wrote:

> 
> 
> > […]
> 
> [...]
> 
> > […]
> 
> 
> Don't use a cvs checkout, use the above shell script. If you use a cvs
> checkout, you'll have to start the build script, which takes quite a
> while to complete. The rsync should be faster and you can be sure you
> have an exact copy of php.net, including all generated files.

So I'm basically stuffed ?

And I'm only trying to help.

Anybody know how to use this script with Eclipse CVS on Windows ?

-- 
Lester Caine
-----------------------------
L.S.Caine Electronic Services

---

## #10626 — Timm Friebe — 2004-06-19T17:02:15+00:00

URL: https://externals.io/message/10619#10626 · In reply to: #10625

> Timm Friebe wrote:
[...]
> Anybody know how to use this script with Eclipse CVS on Windows ?

Get cygwin (http://cygwin.com/) or check Google on a Windows version of
it (http://www.google.com/search?q=rsync%20Windows).

- Timm

---

## #10627 — Olivier Hill — 2004-06-19T17:31:52+00:00

URL: https://externals.io/message/10619#10627 · In reply to: #10625

Lester Caine wrote:
> 
> Anybody know how to use this script with Eclipse CVS on Windows ?

rsync has nothing to do with CVS. Try getting a Windows client of rsync.

On the other hand, since the PHP website is running on UNIX, I don't 
think it should be tested on Windows. We have recently seen bugs with 
PHP5 that only happened on Windows. The opposite might be true, and 
while it could run fine on Windows, maybe it'd segfault on UNIX.

Sincerely,
Olivier
-- 
GB/E/IT d+ s+:+ a-- C++$ UL++++$ P++++ L+++$ E- W++$ N- ?o ?K w--(---) 
!O M+$ V- PS+ PE- Y PGP t++ 5-- X+@ R- tv++ b++(+++) DI++++ D+ G++ e+>++ 
h(*) r y+(?)

---

## #10628 — George Schlossnagle — 2004-06-19T17:35:30+00:00

URL: https://externals.io/message/10619#10628 · In reply to: #10627

> Lester Caine wrote:
> > […]
>
> rsync has nothing to do with CVS. Try getting a Windows client of 
> rsync.
>
> On the other hand, since the PHP website is running on UNIX, I don't 
> think it should be tested on Windows. We have recently seen bugs with 
> PHP5 that only happened on Windows. The opposite might be true, and 
> while it could run fine on Windows, maybe it'd segfault on UNIX.

Why eliminate a testing platform?  PHP5 should be tested wherever 
possible and bugs reported.

George

---

## #10629 — Jan Lehnardt — 2004-06-19T17:36:10+00:00

URL: https://externals.io/message/10619#10629 · In reply to: #10625

Hi,
I did the rsync for Lester and put up an archive
for him to download, excluding extra/ distributions/
and manual/

I sent him the URL to the archive in a private mail,
if anyone else is interested, please drop me a note.

Jan
--
GPG Key: BB96 56B0
Q: Thank Jan? - A: http://geschenke.an.dasmoped.net/

---

## #10630 — Olivier Hill — 2004-06-19T17:42:12+00:00

URL: https://externals.io/message/10619#10630 · In reply to: #10628

George Schlossnagle wrote:
> 
> Why eliminate a testing platform?  PHP5 should be tested wherever 
> possible and bugs reported.

+1 ;)

You are right. What I meant was more: "Let's test it on Windows, but 
before we can conclude the website is PHP5 ready, let's test it on the 
same platform it is already running on".

Which raise another question: Is someone hosting a PHP website mirror 
would be ready to migrate to PHP5? While it would give a good 
indication, it would not shut down the main site in case of problems. Is 
it something we would like to do?

If I'm being ridiculous, I'm terribly sorry,
Olivier
-- 
GB/E/IT d+ s+:+ a-- C++$ UL++++$ P++++ L+++$ E- W++$ N- ?o ?K w--(---) 
!O M+$ V- PS+ PE- Y PGP t++ 5-- X+@ R- tv++ b++(+++) DI++++ D+ G++ e+>++ 
h(*) r y+(?)

---

## #10631 — Nuno Lopes — 2004-06-19T17:50:44+00:00

URL: https://externals.io/message/10619#10631 · In reply to: #10630

> You are right. What I meant was more: "Let's test it on Windows, but
> before we can conclude the website is PHP5 ready, let's test it on the
> same platform it is already running on".
>
> Which raise another question: Is someone hosting a PHP website mirror
> would be ready to migrate to PHP5? While it would give a good
> indication, it would not shut down the main site in case of problems. Is
> it something we would like to do?

There are already two mirrors running PHP 5!

I'm also running PHP 5 in my windows box since the first beta and now it
doesn't crash. (bah, when I restart/stop apache2 it sometimes gives an
error....).

Nuno

---

## #10632 — Lester Caine — 2004-06-19T17:55:13+00:00

URL: https://externals.io/message/10619#10632 · In reply to: #10631

Nuno Lopes wrote:

> > […]
> 
> There are already two mirrors running PHP 5!
> 
> I'm also running PHP 5 in my windows box since the first beta and now it
> doesn't crash. (bah, when I restart/stop apache2 it sometimes gives an
> error....).

Had that with RC1. It's been fine on RC2 and 3

-- 
Lester Caine
-----------------------------
L.S.Caine Electronic Services

---

## #10633 — Lester Caine — 2004-06-19T18:00:56+00:00

URL: https://externals.io/message/10619#10633 · In reply to: #10626

Timm Friebe wrote:

> > […]
> 
> Get cygwin (http://cygwin.com/) or check Google on a Windows version of
> it (http://www.google.com/search?q=rsync%20Windows).

No thanks - I've been there before.
I'm running Eclipse with PHPEclipse and if I need anything other than 
that then - 'Sorry I can't help' ;)

Thanks for the download Jan. Just need to make sure I don't mix up what 
should and what should not be in HEAD :)

-- 
Lester Caine
-----------------------------
L.S.Caine Electronic Services

---

## #10634 — Sebastian Bergmann — 2004-06-19T18:35:18+00:00

URL: https://externals.io/message/10619#10634 · In reply to: #10633

Lester Caine wrote:
> I'm running Eclipse with PHPEclipse and if I need anything other than 
> that then - 'Sorry I can't help' ;)

  What does an IDE (Eclipse in your case) have to do with running phpweb?

-- 
Sebastian Bergmann
http://sebastian-bergmann.de/                   http://phpOpenTracker.de/

Das Buch zu PHP 5: http://professionelle-softwareentwicklung-mit-php5.de/

---

## #10635 — Lester Caine — 2004-06-19T18:59:34+00:00

URL: https://externals.io/message/10619#10635 · In reply to: #10634

Sebastian Bergmann wrote:

> Lester Caine wrote:
> 
> > […]
> 
>  What does an IDE (Eclipse in your case) have to do with running phpweb?

Eclipse also has all my code management tools, such as CVS client, and 
debugging with PHPEclipse. It is all that I have needed so far in 
developing and testing PHP applications. So I don't need to start 
loading and learning anything else - especially where I have already 
tried them and dropped them as a waste of space :)

p.s. Thanks Jan - 15 mins and everything was running fine, so now I just 
need to sort out how to replace the 'extra' bits. Not done a 
comprehensive test, but php.net working fine on W2k/Apache2/PHP5 as was 
probably expected. The fun will come with running an update ;)

-- 
Lester Caine
-----------------------------
L.S.Caine Electronic Services

---

## #10636 — Adam Maccabee Trachtenberg — 2004-06-19T19:35:25+00:00

URL: https://externals.io/message/10619#10636 · In reply to: #10635

> need to sort out how to replace the 'extra' bits. Not done a
> comprehensive test, but php.net working fine on W2k/Apache2/PHP5 as was
> probably expected. The fun will come with running an update ;)

I just set up phpweb on Mac OS X / Apache 1.3 / PHP 5 CVS and it also
seems to be working great.

Since the site doesn't really tickle any of the changed PHP 5 features
(OOP, MySQL, XML), it seems to have emerged unscathed. :)

-adam

-- 
adam@trachtenberg.com
author of o'reilly's php cookbook
avoid the holiday rush, buy your copy today!
