Search found 17 matches

by fbartolom
Sun May 04, 2014 8:26 am
Forum: mySQL & php coding
Topic: PHP code recurrently crashing mysql DB on CentOS
Replies: 0
Views: 717

PHP code recurrently crashing mysql DB on CentOS

Unfortunately I experience with a certain frequency a crash of the mysql server including the corruption of a table I must manually repair possibly as a consequence of the high cpu commitment. This is of course a pain as the DB is in production and if I do not check users would be kept offline. What...
by fbartolom
Mon Apr 07, 2014 5:08 am
Forum: HTML Basics
Topic: Sito che continua il caricamento ad infinito
Replies: 1
Views: 937

Re: Sito che continua il caricamento ad infinito

Risolto: era un file .htaccess maldestro che cercava di gestire gli errori 404 mandandoli sulla home.
by fbartolom
Mon Apr 07, 2014 12:09 am
Forum: HTML Basics
Topic: Sito che continua il caricamento ad infinito
Replies: 1
Views: 937

Sito che continua il caricamento ad infinito

Salve, sono davvero disperato. Avevo il sito inarrivo.net su Register.it e avevo riscontrato che le sue pagine continuavano a caricarsi all'infinito. Allora ho provato a caricare lo stesso su un altro spazio: http://www.taxiprofessional.net/inarrivo/inarrivo.net/it/ e poi, preventivamente, anche su ...
by fbartolom
Sat Oct 27, 2012 9:16 am
Forum: PHP coding => General
Topic: Clicking a button in a parsed page by php
Replies: 0
Views: 699

Clicking a button in a parsed page by php

I would like to push the button appearing at: http://www.miafoto.it/iPhone/inarrivo/php/atacError.php?partenza=Piazza+Bologna&arrivo=Via+Edoardo+D%27Onofrio&language=en&userLatitude=41.913325&userLongitude=12.521108 directly in the script doing the parsing of an external web site. How may I do it? T...
by fbartolom
Sat Oct 27, 2012 7:32 am
Forum: PHP coding => General
Topic: Clicking a button in a parsed page by php
Replies: 0
Views: 633

Clicking a button in a parsed page by php

I would like to push the button appearing at: http://www.miafoto.it/iPhone/inarrivo/php/atacError.php?partenza=Piazza+Bologna&arrivo=Via+Edoardo+D%27Onofrio&language=en&userLatitude=41.913325&userLongitude=12.521108 directly in the script doing the parsing of an external web site. How may I do it? T...
by fbartolom
Tue Oct 09, 2012 8:03 am
Forum: PHP Scripts
Topic: capure text with links with nicEdit and send it by email
Replies: 0
Views: 960

capure text with links with nicEdit and send it by email

Hullo, I would like to use nicEdit to manage a newsletter service by entering text in a form with links and other properties from nicEdit and dispatch it by email. I use this piece of code: <script type="text/javascript" src="../nicEdit.js"></script> <script type="text/javascript"> bkLib.onDomLoaded...
by fbartolom
Wed Oct 03, 2012 10:42 am
Forum: PHP General
Topic: Url in string been mangled
Replies: 2
Views: 1041

Re: Url in string been mangled

did you click on the link? Urlencoding has happened, which replaces specific characters with percent codes. clicking the link should still take you right where you expect it to. Instead it doesn't. Just a few lines before the echo the URL is what it should be; when echoed the = is joined with the b...
by fbartolom
Wed Oct 03, 2012 12:45 am
Forum: PHP General
Topic: Url in string been mangled
Replies: 2
Views: 1041

Url in string been mangled

I compose an url in a string with the following piece of code: $unsubscribeString='<a href="http://www.miafoto.it/iPhone/phpMedia/unregister.php?language=english&email='.$to.'">If you wish to stop receiving information from us, simply click once here.</a>'; echo "<br>Sending to: ".$to; echo "unsubsc...
by fbartolom
Mon Sep 24, 2012 12:11 am
Forum: PHP Scripts
Topic: Removing CURLOPT_FOLLOWLOCATION produces empty output
Replies: 0
Views: 782

Removing CURLOPT_FOLLOWLOCATION produces empty output

