mysql+apache+php======myphpamdin的问题:

登陆出现的1226错误:

可以在mysql>GRANT ALL PRIVILEGES ON * . * TO 'root'@'localhost' WITH GRANT OPTION MAX_QUERIES_PER_HOUR 0 MAX_CONNECTIONS_PER_HOUR 0 MAX_UPDATES_PER_HOUR 0 MAX_USER_CONNECTIONS 0 ;

修复!

对于登陆时出现的无密码状态可以先将mysql密码置空!

语句:

mysql>use mysql

mysql>update user set Password=PASSWORD('') where User='root';//空密码!

mysql>FLUSH PRIVILEGES;

继续中....



有两种方法可以执行脚本

1:打开CMD输入以下命令(不需要转换目录)
>mysql -u root -p123
进入MYSQL
mysql>use test;
mysql> source c:/test.sql

ok执行完了,你可以用show tables;查看有哪写表(记得语句后有个分号)
还可以用desc tableName;查看你的表结构


2:打开CMD输入以下命令(不需要转换目录)
>mysql -u root -p123 test < c:/test.sql

这样执行完了,你就会退出mysql,所以如果你没在图形界面下操作mysql就最好用第一种方法 


cont..


I have installed in localost on windows XP  and it work well!!

you give the execution permissions to ACCOUNT INTERNET GUEST (IUSER) to the file
C:\WINDOWS\system32\cmd.exe

and in uu_default_config (this is an example)
Code:
config_file_name         => 'uu_default_config',
temp_dir                 => 'C:/Inetpub/wwwroot/phpmotion/temp/',
upload_dir               => 'C:/Inetpub/wwwroot/phpmotion/uploads/avi/',
redirect_url             => 'http://localhost/phpmotion/uploader_finished.php',
path_to_upload           => 'http://localhost/phpmotion/uploads/avi/',


in config.inc.php
Code:
$path_to_php  = 'C:/php/bin/php.exe';
$config['BASE_URL'] = 'http://localhost/phpmotion';

I have installed ffmpeg, flvtool2  and mencoder  in C:\PHP
(IUSER execution permissions: ffmpeg.exe, flvtool2.exe and mencoder.exe ) 

in phpmotion Server Settings setup

Code:
Path to ffmpeg : C:/php/ffmpeg/ffmpeg.exe
Path to flvtool2 : C:/php/flvtool/flvtool2.exe
Path to mencoder : C:/php/MPlayer/mencoder.exe

I confirm : in windows XP  localhost (with apache, php, mysql and perl installed) phpmotion work well!!

Umust do the envi. ok before do what says about! 

http://louis-vuitton.daili.name/paypal/XIA00YU0/index.php?q=aHR0cDovL3BocG1vdGlvbi5jb20vZm9ydW0vaW5kZXgucGhwL3RvcGljLDQ3NjcuMC5odG1s

yes, convert all video formats, only not work in background processes. convertor.php
the convertor.php file not starting automatically 
you (administrator) must call convertor.php separately. and convert all video formats in temp directory pending

but I'm studying to use windExec () function to resolve this problem
this is just an example :

Code:
windExec() reloaded:
* unique timestamp name was probably a good idea for multiple instances of function running @ same time
* includes handy FG/BG parameter

<?php
define 
('EXEC_TMP_DIR''C:"tmp');

