razstec
-
Posts
41 -
Joined
-
Last visited
Content Type
Profiles
Forums
Events
Posts posted by razstec
-
-
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>
-
yes
-
-
nothing. here the result from dump add to change your script to this
and the var_dump to$file = $conn_id.$dir;if (file_exists($file)) { echo "file does exist";}var_dump($conn_id,$dir);
line 60 isresource(1) of type (FTP Buffer) string(19) "EURO/0000000/" Warning: ftp_mkdir(): Directory already exists in C:\inetpub\wwwroot\CORC\ftp.php on line 60 Fatal error: Call to undefined function fail() in C:\inetpub\wwwroot\CORC\ftp.php on line 60ftp_mkdir($conn_id,$dir) or fail ($out['error'][] ="Cannot create directory $pat."); -
-
-
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
-
using putty i get
220 myserver ESMTP -
-
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
-
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:
ftp_login( $conn_id, $user, $pass );if (file_exists($direc)) { } else { if (!in_array($direc, ftp_nlist($conn_id, ''))) { ftp_mkdir($conn_id, $direc) or fail ($out['error'][] ="Cannot create dir $direc.");}}if (file_exists($usr)) { } else { if (!in_array($usr, ftp_nlist($conn_id, $direc))) { ftp_mkdir($conn_id, $direc.'/'.$usr) or fail ($out['error'][] ="Cannot create dir $usr.");}}ftp_put( $conn_id, $caminho, $arquivo['tmp_name'], FTP_BINARY); ftp_close($conn_id); -
solve it editing the php.ini file with
<requestFiltering> <requestLimits maxAllowedContentLength="500000000"/> </requestFiltering> -
sorry i mean 25 and other 2 ports for email that i cant remember now
-
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
-
i can connect in the server using filezilla server but if i try to only use the ftp server from iis i cant do nothing
-
its the user, even thu the user has permissions and is in a group with permission. its very strange
-
i have permission to the 21 port
-
the ping returns everything, there is a connection. login failed, user canot login but when i do it in the server pc it connects fine
-
from the server i can connnect tru ftp with cmd but with another pc in the same network i cant. im using a response script.
-
Hi all, i have this script that was working fine in my other hosting but now i change it and it says The transport failed to connect to the server. the code is exactly the same and the server is gmail not internal why is this?
-
the user and the group of that user have full permission on server and system. could the problem be because i didnt had a domain name, only ip address?
-
iv added the username to a user group and the all have permissions
-
i dont have a virtual host name.....
-
sorry for the delay, this is the error im having thanks
searching in xml
in ASP
Posted
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