Symbianize Forum

Most of our features and services are available only to members, so we encourage you to login or register a new account. Registration is free, fast and simple. You only need to provide a valid email. Being a member you'll gain access to all member forums and features, post a message to ask question or provide answer, and share or find resources related to mobile phones, tablets, computers, game consoles, and multimedia.

All that and more, so what are you waiting for, click the register button and join us now! Ito ang website na ginawa ng pinoy para sa pinoy!

php/mysql into .exe help pls.

ventra

Recruit
Basic Member
Messages
18
Reaction score
0
Points
16
im using wamp and php language to build a local program and the only way to open my project is to go to localhost in a web browser considering wamp icon is green. gs2 kng gumawa ng exe file to skip those things and open my php project directly. the exe file should be the one in charge in opening wamp then a browser with a default page of my php project. pwd ba un? yung 1 click lng ng exe file and i can directly access my php program? i would appreciate any help :)
 
I'll just assume vb.net ang gagamitin mo to trigger, so check this.

Trigger WAMP launch using this code. Then isunod mo yung code na nasa taas.
Code:
Process.Start("C:\path_to\myapp.exe")
 
meron ako sir, vbscript (.vbs) kaso xammp gamit ko. try mo na lng baguhin/palitan.

paste on notepad, saveas filename.vbs
code :

on error resume next
set ie = createobject("InternetExplorer.Application")
Set WshShell = CreateObject("WScript.Shell" )
WshShell.Run chr(34) & "D:\xampp\apache\bin\httpd.exe" & Chr(34) , 0 'run Apache server
WshShell.Run """D:\xampp\mysql\bin\mysqld.exe"" --defaults-file=D:\xampp\mysql\bin\my.ini --standalone --console" , 0 'run MySQL
Set WshShell = Nothing
ie.navigate "http://localhost/project/login.php" ' run PhP
ie.visible = true
 
bat hindi mo na lang i-auto start ung wamp then open na lang sa browser... or create a website link shortcut sa desktop
 
I'll just assume vb.net ang gagamitin mo to trigger, so check this.

Trigger WAMP launch using this code. Then isunod mo yung code na nasa taas.
Code:
Process.Start("C:\path_to\myapp.exe")

di po clear ang example. san ko papaste ang codes? sa notepad? php code? and how am i gonna make it a clickable button?
 
meron ako sir, vbscript (.vbs) kaso xammp gamit ko. try mo na lng baguhin/palitan.

paste on notepad, saveas filename.vbs
code :

on error resume next
set ie = createobject("InternetExplorer.Application")
Set WshShell = CreateObject("WScript.Shell" )
WshShell.Run chr(34) & "D:\xampp\apache\bin\httpd.exe" & Chr(34) , 0 'run Apache server
WshShell.Run """D:\xampp\mysql\bin\mysqld.exe"" --defaults-file=D:\xampp\mysql\bin\my.ini --standalone --console" , 0 'run MySQL
Set WshShell = Nothing
ie.navigate "http://localhost/project/login.php" ' run PhP
ie.visible = true

sir di ko kyo ma pm puno storage
 
its easier in windows batch file and using wamp makes it way more easier
just paste using any text editor, from lines begin to end

REM------------------BEGIN-------------
@echo off
set CHROME="C:\Program Files (x86)\Google\Chrome\Application\chrome.exe"
set FF="C:\Program Files (x86)\Mozilla Firefox\firefox.exe"
set WAMP="C:\wamp\wampmanager.exe"
start %WAMP%
start %FF% http://localhost
exit
REM----------------END

after that save it as foo.bat or anything that ends in .bat then simply double click
as you can see it doesnt turned into an .exe file, there is an application that converts batch files to your preferred format.
just search for it, but if i were you, this is more maintainable than exe

note: change %FF% to %CHROME% to change browser used to chrome.
 
Last edited:
Back
Top Bottom