Jump to content

razstec

Members
  • Content Count

    41
  • Joined

  • Last visited

Community Reputation

0 Neutral

About razstec

  • Rank
    Newbie
  1. razstec

    searching in xml

    Thanks, but cant seem to make it work :s my xml file is this i nedd to select the fields by Pat_ID and SITE, the above xml is only for one Pat_ID <html><head></head><body><%Set objXML = Server.CreateObject("Microsoft.XMLDOM")objXML.Load (Server.MapPath("\") & "\MyExcel.xml")'etc'Dim nodesset nodes = objXML.selectNodes("folha")Dim aFor each node in nodes Response.Write("<ul>") Response.Write("<li>Ref: " & node.getAttribute("SCAN") & "</li>") Set a = node.selectNodes("SCAN/SITE") For each SITE in a Response.Write( "<li>Image:"& image.getAttribute("SITE") &"</li>" ) Next Response.Write( "</ul>" )Next%></body></html>
  2. razstec

    searching in xml

    Hi all, I have a xml file with this order:<SCAN><SITE>OS</SITE> <NAME>jack</NAME></SCAN> <SCAN><SITE>OD</SITE> <NAME>mary</NAME></SCAN> I need to select the name of site OD ex:if SITE=OD then=nomeelseend if Here is my code, it works fine i just need to search <%Option ExplicitResponse.Buffer = TrueDim xmlSet xml = Server.CreateObject("Microsoft.XMLDOM")xml.async = Falsexml.load (Server.MapPath("page.xml"))Dim title, heading, paragraph,paragraph2,paragraph3,paragraph4, testHTMLtitle = xml.documentElement.childNodes(0).textheading = xml.documentElement.childNodes(1).textparagraph = xml.documentElement.childNodes(2).textparagraph2 = xml.documentElement.childNodes(3).textparagraph3 = xml.documentElement.childNodes(4).textparagraph4 = xml.documentElement.childNodes(5).texttestHTML = xml.documentElement.childNodes(6).textSet xml = Nothing%><html><head><title><%= title %></title></head><body><h3 align="center"><%= heading %></h3><p align="center"><% = paragraph %></p><p align="center"><% = paragraph2 %></p><p align="center"><% = paragraph3 %></p><p align="center"><% = paragraph4 %></p><div align="center"><%= testHTML %></div></body></html>
  3. razstec

    check dir

    it worked thats all
  4. razstec

    check dir

    nothing. here the result from dump add to change your script to this and the var_dump to line 60 is
  5. razstec

    check dir

    that didnt work. how hard can this be??
  6. razstec

    check dir

    should i do like this? something=$conn_id.$dirfile_exists($something)
  7. razstec

    check dir

    done what you sujested but its the same. its very weird here my full code, maybe you see something im missing <?phpini_set('display_errors', 1);ini_set('log_errors', 1);ini_set('error_log', dirname(__FILE__) . 'error_log.txt');error_reporting(E_ALL);if( $_SERVER['REQUEST_METHOD']=='POST' ){set_time_limit(0);$out = array('error'=>null);$stud =$_GET['stud'];$pat =$_GET['pat'];$novonome =$_GET['novonome'];$arquivo =$_FILES['arquivo'];$dir =$stud."/".$pat."/";$caminho =$novonome;$servidor ='184.163.1.11';$user='user';$pass='1234';$conn_id = ftp_connect($servidor) or die( 'No Connection at Server, please contact <a href="contacts.asp">Support</a>!!'); if ($_FILES["arquivo"]=="") { $out['error'][] = "Please specify a file"; } if ($arquivo['type'] == "multipart/x-zip" || $arquivo['type']== "application/zip" || $arquivo['type'] == "application/x-zip-compressed" || $arquivo['type'] == "application/x-compressed") { } else { $out['error'][] = "Only Zip files are allowed!"; } if ($arquivo['size']>500000000) { $out['error'][] = "File upload limit is 500MB!"; }ftp_login( $conn_id, $user, $pass ); if (count($out['error'])>0) { foreach ($out['error'] as $msg) { $message = '<p>'.$msg.'</p>'; echo $message; echo "<br><form><input type=\"button\" value=\"ERROR!! Please check your file and update again!\" onClick=\"javascript:history.go(-1)\"></form>"; }} else { if(!file_exists($conn_id,$dir)) { if (!in_array($pat, ftp_nlist($conn_id,$stud))) { ftp_mkdir($conn_id,$dir) or fail ($out['error'][] ="Cannot create directory $pat."); }} ftp_put( $conn_id, $caminho, $arquivo['tmp_name'], FTP_BINARY); ftp_close($conn_id); echo '<meta http-equiv="refresh" content="0, email.asp?actnow=gonow&var_mal=ficheir" />';}}?><!doctype html><!--[if lt IE 7 ]> <html lang="en" class="no-js ie6"> <![endif]--><!--[if IE 7 ]> <html lang="en" class="no-js ie7"> <![endif]--><!--[if IE 8 ]> <html lang="en" class="no-js ie8"> <![endif]--><!--[if IE 9 ]> <html lang="en" class="no-js ie9"> <![endif]--><!--[if (gt IE 9)|!(IE)]><!--><html lang="en" class="no-js"> <!--<![endif]--><head><meta charset="UTF-8"> <title></title> <script src="modal/js/libs/jquery.min.js"></script><script src="modal/js/libs/modernizr-1.7.min.js"></script> <link rel="stylesheet" href="modal/css/reset.css" media="all"> <link rel="stylesheet" href="modal/css/style.css" media="all"></head><body><section id="cjModalWindow"><header> <h3>Choose File To Upload</h3> <a href="#" class="xClose"><img src="modal/images/x-close.png" alt="Close" title="Close"></a></header> <article> <form action="" method="post" enctype="multipart/form-data"> <input type="file" name="arquivo" /> <input type="submit" name="enviar" value="Send"></form> </article> <footer> <img src="modal/images/expandNotation.png" class="expandNotation" title="Expand Window" alt="Expand Window"> </footer></section><footer id="fMain"></footer></body></html> thanks for the help
  8. razstec

    gmail server down

    using putty i get
  9. razstec

    check dir

    iv done that, if you see in my script iv done that but it dont work :s
  10. razstec

    gmail server down

    i made de configuration of my server, do you think i skip something? now im trying to use hmailserver but having problems with th mx-query :s
  11. razstec

    check dir

    Hi all, i have this script to upload files to server, it creates 2 folders and then the file, the script works fine but when any of the folders already exist it gives me error. can someone help? heres my script:
  12. solve it editing the php.ini file with
  13. razstec

    gmail server down

    sorry i mean 25 and other 2 ports for email that i cant remember now
  14. manage it, give up on iis ftp server and installed filezila server, it works now. Can anyone tell me how i can upload files up to 300mb? im only able to upload files to 1mb thanks
×
×
  • Create New...