Re: [PHP] ibase_errcode() not defined

2006-04-23 Thread Jochem Maas

Todd Cary wrote:
If I use ibase_errcode(), I get an undefined error; ibase_errmsg() 
works.  Anyone else have this error with Firebird?


ibase_errcode() is php5 only. I highly recommend you use php5 if using the ibase
extension - the php5 extension is light years ahead of it's php4 counter part.



Todd



--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] shopping carts

2006-04-23 Thread tedd

At 9:04 PM -0400 4/22/06, Lisa A wrote:

Do you  have any suggestions?  Right now I use the one through Paypal, but
it would be too difficult for my client to add their own  merchandise.  I
could pay more, but not much more.  Do you recommend any good ones or
someone that could write one.  OScommerce was way too hard and offer too
many options.  I don't need a powerful one like that.  Just a good basic
shopping cart, but good for client side.


and


Well I have no idea.  I can't spend $100's but hope that there would be
something out there affordable.


This apparently is a common theme -- I want a good basic shopping 
cart that works AND I don't want to pay over $100 for it.


Well... I want a good basic car and not pay over $100 for it too. 
But, everyone knows that those two wants are mutually exclusives. My 
question is, why aren't shopping carts viewed in the same common 
sense perspective?


What's the reason?

Is it because its software and people say Well.. you have already 
spent the time, so why not charge less for it or just give it away 
kind of things. They don't do that with cars, they don't say  Hey, 
it's already built, so charge less for it.


Or perhaps they don't understand that a good basic solution is NOT 
simple, nor trivial, nor inexpensive.


Or, perhaps in their proposal to their clients they underestimated 
the worth of a good basic shopping cart?


Or, perhaps they don't want to spend their time to take a free 
shopping cart and make it work for their clients because they 
intrinsically know that it will take their time, which has worth to 
them, but at the same time don't appreciate the work of others to do 
the same thing?


I don't know what the reasons are, but it is one of those situations 
that begs the question why.


tedd
--

http://sperling.com

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] sorting troubles

2006-04-23 Thread chris smith
 I have a column in DB that contains this kind of data,
 A20,B16,B17C14,C15,D13,D12 etc.

 I would like to print this data to a page and sort it ascending by the
 letter an descending by the number. Can this be done? Like

 A20
 B17
 B16
 C15
 C14
 D13
 D12

Depending on how many records you have and how many you want per page,
you might be better off doing this in your database query (eg you have
d01 - d99 and only want to show 30 per page)...

Depending on which db you use, different syntaxes will apply.. so if
you need further help send which db and which version.

--
Postgresql  php tutorials
http://www.designmagick.com/

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] Problems Posting - PLEASE IGNORE!

2006-04-23 Thread Porpoise

Been having problems posting. If this gets through OK please ignore

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] TEST - PLEASE IGNORE!

2006-04-23 Thread Porpoise

dsfk;ghjfdskjgjdsalkjfksd

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] At Last!

2006-04-23 Thread Porpoise

Well, that was hardly an intuitive process - to get to the point of being
able to post to the group. Why couldn't they put clearer instructions on
the website? Or, maybe it's just me being thick. ;-) Or, maybe I
just lost the [SPAM] PHP list posting confirmation for... amongst the 
spam.

Obviously need to white-list it..

Enough drivelling already!! Let's get on with the posting



--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] CMS for Auto Parts

2006-04-23 Thread John Hicks

