Home | Webstore
Latest News: OOTP 27 Buy Now - FHM 12 Available - OOTP Go! 27 Available

Out of the Park Baseball 27 Buy Now!

  

Go Back   OOTP Developments Forums > Prior Versions of Our Games > Earlier versions of Out of the Park Baseball > Earlier versions of OOTP: Online Leagues

Reply
 
Thread Tools
Old 07-08-2011, 12:25 PM   #1
GWUlery
Minors (Single A)
 
GWUlery's Avatar
 
Join Date: Dec 2009
Posts: 60
PHP Script Error for MySQL reports

I'm trying to get the SQL reports system to function, but when I execute the unpacking scripts I get the following error.

Quote:
Command: tar xzf "D:\inetpub\***\Reports/reports.tar.gz" 2>&1:
'tar' is not recognized as an internal or external command,
operable program or batch file.

As far as I can tell, the lines in the script that deal with unpacking the .tar.gz file are:

Quote:
$cmd = sprintf("tar xzf %s 2>&1", escapeshellarg($path.'/reports.tar.gz'));

echo '<pre>Command: ', htmlspecialchars($cmd), ": \n";
flush();
passthru($cmd, $retval);
echo '</pre>';

Has anyone else experienced this, or does anyone with PHP knowledge have any idea how to fix it?
__________________
GWUlery is offline   Reply With Quote
Old 07-08-2011, 12:44 PM   #2
Alan T
All Star Starter
 
Join Date: Mar 2002
Location: Mass.
Posts: 1,963
I am far from a php expert, but what that script is trying to do there is take the zipped archive that was uploaded from ootp to your server and extract the file/files from the archive on your server for you so you do not have to do it manually.

The program tar is what the script is using to do so, and is a very very common program that is generally on most systems. Your script is getting an error that it can't find that program on your server.


From there I'm not sure what possible things could cause that, but the obvious ones I would suggest is to check to make sure you do have tar on your server. Make sure that your account has access to it via php.

Beyond that, I'm not sure if there are other php settings that might need to be checked on your server, maybe someone more knowledgeable than I in php can help assist further.
__________________
- Front Office Offseason League. (Fast Paced OOTP-X and OOTP11 leagues, sims one season every week)
Alan T is offline   Reply With Quote
Old 07-13-2011, 04:30 PM   #3
GWUlery
Minors (Single A)
 
GWUlery's Avatar
 
Join Date: Dec 2009
Posts: 60
Through conversations with my web hosting provider, it turns out the issue is that I am on a shared Windows hosting environment. Tar is not available on Windows without third party software, which isn't available on shared servers.

For the developers, is there any chance that archives could be built in alternate formats such as zip?

For any programmers out there, I can manually zip and extract the needed files. Does anyone know how to edit the PHP file to remove the extraction processes and skip right to the SQL commands?

I'm on a horribly slow Internet connection because of where I live, and this was one of the huge advantages I was looking forward to when moving to OOTP 12.
__________________
GWUlery is offline   Reply With Quote
Reply

Bookmarks


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 -4. The time now is 11:55 AM.

 

Major League and Minor League Baseball trademarks and copyrights are used with permission of Major League Baseball. Visit MLB.com and MiLB.com.

Officially Licensed Product – MLB Players, Inc.

Out of the Park Baseball is a registered trademark of Out of the Park Developments GmbH & Co. KG

Google Play is a trademark of Google Inc.

Apple, iPhone, iPod touch and iPad are trademarks of Apple Inc., registered in the U.S. and other countries.

COPYRIGHT © 2023 OUT OF THE PARK DEVELOPMENTS. ALL RIGHTS RESERVED.

 

Powered by vBulletin® Version 3.8.10
Copyright ©2000 - 2026, vBulletin Solutions, Inc.
Copyright © 2024 Out of the Park Developments