PHP Installation
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Codewalkers ForumsPHP RelatedPHP Installation

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
  #1  
Old March 12th, 2006, 08:58 PM
wilded1 wilded1 is offline
Codewalkers Newbie (0 - 499 posts)
 
Join Date: Apr 2007
Location: uk
Posts: 1 wilded1 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 5 m 11 sec
Reputation Power: 0
PHPauction. Auction closed!

I have installed php auctions 2.1 but there seems to be some sort of date problem.
When an item is added for sale and submitted, the auction is already closed (finished).
Upon checking the auction in the admin cp. the date is not showing correctly, I.E 3-/-2/2006.
The actual date should be 03/12/2006.
This is a free instalation via cpanel from my provider.

I have looked at 'date.inc.php' but all looks ok in there.

Anyone come across this before?

Reply With Quote
  #2  
Old August 9th, 2006, 11:30 PM
andyferriby andyferriby is offline
Codewalkers Newbie (0 - 499 posts)
 
Join Date: Apr 2007
Location: carlisle, uk
Posts: 2 andyferriby User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
RE: PHPauction. Auction closed!

same problem as me mate.... did you find a solution?

Reply With Quote
  #3  
Old September 13th, 2006, 07:23 PM
groothuijsen groothuijsen is offline
Codewalkers Newbie (0 - 499 posts)
 
Join Date: Apr 2007
Location: netherlands
Posts: 3 groothuijsen User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
RE: PHPauction. Auction closed!


Quote:
I have installed php auctions 2.1 but there seems to be some sort of date problem.
When an item is added for sale and submitted, the auction is already closed (finished).
Upon checking the auction in the admin cp. the date is not showing correctly, I.E 3-/-2/2006.
The actual date should be 03/12/2006.
This is a free instalation via cpanel from my provider.

I have looked at 'date.inc.php' but all looks ok in there.

Anyone come across this before?




I got the same problem and searched the net for hours without any help and success..
Could anyone please mail me the sollution to this problem to groothuijsen@gmail.com ???

Kind regards.

Paul

Reply With Quote
  #4  
Old September 17th, 2006, 08:22 PM
Anonymous Anonymous is offline
Registered User
Codewalkers God 35th Plane (22000 - 22499 posts)
 
Join Date: Apr 2007
Posts: 22,309 Anonymous User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 24
RE: PHPauction. Auction closed!

I would give up on this one. If you *really* need it go to the PHPAuction official site (which is no longer free... boo!) and they have a link to a cruddy hosting provider that has it.

PHP Auction 2.1 simply doesn't work with recent versions of SQL. I've tried on 2 hosting providers with Fantastico.

You *could* fix it yourself...

read the last message on the following thread:

http://auctioncode.com/viewtopic.php?t=964

and you'll see why the date thing is doing what it is doing.

I just spent, errrmm, 3 or 4 hours going through the code and updating the substring values. And it worked! And then 20 other errors popped up when you tried to make a bid.

Waste. Of. Time. I wish Fantastico / Hosting providers would friggen' address this - either by putting up something that works or by removing it (as it's a time-sink to try and get to work).

Reply With Quote
  #5  
Old September 20th, 2006, 12:04 AM
groothuijsen groothuijsen is offline
Codewalkers Newbie (0 - 499 posts)
 
Join Date: Apr 2007
Location: netherlands
Posts: 3 groothuijsen User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
RE: PHPauction. Auction closed!

an conversion of the databases to sql 4.0 couldn't help this?

because i dont know what is going wrong in the sql. is the database sql file in version 4.0 and so uploaded in the wrong format?

you know what's the frustrating thing?
I had it working about one year ago and just wanted to update .. grrrrrr

Reply With Quote
  #6  
Old September 29th, 2006, 11:21 AM
Anonymous Anonymous is offline
Registered User
Codewalkers God 35th Plane (22000 - 22499 posts)
 
Join Date: Apr 2007
Posts: 22,309 Anonymous User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 24
RE: PHPauction. Auction closed!

Fix the timestamp before it's used:

$year = substr($t,0,4); // the variable you need to work on is $t - then just before put:

$date = ereg_replace("/|-|:| |.|,","",$t);
// leave the rest as it is.
$year = substr($t,0,4);
$month = substr($t,4,2);

in onother page you will find this value is taken from $date, then

$date = ereg_replace("/|-|:| |.|,","",$date);
// leave the rest as it is.
$year = substr($date,0,4);
$month = substr($date,4,2);