Hullo, this weekend the parsing of a web page stopped working perhaps due to a restyling of the site. The page is: http://muovi.roma.it/paline/palina/77113?nav=4 and I m trying to parse it with the following function: function atac_get_html($url, $language){ $url='http://muovi.roma.it/paline/palina/...
by fbartolom
Mon Sep 03, 2012 3:21 am
Forum: PHP coding => General
Topic: Parsing a web page after its refresh
Replies: 4
Views: 664

Re: Parsing a web page after its refresh

Ok, apparently solved with the following snippet: * STEP 2. visit the homepage to set the cookie properly */ $ch = curl_init ("http://www.atac.roma.it/index.asp?p=2"); curl_setopt ($ch, CURLOPT_COOKIEJAR, $ckfile); curl_setopt ($ch, CURLOPT_RETURNTRANSFER, true); curl_setopt($ch, CURLOPT_FOLLOWLOCAT...
by fbartolom
Mon Sep 03, 2012 2:49 am
Forum: PHP coding => General
Topic: Parsing a web page after its refresh
Replies: 4
Views: 664

Re: Parsing a web page after its refresh

And this is a new test using curl: $url="http://trovalinea.atac.roma.it/percorso_fzh.asp?percorso=".$linea."A&action=fzh"; $ckfile = tempnam ("/tmp", "CURLCOOKIE"); /* STEP 2. visit the homepage to set the cookie properly */ $ch = curl_init ("http://www.atac.roma.it/index.asp"); curl_setopt ($ch, CU...
by fbartolom
Mon Sep 03, 2012 2:12 am
Forum: PHP coding => General
Topic: Parsing a web page after its refresh
Replies: 4
Views: 664

Re: Parsing a web page after its refresh

You should be able to do this using php curl. Please read about php curl from php.net. Could you suggest me a code snipped? The one I tried: $url="http://trovalinea.atac.roma.it/percorso_fzh.asp?percorso=".$linea."A&action=fzh"; $ckfile = tempnam ("/tmp", "CURLCOOKIE"); /* STEP 2. visit the homepag...
by fbartolom
Mon Sep 03, 2012 1:35 am
Forum: PHP coding => General
Topic: Parsing a web page after its refresh
Replies: 4
Views: 664

Parsing a web page after its refresh

Hullo, I am trying to parse a web page that is obtained by refreshing the one that is passed to file_get_html. If I simply read the html returned by file_get_html that is empty. How do I delay or defer the call to wait for the refreshed page to appear rather than be happy with the page with the meta...
by fbartolom
Thu May 24, 2012 12:52 am
Forum: PHP coding => Mail
Topic: Mail from a php script correctly showing in TB, not in Mail
Replies: 0
Views: 807

Mail from a php script correctly showing in TB, not in Mail

Hullo, I have a script that sends an email upon the completion of a form entrance. The sent message is correctly shown when viewed on Thunderbird but when viewed on Mail, either on a Mac or an iPhone, it is left totally uninterpreted. You may see the email by completing the form at: http://www.miafo...
by fbartolom
Sun May 13, 2012 2:32 am
Forum: PHP coding => General
Topic: Site returning a different page when accessed by php
Replies: 1
Views: 674

Site returning a different page when accessed by php

I have to parse this page: http://muoversiaroma.it/paline/percorso/52732?nav=3 if it is normally accessed by a browser, it returns the correct contents, but if I try to parse it with: @file_get_html($url) or file_get_html it returns a totally different content that looks like a default page. What mi...
by fbartolom
Mon Apr 30, 2012 7:12 am
Forum: PHP coding => General
Topic: Sending multiple http request
Replies: 0
Views: 467

Sending multiple http request

Hullo, I need to send a number of http request inside a loop to refresh several lines a DB. I employ this code to do it: <?php function insertPalineForLine($line, $noprompt, $showLines, $device){ $url2="http://www.miafoto.it/iPhone/inarrivo/php/getStations.php?linea=".$line."&noprompt=".$noprompt; /...
by fbartolom
Sun Apr 01, 2012 11:57 pm
Forum: PHP Scripts
Topic: Funny 500 error when accessing page from php script
Replies: 1
Views: 1019

Funny 500 error when accessing page from php script

Hullo, I would like to parse page: http://gmmobile.atm-mi.it/wsbw/InfoTraffico/ that, as you may see, is regularly accessible. Yet, when I try to access it through the php script at: http://www.miafoto.it/iPhone/inarrivo/phpMi/getLines.php in order to parse its content, I receive error: Warning: fil...