CK wrote:
 Hi,
 On Apr 22, 2006, at 1:26 PM, John Hicks wrote:

 CK wrote:
 Hi,
 I've been commissioned to design a web application for auto parts
 sales. The Flash Front end will communicate with a MySQL DB via PHP.
 In addition, PHP/XML should be used with a client-side Web GUI to
 upload images, part no., descriptions and inventory into the DB; a
 Product Management System.

 I am curious as to how you plan to using XML for the client's back
 end? (I don't see any reason to use it.)

 Using XML to keep an inventory dynamically, was the thought. The XML
 file would be updated with each entry, then could be imported into a
 spreadsheet.


If you are storing your inventory in an XML document, then what are you 
using the MySQL database for?


 After Googling the returned queries have been slim, any leads on
 more specific examples?

What specifically are you looking for and how are you googling for it?

--John

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



RE: [PHP] PHP Script to open phpBB2 accounts

2006-04-23 Thread Weber Sites LTD
I'm happy to say that the sites now work both ways.
A user opens an account on WeberDev and an account
Will be opened on WeberForums and vice versa.

A password or email update on one site will trigger
An update on the other.

The code for the accounts on phpBB2 are at :
http://www.weberdev.com/get_example-4383.html

Thanks
berber 

-Original Message-
From: Gerr D [mailto:[EMAIL PROTECTED] 
Sent: Saturday, April 22, 2006 8:51 PM
To: [EMAIL PROTECTED]
Cc: Weber Sites LTD; php-general@lists.php.net
Subject: Re: [PHP] PHP Script to open phpBB2 accounts

Richard,

On 4/20/06, Richard Lynch [EMAIL PROTECTED] wrote:

 Or perhaps you believe you have already completely mined out those 
 resources, and PHP-General was your last resort.

 Which is fine, but that should have been in your original post.

Are you implying this list is intended to be a last resort resource?
That seems a shame, considering the talent I've seen here.

 You cannot possibly be the first (or last) developer to want this 
 feature...

I would like it too. ;)

 I'm guessing that a lot of the noise here is that most posters firmly 
 believe that your phpBB solution is out there and you just need to 
 find it, somewhere in phpBB sites.

I'm guessing that most posters indeed believe that, because if you think
about it, it's logical and as such, someone would have already created a
solution. Yet believing that and sending someone off to go look somewhere
demonstrates that nobody has actually seen the solution... Otherwise why
not share it?

Gerry

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] CMS for Auto Parts

2006-04-23 Thread Joe Wollard
I could be off here, but I think he's talking about using XML to transfer
data back and forth between the flash app and the PHP app. That's just me
reading between the lines though. Maybe I'm taking too much from PHP/XML
should be used with a client-side Web GUI to upload images, part no.,
descriptions and inv[...]

Even so, I can't really offer anything that specifically does what's needed.
I'd think the easiest way to go about it (aside from building it yourself)
would be to pick an existing AJAX + PHP framework and modify it to work with
FLASH as the front end instead of JavaScript.

- Just a thought.
/shrug


On 4/23/06, John Hicks [EMAIL PROTECTED] wrote:

 CK wrote:
  Hi,
  On Apr 22, 2006, at 1:26 PM, John Hicks wrote:
 
  CK wrote:
  Hi,
  I've been commissioned to design a web application for auto parts
  sales. The Flash Front end will communicate with a MySQL DB via PHP.
  In addition, PHP/XML should be used with a client-side Web GUI to
  upload images, part no., descriptions and inventory into the DB; a
  Product Management System.
 
  I am curious as to how you plan to using XML for the client's back
  end? (I don't see any reason to use it.)
 
  Using XML to keep an inventory dynamically, was the thought. The XML
  file would be updated with each entry, then could be imported into a
  spreadsheet.
 

 If you are storing your inventory in an XML document, then what are you
 using the MySQL database for?

  After Googling the returned queries have been slim, any leads on
  more specific examples?

 What specifically are you looking for and how are you googling for it?

 --John

 --
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP] CMS for Auto Parts

2006-04-23 Thread CK


On Apr 23, 2006, at 11:55 AM, Joe Wollard wrote:

I could be off here, but I think he's talking about using XML to  
transfer data back and forth between the flash app and the PHP app.


That was the idea or using AMFPHP to pass a native PHP Object to FLASH.



That's just me reading between the lines though. Maybe I'm taking  
too much from PHP/XML should be used with a client-side Web GUI to  
upload images, part no., descriptions and inv[...]


Even so, I can't really offer anything that specifically does  
what's needed. I'd think the easiest way to go about it (aside from  
building it yourself) would be to pick an existing AJAX + PHP  
framework and modify it to work with FLASH as the front end instead  
of JavaScript.


Planning on building it myself.


- Just a thought.
/shrug


On 4/23/06, John Hicks [EMAIL PROTECTED] wrote:
CK wrote:
 Hi,
 On Apr 22, 2006, at 1:26 PM, John Hicks wrote:

 CK wrote:
 Hi,
 I've been commissioned to design a web application for auto parts
 sales. The Flash Front end will communicate with a MySQL DB via  
