Hi Friends,

I am struggling from last couple of days with this paypal return array.
After completion of successful transaction in Live account, Paypal sends empty resultset to my website. Is there anything i need to set in Mercant paypal account ? Coming to Sandbox, everything is working fine.

Please give me some suggestions.

Hi friends,

I am struggle from last coup[le of days with this error.

Error: `Forbidden

You don't have permission to access /reports.php on this server.

Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.`

I tried to solve this by searching different forums. Every where about httpd.conf. But i can't change the server files.

All the files in that folder are working good except and also i set "777" permissions to this page.

Please give some suggestions..

Hey..

My code same as like @sv3tli0... this is for all types of images... Previously i didnt check sv3tli0's code..

HI...

This is only for JPEG...
First u should upload the image and then get the properties of that original image.
Look into the below code... easy to understand..

[CODE]
$add=""; //Path of Original Uploaded Image
$im=ImageCreateFromJPEG($add);
$width=ImageSx($im); // Original picture width is stored
$height=ImageSy($im); // Original picture height is stored

$n_width=200;
$n_height=134;
$newimage=imagecreatetruecolor($n_width,$n_height);
imageCopyResized($newimage,$im,0,0,0,0,$n_width,$n_height,$width,$height);
ImageJpeg($newimage,$t_add); //$t_add is where thumbnail image stored!
chmod("$t_add",0777);

[/CODE]

HI...

This is only for JPEG...
First u should upload the image and then get the properties of that original image.
Look into the below code... easy to understand..

[CODE]
$add=""; //Path of Original Uploaded Image
$im=ImageCreateFromJPEG($add);
$width=ImageSx($im); // Original picture width is stored
$height=ImageSy($im); // Original picture height is stored

$n_width=200;
$n_height=134;
$newimage=imagecreatetruecolor($n_width,$n_height);
imageCopyResized($newimage,$im,0,0,0,0,$n_width,$n_height,$width,$height);
ImageJpeg($newimage,$t_add); //$t_add is where thumbnail image stored!
chmod("$t_add",0777);

[/CODE]

Hi Guys,

I am doing online Gift website by using os commerce..
I need to add Delivery time with Shipping Address/Delivery Address..

What are the changes i need to do and where?

Can u guys plz give me some suggestions regarding this.

Thaks for ur response....
Taking session variable... and after executed unset the session variable...working...

Hi team,

i write some logic in my page.

here i am using this $x is getting by POST method...
Logic :[CODE] if($x>10) { $amount=$amount+400; } [/CODE]

It is working fine.
Hare the problem is after entered into the page...incase user refresh the page that logic repeated. i dont want like that. how can i prevent this refresh option(or) logic should not be repeated.

Please give suggetion...

Hi Team,

I have 2.6 years of exp in PHP tech(complete exp on core php,mysql,javascript)... 8 months back i resigned my job due to marriage.. now i am trying to get job on PHP...but now without any CMS/ZEND there is no calls for core php. so.. i m trying to learn ZEND myself @ home... please refer me some website abt zend.. and also send me ZEND Interview ques..it will be a grt help to me....

Thank you guys... keep smiling

Hi frnds,

I m using the below code...it is working fine...nothing prob in it..

just i want change the visibility of that div....here by default div is visible...but i want default div should be hidden.....plz look into the below code..

[CODE]<html>
<head>

<script language="javascript" type="text/javascript">
function showHideDiv()
{
    var divstyle = new String();
    divstyle = document.getElementById("div1").style.visibility;
    if(divstyle.toLowerCase()=="visible" || divstyle == "")
    {
        document.getElementById("div1").style.visibility = "hidden";
    }
    else
    {
        document.getElementById("div1").style.visibility = "visible";
    }
}
</script>   

</head>

<body>

<div id="div1" class="divStyle">
    Show Hide Div 
</div>

<center>
  <a href="#" onclick="showHideDiv()" >Click Here</a>
</center>

</body>
</html>[/CODE]

Hi frnds,

I m struggling from last 20 days 4 this conept..

plz anybody help me... i need to add live tv to my webpage....

sry 4 repeating this thread..

hi frnds,

i am doing one tv channel website.I want to add tv(live) to the webpage. please give me some suggestions. if possible give some code.

eg : SNIP

Thanks
Saritha K.

Hi liamfriel,

i m phasing problen only when i used ( :, ? , !, | )...these type of symbols...there is no problem when i used (', ")...

plz look into the code...
Code:
[CODE]$url=urlencode($tr_topic);

<a href="index-id-<?php echo $tr_id; ?>-name-<?php echo htmlentities($url); ?>.htm"> xxxxxxxxxxx </a>

[/CODE]

Thanks...

Google chrome error:

[CODE]HTTP - 404 Page Not Found
Sorry, the page you were looking for cannot be found.[/CODE]

[QUOTE=liamfriel;1170380]I have been reading that some browsers retain the HTML entities of encoded chars try:

[CODE] htmlentities() or htmlspecialchars(). [/CODE]

before encoding.

[url]http://php.net/manual/en/function.urlencode.php[/url][/QUOTE]

Hi,

I m using first time url rewriting concept..

i m getting some errors when i used different symbols in url..
[B]$title="sachin's best shots KKR : MI ? ";[/B]

here when i use normal text (with out any symbols) ..this is working fine..but, when i use (?,",',:)...page can not be displayed..getting error...

please check the below code...

[B]php code @ link[/B]
[CODE]index-id-<?php echo $tr_id; ?>-name-<?php echo urlencode($title); ?>.htm[/CODE]

[B].htaccess[/B]

[CODE]RewriteRule index-id-(.)-name-(.).htm$ index.php?id=$1 [/CODE]

plz tell me wat i need to do...
i m struggling 4 last couple of days...

Hi frnds..

Any body help regarding this.

Thnaks

hi frnds,

i am doing one tv channel website.I want to add tv(live) to the webpage. please give me some suggestions. if possible give some code.

eg : SNIP

Thanks
Saritha K.

HI frnds,

I have some doubts regarding php and javascript,

1) can we disable browsers save password option? give some explantion plz..... i read some articles on net, but having different answers having diff websites. so, i need to clarity abt this.

2) Can we run two DB's @ same time . DB's r located at different servers. explain me plz(any web links)...this is also same prob...diff answers on different articles..

Thanks,
Saritha K.

anybody help plz..

hi frnds..

i am using while loop for getting more records..in this having [B]div[/B]..i need to change div name dynamically...but right now i cant do that code...plz change the below code.....

[CODE]

<DIV id="div_MoviePicRate" name="div_MoviePicRate" class="text2_grey" align="left"> 
<IMG alt="I Agree, Your life Sucks" src="images/up.png" style="cursor:pointer" border="0" onclick="javascript:TF_RateThumb(<?php echo $p_id; ?>,<?php echo $f_id; ?>,1,'[B]div_MoviePicRate&#39[/B];);">

[/CODE]
here main problem is , my having having more number of records on same div name....how can i create dynamic div with different names....

javascript code..

[CODE] function TF_RateThumb(MasterPicID,PicID,RateVal,divObj)
{
/
showHintPoll('picturerate.php?cid='+MasterPicID+'&pid='+PicID+'&rate='+RateVal+'&',divObj,'-1');
}[/CODE]

hi frnds,

i m using [B]substr[/B] for same like in english font.but, now i m using [B]unicode(telugu,hindi)[/B]...i m not getting wat i want(no.of letters)...also some letters are missing in a string..like this(హమీద్* అన్సా�)...

plz give some suggesions wat i need to do....

hi frnds,

i m new to ajax...i m using the below javascript code. here the functionality is working good. but the page(specific div) takes some time for loading. so, i need to put some loading bar(just 4 indication)...

plz check the below code and add the onload funtion..

[CODE]
jQuery(document).ready(function() {
jQuery('.postTabs_divs').hide();
jQuery('.postTabs_currdiv').show();
jQuery('.postTabsLinks').each(function() {
jQuery(this).click(function() {
//alert(jQuery(this).attr('id'));
var info = jQuery(this).attr('id').split('
');
postTabs_show(info[1], info[0]);
});
});
});

function postTabs_show(tab,post){

    jQuery('.postTabs_divs').each(function() {
        jQuery(this).hide();
    });
    jQuery('#postTabs_ul_'+post + ' li').each(function() {
        jQuery(this).removeClass('postTabs_curr');
    });
    jQuery('#postTabs_li_'+tab+'_'+post).addClass('postTabs_curr');
    jQuery("#postTabs_"+tab+"_"+post).show();
    self.focus();

    //Cookies
    var expire = new Date();
    var today = new Date();
    expire.setTime(today.getTime() + 3600000*24);
    document.cookie = "postTabs_"+post+"="+tab+";expires="+expire.toGMTString();

}

function posTabsShowLinks(tab){
if (tab) window.status=tab;
else window.status="";
}

function postTabs_getCookie(name) {
var nameEQ = name + "=";
var ca = document.cookie.split(';');
for(var i=0;i < ca.length;i++) {
var c = ca[i];
while (c.charAt(0)==' ') c = c.substring(1,c.length);
if (c.indexOf(nameEQ) == 0) return c.substring(nameEQ.length,c.length);
}
return null;
}
[/CODE]
[CODE]<DIV class="Post" id="post-18644" style="padding-bottom: 0px;">
<DIV class="PostContent">

<UL id="postTabs_ul_18644" class="postTabs" style="display:none">
<LI id="postTabs_li_0_18644" class="postTabs_curr">  <A id="18644_0" onMouseOver="posTabsShowLinks(Gallery); return true;" onMouseOut="posTabsShowLinks();" class="postTabsLinks">Gallery</A></LI>
<LI id="postTabs_li_1_18644" class=""><A id="18644_1" onMouseOver="posTabsShowLinks(Trailers); return true;" onMouseOut="posTabsShowLinks();" class="postTabsLinks">Movie Trailers</A></LI>
<LI id="postTabs_li_2_18644" class=""><A id="18644_2" onMouseOver="posTabsShowLinks(Videos); return true;" onMouseOut="posTabsShowLinks();" class="postTabsLinks">Videos</A></LI>
</div></div>
</UL>[/CODE]

sry if there are any grammer mistakes..plz be patient and od needful

thanks
Saritha K

hi frnds,

here i m using AJAX code for posting variables..when i submit the form , then the GET variables are taking like this..

[QUOTE]hi%20h%20r%20i[/QUOTE]..

how can i solve this problem..
plz go through the code..

[CODE]
//javascript code...

function get(obj) {
var poststr = "name=" +escape(encodeURI( document.getElementById("name").value )) +
"&comments=" +escape( encodeURI( document.getElementById("comments").value )) +
"&id=" + encodeURI( document.getElementById("id").value )+
"&category=" +escape( encodeURI( document.getElementById("category").value ));
makePOSTRequest('comments.php', poststr);
}[/CODE]

[CODE]$name=stripslashes( mysql_real_escape_string($_POST['name']));
$comments=$_POST['comments'];
$id=$_POST['id'];
$category=mysql_real_escape_string($_POST['category']);[/CODE]

plz solve this one..

Thanks in advance..

hi frnds..

Here i m trying to attach the file from my webpage..it is working..but when i checking on the mail, the attachment is corrupted like this way..

[QUOTE]This is a multi-part message in MIME format.

--==Multipart_Boundary_x58df1ff5254b4812160783d14198c239x
Content-Type:text/html; charset="iso-8859-1"
Content-Transfer-Encoding: 7bit

--==Multipart_Boundary_x58df1ff5254b4812160783d14198c239x
Content-Type: application/doc;
name="resume/kishore.doc"
Content-Transfer-Encoding: base64

0M8R4KGxGuEAAAAAAAAAAAAAAAAAAAAAPgADAP7/CQAGAAAAAAAAAAAAAAACAAAAhAAAAAAAAAAA
EAAAhgAAAAEAAAD+////AAAAAIIAAACDAAAA////////////////////////////////////////
////////////////////////////////////////////////////////////////////////////
////////////////////////////////////////////////////////////////////////////
////////////////////////////////////////////////////////////////////////////
////////////////////////////////////////////////////////////////////////////
////////////////////////////////////////////////////////////////////////////
////////////////////////////////////////////////////////////////////////////
///////////////////////////////////////////////////////////////////////////s
pcEAcWAJBAAA8BK/AAAAAAAAEAAAAAAABgAAKCQAAA4AYmpianFQcVAAAAAAAAAAAAAAAAAAAAAA
AAAJBBYANWQAABM6AQATOgEAGhwAAAAAAAANAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAD//w8AAAAA
AAAAAAD//w8AAAAAAAAAAAD//w8AAAAAAAAAAAAAAAAAAAAAAKQAAAAAAKILAAAAAAAAogsAAKIL
AAAAAAAAogsAAAAAAACiCwAAAAAAAKILAAAAAAAAogsAABQAAAAAAAAAAAAAALYLAAAAAAAAXh8A
AAAAAABeHwAAAAAAAF4fAAA4AAAAlh8AAKQAAAA6IAAAVAAAALYLAAAAAAAAr3YAACICAACaIAAA
AAAAAJogAAAAAAAAmiAAAAAAAACaIAAAAAAAAJogAAAAAAAA+yEAAAAAAAD7IQAAAAAAAPshAAAA
AAAA8nIAAAIAAAD0cgAAAAAAAPRyAAAAAAAA9HIAAGQAAABYcwAAbAEAAMR0AABsAQAAMHYAACQA
AADReAAAaAIAADl7AAB4AAAAVHYAABUAAAAAAAAAAAAAAAAAAAAAAAAAogsAAAAAAAAKJQAAAAAA
AAAAAAAAAAAAAAAAAAAAAADZIQAAIgAAAPshAAAAAAAACiUAAAAAAAAKJQAAAAAAAFR2AAAAAAAA
AAAAAAAAAACiCwAAAAAAAKILAAAAAAAAmiAAAAAAAAAAAAAAAAAAAJogAAA/AQAAaXYAABYAAAAc
KQAAAAAAABwpAAAAAAAAHCkAAAAAAAAKJQAAlgEAAKILAAAAAAAAmiAAAAAAAACiCwAAAAAAAJog
AAAAAAAA8nIAAAAAAAAAAAAAAAAAABwpAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
AAAAAAAAAAAAAAAAAAAAAAAAAAAACiUAAAAAAADycgAAAAAAAAAAAAAAAAAAHCkAAAAAAAAcKQAA[/QUOTE]

this is my code..
[CODE]
$headers = array ('From' => $from,'To' => $to,'Subject' => $subject);
$semi_rand = md5(time());
$mime_boundary = "==Multipart_Boundary_x{$semi_rand}x";

$headers .= "\nMIME-Version: 1.0\n" .
"Content-Type: multipart/mixed;\n" .
" boundary=\"{$mime_boundary}\"";

$email_message .= "This is a multi-part message in MIME format.\n\n" .
"--{$mime_boundary}\n" .
"Content-Type:text/html; charset=\"iso-8859-1\"\n" .
"Content-Transfer-Encoding: 7bit\n\n" ;

/ First File /

$fileatt = "resume/"; // Path to the file
$fileatt_type = "application/doc"; // File Type
$fileatt_name =$fileatt.$resume; // Filename that will be used for the file as the attachment

$file = fopen($fileatt_name,'rb');
$data = fread($file,filesize($fileatt_name));
fclose($file);

$data = chunk_split(base64_encode($data));

$email_message .= "--{$mime_boundary}\n" .
"Content-Type: {$fileatt_type};\n" .
" name=\"{$fileatt_name}\"\n" .
//"Content-Disposition: attachment;\n" .
//" filename=\"{$fileatt_name}\"\n" .
"Content-Transfer-Encoding: base64\n\n" .
$data . "\n\n" .
"--{$mime_boundary}\n";
unset($data);
unset($file) ;
unset($fileatt);
unset($fileatt_type);
unset($fileatt_name); [/CODE]

plz change the code..

thanks in advance..
Sari

Hi ,

Till now i have been completed my projects on basic php,mysql,ajax..

now i have to do the project as like this..

[URL="

Hi frnds...

i m getting differnt BUG...

i m phasing problem with single quotes in IE only...

In IE also some times sinlgle quotes sentences working fine...but some times it doesn't display some sentences..but in page source it display correctly..

here are the 2 senteces are working in IE...

[QUOTE]Manmohan's daughter wins Infosys award ....Working(IE)[/QUOTE]

[QUOTE]10 Facts about World's Tallest Building...Not Working(IE)[/QUOTE]

anybody tell me..wats the reason..how can i resolve it...

dont forget Prob in only IE...

[QUOTE=rajabhaskar525;1085099]i dont know abt ajax. if you want to store like/ dislake values in db. use two buttons nd add two fields to db table increament those fields according to selection. i did rating for the products but i am not using ajaxs. see[URL="

Hi frnds...

i have been completed my project...now, i need to add the LIKE/DISLIKE for each & every article. How can i do that..i think its better to do in AJAX...but i dont know how? plz give me suggestion....

Is there any readymade scripts available on the net...i used only basic php..no CMS...no plugins...

Thanks in advance..
Sari K

[QUOTE=rajabhaskar525;1074425][CODE]<? $playlist= $_GET['playlist'];
$xmldoc = "playlist.xml";
//first make sure that no other file with that name exists
if(!file_exists($xmldoc)){
//try to open the file
if($fp=fopen($xmldoc,'w+')){
//write to the file
fwrite($fp,"<?xml version=\"1.0\" encoding=\"UTF-8\" ?>");
//$playlist="06.O.Manasa.mp3|06.O.Manasa.mp3";
$songs=explode('|',$playlist);
//header("Content-type: text/xml");
fwrite($fp,"<playlist version=\"1\" xmlns=\"http://xspf.org/ns/0/\">
<trackList>");
foreach ( $songs as $key=>$value)
{
$wxml="
<track>
<location>".$value."</location>
<title>MP3 Player!</title>
</track>";
fwrite($fp,$wxml);
}
fwrite($fp,"</trackList>
</playlist>");
}

}
else
{
if($fp=fopen($xmldoc,'w+')){
//write to the file
fwrite($fp,"<?xml version=\"1.0\" encoding=\"UTF-8\" ?>");
//$playlist="06.O.Manasa1.mp3|06.O.Manasa1.mp3";
$songs=explode('|',$playlist);
//header("Content-type: text/xml");
fwrite($fp,"<playlist version=\"1\" xmlns=\"http://xspf.org/ns/0/\">
<trackList>");
foreach ( $songs as $key=>$value)
{
$wxml="
<track>
<location>".$value."</location>
<title>MP3 Player!</title>
</track>";
fwrite($fp,$wxml);
}
fwrite($fp,"</trackList>
</playlist>");
}
}
?>[/CODE] try like this.[/QUOTE]

Hi Sir,

Finally i got ur point...

Thanks a lot...now my problem solved...

Thanks once again...

[QUOTE=rajabhaskar525;1074425][CODE]<? $playlist= $_GET['playlist'];
$xmldoc = "playlist.xml";
//first make sure that no other file with that name exists
if(!file_exists($xmldoc)){
//try to open the file
if($fp=fopen($xmldoc,'w+')){
//write to the file
fwrite($fp,"<?xml version=\"1.0\" encoding=\"UTF-8\" ?>");
//$playlist="06.O.Manasa.mp3|06.O.Manasa.mp3";
$songs=explode('|',$playlist);
//header("Content-type: text/xml");
fwrite($fp,"<playlist version=\"1\" xmlns=\"http://xspf.org/ns/0/\">
<trackList>");
foreach ( $songs as $key=>$value)
{
$wxml="
<track>
<location>".$value."</location>
<title>MP3 Player!</title>
</track>";
fwrite($fp,$wxml);
}
fwrite($fp,"</trackList>
</playlist>");
}

}
else
{
if($fp=fopen($xmldoc,'w+')){
//write to the file
fwrite($fp,"<?xml version=\"1.0\" encoding=\"UTF-8\" ?>");
//$playlist="06.O.Manasa1.mp3|06.O.Manasa1.mp3";
$songs=explode('|',$playlist);
//header("Content-type: text/xml");
fwrite($fp,"<playlist version=\"1\" xmlns=\"http://xspf.org/ns/0/\">
<trackList>");
foreach ( $songs as $key=>$value)
{
$wxml="
<track>
<location>".$value."</location>
<title>MP3 Player!</title>
</track>";
fwrite($fp,$wxml);
}
fwrite($fp,"</trackList>
</playlist>");
}
}
?>[/CODE] try like this.[/QUOTE]

Hi sir,

thanks 4 ur reply..its working fine...

but xml file is not override(updating)...it is same as first time creation of xml file...

[QUOTE=rajabhaskar525;1073589][CODE]<? $playlist= $_GET['playlist'];
$xmldoc = "playlist.xml";
//first make sure that no other file with that name exists
if(!file_exists($xmldoc)){
//try to open the file
if($fp=fopen($xmldoc,'w+')){
//write to the file
fwrite($fp,"<?xml version='1.0' ?>");
//$playlist="06.O.Manasa.mp3|06.O.Manasa.mp3";
$songs=explode('|',$playlist);
//header("Content-type: text/xml");
fwrite($fp,"<trackList>");
foreach ( $songs as $key=>$value)
{
$wxml="
<track>
<location>".$value."</location>
</track>";
fwrite($fp,$wxml);
}
fwrite($fp,"</trackList>");
}}
?>[/CODE] try like this.[/QUOTE]

hi sir...

sorry 4 the previous post..
here it is working fine..but i m getting another problem...

by using the above code..i m getting the below result...
[CODE] <?xml version="1.0" ?>

  • <trackList>
  • <track>
    <location>demo2.mp3</location>
    </track>
    </trackList>[/CODE]

but i want to add the play list to the same code...i want the below output...

[CODE] <?xml version="1.0" encoding="UTF-8" ?>

  • <playlist version="1" xmlns="http://xspf.org/ns/0/">
  • <trackList>
  • <track>
    <location>demo2.mp3</location>

    </track>
    </trackList>
    </playlist>[/CODE]

plz reply with patience...

[QUOTE=rajabhaskar525;1073589][CODE]<? $playlist= $_GET['playlist'];
$xmldoc = "playlist.xml";
//first make sure that no other file with that name exists
if(!file_exists($xmldoc)){
//try to open the file
if($fp=fopen($xmldoc,'w+')){
//write to the file
fwrite($fp,"<?xml version='1.0' ?>");
//$playlist="06.O.Manasa.mp3|06.O.Manasa.mp3";
$songs=explode('|',$playlist);
//header("Content-type: text/xml");
fwrite($fp,"<trackList>");
foreach ( $songs as $key=>$value)
{
$wxml="
<track>
<location>".$value."</location>
</track>";
fwrite($fp,$wxml);
}
fwrite($fp,"</trackList>");
}}
?>[/CODE] try like this.[/QUOTE]

Hi ..

this is working fine....
here i m getting another problem...
one user creating the xml file in the web, at the same time another user trying to create the xml file.it ll not override the previous xml file.....so, it should be availble for multiple users...

i think u r all got my point..plz reply with patience...

Thanks in advance..