[PHP] Regular Expression to get the whole Comma Separated String in Array Key

2010-06-30 Thread Gaurav Kumar
any other method to get comma separated string from the master/base string. Thanks, Gaurav Kumar

[PHP] Re: Regular Expression to get the whole Comma Separated String in Array Key

2010-06-30 Thread Gaurav Kumar
Hey Richard, Thanks!!! You have resolved my problem.. GK On Wed, Jun 30, 2010 at 7:42 PM, Gaurav Kumar kumargauravjuke...@gmail.comwrote: Hi All, Need help in resolving the below problem- I would like to get the whole comma separated string into an array value- 1. $postText = chapters

Re: [PHP] Character Encoding for em-dash

2010-06-30 Thread Gaurav Kumar
:03 PM +0530 6/17/10, Gaurav Kumar wrote: Hi All, My client has a database (Sybase) in which a table column URL contains a string like- http://www.pjonline.com/cpd/nutrition_ _drugnutrient_interactions The box like un-recognized character is emdash. I need to display the data on the web lets

Re: [PHP] Quick session question

2010-06-24 Thread Gaurav Kumar
session_start() in index.php or common header include file. This session_save_path() should be declared on every file on the top. Try the above and let me know if it works. Thanks, Gaurav Kumar http://blog.OsWebStudio.Com On Thu, Jun 24, 2010 at 7:54 PM, Danny dannydeb...@gmail.com wrote: Hi guys

[PHP] Character Encoding for em-dash

2010-06-17 Thread Gaurav Kumar
-roman8! I want the string to look like- http://www.pjonline.com/cpd/nutrition_-- _prescribing_parenteral_nutrition.html Any help? Thanks, Gaurav Kumar

[PHP] SMTP Local development to Send email in PHP; Windows Platform/ XP with no IIS

2010-01-15 Thread Gaurav Kumar
providing the SMTP server details in php.ini will not work for me as this requires authentication/credentials etc.. Thanks, Gaurav Kumar blog.oswebstudio.com

Re: [PHP] SMTP Local development to Send email in PHP; Windows Platform/ XP with no IIS

2010-01-15 Thread Gaurav Kumar
Sorry Kim, don't want to use phpmailer script or manually setting user accounts u/p in the script. On Fri, Jan 15, 2010 at 5:23 PM, Kim Madsen php@emax.dk wrote: Hi Gaurav Gaurav Kumar wrote on 15/01/2010 09:54: NO SMTP Any trusted SMTP software to install on local development

Re: [PHP] SMTP Local development to Send email in PHP; Windows Platform/ XP with no IIS

2010-01-15 Thread Gaurav Kumar
://php.net/manual/en/ref.mail.php http://glob.com.au/sendmail/ Thanks, Gaurav Kumar blog.oswebstudio.com On Fri, Jan 15, 2010 at 6:21 PM, Richard Quadling rquadl...@googlemail.comwrote: 2010/1/15 vikash.i...@gmail.com: You can install any smtp server on your windows machine and the mail

Re: [PHP] Open source project management tool - PHP

2009-12-18 Thread Gaurav Kumar
OK one more the list http://dotproject.net/ Its a nice one with all project management features. Easy to use. Just checkout the website. Gaurav Kumar blog.oswebstudio.com On Fri, Dec 18, 2009 at 12:16 AM, Robert Cummings rob...@interjinn.comwrote: Angelo Zanetti wrote: Hi guys I would like

Re: [PHP] file_get_contents ($file) works -- file_get_contents ($url) returns false

2009-12-14 Thread Gaurav Kumar
Sorry buddy, I cant think of anything else which is going on wrong. 2009/12/14 René Fournier m...@renefournier.com PHP Version 5.3.0 Directive Local Value Master Value allow_call_time_pass_reference Off Off allow_url_fopen On On 2009-12-14, at 12:26 AM, Gaurav Kumar wrote: What

Re: [PHP] file_get_contents ($file) works -- file_get_contents ($url) returns false

2009-12-13 Thread Gaurav Kumar
://www.google.co.in;); // http://www.google.com curl_setopt($ch, CURLOPT_HEADER, 0); // grab URL and pass it to the browser curl_exec($ch); // close cURL resource, and free up system resources curl_close($ch); ? Thanks, Gaurav Kumar 2009/12/13 René Fournier m...@renefournier.com The thing

Re: [PHP] file_get_contents ($file) works -- file_get_contents ($url) returns false

2009-12-13 Thread Gaurav Kumar
-12-13, at 4:39 PM, Gaurav Kumar wrote: Ok Agreed. Lets do one last chance to ensure that your system is allowing external connections or connection to other systems in the network- Use Curl to get in the file contents. Check your PHP that Curl is enabled. Through phpinfo(); If the script

