Go Back   Webmaster Malaysia Forum » Website Design & Development » Website Programming

Reply
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 20-05-2005, 11:06 AM
hajime's Avatar
Novice Webmaster
 
Join Date: Jan 2004
Location: Banting
Posts: 20
Rep Power: 0
hajime is on a distinguished road
Send a message via ICQ to hajime Send a message via Yahoo to hajime
exec, system, passthru in windows. Exec command in background.

Macam tak bole guna jer function nih dalam windows.

Korang penah kene macam nih tak?

system_exec.php
<?
$dir = "gen.php";
system("php ".escapeshellarg($dir));
echo "runned";
?>

gen.php
<?
$f = fopen("saya.txt","a+");
fwrite($f,"Hello World ");
fclose($f);
?>

slow gile broser nak load. tak abis abis lak tuh. bile bukak "Task Manager" banyak gile php.exe ngan cmd.exe.

Muyskil nih....
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 20-05-2005, 05:29 PM
hajime's Avatar
Novice Webmaster
 
Join Date: Jan 2004
Location: Banting
Posts: 20
Rep Power: 0
hajime is on a distinguished road
Send a message via ICQ to hajime Send a message via Yahoo to hajime
lagi satu, skang nih aku tgh handle data yang sangat besau. ade la dalam 88 juta row. so bile query jer mysql akan amik masa untuk cari sumer tuh.

aku dah cuba guna exec, system, passtru, pas tuh aku dah avoid sumer output. Macam php manual cakap kalau nak die run dalam background. output sumer aku letak dalam file.xml (dalam cerita yang lebih senang, semua result yang aku query dari mysql tuh aku letak dalam file xml).

form1.php --> form untuk letak input

query.php --> terima input dari form1.php pas tuh panggil generate_result.php untuk run dalam background dengan menggunakan input tadi. pas tuh die terus ke file check.php

generate_result.php --> die run secara background dan result keluar dalam file.xml

check.php --> run dalam loop, check samada file.xml tuh dah siap buat ke belum. kalau file xml tuh dah ada terus redirect ke view.php

view.php --> view file.xml tadi tuh

---- tapi so far aku skang nih sangkut dalam query.php, lama gile nak tunggu mysql tuh siap query... saper yang otai.. meh le tolong sayer yang tgh kebuntuan nih..
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 24-05-2005, 12:00 PM
hajime's Avatar
Novice Webmaster
 
Join Date: Jan 2004
Location: Banting
Posts: 20
Rep Power: 0
hajime is on a distinguished road
Send a message via ICQ to hajime Send a message via Yahoo to hajime
adeh.. tak der org ke?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
Sales Exec maniacorp Other Webmaster-related Services and Promotion 0 27-02-2005 12:01 AM
Vacancy for IT Support and Business Exec izani Job Vacancies 0 14-09-2004 12:24 PM
how to cut out the background ?? akumie Websites Review and Suggestion 9 22-02-2004 04:52 PM
cam ne nak buat background? elfreakz Webmaster Tools 4 13-10-2003 10:49 PM


All times are GMT +8. The time now is 02:05 PM. Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO 3.1.0 vBulletin skin by ForumMonkeys.com.


WebmasterMalaysia.com is Proudly Hosted by Exabytes Semi Dedicated Server.

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61