Unoffical empeg BBS

Quick Links: Empeg FAQ | RioCar.Org | Hijack | BigDisk Builder | jEmplode | emphatic
Repairs: Repairs

Topic Options
#37231 - 27/08/2001 11:38 PHP 4.0.6 binary for Empeg (this is it)
tigloo
member

Registered: 25/04/2001
Posts: 122
Loc: Hamburg, Germany
Hi all,

sorry it took so long, but here is the binary 4.0.6 of PHP for the Empeg. Version 4.0.7 will have a new socket API and as I wanted to do mostly socket programming, I thought I'd post a 4.0.7dev image.

However, the 4.0.7dev socket API is buggy and I wasn't able to fix it in a reasonable time.

The zip contains _only_ the PHP binary, you will need a php.ini in /usr/local/lib to tune it. Also, I did not include the PEAR code as this is currently rarely used (and people that use it can easily grab a new copy from CVS).

If you don't have a php.ini and don't know how to get one, this is the latest version from the PHP CVS. To download the file, use this link.

Put the PHP binary into /usr/local/bin or whatever is appropriate for you.

Till



Top
#37232 - 27/08/2001 11:43 Re: PHP 4.0.6 binary for Empeg (this is it) [Re: tigloo]
tigloo
member

Registered: 25/04/2001
Posts: 122
Loc: Hamburg, Germany
Hmm... something must've went wrong with the file attachment. Retrying here.

Till



Top
#37233 - 27/08/2001 11:44 Re: PHP 4.0.6 binary for Empeg (this is it) [Re: tigloo]
tigloo
member

Registered: 25/04/2001
Posts: 122
Loc: Hamburg, Germany
Help! How do I attach the files? It is uploading but not storing it. Damn. What do I do wrong?

Till (blushing)


Top
#37234 - 27/08/2001 12:06 Re: PHP 4.0.6 binary for Empeg (this is it) [Re: tigloo]
tfabris
carpal tunnel

Registered: 20/12/1999
Posts: 31597
Loc: Seattle, WA
If the file is bigger than 100,000 bytes, that would be the problem.

___________
Tony Fabris
_________________________
Tony Fabris

Top
#37235 - 27/08/2001 12:29 Re: PHP 4.0.6 binary for Empeg (this is it) [Re: tfabris]
tigloo
member

Registered: 25/04/2001
Posts: 122
Loc: Hamburg, Germany
No, it is 842kb (861.774 bytes). Maybe the actual limit is lower?

Till



Top
#37236 - 27/08/2001 12:37 Re: PHP 4.0.6 binary for Empeg (this is it) [Re: tigloo]
tfabris
carpal tunnel

Registered: 20/12/1999
Posts: 31597
Loc: Seattle, WA
Hmm. There could be a problem with your browser or firewall that's preventing the attachment.

Or it could be something as simple as you need to zip the file before you upload it.

___________
Tony Fabris
_________________________
Tony Fabris

Top
#37237 - 27/08/2001 13:31 Re: PHP 4.0.6 binary for Empeg (this is it) [Re: tfabris]
tigloo
member

Registered: 25/04/2001
Posts: 122
Loc: Hamburg, Germany
It is already a zip, my browser is Internet Explorer 5.something and HTTP uploads are standard communication via port 80 so the firewall won't interfere.

It is uploading the file, just after having finished the upload, it doesn't show up in the post. I suspect it is something server-side.

Till



Top
#37238 - 27/08/2001 13:45 Re: PHP 4.0.6 binary for Empeg (this is it) [Re: tigloo]
tfabris
carpal tunnel

Registered: 20/12/1999
Posts: 31597
Loc: Seattle, WA
I suspect it is something server-side.

Okay, I'm going to attach a file to this message and if it works OK, then it's not something server side.

and HTTP uploads are standard communication via port 80 so the firewall won't interfere.

As long as you're sure that you can do HTTP uploads to other sites. Have you tested this?

___________
Tony Fabris


Attachments
36412-Picker_and_Voladj_for_Dummies.zip (86 downloads)

_________________________
Tony Fabris

Top
#37239 - 27/08/2001 13:54 Re: PHP 4.0.6 binary for Empeg (this is it) [Re: tigloo]
anti
member

Registered: 10/07/2000
Posts: 117
Loc: BaWue, Germany, Europe
"No, it is 842kb (861.774 bytes). Maybe the actual limit is lower?"

My last math lesson was a while ago,
but 861.774 seems to be a bit more than 100.000 ...
861.774
-100.000
-----------
761.774

Or did I misunderstand something ?

--------------------
MKII 08000073 12GB BLUE
_________________________
-------------------- MKII 08000073 40GB BLUE

Top
#37240 - 27/08/2001 14:39 Re: PHP 4.0.6 binary for Empeg (this is it) [Re: anti]
bmiller
member

Registered: 11/04/2001
Posts: 150
Loc: Sacramento, CA, USA
Nothing is wrong with your math skills, just your reading comprehension.
No spite intended.