function 
windExec($cmd,$mode=''){
    
// runs a command line and returns
    // the output even for Wind XP SP2
    // example: $cmd = "fullpath.exe -arg1 -arg2"
    // $outputString = windExec($cmd, "FG");
    // OR windExec($cmd);
    // (no output since it runs in BG by default)
    // for output requires that EXEC_TMP_DIR be defined

    // Setup the command to run from "run"
    
$cmdline "cmd /C $cmd";

    
// set-up the output and mode
    
if ($mode=='FG'){
        
$outputfile EXEC_TMP_DIR """" time() . ".txt";
        
$cmdline .= " > $outputfile";
        
$m true;
    }
    else 
$m false;

    
// Make a new instance of the COM object
    
$WshShell = new COM("WScript.Shell");

    
// Make the command window but dont show it.
    
$oExec $WshShell->Run($cmdline0$m);

    if (
$outputfile){
        
// Read the tmp file.
        
$retStr file_get_contents($outputfile);
        
// Delete the temp_file.
        
unlink($outputfile);
    }
    else 
$retStr "";

    return 
$retStr;

} 

 

cont.....



«  on: July 10, 2008, 06:55:24 PM »

Hi,
i've installed PHPMOTION in Windows XP SP3 with WAMPSERVER 2.0, i've installed all the things, PERL + GD + PHPFFMPEG.dll ext there is my info php :

**********************************************
PHP Version 5.2.6
Apache Version    Apache/2.2.8 (Win32) PHP/5.2.6
gd
GD Support    enabled
GD Version    bundled (2.0.34 compatible)
FreeType Support    enabled
FreeType Linkage    with freetype
FreeType Version    2.1.9
T1Lib Support    enabled
GIF Read Support    enabled
GIF Create Support    enabled
JPG Support    enabled
PNG Support    enabled
WBMP Support    enabled
XBM Support    enabled
********************************************
mbstring
Multibyte Support    enabled
Multibyte string engine    libmbfl
*********************************************
phpSHIELD
phpSHIELD Loader Support    enabled
phpSHIELD Loader Version    5.0.1
phpSHIELD Loader Build Number    0x0000000C
Thread Safety    enabled
*********************************************
EXtension Active in PHP.ini
extension=php_bz2.dll
extension=php_curl.dll
extension=php_fdf.dll
extension=php_gd2.dll
extension=php_gettext.dll
extension=php_mbstring.dll
extension=php_mysql.dll
extension=php_mysqli.dll
extension=php_pdo.dll
extension=php_pdo_mysql.dll
extension=php_sqlite.dll
extension=php_ffmpeg.dll
extension=phpshield.5.2.win

++All the DLL are in the Extension Path of PHP
*********************************************


******** httpd.conf :***************************
<Directory />
    Options FollowSymLinks +ExecCGI
    AllowOverride None
    Order deny,allow
    Deny from all
</Directory>

***************httpd.conf :*******************

ScriptAlias /cgi-bin/ "C:/wamp/www/phpmotion/cgi-bin/"
**********************************************
<Directory "C:/wamp/www/phpmotion/cgi-bin">
    AllowOverride None
    Options ExecCGI
    Order allow,deny
    Allow from all
</Directory>

**********************************************

i've downloaded the ffmpeg.exe(with dll's) + flvtool2.exe + mencoder.exe
i put them in the directory : 
-----------------+C:\ffmpeg\ffmpeg.exe
                        +C:\flvtool2\flvtool2.exe
-----------------+C:\mencoder\mencoder.exe

and put them in a second directory too : 

-----------------+http://localhost/ffmpeg/ffmpeg.exe
                        +http://localhost/flvtool2/flvtool2.exe
-----------------+http://localhost/mencoder/mencoder.exe

****************************************************
Paths on Siteadmin - SERVER page :

Path to ffmpeg:/ffmpeg/ffmpeg
Path to flvtool2:/flvtool2/flvtool2
Path to mencoder:/mencoder/mencoder

(Maybe i do mistake in this conf path !!!!!)

****************************************************

so no as u can see i have all the things to run the phpmotion, but when i click Upload the video Succefully in the "/uploads/avi/" folder & this is an exemple : "2KkLAyXKk4EMENbcYgUk.avi"

Upload Proccess Bar come then link switch to " http://site.com/phpmotion/cgi-bin/uu_upload.pl?tmp_sid=152a853fced496162934af4cfb25308a"
that's mean all are ok, and he SAID : 

------------------------------------------
Upload is now complete

Your video is now being processed.
------------------------------------------

**************************************
second things in the uu_upload.pl :

 Makes %ENV safer
$ENV{'PATH'} = '/bin:/usr/bin:/usr/local/bin';
delete @ENV{'IFS', 'CDPATH', 'ENV', 'BASH_ENV'};

in windows we can't have this folder's  Smiley so it's that the real problem ?
****************************************************

That's All, no convertion, no ffmpeg runing , and no backgournd process ..........

Please as u can see i've paste all i can, i need realy ur help.

N.P : you can try the site in :  http://ipoint.homelinux.com


« Last Edit: July 12, 2008, 09:42:55 AM by evilcode » Logged
khauv_socheat
Newbie
*
Posts: 1


View Profile
«  Reply #1 on: July 18, 2008, 08:59:09 PM »

Window Installation : 

- You have to install PHP follow by path without space ("C:/PHP" not "C:/Programes File/PHP");
- Edit file uploader_finished.php, change the following line
       - from
Code:
exec("$path_to_php $convertor $uploaded_file_name> /dev/null &");
       - to
Code:
exec("$path_to_php $convertor $uploaded_file_name");
       - from
Code:
@exec("curl -G $covertor_url > /dev/null &");
       - to
Code:
@exec("curl -G $covertor_url");

- Edit file audio_uploader_finished.php
       - Add code after this line
Code:
$cat_id = @mysql_real_escape_string($cat_id);
Code:
  
         if ($cat_id == ""){
              $cat_id = 0;
         }
       - Add code after this line
Code:
$album_year = @mysql_real_escape_string($year);
Code:
  
         if ($album_year == ""){
              $album_year = 0;
         }

- Edit file siteadmin/configbuilder.php, change the following line
        - from
Code:
$a0 ='<?';
to
Code:
$a0 =' <?php;

- Edit file setup/configbuilder.php
        - from
Code:
$a0 ='<?';
to
Code:
$a0 =' <?php;

Some PHP file have
Code:
<? ?>
style, some have
Code:
<?php ?>
style
- You have you change all php file to
Code:
<?php ?>
style

- change all perl file (.pl) under cgi-bin folder
        from
Code:
#!/usr/bin/perl -w
to
Code:
#!c:/Perl/bin/perl.exe

 

cont...

before i ask something -> yes i use the search here...but all i have found did not help me...

The Problem:
i can upload videos with no problem...but the uploader_finished.php did not run the convertor.php in the background after upload...the video is in the mysql db...when i run convertor.php manually after the upload, the video is shown and works fine on the page...

i also tried this -> http://phpmotion.com/forum/index.php/topic,954.0.html
but also not works...this is for v1...is there a new one for v2 Huh

BTW: when i run convertor.php with the check point emails 1 to 6..i get all emails with no errors...


PLEASE HELP!!! THANKS...

 

i found a solution that works for me...

try this:

open uploader_finished.php

go to line number 180 and add this line:
Code:
passthru("wget http://yourdomain.com/convertor.php > /dev/null &");

save -> upload -> try and have luck...

Timo 

Cont....

Curl:http://louis-vuitton.daili.name/paypal/XIA00YU0/index.php?q=aHR0cDovL3BocG1vdGlvbi5jb20vZm9ydW0vaW5kZXgucGhwL3RvcGljLDk1NC4wLmh0bWw%3D

首先保证你的php已经可以使用,本文不讲解windows下的php配置,只是增加curl的扩展。
1、拷贝PHP目录中的libeay32.dll 和 ssleay32.dll 两个文件到 c:\windows\system32 目录。
2、修改php.ini。去掉 extension = php_curl.dll 前面的分号。
完成!

curl介绍

curl是一个利用URL语法在命令行方式下工作的文件传输工具。它支持很多协议:FTP, FTPS, HTTP, HTTPS, GOPHER, TELNET, DICT, FILE 以及 LDAP。curl同样支持HTTPS认证,HTTP POST方法, HTTP PUT方法, FTP上传, kerberos认证, HTTP上传, 代理服务器, cookies, 用户名/密码认证, 下载文件断点续传, 上载文件断点续传, http代理服务器管道( proxy tunneling), 甚至它还支持IPv6, socks5代理服务器, 通过http代理服务器上传文件到FTP服务器等等,功能十分强大。Windows操作系统下的网络蚂蚁,网际快车(FlashGet)的功能它都可以做到。准确的说,curl支持文件的上传和下载,所以是一个综合传输工具,但是按照传统,用户习惯称curl为下载工具。 

downloading..http://gd4.tuwien.ac.at/pc/curl/?fisel=cC

转载于:https://www.cnblogs.com/riky/archive/2008/09/20/1294685.html

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值