Tizag Webmaster Forums  

Go Back   Tizag Webmaster Forums > Web Marketing > Tizag Market

Reply
 
Thread Tools Display Modes
  #11  
Old 04-18-2007, 07:37 PM
ultimateace ultimateace is offline
Student
 
Join Date: Feb 2007
Posts: 440
ultimateace will become famous soon enough
Nice, but one problem: It runs on the command line, and that is blocked at my school. Can you make it run in an ordinary EXE(no command line)?

Otherwise, a great script!
Reply With Quote
  #12  
Old 04-18-2007, 07:55 PM
techietim's Avatar
techietim techietim is offline
Moderator
 
Join Date: Jul 2006
Location: Canada -- Home of Beavers and Maple Syrup
Posts: 4,664
techietim is just really nicetechietim is just really nicetechietim is just really nicetechietim is just really nice
Sorry.

I may do that in the future, but for now, I'm unable to do so
__________________
techietim - jcite
<><
Reply With Quote
  #13  
Old 04-18-2007, 08:25 PM
Jake's Avatar
Jake Jake is offline
Graduate Student
 
Join Date: Feb 2007
Posts: 553
Jake has a spectacular aura about
This seems great! I will definitely load this onto my jump drive some time, thanks.
__________________
<><

"But seek first the kingdom of God and his righteousness, and all these things will be added to you." -Matthew 6:33 (ESV)
Reply With Quote
  #14  
Old 04-19-2007, 04:41 AM
techietim's Avatar
techietim techietim is offline
Moderator
 
Join Date: Jul 2006
Location: Canada -- Home of Beavers and Maple Syrup
Posts: 4,664
techietim is just really nicetechietim is just really nicetechietim is just really nicetechietim is just really nice
Here's the source for phportable.exe:
PHP Code:
<?php
echo <<<A
______ _   _ ______          _        _     _
| ___ \ | | || ___ \        | |      | |   | |
| |_/ / |_| || |_/ /__  _ __| |_ __ _| |__ | | ___
|  __/|  _  ||  __/ _ \| '__| __/ _` | '_ \| |/ _ \
| |   | | | || | | (_) | |  | || (_| | |_) | |  __/
\_|   \_| |_/\_|  \___/|_|   \__\__,_|_.__/|_|\___|
                                        -Apache and PHP

A;
if(
strpos($argv[0], "\\")){
    
//Get DIR
    
$dir explode("\\"$argv[0]);
    
$dir array_splice($dir0, -1);
    
$dir implode("/"$dir);
    
//Write New Config
    
$f fopen($dir."/conf/extra/phportable.conf""w");
    
fwrite($f'DocumentRoot "'.$dir.'/htdocs'.'"
ServerRoot "'
.$dir.'"
<Directory "'
.$dir.'/htdocs">
    Options Indexes FollowSymLinks MultiViews ExecCGI
    AllowOverride All
    Order allow,deny
    Allow from all
</Directory>
LoadModule php5_module '
.$dir.'/php/php5apache22h.dll
'
);
    
fclose($f);
    
//Start Apache
    
$desc = array(
    
=> array("pipe""r"),
    
=> array("pipe""w"),
    
=> array("file""./apache_log.txt""w")
    );
    
$apachea proc_open($dir.'/bin/httpd.exe'$desc$pipes);
    echo 
"\nPress Ctrl+C to stop the server\n";
    die;
}else{
    
//Haha
    
echo "This program cannot be run from directly from the command line\nPress any key to exit...\n";
    
system(pause);
    die;
}
?>
__________________
techietim - jcite
<><
Reply With Quote
  #15  
Old 04-19-2007, 10:55 AM
BBarash's Avatar
BBarash BBarash is offline
Teacher
 
Join Date: Nov 2006
Location: London, England
Posts: 2,024
BBarash has a spectacular aura about
Send a message via MSN to BBarash Send a message via Skype™ to BBarash
When I try to unzip it on my mac it just doesnt finish (but it gets right to the end) - On my windows it just says please insert next volume etc.. before it even starts.
__________________
Benji Barash - 16
Currently dabbling with Objective-C & Cocoa Touch
@BBarash | BBarash.co.uk
Reply With Quote
  #16  
Old 04-19-2007, 11:33 AM
techietim's Avatar
techietim techietim is offline
Moderator
 
Join Date: Jul 2006
Location: Canada -- Home of Beavers and Maple Syrup
Posts: 4,664
techietim is just really nicetechietim is just really nicetechietim is just really nicetechietim is just really nice
Hummm...Thats odd. I'll upload it again.

EDIT

Try:
PHPortable.exe.rename (rename to .exe)
__________________
techietim - jcite
<><

Last edited by techietim; 04-19-2007 at 11:43 AM.
Reply With Quote
  #17  
Old 04-19-2007, 03:39 PM
BBarash's Avatar
BBarash BBarash is offline
Teacher
 
Join Date: Nov 2006
Location: London, England
Posts: 2,024
BBarash has a spectacular aura about
Send a message via MSN to BBarash Send a message via Skype™ to BBarash
Yep, that works now - Thanks.
__________________
Benji Barash - 16
Currently dabbling with Objective-C & Cocoa Touch
@BBarash | BBarash.co.uk
Reply With Quote
  #18  
Old 04-19-2007, 06:01 PM
BenPhelps's Avatar
BenPhelps BenPhelps is offline
Student
 
Join Date: Oct 2006
Location: At my desk.
Posts: 451
BenPhelps will become famous soon enough
Send a message via ICQ to BenPhelps Send a message via AIM to BenPhelps Send a message via MSN to BenPhelps Send a message via Yahoo to BenPhelps Send a message via Skype™ to BenPhelps
Tim, please get on msn, I have added you. I would like to talk to you about further development of this application.
Reply With Quote
  #19  
Old 04-19-2007, 07:34 PM
everythingdaniel's Avatar
everythingdaniel everythingdaniel is offline
Student
 
Join Date: Mar 2007
Location: Tallahassee, FL
Posts: 473
everythingdaniel has a spectacular aura about
Quick question,


I click the .exe and it opens up then closes up fast, with the below error in the log file...


'C:/Documents' is not recognized as an internal or external command,
operable program or batch file.



Any idea why?


I just want to test it on the computer first before I add it to my flash drive....
__________________
--Daniel L
http://everythingdaniel.com
Reply With Quote
  #20  
Old 04-19-2007, 07:35 PM
fenderocker fenderocker is offline
Teacher
 
Join Date: Aug 2006
Posts: 1,684
fenderocker has a spectacular aura about
put it in a folder that's not in c:/documents and settings/ or any other path with a space.
__________________
http://fenderocker.com/
Reply With Quote
Reply

Thread Tools
Display Modes

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

Forum Jump


All times are GMT -6. The time now is 01:09 PM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
© 2008, Tizag