User Profile

Collapse

Profile Sidebar

Collapse
dinesh1985singh
dinesh1985singh
Last Activity: Sep 19 '11, 09:28 AM
Joined: Apr 30 '10
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • dinesh1985singh
    started a topic need help in 301 redirect through htaccess
    in PHP

    need help in 301 redirect through htaccess

    Hello Everyone,

    I have a site on which I want to redirect all url containing the word /gallery/ to home page. e.g
    http://www.medvoy.com/gallery/38/HCBOR.JPG.php to http://www.medvoy.com/

    For this I used all possible rules that were supposed to work, but somehow its not working , on the otherhand the rule

    Redirect 301 /test/abc/xyz / works well and redirects to home page but the same rule...
    See more | Go to post

  • Thanks Dipen,

    Its not my answer,we need to set these variables in php.ini or in a file on which we are going to using mail() function by ini_set() function like:

    ini_set("SMTP", "mail.abc.com") ;
    ini_set("smtp_p ort","25");
    ini_set('sendma il_from', 'info@abc.com') ;

    Just these few lines of code done my job.
    Anyways I get to know new thing from...
    See more | Go to post

    Leave a comment:


  • dinesh1985singh
    started a topic mail function is not sending mail in php
    in PHP

    mail function is not sending mail in php

    Hi all,

    I am using php mail function to send simple mail , but the mail function is giving me the error following error :

    Warning: mail() [function.mail]: "sendmail_f rom" not set in php.ini or custom "From:" header missing in D:\Inetpub\head trixtraining\re gister.php on line 4234
    mail not send

    when I tried to see the mail setting by phpinfo() function I get the following values...
    See more | Go to post

  • dinesh1985singh
    started a topic Redirect URL permanently with rewrite

    Redirect URL permanently with rewrite

    Hello Everyone,

    I am trying to do url rewriting on my site , I did it correctally and my home.html is executing well fetching the content of corresponding home.php,

    I am using following lines in .htaccess files :

    RewriteEngine on

    RewriteRule ^home.html$ index.php


    My issues is that after this url rewrite rule how do i restict the direct access to home.php file ....
    See more | Go to post

  • difference between layout and views in cake php

    Hello everyone,

    I am little bit confused with these two things layout and views in cake php as I am totally new to this cake php.
    Could any explain me it please.

    Moreover how could I set description and meta keywords in cake 1.2.

    Thanks
    See more | Go to post

  • dinesh1985singh
    started a topic Tweet button count not working correctly
    in PHP

    Tweet button count not working correctly

    Hello Everyone,

    I have a site http://www.vaporking.c om/vapor-king-eliquid-p-43.html on which I implemented a tweet button with count property.
    Whenever I tweet, tweet count incremented , but on page refresh it restore its initial value back. After few minutes latter (around 10-15 minutes) , I don't know why the tweet counts shows the exact(increment ed) value.But the main issue is that sometimes it(tweet count value) doesn't...
    See more | Go to post

  • dinesh1985singh
    replied to Embed tag not supported
    I agree with you that there is no embed tag in html 4.0 and xhtml 1.0 , but even though we need to use embed tag for better browser compatibility, some older version browsers does not support object element thats why I am asking for some alternative. I have to use both embed and object element for browser compatibility moreover I need that document to be valid as well .
    See more | Go to post

    Leave a comment:


  • dinesh1985singh
    started a topic url rewriting
    in PHP

    url rewriting

    Hello everyone,

    I want to do url rewriting in php , for this i created a .htacces file in the root directory.
    I used the following code:
    Options +FollowSymLinks
    RewriteEngine on
    RewriteRule ^phpInfo\.html$ phpInfo.php
    Now the issue is that both the phpInfo.html and phpInfo.php are opening up in the browser without any problem. But I want to opening up only phpInfo.html and if someone try to open...
    See more | Go to post

  • dinesh1985singh
    started a topic Embed tag not supported

    Embed tag not supported

    Hello everybody,

    I have to validate a site. Doctype for our site isxhtml1.0
    . As xhtml 1.0 does not support embed tag, on validation it throws an undefined "embed" element error . So how could I resolve it .
    Please help me out in this regard. As soon as possibly. I need to fix it urgently.

    Thanks
    See more | Go to post

  • dinesh1985singh
    replied to Z index not working in ie6
    Thank you Aimee for your quick response.
    See more | Go to post

    Leave a comment:


  • dinesh1985singh
    started a topic Z index not working in ie6

    Z index not working in ie6

    Hi everyone,
    I am trying to create a simple overlay , and my code is as follows:

    <div id="popUp" style="display: block; background-color:#ffffff; width:400px;hei ght:180px;margi n-left:160px;marg in-top:25px;
    border:2px solid #000000;border-style:solid;pos ition:fixed; z-index: 9999;">

    <span style="margin-left: 383px;padding-top:15px;"><a href="javascrip t:void(0);"...
    See more | Go to post

  • dinesh1985singh
    replied to preg_match not working
    in PHP
    Thank you dgreenhouse for your quick reply. I get the thing now.
    Thank you
    See more | Go to post

    Leave a comment:


  • dinesh1985singh
    started a topic preg_match not working
    in PHP

    preg_match not working

    Hello everyone,

    I am trying to use preg_match for replacing a string.
    I am using following code

    Code:
    $regExp = "/^[i]$/";
    $match = "hii this";
    $result = preg_replace($regExp,"s",$match);
    echo $result ; // results into hii this
    The preg_replace is not replacing the matching character.
    But if i use $regExp = "/[i]/"; instead of $regExp...
    See more | Go to post
    Last edited by Atli; Mar 27 '11, 03:51 PM. Reason: Please use [code] tags when posting code.

  • dinesh1985singh
    started a topic How to get zip code from IP Address?
    in PHP

    How to get zip code from IP Address?

    Hi all,

    I want to get the zip code from an ip address of the client machine.I am using http://ipinfodb.com api to get my task done. I am getting almost every thing except zip code,Gmt offset,and timezone.
    You can check it here :http://api.ipinfodb.co m/v2/ip_query.php?ke y=7e3d3f24491b2 1b01d91fbeddd69 54c4bd917189e54 6717b5bf8e5f05a b67eeb&ip=121.2 45.223.73&timez one=true

    on this url I am getting every thing...
    See more | Go to post

  • Many Thanks for quick reply.
    Your replied response is enough for me to get my answer.


    Thank you very much.
    See more | Go to post

    Leave a comment:


  • How to get the country, state, city, zipcode and timezone in PHP from the IP address?

    How do I get the country, state, city, zip code and timezone in PHP from the IP address?

    I searched it out on google and got lots of link but mostally links I got were paid one, I am searching for free one links whose accuracy would be best.
    See more | Go to post
    Last edited by Niheel; Jan 25 '11, 01:44 PM. Reason: Please use proper grammar and spelling, next time your question could be deleted.

  • dinesh1985singh
    replied to How to open up a pop up window
    in PHP
    yes Kovik, it was pop Up blocker that had been blocked.
    See more | Go to post

    Leave a comment:


  • dinesh1985singh
    replied to How to open up a pop up window
    in PHP
    Thank you Kovik, Nice explanation.
    My Issues has been fixed up now.

    Thank you
    See more | Go to post

    Leave a comment:


  • dinesh1985singh
    replied to How to open up a pop up window
    in PHP
    hi kovik,

    here is my code:

    if(jQuery("#pro fileTab #twitterid").va l() != "")
    {
    alert(jQuery("# profileTab #twitterid").va l() ); jQuery.ajax({
    url: "/signUp/twit",
    type: "POST",
    // data: "ajax=true&twit terid=" + jQuery("#profil eTab #twitterid").va l()",
    ...
    See more | Go to post

    Leave a comment:


  • dinesh1985singh
    replied to How to open up a pop up window
    in PHP
    Thank you kovik, And sorry to post this question on this forum but I just asked it because I am using jquery with php.

    Thanks one more time.
    See more | Go to post

    Leave a comment:

No activity results to display
Show More
Working...