hey again, just got around to finding time in the middle of the night to try and install ming, and I am following the directions at:
http://us4.php.net/manual/en/ref.ming.php
AND
http://www.opaque.net/wiki/index.php?MingInstall
So far, I have done this:
Code: Select all
mkdir /root/new/
cd /root/new/
wget http://mesh.dl.sourceforge.net/sourceforge/ming/ming-0.3beta1.tar.gz
gunzip ming-0.3beta1.tar.gz
tar -xvf ming-0.3beta1.tar
cd ming-0.3beta1
make
make install
HERE I GET ERRORS:
Code: Select all
makeї1]: Leaving directory `/root/new/ming-0.3beta1/src'
install -m 0644 libming.so.0.3beta1 /usr/local/lib/
install: cannot stat `libming.so.0.3beta1': No such file or directory
make: *** їinstall-dynamic] Error 1
Any clue what this means and how I fix it?
These are the instrcutions from PHP.net
To use Ming with PHP, you first need to build and install the Ming library. Source code and installation instructions are available at the Ming home page:
http://ming.sourceforge.net/ along with examples, a small tutorial, and the latest news.
Download the ming archive. Unpack the archive. Go in the Ming directory. make. make install.
This will build libming.so and install it into /usr/lib/, and copy ming.h into /usr/include/. Edit the PREFIX= line in the Makefile to change the installation directory.
Installation
Example 1. built into PHP (Unix)
Code: Select all
mkdir <phpdir>/ext/ming
cp php_ext/* <phpdir>/ext/ming
cd <phpdir>
./buildconf
./configure --with-ming <other config options
Build and install PHP as usual, restart web server if necessary.
Now either just add extension=php_ming.so to your php.ini file, or put dl('php_ming.so'); at the head of all of your Ming scripts.
On the actual ming tutorial,
2004-11-5:complie PHP with ming support in Fedora Core2
httpd-2.0.52.tar.gz
PHP-4.3.9.tar.gz
Ming function does not work with PHP-5.0.2
Ming CVS
1 install httpd as normal
tar zvxf httpd-2.0.52.tar.gz
cd httpd-2.0.52
./configure --prefix=/usr/local/httpd
make
make install
2. tar zvxf PHP-4.3.9.tar.gz
3. install ming lib
checkout ming from cvs.sourceforge.net
cd ming
modify Makefile, change 'PREFIX = $(DESTDIR)/usr' so 'PREFIX = $(DESTDIR)/usr/local'
so libming and include files will be installed to default path.
make
make install
cd php_ext
cp * ../../php-4.3.9/ext/ming -rf
4. install php
./configure --with-apxs2=/usr/local/httpd/bin/apxs --enable-track-vars=yes--with-ming <other opions> --enable-debug --enable-sigchild
make
make install
5. modify httpd.conf
AddType? application/x-httpd-php .php
AddType? application/x-httpd-php-source .phps
I am on part 3 right after the "make install " line, I am afraid to continue and copy and recompile php, I really don't want to f' things up if you know what I mean, I like to prepare before doing something stupid like a regular n00b.
Yea know, look BEFORE you jump, not close your eyes and jump.
The second to last script you pasted, this one:
Code: Select all
<html><body><center>
<?
ming_useswfversion(6);
$movie = new SWFMovie();
$movie->setDimension($width,$height);
$movie->setBackground(255,255,255);
$movie->setRate(60);
$revitalizer=rand();
$actions="loadMovie('$URL','_level0');";
$movie->add(new SWFAction($actions));
$movie->save("Blank.swf");
$revitalizer=rand();
print "<OBJECT classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://active.macromedia.com/flash2/cabs/swflash.cab#version=6,0,0,0" ID=objects WIDTH="$width" HEIGHT="$height">
<PARAM NAME=movie VALUE="Blank.swf?$revitalizer">
<EMBED src="Blank.swf?$revitalizer" WIDTH="$width" HEIGHT="$height" TYPE="application/x-shockwave-flash" PLUGINSPAGE="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash">
</OBJECT>
";
?>
</center></body></html>
Where exactly does this SAVE the file to? The file is named Blank.swf I presume, and I'm wondering where the file is saved to. Is it going to need me to simply chmod the directory to 777 and it writes it out EVERY time, or something like that? OR does it save the file to Blank.swf in the VISITORS internet explorer cache, and doesn't actually physically create the file, just "virtually" creates the file, Does this strain the server load/resources?
Thanks many times over, I am learning flash slowly but surely, and I'm going to write a preloader with my logo's and this anti leech thing very soon (was hoping to install ming tonight and test it out tommorow), hopefully it will be off the bomb.
feyd | 