|
udch wrote: file($url)
you need to look up and set permissions for that
|
|
|
|
|
Hey my friends ... I was using mail() function but some error occured
this is the code
<php
$to='compnay@yahoo.com';
$from=$_POST['txtEmail'];
$title=$_POST['txtTitle'];
$body=$_POST['txtMsg'];
if($_POST['form1'].submit)
{
mail($to,$title,$body,'From:'.' '.$from);
echo '<h1 >Thank you!
</h1>
<p>Email sent. We will contact you as soon as possible
</p><p><br /></p>';
}
else
echo 'not submitted';
?>
when I use the above code this error occured
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:\wamp\www\Hiwi\send.php on line 26
Thank you!
Email sent. We will contact you as soon as possible
Can any body help me on this? I thought it was because I wasnt connected to the internet ..... even after I connected to the internet it comes again.
Is it because my site is not posted ? I am just working on it....
Any suggestions ....
Thank you
|
|
|
|
|
CoderForEver wrote: Failed to connect to mailserver at "localhost"
I take it you don't have an SMTP server on your localhost as that is what the error means.
You need to configure your php.ini with SMTP settings for a different, external SMTP server if you don't have one installed on your localhost.
You can find lots of information about your problem by doing a simple Google search[^] with your error message.
If at first you don't succeed, you're not Chuck Norris.
|
|
|
|
|
thank you man .... I already checked the SMTP .... I use Wamp Server just for to develop my websites. .... I will check ur soulutions
Thank you.
|
|
|
|
|
hey, although i havent tried emailing from my machine locally, just wondered if it was something to do with the mail client in your xammp control panel try turning on the mercury email client that should enable emailing from localhost. let me know if it works
|
|
|
|
|
I have got one idea .. not zat much cool ... when I post my finished website ... zer will be a webserver which we will post on US ... I hope zis function is the purpose of zat machine ... wat do u tink so? ... I just use mail() function ... only
|
|
|
|
|
hey, i dont quite understand what you mean!
|
|
|
|
|
How to boot linux .iso image in pen drive for installation
|
|
|
|
|
I don't know, but i took your question and put it into Google verbatim and found some very helpful links. Try looking here[^] and here[^].
|
|
|
|
|
Hi,
This is my cgi-bin folder
D:\www\xampp\cgi-bin
the shebang is like this
#!"D:/www/xampp/perl/bin/perl.exe"
and perl is in the folder like in the above path of shebang
here is my script alias entry in httpd.conf
ScriptAlias /cgi-bin/ "D:/www/xampp/cgi-bin/"
and the directory entry is as follows
<Directory "D:/www/xampp/cgi-bin">
AllowOverride All
Options Indexes FollowSymLinks ExecCGI
Order allow,deny
Allow from all
</Directory>
my file is printenv.pl and is saved in cgi-bin folder
but still i couldn't make the file run
i call it like localhost/printenv.pl
i get 404 error.
what shall i do?
Today's Beautiful Moments are
Tomorrow's Beautiful Memories
|
|
|
|
|
"i call it like localhost/printenv.pl"
But, you should call it like this:
localhost/cgi-bin/printenv.pl
|
|
|
|
|
what is scriptalias? how to place the url in apache? i need clean details
please help me
<pre></pre>
|
|
|
|
|
|
Can we read .xls file in php like this one "http://www.nseindia.com/content/fo/fii_stats.xls"
|
|
|
|
|
Yes. but it's easier to work with csv (comma separated value) files. you can export/import csv files from excel.
|
|
|
|
|
Thanks for your help brother. I am downloading .xls file from a website it is not in csv format there. can you Suggest me where i get information how to read .xml in php or any command?
Thank You
|
|
|
|
|
udch wrote: I am downloading .xls file from a website it is not in csv format there
Can't you save it as csv yourself?
Google: Read XML with PHP[^]
|
|
|
|
|
how to write the code in php and get the output
*
**
***
****
*****
*****
|
|
|
|
|
I assume that it's your intention for the last line to be repeated?
Why not just run through a loop, printing out a string and adding an extra character to it each iteration.
Once the loop has been run the correct number of times, print the last result again and you're done!
Think about the output needed:
*<br>
**<br>
***<br>
****<br>
*****<br>
*****<br>
Clearly, displaying each line involves printing the text, followed by printing a <br>
Perhaps you'd find the output line looking something like this:
printf("%s<br>", $starString);
|
|
|
|
|
IMO echo "*<br />**<br />***<br />****<br />*****<br />*****"; would suffice.
Luc Pattyn
I only read code that is properly indented, and rendered in a non-proportional font; hint: use PRE tags in forum messages
Local announcement (Antwerp region): Lange Wapper? 59.24% waren verstandig genoeg om NEEN te stemmen; bye bye viaduct.
|
|
|
|
|
I have 2 computer, they are connected together through a switch so i 've got LAN(my system just only 2 computers and has no connect to the Internet( no modem or router))
pc001 I got ip 192.168.1.1
pc002 I got ip 192.168.1.2
on pc001 i install xampp.
I hosting some website at pc001 and have some situation like bellow:
1.All website i created by Joomla work well and i can access these website from another computer(Everything good)
2.I created a forum (using MyBB Forum) , it work well when i access on the local computer(the computer which install xampp).
When i access forum from pc002 the result is not displayed correctly.
Can anybody help me to fixed this.
Thanks and regards
|
|
|
|
|
Check your configuration of your MyBB Forum is using the pc name / ip address as the hostname and not "localhost"
|
|
|
|
|
Thanks !
Have a good time Marc Firth!
|
|
|
|
|
Hey friends I am developing web page for some music production. What I wanted to ask is, there are a lot of links for a lot of lyrics. If I put the lyrics with their file name and when the user presses the link it reads the file and displays on a new page. But this is really bad(too slow). So I decided to do like CODEPROJECT's site did. i.e when we click one question(or answer) on a thread it display the message @ that page with in a fraction of mili second. So can any body help me how to do that so that I can display the lyrics next to the song as CodeProject's thread did?
I hope I will get some helps soon. Thank you
|
|
|
|
|
You need to use javascript and css to show/hide layers.
or use jquery to do it for you:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Untitled Document</title>
</head>
<script type="text/javascript" src="jquery.js"></script>
<script>
$(document).ready(function(){
$('.post').hide();
$(".title").click(function(){
$('.post').show('slow');
return false;
});
});
</script>
<body>
<div class="title">Title
<div class="post">song lyrics</div>
</div>
</body>
</html>
|
|
|
|