PHP.

 In addition, PHP/XML should be used with a client-side Web GUI to
 upload images, part no., descriptions and inventory into the DB; a
 Product Management System.

 I am curious as to how you plan to using XML for the client's back
 end? (I don't see any reason to use it.)

 Using XML to keep an inventory dynamically, was the thought.  
The XML

 file would be updated with each entry, then could be imported into a
 spreadsheet.


If you are storing your inventory in an XML document, then what are  
you

using the MySQL database for?

 After Googling the returned queries have been slim, any leads on
 more specific examples?

What specifically are you looking for and how are you googling for it?

--John

--
PHP General Mailing List (http://www.php.net/ )
To unsubscribe, visit: http://www.php.net/unsub.php






Re: [PHP] array problem

2006-04-23 Thread Brian V Bonini
On Sat, 2006-04-22 at 15:31, Martin Alterisio wrote:
 You're wrong, he isn't using an associative array, since the keys used
 are only integers.

Well, if you really want to argue semantics then technically we're both
wrong because there are no different indexed and associative array types
in PHP, what was that you said?...  (read the manual!!!)

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] array problem + humor (all those with joke allergies beware)

2006-04-23 Thread Brian V Bonini
On Sat, 2006-04-22 at 14:16, Jochem Maas wrote:
 with regard to Suresh - do you, Brian, know how many times he has posted 
 similar
 question to this list this year? (this is the first time he has even given
 an indication that he knows where the manual is let alone opened it btw) do 
 you
 know how many times he's been waiting for a reply/answer? how many times 
 people
 have given him answered? how often he has replied (like saying thank you for
 instance) to anyone of the repsonses to his questions in any form whatsovever?
 

Did you need some recommendations on a new email program? Most have a
delete button, not sure how the authors of yours missed that

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] array problem + humor (all those with joke allergies beware)

2006-04-23 Thread Dave Goodchild
Tiresome.

On 23/04/06, Brian V Bonini [EMAIL PROTECTED] wrote:

 On Sat, 2006-04-22 at 14:16, Jochem Maas wrote:
  with regard to Suresh - do you, Brian, know how many times he has posted
 similar
  question to this list this year? (this is the first time he has even
 given
  an indication that he knows where the manual is let alone opened it btw)
 do you
  know how many times he's been waiting for a reply/answer? how many times
 people
  have given him answered? how often he has replied (like saying thank you
 for
  instance) to anyone of the repsonses to his questions in any form
 whatsovever?
 

 Did you need some recommendations on a new email program? Most have a
 delete button, not sure how the authors of yours missed that

 --
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, visit: http://www.php.net/unsub.php




--
http://www.web-buddha.co.uk

dynamic web programming from Reigate, Surrey UK (php, mysql, xhtml, css)

look out for project karma, our new venture, coming soon!


Re: [PHP] New image already cached. (SOLVED)

2006-04-23 Thread tedd

Richard:

Thank you very much for your detailed explanation -- I finally got it.

However, the solution to my problem was much easier than I had hoped.

My problem was in creating an image on the fly and then using the 
same file name each time.  As such, some browsers cache the image 
while others treat it as a new image.


So, the problem was how to change the name of the image such that all 
browsers would see it as a new image and not use a cached image..


The solution:

img src=images/the_image.png?id=?php rand(); ?

Neither the image tag nor the file cares if there is a random number 
attached to the file's url. But, by doing this, most (perhaps all) 
browsers think the image name is unique.


Doe anyone see any problems with this?

tedd

 previously said ---


At 4:29 PM -0500 4/20/06, Richard Lynch wrote:

Here's the crucial info you are missing:

The URL does not have to *END* in the name of the PHP file.

The PHP file could be in the MIDDLE of the URL.

In other words, Apache is perfectly happy to take a url like this:
http://example.com/program.php/whatever_you-want=to+put_here

Example setup:

~/public_html/program
~/public_html/.htaccess

.htaccess:
Files program
  ForceType application/x-httpd-php
/Files

program:
?php
  //This stuff should really be in an include file...
  $pathinfo = $_SERVER['PATHINFO'];
  $parts = explode('/', $pathinfo);
  foreach($parts as $part){
list($key, $value) = explode('=', $part);
if (1) echo DEBUG: Setting _PATH[$key] to $valuebr /\n;
$_PATH[$key] = $value;
  }

  //create your image, using:
  //$_PATH['width'] from the URL, max width of image
  //$_PATH['copyright'] from the URL, watermark with copyright or not
  //$_PATH['filename'] which image file to start with as 'source'
  $image = imagecreatefromjpeg($_PATH['filename']);
  //etc
?

So when your URL is this:
http://example.com/program/width=200/copyright=1/filename=source.jpg

