Jump to content

jaikar

Members
  • Posts

    136
  • Joined

  • Last visited

    Never

Posts posted by jaikar

  1. Hi !..

    i am confused about how google stores the ratings for the anonymous users, i made a rating (gave 3 stars) for a google video in IE, then changed the IP address, reloaded the browser, still i saw 3 stars for that video. then thought they must have set cookies, so i went to that video from Mozilla, still i saw 3 stars for the video. how google identifies that the rating is done from my PC, i am really confused?. anyone have idea ?

     

    Thanks !

     

    Jaikar

  2. Hi

     

    can i confidently believe that a session id will be unique for all the users even if there are lakhs of  users ?

     

    is there any possiblility that the session id can be same for 2 records ?..

     

    i want to send an email to the user to verify their account after their registration. so i am sending the session id in the get and once they click that link it will take to a page where it will compare the session id with the one that is stored in the database.. is this the correct way?

    please advise

     

    Thanks

  3. below is the code i used.. hope it will help..

     

    function r ($image,$size,$dir,$ext_name="", $tocopy=0, $todir='')
    {		
    
    
    	$path_to_file = $dir;
    	$image=$path_to_file.$image;
    
    	if(file_exists($image)) {
    		list($imgWidth,$imgHeight,$type,$imgAttr)=getimagesize($image);
    		$tempno = max($imgWidth, $imgHeight);
    		if($tempno > ($size - 1)){
    			$proportion = ($size / $tempno);
    			$width = round($imgWidth * $proportion);
    			$height = round($imgHeight * $proportion);
    		} else {
    			$width = $imgWidth;
    			$height = $imgHeight;
    		}
    
    		$ext=getFileExtension($image);
    		$ext=".".$ext;
    		$image=ereg_replace($ext, "", $image);
    		resize($width,$height,"$image"."$ext_name");
    	}
    }
    
    
    

  4. Hi

     

    Thankyou about the info, i guessed it would be from apache but i done know the key word to search for. thankyou for the keyword.. (mod_rewrite).

     

    also do you have idea about why many cms systems and blog programs are so much twisted.. i too write customised cms having better functionalities, but mine is very much straight forward. i include the header and footer and in between i code for each page.. but i tried to understand the cms made simple program and i am not able to understand fully which is actually easy compared to joomla. they are so twisted and complicated. i dont know whats the difference between what i write and what they do while both have almost same funcitons. adding / filtering content and uploading etc..

     

    can you please explain why ?

     

    Thanks

     

  5. Hi,

     

    any one have any idea about wordpress mechanism that, there is one URL shown in the address bar and thats not physically present in the server. very confused about how these things are working, also joomla has same kind of mechanism.

     

    can any one please explain about this

     

    Thanks in advance

     

    ~J

  6. may be  you can use the following procedure

     

    get the PHPMailer, search in google to download it.

     

    put the files in a folder,

    create a file, say emailme.php, for mailing the contents

    inlcude the class.phpmailer.php on the first line

     

    instantiate the object like this

     

      $mail = new PHPMailer();

      $mail->IsHTML(true);

      $mail->IsSMTP(); // telling the class to use SMTP

      $mail->Host = "localhost"; // SMTP server

      $mail->From = "from email address here";

      $mail->FromName = 'display name here';

     

    you can also copy the above code to the file after the inlcude code.

     

    store the values of the form using the Post methos to the variable or the array

     

     

    assign the content like this

     

    $mail->Body = 'content of the mail'

    then

    $mail->Subject = 'Subect here'

     

    then .. you are finished

     

    $mail->Send();

     

    upto you to handle the error

     

    this is the perfect mailer ever !!

     

    ~J

     

  7. i dont think this will affect the server limits, because to my knowledge the Max file size on the form should b used when the server has limts like 100 and if you manualy want to restrict the file size to 10 or 20 you can use that .....

     

    i am looking for the function in php like, set_interval someting like this which will replace the value in the php.ini file. bcause the file upload is restricted in the php.ini file so, is there a function to change this limit and increate the upload size ?

     

    Thanks

    ~J

  8.  

    the structure does not depends on the server type, it depends on the hosting company, all the other are same, some company has www as the root, some have public_html, some have html, some have your account name.... if you are not sure about the directory, its always better to contact the technical support, they will definitly help you soon..

     

    ~J

  9. Simple !

     

    get the PHPMailer, search in google to download it.

     

    put the files in a folder,

    create a file, say emailme.php, for mailing the contents

    inlcude the class.phpmailer.php on the first line

     

    instantiate the object like this

     

    $mail = new PHPMailer();

    $mail->IsHTML(true);

    $mail->IsSMTP(); // telling the class to use SMTP

    $mail->Host = "localhost"; // SMTP server

    $mail->From = "the persons email address here, this is the person who fills the form";

    $mail->FromName = 'his display name'; // the username, this you can get from the $_POST['firstname'] depending on how you design the form';

     

    you can also copy the above code to the file after the inlcude code.

     

    store the values of the form using the Post methos to the variable or the array

     

    create an html page, say content.html, you need not save this page also, are you using dreamweaver  or frontpage ?.. what ever it is, create the format of how you want the email to be.

    place the variable name or the array name on the area where you want to display the value of the form

     

    example

    First name  -  <?=$fname?>  or if its array First name <?=$arr_vars[0]?>

     

    Last neme  <?=lname?>

     

    etcetra....

     

    after you finished designing the page, select all, then copy it

     

    come to the emaime.php

    create a variable, say $body,

    $body = '( copy thecontents here)'  within the quotes,

     

    make sure the php variables are concatenated properly.

     

    assign the $boby to

    $mail->Body = $body

    then

    $mail->Subject = 'Subect here'

     

    then .. you are finished

     

    $mail->Send();

     

    upto you to handle the error

     

    ............................................................

     

    this will help you only if you know something about php and already worked with php...

     

    ~J

     

     

  10.  

    ok .. better pass the $page as a parameter.. that is what i said before also, like the way you pass $cat, pass the $page also, it should work ... one more thing also you can try ... if($page != 1) $page = 2.. put this inside the function ... it MUST MUST work !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!......  clealy the value of $page is not coming inside the function, currently you are using global and get the val of page, better pass the $page as a parameter parameter parameter !!!.... okidoki ?...

     

     

    its almost over man ... u know the problem now.. bring the val of $page into the function some how ....

  11.  

    ok ... now try the following..

    change this to  $page  = intval(@$_GET['page']);      $page  = $_GET['page'];..

     

    make sure  you see            http://someurl.php?page=2  on the address bar, ..  page=2 is important..

     

    echo the $page just after $page  = $_GET['page']; check if you see $page echoed as 2 on the second page

     

    still not getting.... try to pass the $page as a parameter  like navigation($catnav, $page) .... and take the value of the $page from the passed parameter..

  12.  

    ok.. for some reason this condition  } elseif ($page != $total && $total != 0) {  is not satisfying when $page=2.... try to change it to this for time being just to test    } elseif ($page == 2) { 

     

    check if you are getting the next link on the page 2, if it comes.... then i really dont have any idea about this... if it does not come, then that means $page is not incrementing.... there must be some problem in declaration...

     

    you said you see the Previous.. what page number you are seeing when you rollover on it on the page 2 .. it should be 1 .. try to pass the $page as a parameter to the function and check if that helps...

     

     

     

     

  13.  

    so weired really !...

     

    you mean.. previous works fine in all the pages, and the next does not appear in the even pages..

     

    echo something inside  } elseif ($page != $total && $total != 0) { ... this condition.. echo the $page, if nothing happens restart Apache !!.. not sure what to be done, but there must be something else making this probs...

     

     

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.