Hatman Δημοσ. 12 Απριλίου 2006 Δημοσ. 12 Απριλίου 2006 mages mia bohtheia. kanw kapoies xronobores ergasies me php kai thelw na mhn mou kanei expire o server. exei kaneis kamia idea h ginetai mono me header("Expire:0"); kai an mono me header thelei kai tipote allo?:-? eyxaristw
antonl Δημοσ. 18 Απριλίου 2006 Δημοσ. 18 Απριλίου 2006 Εννοείς το max_exec_time της PHP ή εννοείς κάτι άλλο;
Hatman Δημοσ. 24 Απριλίου 2006 Μέλος Δημοσ. 24 Απριλίου 2006 me opoiodhpote tropo re filaraki. ektos tou na peira3w ton server giati den tha einai se diko mou server. (enow to php.ini)
Hatman Δημοσ. 25 Απριλίου 2006 Μέλος Δημοσ. 25 Απριλίου 2006 download data from page,parse it,save it in txt and mysql,make a covarience matrix-correlation matrix, run a solver and display results. asta. Alla den vlepw pou mporei na exei sxesh ayto.
Maniakos Δημοσ. 28 Απριλίου 2006 Δημοσ. 28 Απριλίου 2006 Η ταπεινή μου άποψη είναι να ξαναδείς τον κώδικα σου γιατί η κατάσταση που περιγραφεις πιο πολύ αυτό δείχνει άμα σκεφτείς ότι υπάρχουνε παρα πολλά site που είναι πανβαρα και στημένα με php αλλά πετάνε.
Hatman Δημοσ. 4 Μαΐου 2006 Μέλος Δημοσ. 4 Μαΐου 2006 to 99.99% twn site den kanei statistiki analysi se dedomena metwxwn 2 etwn. Epeidh omws ew den mporw na to kanw me c anagazomai na to kanw me php pou einai pio argh. kai epidh pairnw kai arketa html apo alles selides gia ta dedomena mou pou ta kanw parse meta pairnei wra. tespa. ayto pou xreiazomouna htan thameno mesa sto documentation. set_time_limit(1000); kai den kanei expire o server me tipota.
panosru Δημοσ. 4 Μαΐου 2006 Δημοσ. 4 Μαΐου 2006 apla rotisa giati eixa to idio problhma otan eftiaxna filemanager mou ekane expire o server otan anebaza eikones basika, kai to elhsa me kapoia headers gi' ayto... pantos na sou po pos oi ergasies pou anafereis parapano den apoteloun logo gia expire.. entaksi den leo kalh h lysh pou brhkes alla mhn to afhseis etsi psaksto kalytera, oxi tpt allo alla na mhn exeis problhma kai sto melon...
Hatman Δημοσ. 4 Μαΐου 2006 Μέλος Δημοσ. 4 Μαΐου 2006 apla rotisa giati eixa to idio problhma otan eftiaxna filemanager mou ekane expire o server otan anebaza eikones basika' date=' kai to elhsa me kapoia headers gi' ayto... pantos na sou po pos oi ergasies pou anafereis parapano den apoteloun logo gia expire.. entaksi den leo kalh h lysh pou brhkes alla mhn to afhseis etsi psaksto kalytera, oxi tpt allo alla na mhn exeis problhma kai sto melon... [/quote'] nai mwre apla epeidi se kapeies faseis katevazei kamia 50 aria html mporei kai parapanw pairnei wra... kanei expire o server vasika.
panosru Δημοσ. 5 Μαΐου 2006 Δημοσ. 5 Μαΐου 2006 loipon.. meta apo arketo psaksimo ontos antilifthika pos exeis dikio, eftiaksa kati paromoio me ayto pou anafereis kai ontos yparxei connection time out... opote... prepei na prosexoume to keep-Alive stis selides mas kai na exoume sosto Connection Handling... gia na leitourghsei to keep-Alive xreiazete na gnorizei to mhkos periexomenou ths selidas (Content-length) opote kai tha prepei na to orizoume emeis... Gia ton parapano skopo mporoume na xrhshmopoihsoume ton parakato kodika.. > ob_start(); //To periexomeno edo.. px: include("foo.ext"); echo "Periexomeno Selidas"; $ContentLength = ob_get_length(); header("Content-length: {$ContentLength}"); ob_end_flush(); ayto omos tha exei os apotelemsa na xrhshmopoiei perisotero thn cpu kai thn ram tou H/Y To Connection Handling mporoume na to diaxeirhstoume os eksis: to status ths syndeshs sthn php metriete se dekadika 3on bits (0-1-2) Normal -> 0 Aborted -> 1 Timeout -> 3 eksarxhs sthn php to script termatizei otan to connaction status ftasei sto 1 (Aborted) alla ayto mporoume na to apofygoume xrhshmopoiontas thn function ignor_user_abort(). To connection status ftanei sto 2(Timeout) otan gia na fortosei to script kseperasei to timelimit pou exei oristhei ston web server mas. To timelimit mporoume na to orisoume kai apo to script mas me thn function set_time_limit() opote me to parakato script tha exoume enan kodika pou tha trexei mexri na termatistei. > set_time_limit(0); ignore_user_abort(true); //Kodikas edo ektos apo ta parapano arketes fores mporei na xreiastei na gnorizoume thn katastash (status) ths syndeshs mas (connection), opos katalabainoume apo tis lekseis kai mono bgazoume to sympairasma pos h function pou tha mas dixnei to connection status tha htan h connection_status() opote ena script san to parakato tha mporouse na mas fanei xrhshmo.. > ignore_user_abort(true); echo "O kodikas mas edo..."; if (connection_status() === 0) { echo "Edo tha mpainei kapoios kodikas pou tha trexei mono otan h syndesh tha einai \"zontanh\" (alive)"; } else { echo "kai edo tha mpainei ena script to opoio tha trexei se periptosh problhmatos.. PX ena mynhma tou typou.. \"To script termatistike anepityxos...\""; } Telos ena akoma xrhsimo script tha mporouse na mas fanei to parakato me to opoio tha kratousame log gia to script mas... > function LogConnectionHandling() { if (connection_status() & 1) { error_log("Connection Aborted",0); } if (connection_status() & 2) { error_log("Connection Timed Out",0); } if (!connection_status()) { error_log("Normal Exit",0); } } register_shutdown_function("LogConnectionHandling"); Me to parapano script aytomatopoioume mia function na kalhte kathe fora pou tha fortonei to script asxeta thn katastash tou connection status tou.. diladi kai na mhn fortosei sosta to script (diladi na ginei aborted h timed out) h function ayth tha fortosei sto telos. H function ayth krataei log gia to Connection handling. PS: Hatman bgale ayth thn myga re anthrope mou... :S bale kati allo, bale kamia tarantoula afou s' aresoun sixamaira plasmata
Προτεινόμενες αναρτήσεις
Αρχειοθετημένο
Αυτό το θέμα έχει αρχειοθετηθεί και είναι κλειστό για περαιτέρω απαντήσεις.