User Profile

Collapse

Profile Sidebar

Collapse
realin
realin
Last Activity: Jan 25 '12, 12:20 PM
Joined: Feb 16 '07
Location: India
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • realin
    replied to Form data to email
    in PHP
    What server are you using, are you trying to send email from localhost.
    Just a note remove your email address from the above code. You might get lotsa spam emails.
    See more | Go to post

    Leave a comment:


  • realin
    replied to How do I access my script from another site ?
    in PHP
    That should work for you .

    http://www.digimantra.com/technology...sing-curl-php/

    You can pass the query string in the URL as well.

    Thanks
    Realin !...
    See more | Go to post

    Leave a comment:


  • thanks a lot guys..
    will try and revert..
    See more | Go to post

    Leave a comment:


  • Of course generating JSON is the part of problem and that can be done using json_encode() method of php. But how do i transfer it to client side and then use json to sort the divs based on div ids or may be anyother sorting element. As if now i simply want to display this array on a HTML page, may be using JSON.

    cheers !!
    Realin !
    See more | Go to post

    Leave a comment:


  • realin
    started a topic display data with php and then sort with JSON

    display data with php and then sort with JSON

    hiya guys,

    Its been long i came here to discuss my problems. Hoep everything is same and i am gonna get quick reply :D

    Well i have certain static data which i need to display using FastTemplate and then i want to use JSON to sort that data on the client side.

    I wish i could do it with simple ajax, but i have to do it using json only as it has to be client side sorting for performance issues. For example...
    See more | Go to post

  • Import address book/contacts from various Mail Services

    Hey guys,

    First of all, i am really n00b if you talk about ruby and rails, but i guess it is so comfort learning this language that i find myself doing some hell lotsa complicated stuff in just fraction of seconds, for eg streamlined,sca ffold plugins

    Well, i want you guys to help me importing the contact from address books of yahoo,gmail, hotmail etc.

    How is it possible to do the same ?
    I understand...
    See more | Go to post

  • realin
    replied to Reading 5MB xml with python
    hiya

    sorry for late update, was outta town actually. I had to use urllib for doing the same, but google app engine wont allow me to download some bulk size files, so i had to drop the idea of importing data thru XML.

    However, i found a nice utility called bulkuploader using CSV files. I converted XMLs into CSV using php and then using bulkuploader utility, i just pushed the data in Datastore.

    thanks...
    See more | Go to post

    Leave a comment:


  • realin
    replied to Reading 5MB xml with python
    hiya all,

    I m unable to get a code to fetch XML from a URL link using SAX.
    Can anyone please help me in that .. its really urgent

    please
    See more | Go to post

    Leave a comment:


  • realin
    replied to Reading 5MB xml with python
    hiya laharl,

    thanks for the quick reply.. I am using DOM, i will give a try to SAX. Time is no constraint, so what do you suggest now ?

    I am not a die hard fan of threads though, i want my code to be much more simpler, if you think SAX can do it without having to use thread, then i would be more than happy :)

    waiting for ur reply
    thanks :)...
    See more | Go to post

    Leave a comment:


  • realin
    started a topic Reading 5MB xml with python

    Reading 5MB xml with python

    hiya all,

    However, the title says it all but still i want to explain it further. I am trying to fetch a xml file which is lying at different size. The file size is like >5MB. So as soon as i write my code, the browser keeps on waiting for the response and in the end it freezes or displays time out.
    What can be the work around for this ?
    I am using google's app engine, so not exactly core python. And i would like...
    See more | Go to post

  • realin
    replied to generate list of strings
    i could get this result

    Code:
    '[10, 0, 5, 1]'
    outta this code 
    >>> str(random.sample(range(0,11),4))
    i know that may be different, but this is what i learnt today cause i just started with python :)

    cheers !!
    See more | Go to post

    Leave a comment:


  • realin
    replied to Autofill
    in PHP
    hiya,

    You gotta use AJAX for that, either way you can use JQUERY for the same, its an API based on ajax, lets u do things faster and pretty neatly

    cheers !!...
    See more | Go to post

    Leave a comment:


  • realin
    replied to PHP exe
    in PHP
    you can make EXE using PHP GTK ..

    That is used for making Desktop applications. But securing your source code in web apps is not possible, especially when you are distributing it under GPL. I mean its open source. The only way is, host it on ur server and sell the stuff or have some license etc etc
    See more | Go to post

    Leave a comment:


  • realin
    replied to How to read HTTP request using php
    in PHP
    Open httpd.conf file in your text editor.
    Find this line:
    Listen 80

    change it to:
    Listen 85

    Save and restart Apache.
    Always restart Apache after making changes to a conf file and don't foget to make a backup before making any edits.

    now things would work using http://locahost:85

    cheers !!...
    See more | Go to post

    Leave a comment:


  • realin
    replied to need help about urlrewrite
    No replies :O
    do i need to post this in PHP forum ? But then its gonna be a wrong section, please help me, its urgent
    See more | Go to post

    Leave a comment:


  • realin
    replied to need help about urlrewrite
    i always wanted to ask the same question, but in a different swing ..

    I want to know if i have a site with bunch of pages having URL pattern like
    Code:
    http://mypage.php?id=90&act=register
    then writing a code(given below) in .htaccess file would turn my links into
    http://mypage.php/90/register automatically ?

    If no, then how do wordpress/drupal/joomla do it ?
    If yes, then why isn't my .htaccess...
    See more | Go to post

    Leave a comment:


  • realin
    replied to print "<" symbol
    in PHP
    Here you go..

    [PHP]
    echo "&lt;first" ;
    echo htmlspecialchar s("<first");[/PHP]

    cheers !!...
    See more | Go to post

    Leave a comment:


  • realin
    replied to Getting country from IP address
    in PHP
    hey this lil piece of code may help you, if i understood your problem correctly.

    [PHP]<?php

    $ip="50.160.190 .150";
    $str=explode(". ",$ip);
    echo "This will always give you the number that is stored in $ip after the second dot and before the third dot ".$str[2];
    ?>[/PHP]

    cheers !!
    See more | Go to post

    Leave a comment:


  • realin
    replied to Hi, how to overload construct in php
    in PHP
    in PHP5 you can define constructor using

    [PHP]function __construct()[/PHP]

    this goes with the base as well as sub classes. You should keep in mind, that parent constructors are not automatically called when making an instance of a child class(unlike java).

    You can find this thread relevant to parent/child constructor discussion, Here

    It would be good/easy if you paste you code in here...
    See more | Go to post

    Leave a comment:


  • mate this one is simple..
    say if you have page.php where u are manipulating the submitted values, then on page. php

    [PHP]
    /* here is the code where you need to write data manipulation or whatver u want
    *
    *
    *
    */

    //then after the data is submitted or you are done with what u wanted you can do

    unset($_POST);
    //or you can redirect using

    header("Locatio n:http://to-a-new-location.com");...
    See more | Go to post

    Leave a comment:

No activity results to display
Show More
Working...