Jump to content

burhankhan

Members
  • Posts

    43
  • Joined

  • Last visited

    Never

Everything posted by burhankhan

  1. Ohh sorry my mistake And thanks for your help. Its working now
  2. Hi: I tried very much, but not able to write query to select article, which have top rating. Here is structure of tables: ARTICLE ---------------------- id - title 1 - that is first title 2 - that is second title 3 - that is third title 4 - that is forth title ---------------------- Rating ----------------------- articleid - rating 1 - 4 1 - 2 1 - 3 2 - 2 2 - 3 3 - 1 ----------------------- That is structure of two tables. I have to select articles, that have top average rating. (means avg(rating) ) I tried some quires but not able to get correct result. Can any body help me? Thanks Burhan Khan
  3. This will print path. BUT is php always exist in /usr/local/bin/php ??? On different server, php location can be different! So how to get exact path of php?
  4. No! This will return /bin:/usr/bin:/sbin:/usr/sbin:/usr/local/bin:/usr/local/sbin But i need one path to set cron job, like /usr/local/bin/php Thanks Burhan Khan
  5. Hi: Can any body tell me how to get php path? like: /usr/local/bin/php I search, but there is no function that can return php path. Thanks Burhan Khan
  6. Hi: I didn't use phpAdsNew before. Please help me! I have a site in which i installed phpAdsNew. And i want to show ads on my other website. I created code and placed in other website. Also i created banners and placed in phpAdsNew. But don't know how to show in other website......... If anybody use phpAdsNew, kindly PM me, i will show you my account, and you configure ad for me  :) Thanks Burhan Khan
  7. Hi: I have this regular expression to find links in a page. [code]$urlpattern = "/<a[^>]+href=\"([^\"]+)/i";[/code] This will find links like that: href="www.domain.com" What will be regular expression to find link of href='www.domain.com' also??? see difference of single quote (') and double quote (") I need regular express that can find both kind of links (single quote, double quote) Any help will be highly appreciate. Thanks Burhan Khan
  8. Hi: How to check that a username consists only (Number, Alphabetics, _ , - ). How to check it in regular expression, or any other method? I tried some, but no success. Thanks Burhan Khan
  9. it is coming in all pages randomly. Some time it display perfectly fine, and some time Blank Page. (and in Error_log this is written "[error] [client 196.46.109.237] Premature end of script headers: /home/recipehi/public_html/funshun/fun-stuff/funny-video-clips.php" ) Code was running fine :S
  10. thanks for reply It is shared hosting server. My site was working properly, but from last 1 week, it showing errors.  I didn't change any thing in my site. Server Admin says that it is fault of script. I don't know what is going on........... I also got this help from google that, comment doc_root variable in php.ini. I did this, but nothing.......
  11. Hi: I am receiving too much errors of "Premature end of script headers" [code][Mon Jan 8 01:25:13 2007] [error] [client 219.83.0.32] Premature end of script headers: /home/recipehi/public_html/funshun/500.php [Mon Jan 8 01:25:13 2007] [error] [client 66.249.65.76] Premature end of script headers: /home/recipehi/public_html/funshun/forum/viewtopic.php [Mon Jan 8 01:25:13 2007] [error] [client 66.249.65.76] Premature end of script headers: /home/recipehi/public_html/funshun/500.php [Mon Jan 8 01:25:14 2007] [error] [client 203.111.236.48] Premature end of script headers: /home/recipehi/public_html/funshun/quotes/quotes.php [Mon Jan 8 01:25:14 2007] [error] [client 203.111.236.48] Premature end of script headers: /home/recipehi/public_html/funshun/500.php [Mon Jan 8 01:25:14 2007] [error] [client 74.115.75.142] Premature end of script headers: /home/recipehi/public_html/funshun/mobile/wallpapers.php [Mon Jan 8 01:25:14 2007] [error] [client 74.115.75.142] Premature end of script headers: /home/recipehi/public_html/funshun/500.php [Mon Jan 8 01:25:16 2007] [error] [client 74.115.75.142] Premature end of script headers: /home/recipehi/public_html/funshun/mobile/wallpapers.php [Mon Jan 8 01:25:16 2007] [error] [client 74.115.75.142] Premature end of script headers: /home/recipehi/public_html/funshun/500.php [Mon Jan 8 01:25:18 2007] [error] [client 74.115.75.142] Premature end of script headers: /home/recipehi/public_html/funshun/mobile/wallpapers.php [Mon Jan 8 01:25:18 2007] [internal] Process [12747] crashed? [0][/code] Any body have any idea about this error? I browse google and found that i should put header "Content-Type: text/html" in my script. I did this. but nothing gain. My visitors are seeing blank page randomly. Any help? Thanks Burhan Khan
  12. [!--quoteo(post=376761:date=May 24 2006, 11:01 PM:name=gtridez)--][div class=\'quotetop\']QUOTE(gtridez @ May 24 2006, 11:01 PM) [snapback]376761[/snapback][/div][div class=\'quotemain\'][!--quotec--] Hey, I would like to know if anyone knows how to make a non-existent directory redirectoy redirect to ...lets say a profile... for example like how it is done on myspace.com ....where they hape [a href=\"http://www.myspace.com/user\" target=\"_blank\"]http://www.myspace.com/user[/a] and that then redirects to the users profile... any help would be greatly appreciated... thanks alot [/quote] user appache mod_rewrite module..... create an .htaccess file at your root directory, and put this code in it: [code]RewriteEngine on RewriteRule ^user$ userProfile.php [NC,L][/code]
  13. Try to print value of session variable at page2.php and see, thats wrong. [!--quoteo--][div class=\'quotetop\']QUOTE[/div][div class=\'quotemain\'][!--quotec--]# # page2.php # ?php> session_start(); echo '<script language="JavaScript" src="scriptfile.js"></script>'; /* see down below */ // some mysql queries here to validate users and get some information about them $_SESSION['FRST_VAR']=userinfo_1; $_SESSION['SCND_VAR']=userinfo_2; echo $_SESSION['FRST_VAR']; echo "<br>" echo $_SESSION['SCND_VAR'] [/quote]
  14. in httpd.conf search "DocumentRoot" and set it to DocumentRoot "C:/webs" Then open this url: [a href=\"http://localhost/test/index.php\" target=\"_blank\"]http://localhost/test/index.php[/a]
  15. Hi: I want to get contents of file "page.php?arg=this@hotmail.com&arg2=34"; Actully i want to exectue this page, and then get html code. I try many functions like fread(), file_get_contents() but no function accept query string. [img src=\"style_emoticons/[#EMO_DIR#]/unsure.gif\" style=\"vertical-align:middle\" emoid=\":unsure:\" border=\"0\" alt=\"unsure.gif\" /] How to do this? Burhan Khan
  16. Hi: If i can access that file in my domain www.domain.com/download/abc.exe Then anyone can access it. Is here any way in php or .HTACCES file to stop acesssing these files, expect me. Can i stop this type of bandwidth theft? Thanks Burhan Khan
×
×
  • 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.