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

2009-09-15 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 On

[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
ot;*Ashley*" or *Tommy* in my script? <http://www.abcnetwork/userProfile.php?user=username>So 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 wrote: > On Mon, 2009-09-21 at 13:24 +0530,

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 wrote: > 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] Apache Rewrite Issues

2009-10-07 Thread Gaurav Kumar
encode function. 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&

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 wrote: > Hi everybody! > > > I want to get som

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. Gaura

Re: [PHP] Force-Saving an Audio File

2009-12-09 Thread Gaurav Kumar
like $file = 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 wrote: > Hi folks, > > I'm trying to force save .mp3 files so this is a

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 wrote: > How can i change the temporary upload directory? > var_dump(i

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- http://www.google.com'); echo $str; ?> Thanks, Gaurav Kumar 2009/12/11 René Fournier > Hi Gau

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

2009-12-13 Thread Gaurav Kumar
/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 > The thing is, the file_get_contents() fails the s

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

2009-12-13 Thread Gaurav Kumar
> > > > On 2009-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

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 > > 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 w

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 wrote: > Angelo Zanetti wrote: > >> Hi guys >> I would

[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 wrote: > Hi Gaurav > > Gaurav Kumar wrote on 15/01/2010 09:54: > > > NO SMTP >> >> Any trusted SMTP software to i

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 wrote: > 2010/1/15 : > > You can install any smtp server on your windows machine and the mail() > will > > work with default

[PHP] Character Encoding for em-dash

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

Re: [PHP] Quick session question

2010-06-24 Thread Gaurav Kumar
on) before 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 wrote: > Hi guys, >

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

2010-06-30 Thread Gaurav Kumar
Also I have to use regular expression only as the flow of the code does not permit to use 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 wrote: > 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 = &qu

Re: [PHP] Character Encoding for em-dash

2010-06-30 Thread Gaurav Kumar
/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. &

Re: [PHP] HTTPS SSL

2010-09-02 Thread Gaurav Kumar
Shared SSL. Thanks, Gaurav Kumar http://www.UncleCode.Com <http://www.unclecode.com/> Download Scripts, Resources For Free http://www.unclecode.com/2010/08/how-to-use-post-method-request-in-php-curl-execute-http-post-method-in-php-curl/ http://www.unclecode.com/2010/08/how-to-send-an-attachment-i