User Profile

Collapse

Profile Sidebar

Collapse
jyaseen
jyaseen
Last Activity: Jan 16 '11, 11:11 AM
Joined: Feb 3 '10
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • jyaseen
    replied to Error in Downloading the text file
    in PHP
    below is the code executing while pressing the button 'btn_export'
    output of this script should be - only the selected email ids to download to text file output.txt
    can you please check any mistake in this code.?
    Code:
    if(isset($_REQUEST[btn_export])){  
    	$select_group = $_REQUEST[select_group]; // select_group is a list box to select the choice 
    	if($select_group == 1){
    		$qry_contacts = "select eml_id from
    ...
    See more | Go to post
    Last edited by Atli; Mar 6 '10, 07:33 PM. Reason: Use [code] tags when posting code!

    Leave a comment:


  • jyaseen
    replied to Error in Downloading the text file
    in PHP
    can you give a detailed replay , I don't understand what you mean by 'wrapping the download script in HTML'...
    See more | Go to post

    Leave a comment:


  • jyaseen
    replied to Error in Downloading the text file
    in PHP
    Below is the output of my text file - output.txt

    user1@exampl.co m,user2@example .com
    I expect only above email ids, but below script also it displays...

    Code:
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html 
    
    xmlns="http://www.w3.org/1999/xhtml">
    <head>
    <meta
    ...
    See more | Go to post
    Last edited by Atli; Mar 4 '10, 01:56 PM. Reason: Added [code] tags.

    Leave a comment:


  • jyaseen
    replied to Error in Downloading the text file
    in PHP
    Can you help me how to attach a text file with this...
    See more | Go to post

    Leave a comment:


  • jyaseen
    started a topic Error in Downloading the text file
    in PHP

    Error in Downloading the text file

    I used the follwing code to download the text file from my server location.

    my php file to read the following code name is contacts.php
    it is downloading the text file but , this text file includes the script of contacts.php too
    Code:
    $select_group = $_REQUEST[select_group];
    /*echo "file name ".	$select_file = $_FILES['frm_file']['name'];*/
    	if($select_group == 1){
    		$qry_contacts = "select
    ...
    See more | Go to post

  • jyaseen
    replied to Validate Multiple E-mail ids
    in PHP
    Yes I try this like below , my input E-mail id is

    Code:
    $email =  '"USER1" <user1@example.com>,"USER2" <user2@example.com>,
     "User 3" <user3@example.com>, "User 4" <user4@example.com>, ";
    	
    	
    	$find = array('"Yunus Mecheri"','"unaise hameed"');
    
    	
    	$arr = str_replace($find," ",$email,$i);
    ...
    See more | Go to post
    Last edited by Atli; Mar 4 '10, 11:05 AM. Reason: Added [code] tags.

    Leave a comment:


  • jyaseen
    replied to Multiple e-mail id checking . ?
    good work , thank you I will check it and come back..
    See more | Go to post

    Leave a comment:


  • jyaseen
    replied to Multiple e-mail id checking . ?
    Now it is working, but my question is -> E-mail ids like below will accept in gmail or other email website. can I do like that.
    abidhudavi@gmai l.com>, <naseehjasi@gma il.com>, "unaise hameed" <unaise2u@gmail .com>, "Yunus Mecheri" <YunusMecheri@g mail.com>

    your code not validating if i put an email id like this . "Yunus Mecheri" <YunusMecheri@g mail.com> . I mean it should...
    See more | Go to post

    Leave a comment:


  • jyaseen
    replied to Multiple e-mail id checking . ?
    Now it says emailFlag not defined ...
    See more | Go to post

    Leave a comment:


  • jyaseen
    replied to Multiple e-mail id checking . ?
    I did not understand how the below coding works
    /^[a-zA-Z0-9_\.\-])+\@(([a-zA-Z0-9\-])+\.)+([a-zA-Z0-9]{2,4})+$/.test(emailArr[i])
    this line gives the error unmatched ) in regular expression
    See more | Go to post

    Leave a comment:


  • jyaseen
    replied to Multiple e-mail id checking . ?
    I removed return from code ,now it says unmatched ) in regular expression
    See more | Go to post

    Leave a comment:


  • jyaseen
    replied to Multiple e-mail id checking . ?
    I try this code, with one textbox and submit button. butthere are mistakes in your code.

    1) var result = return /^([a-zA-Z0-9_\.\-])+\@(([a-zA-Z0-9\-])+\.)+([a-zA-Z0-9]{2,4})+$/.test(emailArr[i]);
    in the above line it gives the Syntax error.

    2) if(emailFlag==f alse)
    the line emailFlag it says it is not declared.
    so can you clear this ?
    thank you for your replay
    See more | Go to post

    Leave a comment:


  • jyaseen
    started a topic Validate Multiple E-mail ids
    in PHP

    Validate Multiple E-mail ids

    if i insert multiple e-mail id in To textbox like below , how can i validate the email ids.
    <user1@example. com>, <user1@example. com>, "User 3" <user3@example. com>, "User 4" <user4@example. com>,

    in google if we insert ids like above or comma separated , it will accept . anybody know the coding to validate this in PHP
    See more | Go to post
    Last edited by Atli; Feb 16 '10, 03:50 PM. Reason: Replaced real email addresses with example values.

  • jyaseen
    started a topic Multiple e-mail id checking . ?

    Multiple e-mail id checking . ?

    if i insert multiple e-mail id in To textbox like below , how can i validate the email ids.
    <abidhudavi@gma il.com>, <naseehjasi@gma il.com>, "unaise hameed" <unaise2u@gmail .com>, "Yunus Mecheri" <YunusMecheri@g mail.com>,

    in google if we insert ids like above or comma separated , it will accept . anybody know the coding to validate this. in Javascript or PHP
    See more | Go to post

  • jyaseen
    started a topic execute php script in crone job
    in PHP

    execute php script in crone job

    How can I run a .php file in cronejob . this .php script file include database conectivity too . is it possible to use Mail function in this script .

    I am using the server bluehost.com . I am totally new to Cronejob . so give me a detailed replay.

    Advance thanks for the replay...
    See more | Go to post

  • jyaseen
    replied to stop listing of directory using url
    in PHP
    I am totally new to .htaccess , I did not understand what you wrote above , where I have to put this code....
    See more | Go to post

    Leave a comment:


  • jyaseen
    replied to stop listing of directory using url
    in PHP
    sorry, my dear it was my mistake, now it is working....
    See more | Go to post

    Leave a comment:


  • jyaseen
    replied to stop listing of directory using url
    in PHP
    I add index.php file in my all directory including images, but now it is not displaying images in website.
    even after i delete all index.php file , still it is not working
    See more | Go to post

    Leave a comment:


  • jyaseen
    replied to stop listing of directory using url
    in PHP
    Thank you for your reply,
    Here I know how to add index.html file.
    but I don't know how to use .htaccess file . if you don't mind can you explain how to use it....
    See more | Go to post

    Leave a comment:


  • jyaseen
    started a topic stop listing of directory using url
    in PHP

    stop listing of directory using url

    How can I stop the web visitors ,if they are trying to display the folder content ,using URL
    See more | Go to post
No activity results to display
Show More
Working...