etc

GattoTigre

Reply With Quote
  #7  
Old September 29th, 2006, 11:25 AM
Anonymous Anonymous is offline
Registered User
Codewalkers God 35th Plane (22000 - 22499 posts)
 
Join Date: Apr 2007
Posts: 22,309 Anonymous User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 24
RE: RE: PHPauction. Auction closed!

Quote:
php Code:
Original - php Code
  1. $t = ereg_replace("/|-|:| |.|,","",$t)



Typo! mistake in the first example.

GattoTigre

Reply With Quote
  #8  
Old December 17th, 2006, 02:00 AM
Anonymous Anonymous is offline
Registered User
Codewalkers God 35th Plane (22000 - 22499 posts)
 
Join Date: Apr 2007
Posts: 22,309 Anonymous User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 24
RE: PHPauction. Auction closed!

in fact, is has only to do with the interpretation of the date.
e.g. today is 17.12.2006 3:36 am 23 sec.
--> that would be 20061217033623

$year = substr($t,0,4); -> means: starting at position 0 taking 4 numbers (2006)

$month = substr($t,5,2); -> means: starting at position 5 taking 2 numbers (12)

etc.

The tricky thing is, that the timestamp on your server might use a different format, e.g
2006-12-17-03-36-23

as a consequence:

$year = substr($t,0,4); -> means: starting at position 0 taking 4 numbers (2006)

$month = substr($t,6,2); -> means: starting at position 5 taking 2 numbers (12)

it could also be:
200612-17-03-36-23
have a try, it worked well for me.

Reply With Quote
  #9  
Old January 5th, 2007, 07:27 PM
Anonymous Anonymous is offline
Registered User
Codewalkers God 35th Plane (22000 - 22499 posts)
 
Join Date: Apr 2007
Posts: 22,309 Anonymous User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 24
RE: PHPauction. Auction closed!

i have the same problem with the date-format

has anybody a fixed file to download or to mail? or which files have to be edited?

i have v2.1 from phpauction

my email: mailaddie@web.de

thank you!

Reply With Quote
  #10  
Old December 18th, 2007, 09:41 AM
svconsult svconsult is offline
Registered User
Codewalkers Newbie (0 - 499 posts)
 
Join Date: Dec 2007
Location: Denmark
Posts: 4 svconsult User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 3 h 22 m 32 sec
Reputation Power: 0
Solved

Using GattoTigre's approach i have solved this and generated a zip with all the needed files. You can find it here:
sv-consult . dk + /sharing/phpauction.html
(you don't need to register, don't worry)

If you are not interested in that, you should at least be aware that Gattotigres regular expression is wrong. it should be:
PHP Code:
 $string ereg_replace("\-|:| |\.|\,","",$string); 


the error is NOT escaping . like \.


feel free to email me if you can not access my site. the rules doesn't allow me to make it a real url


svconsult
Comments on this post
tkarkkainen agrees: A textbook example of correct kind of thread digging

Reply With Quote
Reply

Viewing: Codewalkers ForumsPHP RelatedPHP Installation > PHPauction. Auction closed!


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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump

 Free IT White Papers!
 
Accelerating Trading Partner Performance
One in five. That's how many partner transactions have at least one error. That is an amazing statistic, particularly given the extraordinary leaps in innovation across the global supply chain during the past two decades. Download this white paper to learn more.

 
Competing on Analytics
This Tech Analysis is designed to help identify characteristics shared by analytics competitors, and includes information about 32 organizations that have made a commitment to quantitative, fact-based analysis.

 
Cost Effective Scaling with Virtualization and Coyote Point Systems
An overview of the industry trend toward virtualization, how server consolidation has increased the importance of application uptime and the steps being taken to integrate load balancing technology with virtualized servers.

 
Five Checkpoints to Implementing IP Telephony
Implementation planning for IP PBX software and IP telephony has become vital as businesses replace discontinued legacy PBX phone systems. This informative whitepaper outlines five &quot;checkpoints&quot; for any implementation plan that will help make IP communications a successful proposition.

 
Hosted Email Security: Staying Ahead of New Threats
In the last two years, email has become a fierce battleground between the nefarious forces of spam and malware, and the heroes of messaging protection. The spam volumes increased alarmingly every month, bringing clever new forms of phishing and virus propagation attacks.

 

Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 3 hosted by Hostway