473,748 Members | 2,300 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 1495
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*******@attgl obal.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*******@attg lobal.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*******@attgl obal.net
=============== ===

Aug 22 '06 #3
MD wrote:
"Jerry Stuckle" <js*******@attg lobal.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*******@attgl obal.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*******@attgl obal.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*******@att global.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*******@attgl obal.net
=============== ===
Aug 23 '06 #6

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

Similar topics

20
5534
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 TEXT FILE: #include <cstdlib> #include <cstdio> using namespace std;
0
1488
by: RSW | last post by:
Does any one have an MS ACCESS database for rental properties Any help would be appreciated. RSW
27
3282
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- -------- part10_iti_r01_ch10_verbo_menu_driven_programs.c: In function `main': part10_iti_r01_ch10_verbo_menu_driven_programs.c:6: warning: declaration of `argc' shadows a parameter part10_iti_r01_ch10_verbo_menu_driven_programs.c:7: warning:
3
2992
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 : 1-open file for output 2-while more customers 2-1-input customers record 2-2-write customer record to file 3-write end of file record to file 4-close file
3
1856
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 know, where you get the coloured-bars on the calendar/table and you can drag and drop them, or right-click and edit them, etc Any suggestions on how i could do this? Any help is appreciated. (you may
3
5753
by: DP | last post by:
hi, does any1 know where i could find a video rental database? thanx dev
1
4349
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 warning statements based on an input, and I would like to know whether these should both go to cerr, or whether clog for warnings is a more appropriate choice (or I suppose, just cout)? Thank-you,
5
1580
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. in program A i have a query something like this SQL DECLARE EVENT CURSOR FOR SELECT a, b, c, FROM xyz WHERE
10
12169
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 MULTICHOICE VIDEO RENTAL SHOP needs an Object Oriented program that process the following information about ten (10) videos in their stock • The title, the director, the year produced and a list of main actors for each video. (If there are more...
0
8831
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
9552
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
9326
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9249
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
8245
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
6796
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6076
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4607
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
2
2787
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.