Anyone have a PHP4 server handy?

I have a little script that will do directory listings, and I’ve
built in a compatibility layer for PHP4, but I have no way to test it.

Can anyone help?

Walter


dynamo mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

Hi Walter,

I could help there, but only on my local Mac, as that is where I do testing using MAMP Pro.

If you have MAMP installed, you can choose between PHP4 and PHP5 in the PHP panel when MAMP starts up.

If you mean and online live server using PHP4, then I’m sorry, I can’t help there. Hopefully someone else will be able to help.

Craig


dynamo mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

I’ve sent the details to you directly.

Walter

On Oct 6, 2008, at 10:23 AM, Craig Paterson wrote:

Hi Walter,

I could help there, but only on my local Mac, as that is where I do
testing using MAMP Pro.


dynamo mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

Hi Walter,

Just replied by email. I forgot to add that in the PHP5 version, I tried clicking one of the links to the files and it threw up an error.

Safari can’t open the page “http://localhost/test/file1%20copy%202.txt” because it can’t find the server “localhost”.

It looks like the PHP code is not allowing for the port addition (:8888) to the local URL, this may, or may not be a problem on a live server.

Craig


dynamo mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

It’s a MAMP thing, I’ll see if I can shim it.

Walter

On Oct 6, 2008, at 11:27 AM, Craig Paterson wrote:

It looks like the PHP code is not allowing for the port addition (:
8888) to the local URL, this may, or may not be a problem on a live
server.


dynamo mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

Try editing the part that begins with //base for all links with this:

//base for all links
$port = ($_SERVER[‘SERVER_PORT’] != ‘80’) ‘:’ . $_SERVER
[‘SERVER_PORT’] : ‘’;
$base = ‘http://’ . $_SERVER[‘SERVER_NAME’] . $port . dirname($_SERVER
[‘REQUEST_URI’]) . ‘/’;

Walter

On Oct 6, 2008, at 11:27 AM, Craig Paterson wrote:

Hi Walter,

Just replied by email. I forgot to add that in the PHP5 version, I
tried clicking one of the links to the files and it threw up an error.

Safari can’t open the page “http://localhost/test/file1%20copy%
202.txt” because it can’t find the server “localhost”.

It looks like the PHP code is not allowing for the port addition (:
8888) to the local URL, this may, or may not be a problem on a live
server.

Craig


dynamo mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options


dynamo mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

Or rather:

$port = ($_SERVER[‘SERVER_PORT’] != ‘80’) ? ‘:’ . $_SERVER
[‘SERVER_PORT’] : ‘’;

Walter

On Oct 6, 2008, at 11:49 AM, Walter Lee Davis wrote:

Try editing the part that begins with //base for all links with this:

//base for all links
$port = ($_SERVER[‘SERVER_PORT’] != ‘80’) ‘:’ . $_SERVER
[‘SERVER_PORT’] : ‘’;
$base = ‘http://’ . $_SERVER[‘SERVER_NAME’] . $port . dirname
($_SERVER[‘REQUEST_URI’]) . ‘/’;

Walter

On Oct 6, 2008, at 11:27 AM, Craig Paterson wrote:

Hi Walter,

Just replied by email. I forgot to add that in the PHP5 version, I
tried clicking one of the links to the files and it threw up an
error.

Safari can’t open the page “http://localhost/test/file1%20copy%
202.txt” because it can’t find the server “localhost”.

It looks like the PHP code is not allowing for the port addition (:
8888) to the local URL, this may, or may not be a problem on a
live server.

Craig


dynamo mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options


dynamo mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options


dynamo mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

Walter,

I got 4.4.2 version on my server. If you need any more help…


dynamo mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

Hi Maccie,
Hopefully we got everything sorted out last night.
Walter will give a definitive answer on that though.
Craig


dynamo mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

Yes, I think it’s all sorted out. I put a couple of hours into making it an Action yesterday, but there’s this last wrinkle that I haven’t figured out yet. More of an interface/workflow problem than anything else.

Walter


dynamo mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options