Welcome to the GoFuckYourself.com - Adult Webmaster Forum forums.

You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact us.

Post New Thread Reply

Register GFY Rules Calendar Mark Forums Read
Go Back   GoFuckYourself.com - Adult Webmaster Forum > >
Discuss what's fucking going on, and which programs are best and worst. One-time "program" announcements from "established" webmasters are allowed.

 
Thread Tools
Old 03-18-2002, 05:05 PM   #1
miob
Confirmed User
 
Join Date: Oct 2001
Location: US
Posts: 314
Anyone here can help me with PHP ?

Hi !

Anyone here knows how much memory i can use under php scripts ????

It seems that my script is reached this limit, because i'm geting same error warnings ...

I'm using about 10 arrays with more than 500 items,
each array with size about 400kbytes of html text

I have got 128MB RAM in my server, it's so little for this matter ?


Anyone can help me ?
__________________
Wanna more toplist or cj niche traffic ? ToplistCentral, Wanna grow your traffic ? do a trade with Babes Kick Ass
miob is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 03-18-2002, 05:08 PM   #2
SetTheWorldonFire
Confirmed User
 
Industry Role:
Join Date: Feb 2002
Location: California
Posts: 7,444
looks like you need a database.
SetTheWorldonFire is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 03-18-2002, 05:19 PM   #3
ServerGenius
Confirmed User
 
Join Date: Feb 2002
Location: Amsterdam
Posts: 9,377
This depends on a lot of different factors....how much memory
is used by the OS, other running applications, your webserver takes memory, the size of your swapfile, etc, etc....

Theoretically your appication requires 4Mb per session to run.
4Mb shared memory per user if you had 128Mb free memory you could have 128/4 32 simultanious users. Why store content in arrays? Better to use pointers to the content in your arrays...

So don't put html in the array but just the location of the html.
Same for database use. Don't store images in DB store the location of images in the DB that's far more effecient.

DynaMite
__________________
| http://www.sinnerscash.com/ | ICQ: 370820 | Skype: SinnersCash | AdultWhosWho |
ServerGenius is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 03-18-2002, 05:20 PM   #4
Babaganoosh
♥♥♥ Likes Hugs ♥♥♥
 
Babaganoosh's Avatar
 
Industry Role:
Join Date: Nov 2001
Location: /home
Posts: 15,841
That shouldn't realy matter unless your scripts are being called a lot and maybe not exiting properly. A database would do nothing to help you as even with a DB query, your results will be stored in an array. That does seem like a lot of data to have stuck in arrays though, especially if the script is being executed 100K times a day.
__________________
I like pie.
Babaganoosh is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 03-18-2002, 06:10 PM   #5
miob
Confirmed User
 
Join Date: Oct 2001
Location: US
Posts: 314
:stoned

i forgot to tell, that all what script would do is compose one e-mail for a subscribed user. each user get different email,
and it's launched only one time per day...


now i'm thinking about db, because , i'm using db also for my users...

I can't use pointers, it's good idea, but not in my case,
because i must store THML tags to buffer, the best looks DB for this case too, but can i store HTML text to some fields of db ?

anyway thanx guys for help
__________________
Wanna more toplist or cj niche traffic ? ToplistCentral, Wanna grow your traffic ? do a trade with Babes Kick Ass
miob is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 03-18-2002, 07:28 PM   #6
TaDoW
Confirmed User
 
Join Date: Sep 2001
Location: Where It Rains
Posts: 3,875
I think AMP should be able to help out on this one..
__________________
-TaDoW

I've Upped My Standards, Up Yours!
TaDoW is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 03-18-2002, 07:38 PM   #7
EscortDate_Enoj
Registered User
 
Join Date: Mar 2002
Location: Norway
Posts: 87
The possible reason for the script to die / timeout, is that sending large chunks of e-mail with PHP, is not a very good solution.

PHP can't handle that, and would probably die, after maybe 25-50 e-mails in the same request/file/script.

You should get an application which can work together with sendmail/qmail better. An application in PERL would do the job.

Search for scripts at www.hotscripts.com.

Good luck.
EscortDate_Enoj is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 03-18-2002, 07:46 PM   #8
SetTheWorldonFire
Confirmed User
 
Industry Role:
Join Date: Feb 2002
Location: California
Posts: 7,444
Maybe if you explain exactly what your trying to do.

Then there may be different ways of programming or a script that fits what your trying to do.
SetTheWorldonFire is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 03-18-2002, 10:16 PM   #9
Babaganoosh
♥♥♥ Likes Hugs ♥♥♥
 
Babaganoosh's Avatar
 
Industry Role:
Join Date: Nov 2001
Location: /home
Posts: 15,841
Just had to do the same thing for a client. PHP definitely isn't the way to go. You'll need to use Perl's fork(). Fork a process that will continue to run until it's done with its tasks regardless of the status of the browser.
__________________
I like pie.
Babaganoosh is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 03-19-2002, 09:02 AM   #10
miob
Confirmed User
 
Join Date: Oct 2001
Location: US
Posts: 314
it's not good for me, i'm able only in PHP, + MYSQL

now i can't store full html file to column of MySQL, anyone can i tried store to column type TEXT, then BLOB,
BLOB type allows store 65kb to one column, it's enought for me,
but very time it's bouncing some HTML tags or some unknown chars, then nothing happens - ( don't add new record)

I think i must use some function before putting full HTML text to columns of MYSQL table, or maybe i'm using wrong type of columns for this

Could anyone help me what's type is the best for this matter
i would very appreciated...
__________________
Wanna more toplist or cj niche traffic ? ToplistCentral, Wanna grow your traffic ? do a trade with Babes Kick Ass
miob is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 03-19-2002, 09:55 AM   #11
miob
Confirmed User
 
Join Date: Oct 2001
Location: US
Posts: 314
shit it was this function i was needed
AddSlashes

I must learn a lot...
__________________
Wanna more toplist or cj niche traffic ? ToplistCentral, Wanna grow your traffic ? do a trade with Babes Kick Ass
miob is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Post New Thread Reply
Go Back   GoFuckYourself.com - Adult Webmaster Forum > >

Bookmarks
Thread Tools



Advertising inquiries - marketing at gfy dot com

Contact Admin - Advertise - GFY Rules - Top

©2000-, AI Media Network Inc



Powered by vBulletin
Copyright © 2000- Jelsoft Enterprises Limited.