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
 
Unread Codewalkers Forums Sponsor:
  #1  
Old March 12th, 2006, 09: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 10th, 2006, 12:30 AM
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, 08: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, 09: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: 25
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, 01: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, 12:21 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: 25
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, 12:25 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: 25
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, 03: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: 25
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, 08: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: 25
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, 10: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
  #11  
Old April 29th, 2009, 08:40 PM
BearWeb BearWeb is offline
Registered User
Codewalkers Newbie (0 - 499 posts)
 
Join Date: Apr 2009
Posts: 3 BearWeb User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 57 m 56 sec
Reputation Power: 0
Solution!

Quote:
Originally Posted by wilded1
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?


You can fix it by going through the following phpauctions files and where you see the time settings:
index.php
item.php

0, 4
4, 2
6, 2
8, 2
10, 2
12, 2

Change them to

0, 4
5, 2
8, 2
11, 2
14, 2
17, 2

Respectively.

For example. Open item.php and find this:

$year = substr($date,0,4);
$month = substr($date,4,2);
$day = substr($date,6,2);
$hours = substr($date,8,2);
$minutes = substr($date,10,2);
$seconds = substr($date,12,2);

Change it to:

$year = substr($date,0,4);
$month = substr($date,5,2);
$day = substr($date,8,2);
$hours = substr($date,11,2);
$minutes = substr($date,14,2);
$seconds = substr($date,17,2);

Reply With Quote
  #12  
Old April 30th, 2009, 07:59 PM
BearWeb BearWeb is offline
Registered User
Codewalkers Newbie (0 - 499 posts)
 
Join Date: Apr 2009
Posts: 3 BearWeb User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 57 m 56 sec
Reputation Power: 0
Question Help Please!

Hi everyone

I recently bought phpAuction XL v3.1. I installed it fine and set-up everything fine. Then i got to the "Fees", i set my fees for Home page listing, Bold listing etc. that all went fine, then i created an account to test the Auctions, i clicked on all the "Featured" listings (Home page listing, Bold listing), then i got to the next page and it asked me for my password so i entered it and i confirmed the auction. Then the same page came back and said that i do not have enough credits to use these features and it gave me the option to buy credits. I clicked on this and it asked me for the amount so i entered my required amount, then it took me to the next page where it asked me if i wanted to use PayPal and it gave me no other options.

As i do not have a credit card, i cannot set up a PayPal account, so i need a different way to charge people for these "Featured Listings". My Admin Control Panel doesn't give me any extra Payment Methods such as 2Checkout etc. (These also wouldn't work even if they were offered because, as i said before, i don't have a credit card so i can't register with any of these sites.)

So i would like to know if there is any way that i can let the customer use these "Featured Listings" and then it adds the cost to their next invoice. PLEASE, if anyone could help me with code to insert to allow me to do this, i would really appreciate it and i am willing to pay.

Please can you invite me on Skype (dustin.ellse) so we can discuss costs and make payment arrangements.

Kind regards
Dustin Ellse

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!
 
How to Present Effectively Online
This white paper offers practical and actionable advice on the key steps that any presenter should consider as they plan and execute a Webinar or online meeting.

Request Your Free Technology Downloads!
 
Open Source Security Myths
Open Source Software (OSS) is computer software whose source code is available to the general public with relaxed or non-existent intellectual property restrictions (or arrangement such as the public domain), and is usually developed with the input of many contributors.

Request Your Free Technology Downloads!
 
Power and Cooling Capacity Management for Data Centers
This paper describes the principles for achieving power and cooling capacity management.

Request Your Free Technology Downloads!
 
Scalable, Fault-Tolerant NAS for Oracle - The Next Generation
For several years NAS has been evolving as a storage alternative for Oracle databases, and for good reason: NAS is quite often the simplest, most cost-effective storage approach for Oracle. Learn about the benefits that HP's approach to scalable NAS brings to Oracle environments in this comprehensive white paper.

Request Your Free Technology Downloads!
 
Understanding Web Application Security Challenges
This white paper discusses many common threats and preventive measures for Web application security, and explains what you can do to help protect your organization.

Request Your Free Technology Downloads!
 

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




© 2003-2009 by Developer Shed. All rights reserved. DS Cluster 1 Hosted by Hostway
For more Enterprise Application Development news, visit eWeek