Search found 11 matches

by aravindoptimus
Thu Mar 07, 2013 4:54 am
Forum: phpMyAdmin
Topic: str_replace
Replies: 0
Views: 1984

Re: str_replace

You can try explicitly adding content type at the top of your file as below
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />

With out using str_replace the character will show correctly I hope. :?
by aravindoptimus
Thu Mar 07, 2013 4:40 am
Forum: PHP coding => Mail
Topic: Error while sending mail
Replies: 1
Views: 2248

Re: Error while sending mail

You cant send mail from localhost.. If you want use PHPmailer.
by aravindoptimus
Thu Mar 07, 2013 4:26 am
Forum: PHP coding => Mail
Topic: Working Mail script, but need redirect function
Replies: 0
Views: 1358

Re: Working Mail script, but need redirect function

Just use the following idea:

If(mail(Sendmail_function))
{
Header_redirect; (check the Header redirect script)
}
else
{
echo "Sorry we cant send your mail at the moment";
}
8)
by aravindoptimus
Thu Mar 07, 2013 4:18 am
Forum: PHP coding => Images
Topic: Convert image to binary bit
Replies: 0
Views: 1890

Re: Convert image to binary bit

Here is the code:
<?php
$file="123.jpg";
$con=file_get_contents($file);
echo $en=base64_encode($con);
?>

Click view Source and see the Binary data!
by aravindoptimus
Thu Mar 07, 2013 4:04 am
Forum: PHP coding => General
Topic: PHP Page Just Shows Code
Replies: 2
Views: 1276

Re: PHP Page Just Shows Code

I have checked with you code and its running in my WAMP. I think your Apache or PHP is not running properly.
by aravindoptimus
Thu Mar 07, 2013 3:32 am
Forum: PHP coding => General
Topic: Re: Import variable from one php file to another
Replies: 0
Views: 880

Re: Import variable from one php file to another

I used your code and it works fine. :D

But I tried to find why you got "1" as out put then I realized that you didn't kept the file "Page1.php" in the same folder where you kept "Page2.php". 8)
by aravindoptimus
Thu Mar 07, 2013 3:25 am
Forum: PHP coding => General
Topic: add php code in included file
Replies: 1
Views: 1113

Re: add php code in included file

Just specify the PHP code in the xyz.php file and include the file.
by aravindoptimus
Thu Mar 07, 2013 3:23 am
Forum: PHP coding => General
Topic: Display Folder name only in php
Replies: 2
Views: 1175

Re: Display Folder name only in php

Hi, You can make use of PHP SESSION.. It will be good for this type of issues.! If the session user is not given permission to view the folder make him to return back to his default page. :)
by aravindoptimus
Thu Mar 07, 2013 3:19 am
Forum: PHP coding => General
Topic: Best editor for PHP
Replies: 210
Views: 176068

Re: Best editor for PHP

I use Notepad++ and Macromedia Dreamweaver. Both are good..! :D :D
by aravindoptimus
Thu Mar 07, 2013 2:07 am
Forum: PHP coding => Mail
Topic: Mail function using sendmail
Replies: 0
Views: 1864

Re: Mail function using sendmail

Its Simple from Localhost we cant send mail :(... Try the file from server.. It will work :D
by aravindoptimus
Thu Mar 07, 2013 2:03 am
Forum: PHP coding => Mail
Topic: Sending email template by php
Replies: 1
Views: 1521

Re: Sending email template by php

Check the following link it will be much useful for you!

http://softmanic.blogspot.in/2013/03/se ... h-php.html