Re: [PHP] file_get_contents ($file) works -- file_get_contents ($url) returns false

2009-12-12 Thread Gaurav Kumar
installed etc.. this can be the only reason. Something is stopping you to access external connection. Let me know when your problem is fixed. Also I tried the below code and it works fine- ?php $str = file_get_contents ('http://www.google.com'); echo $str; ? Thanks, Gaurav Kumar 2009/12/11

Re: [PHP] file_get_contents ($file) works -- file_get_contents ($url) returns false

2009-12-10 Thread Gaurav Kumar
www.somedomain.com/somefile.html 3. Some times the remote host does not allow you to connect to get the file contents. 4. # 3 can be either way round from both the ends a) you host server does not allow external connections b) Remote host does not allow anonymous connection. Hope this helps.. Gaurav

Re: [PHP] Upload dir

2009-12-10 Thread Gaurav Kumar
path is correct while you set the directory. More information on how to use ini_set to set the directory path- try googling... Gaurav Kumar blog.oswebstudio.com On Fri, Dec 11, 2009 at 10:59 AM, kranthi kranthi...@gmail.com wrote: How can i change the temporary upload directory? var_dump

Re: [PHP] Force-Saving an Audio File

2009-12-09 Thread Gaurav Kumar
= file_get_contents(' http://www.example.com/audio/file.mp3', false, $context); Hope this helps. Gaurav Kumar Blog.OsWebStudio.com On Wed, Dec 9, 2009 at 8:06 AM, c...@hosting4days.com c...@hosting4days.com wrote: Hi folks, I'm trying to force save .mp3 files so this is a test page (found

Re: [PHP] Correct handling _POST[] and implode. PHP5

2009-10-09 Thread Gaurav Kumar
Its Simple... Its very obvious that $_POST[color] is not an array. do something like this and you wil get the values. $arr_color = $_POST[colors]; //iterate over the array foreach($arr_color as $val) { $str_color .= , . $val; } You are done. Gaurav Kumar Teach Lead Open Source

Re: [PHP] Apache Rewrite Issues

2009-10-08 Thread Gaurav Kumar
. This will preserve the query string variable as Test Story and not as just Test; even if there are spaces in the variable. Gaurav Kumar Tech Lead Open Source Solutions On Wed, Oct 7, 2009 at 4:22 PM, Russell Seymour russell.seym...@turtlesystems.co.uk wrote: Morning, I am trying to make my

Re: [PHP] avoid Denial of Service

2009-10-08 Thread Gaurav Kumar
Not sure what exactly you are looking for. Anyways, some common practice are request for API key, username / password tokens before providing access to a service. Thanks, Gaurav Kumar On Thu, Oct 8, 2009 at 7:06 PM, Gerardo Benitez gerardobeni...@gmail.comwrote: Hi everybody! I want

[PHP] Best Practice to Create Dynamic URL's- With Username

2009-09-21 Thread Gaurav Kumar
/kumargauravmail (this is my profile page). So what should be the best practice to create such DYNAMIC URL's OR what kind of methodology youtube is following? Thanks in Advance. Gaurav Kumar OSWebstudio.com

Re: [PHP] Best Practice to Create Dynamic URL's- With Username

2009-09-21 Thread Gaurav Kumar
=usernameSo what exactly will be the .htaccess rule for above? Thanks, Gaurav Kumar OSWebstudio.Com On Mon, Sep 21, 2009 at 1:26 PM, Ashley Sheridan a...@ashleysheridan.co.ukwrote: On Mon, 2009-09-21 at 13:24 +0530, Gaurav Kumar wrote: Hi All, I am creating a social networking website. I

Re: [PHP] Best Practice to Create Dynamic URL's- With Username

2009-09-21 Thread Gaurav Kumar
I totally agree with this architecture. You are correct, I am just in the starting phase of the project and in fact still need to define the architecture in detail. Now the question I asked in my last reply is still to be answered? Gaurav Kumar OSWebstudio.Com On Mon, Sep 21, 2009 at 3:06 PM

Re: [PHP] Best Practice to Create Dynamic URL's- With Username

2009-09-21 Thread Gaurav Kumar
Thanks Ashley and all the folks out there... On Mon, Sep 21, 2009 at 3:25 PM, Ashley Sheridan a...@ashleysheridan.co.ukwrote: On Mon, 2009-09-21 at 15:20 +0530, Gaurav Kumar wrote: I totally agree with this architecture. You are correct, I am just in the starting phase of the project

Re: [PHP] best function to use ~ file_get_contents or ?

2009-09-16 Thread Gaurav Kumar
There is no best function as such. Everything depends upon your requirement. You can also use fopen() to get the contents of the remote file and do some error handling that if you get any content then display image else a message etc.. Gaurav Kumar (Team Lead- open source) oswebstudio.com