Your PHP script in 'program' is called, and Apache gives you all the
other stuff in the URL in 'PATHINFO' which you can use as your
arguments.

It's really just replacing:

?width=200copyright=1filename=source.jpg
and using $_GET with:

/width=200/copyright=1/filename=source.jpg
and using $_PATH (aka $_SERVER['PATHINFO'])

Variants:
To keep the browser from using 'filename=source.jpg' if the user
right-clicks, you could change the URL to just end in the filename,
and you'd have to handle that differently than the explode('=', $part)

To keep the browser from caching your image, embed some random number
in the URL, and your program will just IGNORE that key/value in $_PATH

The whole point of this exercise is to provide the browser with a URL
that it cannot distinguish from a valid static image URL, so the
browser can't screw up.  Cuz it will if it can.

On Thu, April 20, 2006 9:06 am, tedd wrote:

 Richard:

 I'm confused -- let's get back to the basic problem.

 I'm using an image tag (img href=/path/to/an/image.png in my html.

 Some browsers are caching the image because it's the same url (same
 image.png name) each time. However, the image is something I
 generate each time it's called, so it's new.

 Now, you and examples have shown me that I could use .htaccess and
 ForceType to make the browser load anything regardless of it's name.

 You suggested using a random string and using that in the url to
 trick the browser into loading the image each time. OK, I can see how
 that could work, but I don't see how I can use .htaccess and
 ForceType to firce the browser to load the image without rewriting .
 htaccess each time.

 That's where I'm confused.

 tedd

 ---




$image_file = 'foo.jpg';
$random = mt_rand(1, 20);
$url = http://example.com/program/$random/$image_file;;
echo img src=\$url\

In program, if you echo out $_SERVER['PATHINFO'] you will see:
/454398574395/foo.jpg

The number will change, of course.

 

You can tear that apart and get the foo.jpg part to do whatever you
 want.

Or, you could have the URL sometimes have 'copyright' in it, and
sometimes not, and merge only when the URL has copyright in it.

You could even pass is paraeters like this:
http://example.com/program/width=200/2343242343/foo.jpg

Take the width=200 and scale the image to be 200 pixels wide.

Here is a real live example where I do this:
http://uncommonground.com/artist_profile/Ellen+Rosner

Right-click on that image of Ellen in the chair and check out that
 URL.

thumbnail is my PHP script.
target is a max width/height (I scale it proporationally and 200 is
max for both)
credits is the photographer credits from my database.
The rest is the URL of the actual real image I'm dinking with.

Feel free to play with the URL and change the 200 to, say, 100, or
make believe YOU took that photograph.

All just from the URL which, as far as the browser can tell, is a
perfectly valid set of directory paths on my machine, so the browser
can't possibly screw up.  (Rule #1: Never trust the browser.)

And in the main link, 

Re: [PHP] shopping carts

2006-04-23 Thread Lester Caine

Lisa A wrote:

Can anyone suggest someone to write a simple client side shopping cart I can 
use?  I need to install something that my client can update the merchandise 
themselves.  Something inxepensive please.

thanks,


http://www.zen-cart.com/ is free, and not too difficult to manage, but 
we have pulled our own version of it and use that in bitweaver, where 
there is a bitcommerce module nearing completion - 
http://www.bitweaver.org/ - simply because we want a commerce package 
that we can use with a number of database engines rather than being 
restricted to MySQL :)


Spending time to develop your shopping cart content is different to 
spending time fixing problems in other peoples software. Personally I'd 
rather put time back into a free project, than spend money on projects 
that then still need you to work round their faults ;)


--
Lester Caine - G8HFL
-
L.S.Caine Electronic Services
Treasurer - Firebird Foundation Inc.

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] sorting troubles

2006-04-23 Thread David Tulloh
William Stokes wrote:
 Hello,
 
 Any idea how to sort this?
 
 I have a column in DB that contains this kind of data, 
 A20,B16,B17C14,C15,D13,D12 etc.
 
 I would like to print this data to a page and sort it ascending by the 
 letter an descending by the number. Can this be done? 

PHP has the usort() function which allows you to sort by another
function.  This allows you to very neatly sort by virtually any criteria.

I knocked up a fairly simple function to do the sort that you described.
The format for the comparison function is in the usort() documentation
as well as several examples.

