Re: [PHP] Date problems

2006-04-09 Thread Satyam
Timestamps are stored as seconds from a certain date. The base date differ depending on the platform, Windows use 1/1/1980 the rest 1/1/1970, but still seconds. 7 days are 7*24*60*60. Just add that much to a timestamp. It helps having a constant such as: define ('DAY_IN_SECONDS',86400); S

Re: [PHP] What is best way to do handle audio files?

2006-04-09 Thread Nicholas Couloute
Yea, okay looks like I am going to be using mysql cause I want an organized site by genre, author etc. I going to need some resources of mysql cause I haven't used it before! I have used flatfile for about a year now! On Sun, 9 Apr 2006 12:02 am, Richard Lynch wrote: If the files are consta

Re: [PHP] What is best way to do handle audio files?

2006-04-09 Thread Dave Goodchild
You will probably find a great deal of list members well versed in mysql as it meshes so well with php, so ask away old bean. On 09/04/06, Nicholas Couloute <[EMAIL PROTECTED]> wrote: > > Yea, okay looks like I am going to be using mysql cause I want an > organized site by genre, author etc. I goi

Re: [PHP] Re: looking for shopping cart

2006-04-09 Thread Jochem Maas
[EMAIL PROTECTED] wrote: Hi, Why donot u people visit www.indialovesu.com and see the shop cart which is much -2 powerful than oscommerce. U can reach to the design company at www.bsdinfotech.com this mailing list is not a forum for advertising your companies' products or services. probably ha

Re: [PHP] Re: looking for shopping cart

2006-04-09 Thread afan
Try CRE Loaded. http://www.creloaded.com/ It's osCommerce shopping cart with tons of already pre-loaded contributions (modules). -afan > I actually just installed OS commerce on my site, but I think it might be > hard for my clients to upload their contents. They need it to be real > easy. > Al

Re: [PHP] looking for shopping cart

2006-04-09 Thread Dan McCullough
X-Cart, ZenCart (osCommerce like), http://www.hotscripts.com/PHP/Scripts_and_Programs/E-Commerce/index.html if you look in the archives you will find similar questions with a lot better response. On 4/8/06, Lisa A <[EMAIL PROTECTED]> wrote: > I need a shopping cart for a website that once I insta

Re: [PHP] Re: looking for shopping cart

2006-04-09 Thread Ryan A
[EMAIL PROTECTED] wrote: > Hi, > > Why donot u people visit www.indialovesu.com and see the shop cart which is > much -2 powerful than oscommerce. > U can reach to the design company at www.bsdinfotech.com this mailing list is not a forum for advertising your companies' products or services. pro

Re: [PHP] Re: looking for shopping cart

2006-04-09 Thread Jochem Maas
Ryan A wrote: [EMAIL PROTECTED] wrote: Hi, Why donot u people visit www.indialovesu.com and see the shop cart which is much -2 powerful than oscommerce. U can reach to the design company at www.bsdinfotech.com this mailing list is not a forum for advertising your companies' products o

Re: [PHP] Date problems

2006-04-09 Thread Rasmus Lerdorf
Satyam wrote: Timestamps are stored as seconds from a certain date. The base date differ depending on the platform, Windows use 1/1/1980 the rest 1/1/1970, but still seconds. 7 days are 7*24*60*60. Just add that much to a timestamp. It helps having a constant such as: define ('DAY_IN_SECO

Re: [PHP] Completing forms offline with PHP/MySQL

2006-04-09 Thread Rory Browne
I haven't thought about this much, but I'd probably create an onSubmit handler, that would hide the form in an iframe, and create a new one. I would then when they are online, submit all the forms. This would require the user to keep the browser window open and at the same page. Alternatively you

Re: [PHP] how to kill session id without closing the window?

2006-04-09 Thread afan
Yup! That works perfect! Thanks Tedd :) -afan > At 9:19 PM +0200 4/6/06, [EMAIL PROTECTED] wrote: >>Hi to all, >> >>session_start(); >>$_SESSION['sessid'] = session_id; >> >>echo $_SESSION['sessid']; will show e.g. 699e506bd42ea402985dce24a0ef9 >> >>After: >> >>unset($_SESSION['sessid']); >>

Re: [PHP] Re: looking for shopping cart

2006-04-09 Thread tedd
At 4:03 PM +0200 4/9/06, Jochem Maas wrote: [EMAIL PROTECTED] wrote: Hi, Why donot u people visit www.indialovesu.com and see the shop cart which is much -2 powerful than oscommerce. U can reach to the design company at www.bsdinfotech.com this mailing list is not a forum for advertising your

Re: [PHP] looking for shopping cart

2006-04-09 Thread tedd
At 11:36 PM -0400 4/8/06, Lisa A wrote: I need a shopping cart for a website that once I install and set up, my client can easily add merchandise to it. They use Paypal. It has to be very easy for them to upload images and products, prices, etc. If anyone knows of something, please let me know.

Re: [PHP] Problems with Arrays and print and echo