Top
#37241 - 27/08/2001 14:44 Re: PHP 4.0.6 binary for Empeg (this is it) [Re: anti]
tfabris
carpal tunnel

Registered: 20/12/1999
Posts: 31597
Loc: Seattle, WA
Heh, I didn't even check Tigloo's number. I just assumed that if I said the file size limit was 100,000, and he said it was under that size, that he knew what he was talking about.

Yeah, um, Tigloo, the file is 8 times too big.

___________
Tony Fabris
_________________________
Tony Fabris

Top
#37242 - 27/08/2001 18:10 Re: PHP 4.0.6 binary for Empeg (this is it) [Re: anti]
tigloo
member

Registered: 25/04/2001
Posts: 122
Loc: Hamburg, Germany
UGH

I was not able to count then, I thought it was 1000000 (1.000.000) bytes.

Well duh. Will have to refer to Sven then. :)

Till



Top
#37243 - 27/08/2001 23:57 Re: PHP 4.0.6 binary for Empeg (this is it) [Re: tigloo]
smu
old hand

Registered: 30/07/2000
Posts: 879
Loc: Germany (Ruhrgebiet)
Hi.

The file is now available as http://www-new.incase.de/files/empeg/php.zip.

cu,
sven

proud MkII owner (12GB blue/green/smoked, was #080000113 is #090001010)
_________________________
proud owner of MkII 40GB & MkIIa 60GB both lit by God and HiJacked by Lord

Top
#37244 - 16/03/2003 16:23 Re: PHP 4.0.6 binary for Empeg (this is it) [Re: tigloo]
ricin
veteran

Registered: 19/06/2000
Posts: 1495
Loc: US: CA
Digging up an old thread here. Is there any chance someone could compile version >= 4.3.0?
_________________________
Donato
MkII/080000565
MkIIa/010101253
ricin.us

Top
#37245 - 16/03/2003 22:39 Re: PHP 4.0.6 binary for Empeg (this is it) [Re: ricin]
ajayrockrock
journeyman

Registered: 29/12/2001
Posts: 99
Loc: Riverside, CA
weird, i never knew that someone was able to port PHP to the empeg? Does anyone know how to get this thing working with Hijack's webserver?

--Ajay

Top
#37246 - 18/03/2003 00:51 Re: PHP 4.3.1 on empeg [Re: ricin]
alex25
member

Registered: 30/06/1999
Posts: 179
Loc: Switzerland
Hi I just compiled the lastest version of php (version 4.3.1) on my empeg.
The binaries can be downloaded from http://empeg.homelinux.com/php.tar.gz.
Just unpack it and set the library path:
export LD_LIBRARY_PATH=/opt/phptest (adapt directory)

Run the testscript by calling:
./php test.php

Maybe some library are missing. If so please send a reply to this message.
I compiled it with the default settings plus mysql support.
It should work in the normal empeg environment.

I'm running a complete debian chroot installation on my empeg since last october. The webserver you download the above files from are running on my backup empeg. (Apache + PHP 4.1.x) [There is no stable debian package for PHP 4.3 at the moment]

Top
#37247 - 19/03/2003 00:55 Re: PHP 4.3.1 on empeg [Re: alex25]
alex25
member

Registered: 30/06/1999
Posts: 179
Loc: Switzerland
An additional note:
The binaries in the package is the php cli version [command line interpreter] which runs without a webserver.
The correct download address is:
http://empeg.homelinux.com/php.tar.gz (without the dot at the end, as in the previous post)

I'm on holiday for two weeks starting this friday. During this time I'll shut down my internet infrastructur at home (including my empeg), so you won't be able to download.

Top
#37248 - 19/03/2003 12:29 Re: PHP 4.3.1 on empeg [Re: alex25]
ricin
veteran

Registered: 19/06/2000
Posts: 1495
Loc: US: CA
Killer. That's exactly what I wanted. Although, could you enable the XML, XLST and WDDX stuff, please?
_________________________
Donato
MkII/080000565
MkIIa/010101253
ricin.us

Top
#37249 - 19/03/2003 12:32 Re: PHP 4.3.1 on empeg [Re: ricin]
alex25
member

Registered: 30/06/1999
Posts: 179
Loc: Switzerland
Do you know which compile options that I have to set?
If so I'll do it for you.

Top
#37250 - 19/03/2003 17:04 Re: PHP 4.3.1 on empeg [Re: alex25]
ricin
veteran

Registered: 19/06/2000
Posts: 1495
Loc: US: CA
Yep.

--with-xml --with-dom --enable-xslt --with-xslt-sablot --enable-wddx

That's what I'd like to have in there.

And if you can:

--with-readline --with-gettext --with-openssl --with-ttf --with-gd



Thanks!
_________________________
Donato
MkII/080000565
MkIIa/010101253
ricin.us

Top
#37251 - 20/03/2003 00:16 Re: PHP 4.3.1 on empeg [Re: ricin]
alex25
member

Registered: 30/06/1999
Posts: 179
Loc: Switzerland
Hi

Sorry I've to disappoint you for the moment.
I first have to install more packages. Sabloton for the first version, zlib for the second one.
At the moment I'm not able to update my distribution because there is a debian package dependency error between libc and php4. This is mentioned in different debian forums and should be fixed the following days.

The other reason is that I'm on holiday for two weeks by tomorrow. After it I'll try it again.

Only out of curiosity: What are you try to do with the php on the empeg?

Top
#37252 - 20/03/2003 01:33 Re: PHP 4.3.1 on empeg [Re: alex25]
mcomb
pooh-bah

Registered: 31/08/1999
Posts: 1649
Loc: San Carlos, CA
Only out of curiosity: What are you try to do with the php on the empeg?


Not to mention XML, SSL and GD? Why not throw in mysql while your at it ;-)
_________________________
EmpMenuX - ext3 filesystem - Empeg iTunes integration