php
function weird_comparison($a, $b) {
# return -1, 0, 1 if $a is less than, equal to or greater than $b
if($a{0}  $b{0})
return 1;
elseif($a{0}  $b{0})
return -1;
else {
$a_num = substr($a, 1);
$b_num = substr($b, 1);
if($a_num  $b_num)
return -1;
elseif($a_num  $b_num)
return 1;
else
return 0;
}
}

$arr = explode(',', 'A20,B16,B17,C14,C15,D13,D12');
print_r($arr);
usort($arr, 'weird_comparison');
print_r($arr);
?


David

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



RE: [PHP] How to find img tag and get src of image

2006-04-23 Thread Jay Blanchard
[snip]
Hi everybody!
I want to get src of image  form a $text, I have a below text

$Text = table border=1 cellpadding=3% cellspacing=3%
width=100%
   trtd width=20%
 img align=middle border=0 id=userupload/78/Autumn.jpg
src=userupload/78/Autumn.jpg onClick=javascript:ViewImage(this.id);
width=100 height=100 
/td
   td/td/tr   /table
  /td
  td class=frame2_middle_right/td
 /tr
 tr
  td class=frame2_bottom_left/td
 td class=frame2_bottom_center
 /td
[/snip]

And I want a pony!

RTFM http://www.php.net/regex
 

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] New image already cached. (SOLVED)

2006-04-23 Thread Richard Lynch
On Sun, April 23, 2006 5:25 pm, tedd wrote:
 img src=images/the_image.png?id=?php rand(); ?

 Neither the image tag nor the file cares if there is a random number
 attached to the file's url. But, by doing this, most (perhaps all)
 browsers think the image name is unique.

 Doe anyone see any problems with this?

Oh, all the browsers will KNOW it's a unique URL...

But some of them won't believe it's a valid image. :-(

Alas, I do not recall which browser would mess this up -- And it's
probably so old MOST webmasters won't care...

-- 
Like Music?
http://l-i-e.com/artists.htm

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] How to find img tag and get src of image

2006-04-23 Thread Paul Novitski

At 05:30 PM 4/23/2006, Pham Huu Le Quoc Phuc wrote:

I want to get src of image  form a $text, I have a below text

$Text = table border=1 cellpadding=3% cellspacing=3% width=100%
   trtd width=20%
 img align=middle border=0 id=userupload/78/Autumn.jpg
src=userupload/78/Autumn.jpg onClick=javascript:ViewImage(this.id);
width=100 height=100 
/td
   td/td/tr   /table
  /td
  td class=frame2_middle_right/td
 /tr
 tr
  td class=frame2_bottom_left/td
 td class=frame2_bottom_center
 /td



Pham,

Before you do anything else, fix your HTML syntax which is full of 
errors.  Your /table tag appears in the middle of the table and 
your id syntax is invalid:


id=userupload/78/Autumn.jpg

The specification for id [1] says it's an element of type 'name' [2]:

quote
ID and NAME tokens must begin with a letter ([A-Za-z]) and may be 
followed by any number of letters, digits ([0-9]), hyphens (-), 
underscores (_), colons (:), and periods (.).

/quote

In other words, you can't have slashes in your id.

Put your HTML through the W3C markup validator before trying to write 
script that parses it:

http://validator.w3.org/


When you're ready, you can locate an image src using a Regular 
Expression such as this:


/img\s+[^]*src=\([^])*[^]*\/

which means:

img\s+ = img followed by one or more whitespace characters

[^]* = zero or more characters not including a close-bracket

src=\ = src=

([^])* = zero or more characters not including a close-quote
(THIS IS YOUR SRC VALUE)

\ = close-quote

[^]* = any number of characters excluding close-bracket

 = close-bracket

The src attribute value will be captured by $aMatches[1] by the logic:

$sRegExp =  hdRE
/img\s+[^]*src=\([^])*[^]*\/
hdRE;

preg_match($sRegExp, $sText, $aMatches);

This RegExp is designed to confine its result to a single HTML IMG tag.

Documentation on PHP regular expression processing begins here:
http://php.net/pcre

Regards,
Paul

[1] specification for 'id': 
http://www.w3.org/TR/html4/struct/global.html#adef-id


[2] element type 'name': http://www.w3.org/TR/html4/types.html#type-name

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] shopping carts

2006-04-23 Thread Richard Lynch
On Sun, April 23, 2006 9:01 am, tedd wrote:
 This apparently is a common theme -- I want a good basic shopping
 cart that works AND I don't want to pay over $100 for it.

 Well... I want a good basic car and not pay over $100 for it too.
 But, everyone knows that those two wants are mutually exclusives. My
 question is, why aren't shopping carts viewed in the same common
 sense perspective?

 What's the reason?