2006-04-09 Thread Michael Felt
John Wells wrote: echo "$this->name[5]\n"; echo "$this->ID[5]\n"; $a1 = $this->name; $a2 = $this->ID; echo "\n$a1[5] $a2[5]\n"; use curly brackets to help PHP understand what you're after: echo "{$this->name[5]}\n"; When you're in a string like this, PHP has a hard time knowing when you're w

Re: [PHP] Ajax please....

2006-04-09 Thread Michael Felt
tedd wrote: Ryan: Carlin Bingham / Tedd: --- Yes, but then I would have to reload the whole page just to tell the person that the account username was already taken...thats how its "traditionally" done...but I want to try doing it without reloading the whole page...hence

[PHP] function by reference

2006-04-09 Thread tedd
Hi gang: Not that I have an immediate need for this, but in other languages one can access a function by reference (in other words, it's address -- such as call(function address) ). In php, one can pass a variable by reference by simply using the ampersand, such a &$a. Is there a similar w

Re: [PHP] Ajax please....

2006-04-09 Thread tedd
At 8:13 PM +0200 4/9/06, Michael Felt wrote: And I thought Ajax was a Dutch Football (soccer) team. :P It isn't?? tedd -- http://sperling.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visi

Re: [PHP] Ajax please....

2006-04-09 Thread Ryan A
> And I thought Ajax was a Dutch Football (soccer) team. :P It isand a very good dish washing detergent too (and yes, I am a bachelor :-D ) Cheers, Ryan -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] looking for shopping cart