Top
#37253 - 20/03/2003 02:14 Re: PHP 4.3.1 on empeg [Re: mcomb]
alex25
member

Registered: 30/06/1999
Posts: 179
Loc: Switzerland
I'm currently running a mysql db on my empeg. Queries over small tables are very fast.
The php version I provide to download a the moment has mysql support compiled in. But it's useless if you don't have a mysql server running. :-)

Other services running on my empeg: Apache 1.3.26, PHP4, dyndns Client, Webmin, ...

The hole system has only 16MB of RAM and a bunch of swap space (256MB I think). So I'm very surprised that it is working at all.

Top
#37254 - 20/03/2003 02:41 Re: PHP 4.3.1 on empeg [Re: alex25]
ricin
veteran

Registered: 19/06/2000
Posts: 1495
Loc: US: CA
No worries. The wait is no problem, I'm just happy to get it at all. Thanks!

As for what I'm going to be doing with it, I'm not sure yet. I have some ideas I'd just like to play around with. <shrug>

Right now the main reason to get it on there is "Just Because" or "Why Not?"
_________________________
Donato
MkII/080000565
MkIIa/010101253
ricin.us

Top
#37255 - 24/03/2003 05:43 Re: PHP 4.0.6 binary for Empeg (this is it) [Re: tigloo]
rowitech
enthusiast

Registered: 22/09/2002
Posts: 249
Loc: Germany, Cologne
Woow, PHP on my empeg. This rocks!
Is there a way to display something at the empeg's display via a php-script?

Rolf
_________________________
Connecting Empeg via Bluetooth or Wireless LAN http://empeg.rowi.net
*** Proud owner of the European Worst Install Trophy 2003 ! ***
RoWi

Top
#37256 - 18/04/2003 15:17 Re: PHP 4.3.1 on empeg [Re: ricin]
alex25
member

Registered: 30/06/1999
Posts: 179
Loc: Switzerland
My empeg is back online!

I had serveral problems with my debian installation on the empeg in the last two weeks. The cause was the introduction of the new libc (version 2.3.1) in the testing debian release. (The one I'm running on the empeg)
Now everything is working again, including the new libc and the new gcc compiler! I had to made some minor changes in the kernel.

But neverless the php version I provide should still run on the default empeg player.
I have to deliver some more libraries in my download file now. Maybe some libraries are still missing, but at least the test script runs.

Just unzip all the files in one folder and start the php (cli version) with the following two command lines:
export LD_LIBRARY_PATH=/drive0/php
/drive0/php/ld-linux.so.2 /drive0/php/php < test.php [Adapt your path in both lines!]

Downloads
Version 1: (--with-xml --enable-xslt --with-xslt-sablot --enable-wddx)
http://empeg.homelinux.com/php1.tar.gz

Version 2: (--with-readline --with-gettext --with-openssl --with-ttf --with-gd)
follows later (if needed)

First version: (compiled with no special options, but mysql support)
http://empeg.homelinux.com/php.tar.gz

Top
#37257 - 18/04/2003 23:49 Re: PHP 4.3.1 on empeg [Re: alex25]
ricin
veteran

Registered: 19/06/2000
Posts: 1495
Loc: US: CA
Killer! I still haven't quite decided what to do, but I have some ideas. BTW, this new version still contains MySQL support, correct?


Thanks again!
_________________________
Donato
MkII/080000565
MkIIa/010101253
ricin.us

Top
#37258 - 21/04/2003 11:29 Re: PHP 4.3.1 on empeg [Re: ricin]
alex25
member

Registered: 30/06/1999
Posts: 179
Loc: Switzerland
The last version was without mysql support.

I just compiled a new version with mysql support.
compile arguments I used in this version: --with-mysql --with-xml --enable-xslt --with-xslt-sabblot --enable-wddx

Download at: http://empeg.homelinux.com/php2.tar.gz

Top
#37259 - 21/04/2003 17:46 Re: PHP 4.3.1 on empeg [Re: alex25]
arvind_bk
stranger

Registered: 14/08/2001
Posts: 29
To run PHP, what else should be installed on my RioCar? I have fully loaded Debian chrooted environment. Apache is not working though!

Regards
Arvind

Top