Much good stuff deleted.

I think one of the reasons goes like this:

The Internet is such a huge marketplace.

Shopping carts are so ubiquitous (sp?)

Based on sheer volume, there oughta be a fifty dolla basic shopping
cart that is easy to install and doesn't try to do everything for
everybody.

The problem is, that inevitably, each user needs just that one feature

Maybe it's shipping costs.

Maybe it's T-Shirt sizes that may or may not cost more.

Maybe it's quantity discounts.

Maybe it's Taxes. :-^

Maybe it's...

And, next thing you know, you've got this nasty MONSTER on your hands
of a shopping cart that nobody without a Ph.D. can figure out how to
work the damn thing.


Another aspect is this:
Why do we call it a shopping cart?

Look, a shopping cart is a goddam big basket on wheels.

What we call a shopping cart on-line is actually, your entire stock
catalog, fulfillment, cash register, check-out, delivery, stock
management, and internal accounting system, with credit card POS
widgets.  And baggers.

Hey.  That ain't a shopping cart   That's a friggin' store.

[shrug]

-- 
Like Music?
http://l-i-e.com/artists.htm

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] PHP Variables sizes

2006-04-23 Thread David Killen
Is there a maximum size for a variable in PHP. A client of mine is
having problems working with a file of around 4Mb. Not really being a
php developer I cannot really answer him. To quote him:

We are not uploading excel from ftp. We are reading excel file which is
about 4 MB. In php settings maximum size of any variable is set to 2 MB so
this setting has to change. As any file reading in a variable will only read
up to 2 MB and then it will stop.

I wasn't aware of any setting that allows you to change the max variable
size. Can anyone shed any light on this?

Cheers,

David.

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] PHP Variables sizes

2006-04-23 Thread chris smith
On 4/24/06, David Killen [EMAIL PROTECTED] wrote:
 Is there a maximum size for a variable in PHP. A client of mine is
 having problems working with a file of around 4Mb. Not really being a
 php developer I cannot really answer him. To quote him:

 We are not uploading excel from ftp. We are reading excel file which is
 about 4 MB. In php settings maximum size of any variable is set to 2 MB so
 this setting has to change. As any file reading in a variable will only read
 up to 2 MB and then it will stop.

 I wasn't aware of any setting that allows you to change the max variable
 size. Can anyone shed any light on this?

memory_limit will affect this.

http://www.php.net/manual/en/ini.core.php and
http://www.php.net/manual/en/ini.php#ini.list will show you how to
change the limit.

--
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] shopping carts

2006-04-23 Thread Robert Cummings
On Sun, 2006-04-23 at 23:20, Richard Lynch wrote:

 Another aspect is this:
 Why do we call it a shopping cart?
 
 Look, a shopping cart is a goddam big basket on wheels.
 
 What we call a shopping cart on-line is actually, your entire stock
 catalog, fulfillment, cash register, check-out, delivery, stock
 management, and internal accounting system, with credit card POS
 widgets.  And baggers.
 
 Hey.  That ain't a shopping cart   That's a friggin' store.
 
 [shrug]

*lol* Thanks for the Sunday night comedy :)

Cheers,
Rob.
-- 
..
| InterJinn Application Framework - http://www.interjinn.com |
::
| An application and templating framework for PHP. Boasting  |
| a powerful, scalable system for accessing system services  |
| such as forms, properties, sessions, and caches. InterJinn |
| also provides an extremely flexible architecture for   |
| creating re-usable components quickly and easily.  |
`'

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] Need help with an if statement

2006-04-23 Thread Pub

Hello,

I am really new to all this and I am really hoping I can get some  
help PLEASE...

I am making a website with x-cart which uses PHP and Smarty templates.

I need to make an  if  statement that puts a little arrow gif in  
front of the link that is clicked on! make any sense?


In other words:

   item 1 (not selected)
   item 2 (not selected)
 item 3 (selected)
   item 4 (not selected)

This is what I have now, but I don't know what to call my {if ?}

{if ?}A href={?}FONT class=buttontextonlyIMG  
src={$ImagesDir}/arrow.gif width=9 height=7 border=0  
align=abstop{$menu_content}/FONT/A

{else}
FONT class=VertMenuTitle{$menu_content}/FONT
{/if}/TD

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php