[PHP] how i assign a js variable to a php variable
hello guys, i'm new here in this list. guys i need a help. i can't assign a js variable value to a php variable. how can i do this? -- Regards, Saeed Ahmed Rajshahi, Bangladesh Blog: http://saeed05.wordpress.com -- Follow Me Linkedin <http://www.linkedin.com/in/sas05>Twitter<http://twitter.com/saeed05>
Re: [PHP] Ckeckbox list populated from database
you can do that here is the example, > -- Regards, Saeed Ahmed Rajshahi, Bangladesh Blog: http://saeed05.wordpress.com -- Follow Me Linkedin <http://www.linkedin.com/in/sas05>Twitter<http://twitter.com/saeed05>
[PHP] Happy New Year
hi all my friends, Happy New Year... from BANGLADESH regards, saeed
[PHP] Got a packet bigger than 'max_allowed_packet' bytes
i have write a script which search few element from a database. I use a text file as input. input file contains these kind of data clubhouseforkids.com cairouniversity.com 501c3nonprofit.com mrbling.com cellsocket.com this is the scripts for read the file data /**/ $file = fopen("files.txt", "r") or exit("Unable to open file!"); while(!feof($file)) { $data[] = stream_get_line($file, 100, "\n"); } fclose($file); // this script worked fine for small size of file. but if i use a large size like 900KB then its show "Got a packet bigger than 'max_allowed_packet' bytes" . where I'm doing wrong? please help me out there... - Regards Saeed Ahmed http://saeed05.wordpress.com -
[PHP] how to get the local time
hi friends, I'm trying to set local time in my php script. I was trying date and time function but its always show the server time not local time. i need help on this problem. how can i set the local time. i need sweden time zone - Regards Saeed Ahmed http://saeed05.wordpress.com -
[PHP] wiki api help needed with php
I'm trying to do build a system which is described below. "The user inputs a word. The system check if word exists at portuguese section of wiktionary. If true, get and show to user the word definiton. If false, sugest (displays) similar words, as in Wiktionary, with her links." I have done this http://troyee.com/example/sl_project_36/index.php using this api http://en.wiktionary.org/w/api.php?action=opensearch&search=api&format=xml&limit=1 *it is for english word. Now I stuck with two questions 1. Am I going to the right way? 2. how to handle with portuguese section of wiktionary. which api will use for this? I need your useful suggestions please. - Regards Saeed Ahmed http://saeed05.wordpress.com -
[PHP] collect string from string
hello friend, I have a string like below " ===Pronunciation=== * {{enPR|tē}}, {{IPA|/tiː/}}, {{SAMPA|/ti:/}} * {{audio|en-us-tea.ogg|Audio (US)}} * {{audio|En-uk-tea.ogg|Audio (UK)}} *: {{rhymes|iː}} * {{homophones|T|te|tee|ti}} # {{uncountable}} The dried leaves or buds of the [[tea plant]], ''[[w:Camellia sinensis|Camellia sinensis]]''. #: ''Go to the supermarket and buy some '''tea'''.'' # {{uncountable}} The drink made by [[infuse|infusing]] these dried leaves or buds in hot water. Usage notes In the [[United Kingdom]], [[Canada]], other English speaking [[Commonwealth]] countries, and in northern areas of the [[United States]], ''tea'' is assumed to mean [[hot]] tea and is usually served in a [[teapot]] with separate [[cup]]s, or sometimes served directly in cups such as for large groups or for [[takeout]]. In southern areas of the United States, ''tea'' is assumed to mean [[iced tea]] and is usually served with ice, either in a [[pitcher]] with separate [[glass]]es or directly in glasses. Strictly speaking, "tea" has been reserved for [[infusion]]s made from leaves of ''[[w:Camellia sinensis|Camellia sinensis]]''. Infusions made from other [[herb]]s such as [[rooibos]], [[mint]]{{,}} and [[chamomile]] are called [[tisane]]s. In recent years the word "tea" has been extended to include the herbal infusions. Synonyms * {{italbrac-colon|dried leaves of tea plant}} [[tea leaves]] * {{italbrac-colon|drink made by infusing parts of various other plants}} [[herb tea]], [[herbal tea]], [[infusion]], [[tisane]] Derived terms " now I want to collect only the string which are start with '#'. how can I do this? please suggest me. - Regards Saeed Ahmed http://saeed05.wordpress.com -
Re: [PHP] collect string from string
this is not working /^(\#.+)$/g I have tried the preg_match function - Regards Saeed Ahmed http://saeed05.wordpress.com - On Thu, Apr 22, 2010 at 11:39 PM, Ashley Sheridan wrote: > On Thu, 2010-04-22 at 23:41 +0600, saeed ahmed wrote: > > hello friend, > > I have a string like below > " > > ===Pronunciation=== > * {{enPR|tē}}, {{IPA|/tiː/}}, {{SAMPA|/ti:/}} > * {{audio|en-us-tea.ogg|Audio (US)}} > * {{audio|En-uk-tea.ogg|Audio (UK)}} > *: {{rhymes|iː}} > * {{homophones|T|te|tee|ti}} > > > # {{uncountable}} The dried leaves or buds of the [[tea plant]], > ''[[w:Camellia sinensis|Camellia sinensis]]''. > #: ''Go to the supermarket and buy some '''tea'''.'' > # {{uncountable}} The drink made by [[infuse|infusing]] these dried > leaves or buds in hot water. > Usage notes > In the [[United Kingdom]], [[Canada]], other English speaking > [[Commonwealth]] countries, and in northern areas of the [[United > States]], ''tea'' is assumed to mean [[hot]] tea and is usually served > in a [[teapot]] with separate [[cup]]s, or sometimes served directly > in cups such as for large groups or for [[takeout]]. > > In southern areas of the United States, ''tea'' is assumed to mean > [[iced tea]] and is usually served with ice, either in a [[pitcher]] > with separate [[glass]]es or directly in glasses. > > Strictly speaking, "tea" has been reserved for [[infusion]]s made from > leaves of ''[[w:Camellia sinensis|Camellia sinensis]]''. Infusions > made from other [[herb]]s such as [[rooibos]], [[mint]]{{,}} and > [[chamomile]] are called [[tisane]]s. In recent years the word "tea" > has been extended to include the herbal infusions. > > Synonyms > * {{italbrac-colon|dried leaves of tea plant}} [[tea leaves]] > * {{italbrac-colon|drink made by infusing parts of various other > plants}} [[herb tea]], [[herbal tea]], [[infusion]], [[tisane]] > > Derived terms > > " > > now I want to collect only the string which are start with '#'. how > can I do this? please suggest me. > > > - > Regards > Saeed Ahmedhttp://saeed05.wordpress.com > - > > > If the text is in a file, use file() to read the contents into an array and > then check the first character. > > Alternatively, if the text is in a string, you could use a regex to pull > out only matching lines. This is an untested regex, but it should do the > trick: > > /^(\#.+)$/g > > Thanks, > Ash > http://www.ashleysheridan.co.uk > > >
Re: [PHP] collect string from string
yes I have used preg_match_all and preg_match. now its working. thanks a lot guys - Regards Saeed Ahmed http://saeed05.wordpress.com - On Fri, Apr 23, 2010 at 4:40 AM, Ashley Sheridan wrote: > On Fri, 2010-04-23 at 02:38 +0600, saeed ahmed wrote: > > > this is not working > > /^(\#.+)$/g > > I have tried the preg_match function > > - > Regards > Saeed Ahmedhttp://saeed05.wordpress.com > - > > > On Thu, Apr 22, 2010 at 11:39 PM, Ashley Sheridan > > wrote: > > > On Thu, 2010-04-22 at 23:41 +0600, saeed ahmed wrote: > > > > hello friend, > > > > I have a string like below > > " > > > > ===Pronunciation=== > > * {{enPR|tē}}, {{IPA|/tiː/}}, {{SAMPA|/ti:/}} > > * {{audio|en-us-tea.ogg|Audio (US)}} > > * {{audio|En-uk-tea.ogg|Audio (UK)}} > > *: {{rhymes|iː}} > > * {{homophones|T|te|tee|ti}} > > > > > > # {{uncountable}} The dried leaves or buds of the [[tea plant]], > > ''[[w:Camellia sinensis|Camellia sinensis]]''. > > #: ''Go to the supermarket and buy some '''tea'''.'' > > # {{uncountable}} The drink made by [[infuse|infusing]] these dried > > leaves or buds in hot water. > > Usage notes > > In the [[United Kingdom]], [[Canada]], other English speaking > > [[Commonwealth]] countries, and in northern areas of the [[United > > States]], ''tea'' is assumed to mean [[hot]] tea and is usually served > > in a [[teapot]] with separate [[cup]]s, or sometimes served directly > > in cups such as for large groups or for [[takeout]]. > > > > In southern areas of the United States, ''tea'' is assumed to mean > > [[iced tea]] and is usually served with ice, either in a [[pitcher]] > > with separate [[glass]]es or directly in glasses. > > > > Strictly speaking, "tea" has been reserved for [[infusion]]s made from > > leaves of ''[[w:Camellia sinensis|Camellia sinensis]]''. Infusions > > made from other [[herb]]s such as [[rooibos]], [[mint]]{{,}} and > > [[chamomile]] are called [[tisane]]s. In recent years the word "tea" > > has been extended to include the herbal infusions. > > > > Synonyms > > * {{italbrac-colon|dried leaves of tea plant}} [[tea leaves]] > > * {{italbrac-colon|drink made by infusing parts of various other > > plants}} [[herb tea]], [[herbal tea]], [[infusion]], [[tisane]] > > > > Derived terms > > > > " > > > > now I want to collect only the string which are start with '#'. how > > can I do this? please suggest me. > > > > > > - > > Regards > > Saeed Ahmedhttp://saeed05.wordpress.com > > > - > > > > > > If the text is in a file, use file() to read the contents into an array and > > then check the first character. > > > > Alternatively, if the text is in a string, you could use a regex to pull > > out only matching lines. This is an untested regex, but it should do the > > trick: > > > > /^(\#.+)$/g > > > > Thanks, > > Ash > > http://www.ashleysheridan.co.uk > > > > > > > > > Do you have a bit more information other than 'not working'. Are you > receiving an error of some kind? I'm assuming your data is in a string > variable if you're using preg_match() yes? > > > Thanks, > Ash > http://www.ashleysheridan.co.uk > > >
[PHP] special character problem
hello friends, I have used preg_replace('/[^0-9a-zа\~...@\$\%\^\*\(\)\;\,\.\'\/\_]/i', ' ',$match); for remove the special characters. its work fine. but the problem I want to remove special characters from this kind of sentence /// #: "'''''Amor''' é fogo que arde sem se ver,'' #: ''é ferida que dói, e não se sente,'' #: ''é um contentamento descontente,'' #: ''é dor que desatina sem doer.''" #:: ''- Camões'' /// its remove all special character including é, ã, õ, which I do not want to. I want to remove special character except these three. please suggest me... - Regards Saeed Ahmed http://saeed05.wordpress.com -
[PHP] dompdf class problem
I extremely sorry, if my topic isn't related with this group. I apologizes for this. I'm trying to add page number on the pdf. I have try the below code. but couldn't get the page number at the pdf. where I'm doing wrong. please suggest me. '; $html .=' $font = Font_Metrics::get_font("verdana", "bold"); $dompdf->page_text(200, 16, "{PAGE_NUM} of {PAGE_COUNT}", $font, 10, array(0,0,0)); '; $html .= ''; $dompdf->load_html($html); $dompdf->render(); $dompdf->stream("sample.pdf"); ?> regards, saeed
[PHP] image thumbnail from blob data
hello friends, image store into database in a blob field, But when I'm trying to retrieve it from the database then its cause problems. if I'm trying header( "Content-type: image/jpeg") (if my image type is jpeg), then its working well. but when I'm trying to mixing up this with some HTML code then its not working. Ok I understand its not working because the header already sent by the browser. now suggest me what should I use there to retrieve the image from database? I have to mix the HTML code in my script. So is their any other way to do this without header? saeed ahmed http://saeed05.wordpress.com
[PHP] Encrypt and Decript email using PHP
hello friends, Is there a way to send an encrypted email from server-side PHP, and then decrypt it using an email client such as Outlook? regards saeed http://saeed05.wordpress.com
[PHP] which one is faster
$a = 'hey'; $b = 'done'; $c = $a.$b; $c = "$a$b"; which one is faster for echo $c.
[PHP] CGI PHP vs. FastCGI vs. mod_php vs. application server?
greeting all, As far as I know, there are different ways to write a PHP application: - CGI, ie. the usual way : some PHP code in web pages, and the PHP interpreter is loaded each time a PHP page is called - FastCGI : apparently, the interpreter is loaded at boot time; the application itself might also be compiled and loaded once - mod_php : same as FastCGI? - application server : the application is compiled and loaded once; the application can either have its own web server, or use a web server as front end, and only handle its own part Any tips much appreciated, thank you. -- Saeed Ahmed Junior Software engineer Codemate Ltd <http://www.codemate.com>. My Blog: saeedahmed.net
[PHP] starting php by asking basic questions
i want to learn php and i do not know much and my english is also limited.isthere anyone who can explain me php by most simple example,like explainig to a child,something like this:if you put "this" symbol or writing, in your php script,when someone open this page,will see this message"long time not see" . at the moment ,i am scared of terms used by professionals. thnks,for many this could a stupid but this is what i am facing. thanks.
[PHP] php sqlite
i want to start with php sqlite.which light weight versions should i download?i have win xp sp3.
[PHP] offline practice
i have learned a bit to work php-mysql but i want to practice to know more.at this moment i only can do primary works.creating users,inserting data,viewing very simple reports.i want to practice any sample php_mysql site offline.any help please. thanks
[PHP] array
how can you explain someone in a simplest and everyday use example of ARRAY. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] free space
is there any free server where one can practice php(myadmin) - sql without installing on personal computer?
[PHP] hello everybody
i am a full time warehouse worker and do not have time.i hardly can spend 2/3 hours a week on internet(at work we do not use internet but only computer)i am learning php and have xampp installed on my computer and i think i am learning slowly slowly.i want ot ask one favor to someone,who is capable of doing this small work.i have learned that when visitor fill a form after visitor get message with his name.how this function is added and where? can anyon give me a example like giving a example to a child of 10 years.i would like if someone explain me.