Just so everyone can know, I would LOVE to stay with yellowtip webserver, if you know how to install the GD files to it PLEASE let me know.
This php worked on my 4.x php server but I get unexpected end with any other.
Needless to say I only upgraded to 5.2 because
Yellowtip web server 2.0's php did not come with the GD librarys which I needed to upload pics using mini file host.
If you can fix ethier problem I would be so greatful
herse the current problem
unexpected $end
line 165 which is the end of file - <?php
-
-
-
include("./config.php");
-
include("./header.php");
-
-
$userip=$_SERVER['REMOTE_ADDR'];
-
$time=time();
-
-
///////////////////////////////////////////TIMER////////////////////////////////////
-
-
if(file_exists("./uploader/".$userip.".mfh"))
-
{
-
-
$downloaders = fopen("./uploader/".$userip.".mfh","r+");
-
flock($downloaders,2);
-
-
while (!feof($downloaders)) {
-
$user[] = chop(fgets($downloaders,65536));
-
}
-
-
fseek($downloaders,0,SEEK_SET);
-
ftruncate($downloaders,0);
-
-
$youcantdownload = 0;
-
foreach ($user as $line) {
-
list($savedip,$savedtime) = explode('|',$line);
-
if ($savedip == $userip) {
-
if ($time < $savedtime + ($uploadtimelimit*60)) {
-
$youcantdownload = 1;
-
$downtimer = $time - $savedtime ;
-
$counter = $uploadtimelimit*60 - $downtimer;
-
}
-
}
-
-
if ($time < $savedtime + ($uploadtimelimit*60)) {
-
fputs($downloaders,"$savedip|$savedtime\n");
-
}
-
}
-
-
-
if($youcantdownload==1) {
-
?><center><table style="margin-top:0px;width:790px;height:400px;"><tr><td style="border:1px #AAAAAA solid;height:100%;background-color:#FFFFFF;padding:20px;text-align:left;" valign=top><?
-
echo "<h1><center>Upload Time Limit</center></h1>";
-
?><script type="text/javascript">
-
-
var running = false
-
var endTime = null
-
var timerID = null
-
var totalMinutes = <?php echo $counter;?>;
-
-
function startTimer() {
-
running = true
-
now = new Date()
-
now = now.getTime()
-
endTime = now + (1000 * totalMinutes);
-
showCountDown()
-
}
-
-
function showCountDown() {
-
var now = new Date()
-
now = now.getTime()
-
if (endTime - now <= 0) {
-
clearTimeout(timerID)
-
window.location.reload()
-
-
} else {
-
var delta = new Date(endTime - now)
-
var theMin = delta.getMinutes()
-
var theSec = delta.getSeconds()
-
var theTime = theMin
-
theTime += ((theSec < 10) ? ":0" : ":") + theSec
-
document.getElementById('SessionTimeCount').innerHTML = 'Please wait ( <font color="#FF0000">' + theTime + '</font> ) Minutes for Upload'
-
if (running) {
-
timerID = setTimeout("showCountDown()",1000)
-
}
-
}
-
}
-
-
window.onload=startTimer
-
</script>
-
-
-
<center><span id="SessionTimeCount"></span></center><br /><br /><br /><br />
-
<?
-
-
include("./bottomads.php");
-
-
?><td><tr><table><?
-
include("./footer.php");
-
die();
-
-
}
-
-
}
-
-
///////////////////////////////////////////TIMER///////////////////////
-
-
-
$sizehosted = 0; //get the storage size hosted
-
$handle = opendir("./storage/");
-
while($file = readdir($handle)) {
-
$sizehosted = $sizehosted + filesize ("./storage/".$file);
-
if((is_dir("./storage/".$file.'/')) && ($file != '..')&&($file != '.'))
-
{
-
$sizehosted = $sizehosted + total_size("./storage/".$file.'/');
-
}
-
}
-
$sizehosted = round($sizehosted/1024/1024,2);
-
-
if(isset($allowedtypes)){ //get allowed filetypes.
-
$types = implode(", ", $allowedtypes);
-
$filetypes = "<b>$lang[allfile]</b> ".$types."<br /><br />";
-
} else { $filetypes = ""; }
-
-
if(isset($categories)){ //get categories
-
$categorylist = "$lang[cat2]: <select name=\"category\">";
-
foreach($categories as $category){
-
$categorylist .= "<option value=\"".$category."\">".$category."</option>";
-
}
-
$categorylist .= "</select><br />";
-
} else { $filetypes = ""; }
-
-
if(isset($_GET['page']))
-
$p = $_GET['page'];
-
else
-
$p = "0";
-
include 'total.php';
-
-
switch($p) {
-
case "tos": include("./pages/tos.php"); break;
-
case "faq": include("./pages/faq.php"); break;
-
case "img": include("./pages/image.php"); break;
-
default: include("./pages/upload.php"); break;
-
}
-
-
include("./footer.php");
-
?>
-
or if you can fix problem 2
in yellowtip 2.0 web server I need to INSTALL the gd files, it does NOT have any with it and I un ; the php_gd2.dll line (errors that its not there)
ive tried installing every form of web software that uses http and php that I could find ranging from xampp (currently on) wamp(same problem) easyphp(connect ion always reset). AND yellowtip 2.0 (I REALLY want to use this, PLEASE assist in installing GD files.)
Please assist as my mind is now gone.
6 1789 Markus 6,050
Recognized Expert Expert
You've probably neglected to close a block with '}' - check your included files.
What was the exact error message?
@Markus
its the same one with the resolution you are referring to, but as I said when I use yellow tip I get the error about the
Fatal error: Call to undefined function: imagecreatefrom jpeg() in C:\Program Files\YellowTip \Htdocs\uploadt est\basic.php on line 49
instead of the unexpected end line, I checed al the coding and I cant find a braket to close,
Hense why the yellow tip just need the installation of the gd library files.
hense why I am at such a loss.
Markus 6,050
Recognized Expert Expert
Confused.com
What's wrong with your XAMPP installation - it comes with GD.
dlite922 1,584
Recognized Expert Top Contributor @Markus
Car insurance?
ImLost.com
Dan
@Markus
xampp, gives me the end of file error.
ITS FIXED!!!!
using this webpage http://museum.php.net/win32/
downloading the previous version that yellow tip was using 4.3.6
extracting the extension folder
(you have to use same version of dll's as the php version)
on the
extensions_dir
I HAD to put c:\program files\yellowtip/extensions/
Had to put the / instead of the \.
uncommented the php_gd2.dll
AND IT WORKS!
If you want to help me test upload a pic to http://zyse.ath.cx/uploadtest/
Thanks for helping tho!
Lord Zyse
Sign in to post your reply or Sign up for a free account.
Similar topics |
by: Andrew |
last post by:
Last night I was reading about implementing my own stack. The example
given pushes items on and off the stack at the start and end of each
procedure (ie. in a std module). What's not so clear is how this
would work with class objects. In this case do you have to push the
object on the stack at the start of every public procedure etc. in the
class and pop it off at the end? I can't see how else you can know
which object is active - or...
|
by: torbs |
last post by:
I am trying to use the methods in quicktimes plugin, but IE generetes
an error. I have tried to use the "document.all" instead of
getElementById but the results remain the same. It won't recognise
"movie1" and "movie2" as objects, and it won't allow me to use their
methods.
And of course IE generates an error message that says nothing about
what might be wrong.
|
by: Mike Owen |
last post by:
Hi,
I have just used the import Wizard to import a VS 2003 app to VS 2005.
I have a lot of work to do to enable it to compile successfully with all the
errors and warnings it gave me, but as a starting point the compiler can no
longer find the function as at the bottom of this posting, that was in the
Global.asax.vb file.
All the function does is give an easy / quick way of getting the application
|
by: MLH |
last post by:
I call the following Sub and Function in frmLaunch's OnOpen
event code. I keep getting Property Not Found error for the
AllowBypassKey setting. Failure point is line #30 in the Function
(not the Sub). Ideas?
Sub SetStartupProperties()
On Error GoTo SetStartupProperties_Err
10 ChangeProperty "StartupForm", dbText, "frmLaunch" '
Form you want to open at startup
20 ChangeProperty "StartupShowDBWindow", dbBoolean, False ...
|
by: Al Williams |
last post by:
Hi,
I have error handling in place throughout my application. I also start the
application wrapped in error handling code to catch any unexpected
exceptions (i.e. exceptions that occur where I haven't placed error handling
code).
When I run my app from the IDE, the unhandled errors are caught by the error
handling code in my Sub Main routine and the error details are logged to a
text file and optionally e-mailed to me for follow-up.
| |
by: Rob Richardson |
last post by:
Greetings!
I am working on an application that targets a Pocket PC running Windows CE
and SQL Server CE. Almost all functions in the application use a Try block
with a Catch block that looks like this:
Try
TryToDoIt()
Catch e as Exception
LogTheError(e)
|
by: Peter |
last post by:
I've purchased VS.NET 2005 Standard and have tried to install SQL Server
2005 Express, but get the following error in the error log.
Please could someone help me....
Microsoft SQL Server 2005 Express Edition x86:
Component Microsoft SQL Server 2005 Express Edition x86 returned an
unexpected value.
***EndOfSession***? Microsoft SQL Server 2005 Express
Edition x86: Component Microsoft SQL Server 2005 Express Edition x86
returned an...
|
by: Jan |
last post by:
Hi:
When I searched the newsgroup for this problem, I saw two or three
instances of the question being asked, but it was never answered. Not
too promising, but here goes:
I have a form with four subforms, and bit of code that cycles through
the data in the subform (bound to a local temp table) and writes it to a
table on the server. This code has run at the client with no problems
for over a year.
|
by: Adrienne Boswell |
last post by:
This is the strangest thing. On my local beta server (WinXP Pro SP3,
PHP 5.2.3), I am getting an unexpected $end. On the production server,
I am not. The files are identical. Just for shits and giggles, I made
a new folder on my local machine, copied all the files from the
production server, opened it, and again got the same thing. The
production server is running version 4.4.7. So I thought, aha! - older
version of PHP. So I opened...
|
by: marktang |
last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look !
Part I. Meaning of...
|
by: Hystou |
last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it.
First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
| |
by: Oralloy |
last post by:
Hello folks,
I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>".
The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed.
This is as boiled down as I can make it.
Here is my compilation command:
g++-12 -std=c++20 -Wnarrowing bit_field.cpp
Here is the code in...
|
by: Hystou |
last post by:
Overview:
Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
|
by: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
|
by: agi2029 |
last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own....
Now, this would greatly impact the work of software developers. The idea...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM).
In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules.
He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms.
Adolph will...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
| |
by: bsmnconsultancy |
last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...
| |