Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

memory_limit

Status
Not open for further replies.

kharddie

Instructor
Feb 7, 2006
23
AU
hey
am using php on apache server to upload mp3 file .how do i increase the memmory limit to 16m.
ive tried putting this code [ini_set(”memory_limit”,”16M”);] at the top of my php code but it gives me this error.

Notice: Use of undefined constant ”memory_limit” - assumed '”memory_limit”' in C:\Program Files\Apache Group\Apache2\htdocs\sen\upload.php on line 59.

how do i fix it ???thanks
kharddie
 
There seems to be something unusual about the quote characters you're using around your strings. PHP doesn't seem to recognize them.

Does the character you're using have a decimal ASCII value of either 34 or 39?



Want the best answers? Ask the best questions! TANSTAAFL!
 
hey sleipnir214--- this is what am using i didnt include the quotes as above

ini_set(”memory_limit”,”16M”);

the error is as follows n doesnt say anything about the characters

Notice: Use of undefined constant ”memory_limit” - assumed '”memory_limit”' in C:\Program Files\Apache Group\Apache2\htdocs\job11\upload.php on line 59
thanks
 
as sleipnir214 says - you are using stylised quotation marks. you must use " or '. php is recognising the stlised marks as part of a constant and looking for a constant by that name. failing to find one it then assumes you've mistyped and assumes a string. so php would be trying to set the ini-value of ”memory_limit” rather than memory_limit.

try copying and pasting this:
Code:
ini_set('memory_limit','16M');
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top