473,385 Members | 2,013 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

can php program clog the rental web server?

I am developing a web crawler which collects info from more than 50,0000
pages.
but i am afraid this is going to clog the rental web server if I run it
every single day.

Is it possible to stop the web hosting server because of my program?

MD


Aug 22 '06 #1
5 1484
mich dobelman wrote:
I am developing a web crawler which collects info from more than 50,0000
pages.
but i am afraid this is going to clog the rental web server if I run it
every single day.

Is it possible to stop the web hosting server because of my program?

MD

Of course you can. Anyone on the server can, with a poorly written
script. For instance,

<?php
for ($i = 0; $i < 10; $i--) {
// Do something here not requiring I/O
}

Will tie up the server for a while (I know from experience :-) ).

Because of this, most shared hosts keep the max execution time of PHP
scripts rather short, like 30 seconds. That way a single script can't
screw things up for too long.
--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
js*******@attglobal.net
==================
Aug 22 '06 #2
MD
How about putting sleep() when visiting each page ?

Is this going to reduce the risk of stopping the server?

MD

"Jerry Stuckle" <js*******@attglobal.netwrote in message
news:oO******************************@comcast.com. ..
mich dobelman wrote:
I am developing a web crawler which collects info from more than 50,0000
pages.
but i am afraid this is going to clog the rental web server if I run it
every single day.

Is it possible to stop the web hosting server because of my program?

MD



Of course you can. Anyone on the server can, with a poorly written
script. For instance,

<?php
for ($i = 0; $i < 10; $i--) {
// Do something here not requiring I/O
}

Will tie up the server for a while (I know from experience :-) ).

Because of this, most shared hosts keep the max execution time of PHP
scripts rather short, like 30 seconds. That way a single script can't
screw things up for too long.
--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
js*******@attglobal.net
==================

Aug 22 '06 #3
MD wrote:
"Jerry Stuckle" <js*******@attglobal.netwrote in message
news:oO******************************@comcast.com. ..
>>mich dobelman wrote:
>>>I am developing a web crawler which collects info from more than 50,0000
pages.
but i am afraid this is going to clog the rental web server if I run it
every single day.

Is it possible to stop the web hosting server because of my program?

MD


Of course you can. Anyone on the server can, with a poorly written
script. For instance,

<?php
for ($i = 0; $i < 10; $i--) {
// Do something here not requiring I/O
}

Will tie up the server for a while (I know from experience :-) ).

Because of this, most shared hosts keep the max execution time of PHP
scripts rather short, like 30 seconds. That way a single script can't
screw things up for too long.
How about putting sleep() when visiting each page ?

Is this going to reduce the risk of stopping the server?

MD
(Top posting fixed)

Yes, but why would you want to? You'll run up against the timeout value
your host sets for PHP.

What are you doing that will hog all of those resources?
--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
js*******@attglobal.net
==================
Aug 23 '06 #4
MD
(Top posting fixed)
>
Yes, but why would you want to? You'll run up against the timeout value
your host sets for PHP.

What are you doing that will hog all of those resources?
--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
js*******@attglobal.net
==================
>You'll run up against the timeout value your host sets for PHP.
I can always change the value from php.

Aug 23 '06 #5
MD wrote:
>>(Top posting fixed)

Yes, but why would you want to? You'll run up against the timeout value
your host sets for PHP.

What are you doing that will hog all of those resources?
--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
js*******@attglobal.net
==================

>>You'll run up against the timeout value your host sets for PHP.

I can always change the value from php.
Not necessarily. A shared host often restricts changing the timeout and
certain other values.
--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
js*******@attglobal.net
==================
Aug 23 '06 #6

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

20
by: Mark | last post by:
I am using gnu g++ version 3.3.2, trying a simple test to read in and then write out a large (100,000 line) text file ########################################## CSTDIO VERSION TO READ/WRITE...
0
by: RSW | last post by:
Does any one have an MS ACCESS database for rental properties Any help would be appreciated. RSW
27
by: hpy_awad | last post by:
I wrote that program from a book that my compile that program correctly under C++ compiler but I got those errors for compiling under unix !! Errors- --------...
3
by: happy | last post by:
/* Book name : The prodessional programmers guide to C File name : E:\programs\tc\iti01\ch09\main\01setupm.c Program discription: file setuping -up -Version 01-ver01-W Logic ...
3
by: Denis | last post by:
RE: http://www.rental-planner.com/mainscreen.jpg Hello everyone, I am trying to build a car rental bookings software but I am not sure how to implement the drag'n'drop functionality. ..you...
3
by: DP | last post by:
hi, does any1 know where i could find a video rental database? thanx dev
1
by: Scott | last post by:
Hello, I am not entirely clear on the difference between cerr and clog. When it is more appropriate to use one versus the other? I am coding a simple C++ application that will issue error and...
5
by: RakshaPai | last post by:
Hi , I am new to mainframes and not able to do much with this issue.. can someone please help me out.. I have a job in which 2 programs take about 5 hours to run taking up 30 mins of CPU time....
10
by: Nkhosinathie | last post by:
i've be given this task to do. as a member i want to learn this program while i'm doing it with you.i'm hoping i'll be with you through the next two hours. this is the program below. Program 2...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.