2006-04-09 Thread Ryan A
Lisa, -- If you want a more traditional shopping cart, you might look into Shop Script (I'm a distributor). I've installed and set-up a few of those. They cost, but are set up for an easy admin for civilians. If interested, contact me privately. --- Another thing to cons

Re: [PHP] Re: looking for shopping cart

2006-04-09 Thread Ryan A
Hey, -- OH NO ... I didn't forget. I had a whole swathe of abuse ready for this guy about his language /cultural skills and the dodgy design-by-template 1999-dreamweaver HTML crap (view source made me laugh anyway, especially when considered in the light of point 2 on this page:

[PHP] stripping enclosed text from PHP code

2006-04-09 Thread Winfried Meining
Hi, I am writing on a script that parses a PHP script and finds all function calls to check, if these functions exist. To do this, I needed a function that would strip out all text, which is enclosed in apostrophes or quotation marks. This is somewhat tricky, as the script needs to be aware of

[PHP] php with ajax - uploading pictures

2006-04-09 Thread Merlin
Hi there, I am searching for a good upload framework that works with PHP and AJAX to provide an upload interface that uploads one picture instantly, shows the thumbnail and displays another upload formfield to select the next picture for upload. Is there something like this, or similar aroun

Re: [PHP] how to run 'periodic'

2006-04-09 Thread Frank Arensmeier
Thank you Joe for your input. I will take a look at crond. /frank 7 apr 2006 kl. 20.06 skrev Joe Wollard: Frank, It sounds like you need to run this as a job through crond. I'm not sure what the OSX version is (maybe they have a port of crond?) but you could set that up to execute the spec

Re: [PHP] stripping enclosed text from PHP code

2006-04-09 Thread Satyam
http://www.phpcompiler.org/ Satyam - Original Message - From: "Winfried Meining" <[EMAIL PROTECTED]> To: Sent: Sunday, April 09, 2006 10:20 PM Subject: [PHP] stripping enclosed text from PHP code Hi, I am writing on a script that parses a PHP script and finds all function calls

[PHP] DDE + PHP

2006-04-09 Thread C.F. Scheidecker Antunes
Hello, I have an Excel spreadsheet that is automatically updated with quotes. I am doing a project for my BS and I need to grab the information from this spreadsheet and populate a MySQL database. Any ideas on how to accomplish that with PHP? The spreadsheet uses a DDE feed to fetch informati

Re: [PHP] function by reference

2006-04-09 Thread Robert Cummings
On Sun, 2006-04-09 at 14:17, tedd wrote: > Hi gang: > > Not that I have an immediate need for this, but in other languages > one can access a function by reference (in other words, it's address > -- such as call(function address) ). > > In php, one can pass a variable by reference by simply usi

Re: [PHP] DDE + PHP

2006-04-09 Thread tedd
At 4:59 PM -0600 4/9/06, C.F. Scheidecker Antunes wrote: Hello, I have an Excel spreadsheet that is automatically updated with quotes. I am doing a project for my BS and I need to grab the information from this spreadsheet and populate a MySQL database. Any ideas on how to accomplish that wit

[PHP] Implied permissions

2006-04-09 Thread SLaVKa
Hey guys... implementing a permission system and just wanted some advice. If i have permission A which has implied permissions B and C How do the permissions relate to each other, for eg if I select permission A to true, that implies that permission B and C must be set to true, but then if I s

[PHP] Var within a var

2006-04-09 Thread bob pilly
Hi All Im trying to store a document template in mysql that has php var names within it and then find it in the datebase and print it out with the var names replaced with the var values. e.g i have this stored Dear $title $name we would like to.. I declare the vars $title and $na

[PHP] Variable within a Variable

2006-04-09 Thread bob pilly
Hi All Im trying to store a document template in mysql that has php var names within it and then find it in the datebase and print it out with the var names replaced with the var values. e.g i have this stored Dear $title $name we would like to.. I declare the vars $ti

Re: [PHP] Variable within a Variable

2006-04-09 Thread Chris
bob pilly wrote: Hi All Im trying to store a document template in mysql that has php var names within it and then find it in the datebase and print it out with the var names replaced with the var values. e.g i have this stored Dear $title $name we would like to.. I de

Re: [PHP] Variable within a Variable

2006-04-09 Thread Paul Novitski
At 06:54 PM 4/9/2006, bob pilly wrote: Im trying to store a document template in mysql that has php var names within it and then find it in the datebase and print it out with the var names replaced with the var values. At 04:05 PM 4/7/2006, Paul Novitski wrote: At 02:41 PM 4/7/2006, David

Re: [PHP] Var within a var

2006-04-09 Thread Kevin Waterson
This one time, at band camp, bob pilly <[EMAIL PROTECTED]> wrote: > Hi All > > Im trying to store a document template in mysql that has php var names > within it and then find it in the datebase and print it out with the var > names replaced with the var values. eval() Kevin -- "Democracy

[PHP] How to use check box in CakePHP?

2006-04-09 Thread Pham Huu Le Quoc Phuc
Hi everybody! I want to use a checkbox in Add, Edit form with CakePHP. How to do? Please help me! -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] How to use check box in CakePHP?

2006-04-09 Thread Chris
Pham Huu Le Quoc Phuc wrote: Hi everybody! I want to use a checkbox in Add, Edit form with CakePHP. How to do? Please help me! You know cake has documentation right? http://manual.cakephp.org/ -- Postgresql & php tutorials http://www.designmagick.com/ -- PHP General Mailing List (http://www

Re: [PHP] How to use check box in CakePHP?

2006-04-09 Thread Pham Huu Le Quoc Phuc
Could you give me a example? - Original Message - From: "Chris" <[EMAIL PROTECTED]> To: "Pham Huu Le Quoc Phuc" <[EMAIL PROTECTED]> Cc: Sent: Monday, April 10, 2006 10:39 AM Subject: Re: [PHP] How to use check box in CakePHP? > Pham Huu Le Quoc Phuc wrote: > > Hi everybody! > > I want

Re: [PHP] How to use check box in CakePHP?

2006-04-09 Thread Chris
Pham Huu Le Quoc Phuc wrote: Could you give me a example? Read the documentation or ask on their mailing list / forum. -- Postgresql & php tutorials http://www.designmagick.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] How to use check box in CakePHP?

2006-04-09 Thread Chris
Pham Huu Le Quoc Phuc wrote: Could you give me a example? I found your question quite easily in the manual: http://manual.cakephp.org/pages/ch09s01#d0e1498 checkbox ($fieldName, $title=null, $htmlAttributes=null, $return=false) -- Postgresql & php tutorials http://www.designmagick.com/ -- P

[PHP] PHP + DDE live feed

2006-04-09 Thread C.F. Scheidecker Antunes
Hello, I have an Excel spreadsheet that is automatically updated with quotes. I am doing a project for my BS and I need to grab the information from this spreadsheet and populate a MySQL database. Any ideas on how to accomplish that with PHP? The spreadsheet uses a live DDE feed to fetch info

Re: [PHP] PHP + DDE live feed

2006-04-09 Thread Chris
C.F. Scheidecker Antunes wrote: Hello, I have an Excel spreadsheet that is automatically updated with quotes. I am doing a project for my BS and I need to grab the information from this spreadsheet and populate a MySQL database. Any ideas on how to accomplish that with PHP? The spreadsheet us

[PHP] mod_rewrite q's: syntax?

2006-04-09 Thread Micky Hulse
Hi all... sorry if this is OT for PHP list... Maybe a reply off-list? I just wanted to share my .htaccess file in the hopes that I can hone/fool-proof-a-tize it as much as possible via your feedback and suggestions. Here is what I got so far... I start by turning-on error reporting, then I am co

Re: [PHP] mod_rewrite q's: syntax?

2006-04-09 Thread Chris
Micky Hulse wrote: Hi all... sorry if this is OT for PHP list... Maybe a reply off-list? I just wanted to share my .htaccess file in the hopes that I can hone/fool-proof-a-tize it as much as possible via your feedback and suggestions. Here is what I got so far... I start by turning-on error re

RE: [PHP] mod_rewrite q's: syntax?

2006-04-09 Thread Micky Hulse
> -Original Message- > From: Chris [mailto:[EMAIL PROTECTED] > Do you need to do it with a mod_rewrite? > > if not, you can do it easily in php: > > header('location: folder/file.php'); > exit(); > > in index.php. Unfortunately, yes... I am using a CMS, and my current setup is forcin

[PHP] Re: stripping enclosed text from PHP code

2006-04-09 Thread Rafael
Winfried Meining wrote: I am writing on a script that parses a PHP script and finds all function calls to check, if these functions exist. To do this, I needed a function that would strip out all text, which is enclosed in apostrophes or quotation marks. This is somewhat tricky, as the script n