Jump to content


  • Posts

  • Joined

  • Last visited

mona's Achievements


Newbie (1/7)



  1. look that's what I get when i run the asp fileServer Error in Application "Default Web Site"--------------------------------------------------------------------------------HTTP Error 404.3 - Not FoundDescription: The page you are requesting cannot be served because of the Multipurpose Internet Mail Extensions (MIME) map policy that is configured on the Web server. The page you requested has a file name extension that is not recognized, and is not allowed. Error Code: 0x80070032 Notification: ExecuteRequestHandler Module: StaticFileModule Requested URL: http://localhost:80/MyWeb/test1.asp Physical Path: C:\inetpub\wwwroot\MyWeb\test1.asp Logon User: Anonymous Logon Method: Anonymous Handler: StaticFile and there is 404.3 error go to this link and you'll see:http://support.microsoft.com/kb/943891/en-...80070032%2c6000
  2. hi I'm new to asp and IIS , I'm trying to learn aspfirst I enabled IIS and created a new folder inside wwwroot called myWeb and created an asp file called test1.asp as listed in http://w3schools.com/asp/asp_install.asp and when I tried to run http://localhost/MyWeb/test1.asp I got the 404.3 error can you help me solve this problem please?
  3. hi, I tried to read and display a word document using the following style: $fo = fopen('somefile.doc', 'r'); $read = fread($fo, filesize('somedoc.doc')); fclose($fo); echo $read;Also I tried another one $read = file_get_contents('somedoc.doc'); echo $read; both ways are working in the localhost way, that is using my own apache and php on my laptop especially that the doc files are already saved on my computer.but in my case, I took my files and put them on another server (not localhost) and I tried to access the website from my computer, all my project is working except the reading of files, why?Is it because the files are not saved on the server and they are saved on my computer?Is there a way to open and read these files from the server?
  4. I think there is a problem in the quotations: try to put $row['act_num'] in another variable like $actand then write the query as follows:mysql_query("INSERT INTO users SELECT username, password, regdate, email, location, show_email, last_login, rank, army_species, game_rank, FROM unactivated_users WHERE act_num = '".$act."'")or die("ERROR IN INSERT!!");because you are using the simple quotation twice which may make a problem,i hope that it helps
  5. mona


    to round you can use the round function, see the php manualhttp://us2.php.net/manual/en/function.round.phpyou'll need something like: round($answer1,2);if u want to remove the quotations simply you have to concatenate the string and in php the concatenation is as follows:echo "hi ". $name. ", how r u?";so u need to close the quotations then add dots before and after the string
  6. I have a question , I tried a simple example for html link inside php fileI have a file called file1.txt inside C:\I put the following lines in a file and named it myfile.html<html><a href='C:\file1.txt'> open file</a></html>here the link works and the file opens upon clickingif the same file I named it myfile.php and tried to run it using apache localhosthere when you click the link, nothing happen and the file didn't openwhy??knowing that if we put any website link it works , but if we put any file inside our computer it doesn't work.also, knowing that php is working very well on my computer
  7. Iam doing a project using php and mysql, in my project I had a list of students' information saved in a database, Iam trying to put all the information in html table, so I got the data from database and display them in an html table. the problem is that the data is too large and I want to divide it into more than one page where each page has about 10 students. and on clicking next the other page comes.how can I do that in php, I don't need a code I need the way to do that, that is under the next button or link where should I submit the page number or etc.. and can i do them all on the same php file.
  8. mona

    special string problem

    Actually I know how to work with databases, i only wanted the string functions that you gave me.thanks for your help, i'll try them and I think they'll help me
  9. hi, I'm doing a project using php and mysqli'm trying to allow the user enter a certain message inside a message box (very similar to this message box I'm writing in) and the user may write html tags inside message or php or any characters and double and simple quotesHow can I read his message ( as string) to be sent to mysql to be saved there and then view it again as it.i tried mysql_real_escape_string but it doesn't make any changes and if the user writes these characters ", <, ', \,/ it omits them.what should I do
  10. mona

    Modifying xml file

    I have an xml file and I'm displaying it using xsl filethis xml file contains information like username, password,..etcI want to allow the user change his password, I need help to find a way to update the xml file and save it on the same fileIf it is possible using xslt, how can I make that?
  11. I have two xml and xsl filesupon clicking a button I move from one xsl file to anotherhow can I pass values from one xsl to another to use them there?
  12. hi, I have a problem, I have the below code where the table and href shold be inside javascript using document.writeif I put onclick="..." inside the <a > It's not working and I have eror on page after clickingwhat is the problem? <html><head><script language="JavaScript">function submitting(forum){document.write(forum) //this is only a test}function loading(){var xmlDoc=new ActiveXObject("Microsoft.XMLDOM"); xmlDoc.async="false"; xmlDoc.load("forums.xml"); var doc=xmlDoc.documentElement; for(var i=0; i<doc.childNodes.length; i++) display(doc.childNodes(i));}function display(cat){document.write('<a name="top"></a><TABLE cellspacing="1" width="100%" bgcolor="#99ccff" border="2" ><TR><TH bgcolor="#ffff99" COLSPAN="3" ALIGN="LEFT">'+cat.getAttribute("NAME")+'</TH></TR>');document.write('<TR bgcolor="#33cccc" ><TD width="80%">Forum</TD><TD width="10%">Topics</TD><TD width="10%">Replies</TD></TR>');for(var j=0;j<cat.childNodes.length;j++){var node=cat.childNodes(j);document.write('<TR><TD><a href="#top" onclick="submitting(\''+node.childNodes(0).firstChild.text+'\')">'+node.childNodes(0).firstChild.text+'</a><br><FONT COLOR="GRAY">'+node.childNodes(1).firstChild.text+'</FONT></TD><TD>'+node.childNodes(2).firstChild.text+'</TD><TD>'+node.childNodes(3).firstChild.text+'</TD></TR>');}document.write('</TABLE>');}</script></head><body onload="loading()"><form name='forums' action='posts.php' method='post'><input type='hidden' name='forum'/></form></body></html>but if I tried alert instead of submitting it works:
  13. mona

    sending email problem

    till now It doesn't work with me,'If you know the solution , let me begin from the first and tell me what should I do/pleaseeeeeeee
  14. hi, I have a problem to use the css style inside the java script:I am using style inside my code as follows:<html><head><title>LTU Computer Science Forum</title><style type="text/css">TABLE,TR,TD{ background: transparent; color: #ff00cc; background-color: #000000;}TABLE{ width: 100%; }</style><script language="JavaScript">function loading(){document.write('<img src="LTULogo.jpg" width="974" height="72"/>');var xmlDoc=new ActiveXObject("Microsoft.XMLDOM"); xmlDoc.async="false"; xmlDoc.load("forums.xml"); var doc=xmlDoc.documentElement; for(var i=0; i<doc.childNodes.length; i++) display(doc.childNodes(i));}function display(cat){document.write('<TABLE cellspacing="1" ><TR><TH COLSPAN="3">'+cat.getAttribute("NAME")+'</TH></TR>');document.write('<TR><TD>Forum</TD><TD>Topics</TD><TD>Replies</TD></TR>');for(var j=0;j<cat.childNodes.length;j++){var node=cat.childNodes(j);document.write('<TR><TD>'+node.childNodes(0).firstChild.text+'<br>'+node.childNodes(1).firstChild.text+'</TD><TD>'+node.childNodes(2).firstChild.text+'</TD><TD>'+node.childNodes(3).firstChild.text+'</TD></TR>');}document.write('</TABLE>');}</script></head><body onload="loading()"></body></html>since I'm using xml Dom so I'm obliged to put the table inside the javascript,this thing makes the style not working for the tableDoes any body know why and how to make it working?
  15. mona

    sending email problem

    I faced the following error while trying to send an email using php:my php file is as follows:<?php$to=$_POST["email"];$password=$_POST["password"];$login=$_POST["login"];$msg="Your login and password are as follows: login Id:".$login." Password:" .$password; $from = "From: xxx@xxx.xxx<br>";if( mail ( $to, "login information", $msg, $from )) { echo "Your password was successfully sent to you<br>"; } else echo "Could not sent you an email with there password!"; ?>the error is as follows:Warning: mail() [function.mail]: Failed to connect to mailserver at "localhost" port 25, verify your "SMTP" and "smtp_port" setting in php.ini or use ini_set() in C:\Program Files\Apache Group\Apache2\htdocs\xml forum project\password.php on line 9As I find I should have a local mail server on my laptop to do that:I downloaded a mail server called: Argosoft mail server and it is installed on my computerwhat should I do to make it workwhat changes should I do to my php.ini file please help!
  • Create New...