General Programming Help
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
User Name:
Password:
Remember me
 



Go Back   Dev Articles Community ForumsProgrammingGeneral Programming Help

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Display Modes
 
Unread Dev Articles Community Forums Sponsor:
  #1  
Old October 3rd, 2002, 03:27 PM
Mahanri Mahanri is offline
Registered User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Sep 2002
Location: Illinois
Posts: 10 Mahanri User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Is there a limit on variable size

I need to know if there is a variable limit size with PHP. I'm taking a memo field from an access database and using 'echo' to view it on a web page. The problem I am running into, is that when I view the web page, I don't see everything that is in the database field. Is there a limit on how much can be in a PHP variable? Is there a way I can make PHP read the entire entry from the database and not stop partway?

Thanks for any help you all can give me.

Reply With Quote
  #2  
Old October 4th, 2002, 12:28 PM
FrankieShakes FrankieShakes is offline
Frank The Tank!
Dev Articles Beginner (1000 - 1499 posts)
 
Join Date: Jun 2002
Location: Toronto, Canada
Posts: 1,240 FrankieShakes User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 17
Send a message via ICQ to FrankieShakes Send a message via MSN to FrankieShakes
Mahanri,

I'm not sure of any variable "limits"... It may be the way your "memo" field in your Access database is setup.

What data-type do you have setup for that field?
__________________
____________________________________________
Developer Shed Weekly Writer | DevArticles Forum Moderator
Build Your Own KlipFolio Klip With PHP
FrankManno.com - Under Construction
Design Interactive Group - Under Construction

Reply With Quote
  #3  
Old October 4th, 2002, 12:34 PM
Mahanri Mahanri is offline
Registered User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Sep 2002
Location: Illinois
Posts: 10 Mahanri User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
the data-type is "memo". From what I understand in Access, this means that there is no limit to the size of information that I can put into the field. With data-types like "text", you can set a field size. This is the max size of data that you can put into the field. With "memo", there is no such restriction. My problem is that when I read in the field into a PHP variable, the variable doesn't contain all of the information that is in the database field. Is there a way to increase the amount of data that the PHP variable can hold?

Reply With Quote
  #4  
Old July 16th, 2007, 03:34 PM
mex_storm mex_storm is offline
Registered User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Jul 2007
Posts: 1 mex_storm User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 8 m 25 sec
Reputation Power: 0
PHP Variable Limits

Hi -

I just went through this exercise and spend HOURS trying to figure it out. Basically I was saving JPEG binary data to an array in order to put it into a zip file. Long story made short....there is no PHP limit, no PHP.ini limit on variable size. The issue you will run into is the dreaded Internal Server Error because you will use up all of the memory allocated to you on the server. I have a hosted site and this seemed to run out when I stored about 100MB of data in an array (30-ish high resolution photos). I never hit an issue when I ran this on my laptop but it is set up to use all of the available 2GB.

Reply With Quote
  #5  
Old August 6th, 2007, 09:55 PM
Tre Tre is offline
Registered User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Aug 2007
Posts: 3 Tre User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 18 m
Reputation Power: 0
yeah, Mex_Storm is right. Variables can go to any number, except in (correct me if i'm wrong) java, which only goes to about 2.14 billion.

Reply With Quote
  #6  
Old July 7th, 2011, 10:09 AM
salman_k18 salman_k18 is offline
Registered User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Jul 2011
Posts: 1 salman_k18 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 12 m 54 sec
Reputation Power: 0
Angry Same Problem

I am having the same problem but the only difference is i am fetching the data from SQL server and datatype is str

Reply With Quote
  #7  
Old April 10th, 2012, 03:13 AM
AlderCherry AlderCherry is offline
Registered User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Apr 2012
Posts: 3 AlderCherry User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 50 m 33 sec
Reputation Power: 0
Send a message via Skype to AlderCherry
Thumbs up

Hi friends!
Welcome to the forum!
It is a great resource with lots of really great people with great advice.

Reply With Quote
  #8  
Old April 10th, 2012, 08:31 PM
David166 David166 is offline
Registered User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Apr 2012
Posts: 7 David166 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 8 m 22 sec
Reputation Power: 0
it says 'i' needs to be a constant.

Reply With Quote
  #9  
Old May 18th, 2012, 02:01 PM
tinytomhanks tinytomhanks is offline
Registered User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Apr 2012
Location: India
Posts: 4 tinytomhanks User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 h 59 m 29 sec
Reputation Power: 0
The size of an integer is platform-dependent.
PHP does not support unsigned integer s. Integer size can be determined using the constant PHP_INT_SIZE, and maximum value using the constant PHP_INT_MAX since PHP 4.4.0 and PHP 5.0.5.

Reply With Quote
Reply

Viewing: Dev Articles Community ForumsProgrammingGeneral Programming Help > Is there a limit on variable size


Developer Shed Advertisers and Affiliates


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

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


Powered by: vBulletin Version 3.0.5
Copyright ©2000 - 2018, Jelsoft Enterprises Ltd.

© 2003-2018 by Developer Shed. All rights reserved. DS Cluster - Follow our Sitemap