jomla

Members
  • Content count

    33
  • Joined

  • Last visited

Community Reputation

0 Neutral

About jomla

  • Rank
    Newbie
  1. Hi at all I need a php script to set new date creation of a file. Thank you very much
  2. The session variable "me" represent my person that I am visiting my web site and its value with which I enter is "foo". So if the session variable $ _SESSION ['me'] !== 'foo' it can be inserted into file.log visitors because visitor I am not me. But I do not want even the search engines are put into visitors file.log so I added the second part of the function but some think do not work The session variable "me" I am visiting my site and its value with which I enter is "foo". So if the session variable $ _SESSION [ 'I'] == 'foo' and I must not be inserted into file.log visitors. But I do not want even the search engines are put in the logo file so I added the second part of the function
  3. Hi at all, I have to intercept search engines and my visits not to insert in the log files of my visits and countless search engine visits. I therefore made this function but it is not working and search engines continue to pass. Where is the mistake? Thank you very much <php code> function write_log() { if (!(isset($_SESSION['me']))||($_SESSION['me']!=="pippo") || (preg_match('/bot|bingbot|bing|robot|crawl|slurp|spider|yahoo|se arch/i', $_SERVER['HTTP_USER_AGENT'])==0)) {return true;}else{return false;} } if(write_log()===true) { require_once("log.php"); } </php code> I therefore I made this function but it is not working and search engines continue to pass. Where is the mistake? Thank you
  4. <code> $query="SELECT id,name FROM iml order by name"; $result = $mysqli->query($query); $_SESSION['iml']=$result; </code>
  5. Hi at all I tryed to insert full $result of a mysqli query into a session variable to can use it anyware. It work fine when I work into index.php but not into other pages that have always session_start called. Is there some thing to know about? thank you very much
  6. Hi at all, why Suddenly, after years of perfect work easter_days and easter date no longer work? Fatal error: Call to undefined function easter_date() in /public_html/ester.php on line 5 Fatal error: Call to undefined function easter_days() in /public_html/ester.php on line 6
  7. Warning: file_get_contents(): php_network_getaddresses: getaddrinfo failed: Host UNKNOW. in C:\xampp\htdocs\iml.phpon line 204 Warning: file_get_contents(http://www.sant.com/day.txt): failed to open stream: php_network_getaddresses: getaddrinfo failed: Host sconosciuto. in C:\xampp\htdocs\iml.php on line 204 Notice: Undefined offset: 0 in C:\xampp\htdocs\iml.php on line 211
  8. Hi at all I am using file_get_contents but if I work off line it falled (of course) How can I do to prevent fallure? Thank you very much
  9. Hi at all, please take a look to this my page: http://www.iomla.net/vocadiv/ It is a dictionary of an old dialect language. It work better into large screen and tablet also. Into smartphone it work like other devices but if you try to enter a characters into input fields keyboard cover suggestions. Please How can I transform page for little nobile layout? Thank you very much
  10. it was a very informative post Thank you
  11. the script.php that I use now works well but at the beginning simply moved files from one directory and one of remoro server but not brought me the file locally. The mistake was that the script should be installed in a local server and not on a remote server. Now that I've installed the script in HTDOCS directory in my local XAMPP server the script works well but takes the files in the htdocs directory in the midst of the scripts .. In practice it is useless ahahahah So much work for nothing the script I use now works well at the beginning but simply moving files from one directory and one of remoro server but not brought me the file locally. The mistake was that the script should be installed in a local server and not on a remote server. Now that I've installed the script in HTDOCS directory in my local XAMPP server the script works well but takes the files in the htdocs directory in the midst of the script .. In practice it is useless ahahahah So much work for nothing
  12. Instead it exist end path is right
  13. Now error is this: Warning: ftp_get(C:/Users/Markus/Documents/web_sites/lands/backups/lands-20161105-1747.gz): failed to open stream: No such file or directory in /home/xyz/public_html/backups.php on line 38
  14. [10-Nov-2016 11:20:10 Europe/Berlin] PHP Warning: ftp_get(): Filename cannot be empty in /public_html/backup.php on line 28 [10-Nov-2016 11:20:10 Europe/Berlin] PHP Warning: ftp_get(): Error opening in public_html/backup.php on line 28 [10-Nov-2016 11:24:00 Europe/Berlin] PHP Warning: ftp_get(C:/Users/markus/Documents/web site/lands/backups//.): failed to open stream: No such file or directory in /public_html/backup.php on line 26 [10-Nov-2016 11:24:00 Europe/Berlin]
  15. Ok thankyou. Follow I report the new stram of my new php code that try to download files but that do not work still now: $local_dir = "C:/Users/markus/Documents/web sites/lands/backups"; $server_dir="/public_html/backups"; $contents = ftp_nlist($conn_id, $server_dir);//works fine still here foreach ($contents as $file) { if (ftp_get($conn_id, $local_dir."/".$file, $server_dir."/".$file, FTP_ASCII)) { echo " amd Successfully written to $local_file\n"; } else { echo " but There was a problem in download<br>".$server_dir."/".$file."<br>"; } } // please where is problem? is there in $local_dir name or $server_dir name?