Re: [PHP] Is it possible to click download button,and run 2 tasks downloading a file and show number of downloads(ajax)simultaneously?

2012-10-15 Thread Negin Nickparsa
oh my bad:)! there is a cool solution,I forgot the blank page!:) yep! solved:) window.open('download.php', '_blank' ); now I can count up,and download:) $(".button").click(function(){ var id=$(this).attr('id'); var dataString = 'id='+ id ; $.ajax({ type: "POST", url: "download_number.

Re: [PHP] Is it possible to click download button,and run 2 tasks downloading a file and show number of downloads(ajax)simultaneously?

2012-10-15 Thread Negin Nickparsa
Thanks Tedd, ajax works fine now,when submiting a button it will show the number and it doesn't have any problem $(function() { $(".button").click(function(){ var id=$(this).attr('id'); var dataString = 'id='+ id ; $.ajax({ type: "POST", url: "download_number.php", data: dataString,

Re: [PHP] Is it possible to click download button,and run 2 tasks downloading a file and show number of downloads(ajax)simultaneously?

2012-10-14 Thread Tedd Sperling
On Oct 14, 2012, at 7:41 AM, Negin Nickparsa wrote: > I wanted to refresh the download count when clicking the button first is it > possible? Yes, it is possible. The following is an example of a server-side php script refreshing a Web page via a javascript client-side action: http://php1.net/

Re: [PHP] is it possible to change the html title from the WYSIWYG editor?

2012-02-13 Thread Haluk Karamete
Search engines would still be indexing the original page's title. I need each unique URL to have its own unique, robot friendly title. Again, this question is strictly within WP context. On Mon, Feb 13, 2012 at 6:49 PM, Bastien wrote: > > > Bastien Koert > > On 2012-02-13, at 5:34 PM, Haluk Kar

Re: [PHP] is it possible to change the html title from the WYSIWYG editor?

2012-02-13 Thread Bastien
Bastien Koert On 2012-02-13, at 5:34 PM, Haluk Karamete wrote: > Yeah, but n the context of wordpress, that does not fly. > If I do a die; in the middle of wp's tinymce editor, and check back > the page, the title is already out there. > > first 5 lines would be something like > > > > >

Re: [PHP] is it possible to change the html title from the WYSIWYG editor?

2012-02-13 Thread Haluk Karamete
Yeah, but n the context of wordpress, that does not fly. If I do a die; in the middle of wp's tinymce editor, and check back the page, the title is already out there. first 5 lines would be something like the wordpress page title we were trying toi change is already here... http://gmpg.org/x

Re: [PHP] is it possible to change the html title from the WYSIWYG editor?

2012-02-13 Thread Daniel Brown
On Mon, Feb 13, 2012 at 17:15, Haluk Karamete wrote: Please keep the replies on the list for all to benefit, including the archives. > Isn't it TinyMCE considered a WYSIWYG one? but, anyway, that's beside > the main point. Indeed. Hence: " even web-based things like TinyMC

Re: [PHP] is it possible to change the html title from the WYSIWYG editor?

2012-02-13 Thread Daniel Brown
On Mon, Feb 13, 2012 at 15:50, Haluk Karamete wrote: > you may find it weird, actually very weird, but is the following possible> > > load up a post or page into the admin panel and place something like > this in to the editor; > > > //assume exec-PHP already active > > $current_page_url_here = g

Re: [PHP] is it possible to change the html title from the WYSIWYG editor?

2012-02-13 Thread Marc Guay
Based on the terms you're using it sounds like this is a Wordpress question. You'd have a lot better chances of getting an answer if you query a group of WP gurus/geeks. Marc -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Is it possible to install PHP on IIS?

2010-11-18 Thread Richard Quadling
On 16 November 2010 13:30, Jay Blanchard wrote: > [snip] > http://www.wampserver.com/en/ > [/snip] > > And yes, I know that this is Apache - I am just not a fan of IIS. > > I quite like it. It probably does way so much more than I need or want and I think I can do everything that I can on Apache.

Re: [PHP] Is it possible to install PHP on IIS?

2010-11-16 Thread Kevin Kinsey
Richard Quadling wrote: On 16 November 2010 13:21, Jay Blanchard wrote: [snip] Hi Folks, is it possible to install PHP on IIS? If yes, can someone please guide me on how to go about doing it? Thanks [/snip] http://www.wampserver.com/en/ Jay, if that had been wimpserver ... I think it's

Re: [PHP] Is it possible to install PHP on IIS?

2010-11-16 Thread Rico Secada
On Tue, 16 Nov 2010 12:16:25 +0530 Himani Aggarwal wrote: > Hi Folks, is it possible to install PHP on IIS? If yes, can someone > please guide me on how to go about doing it? Thanks Now, why would you wanna do something crazy like that?! :) -- PHP General Mailing List (http://www.php.net/) T

RE: [PHP] Is it possible to install PHP on IIS?

2010-11-16 Thread Jay Blanchard
[snip] http://www.wampserver.com/en/ [/snip] And yes, I know that this is Apache - I am just not a fan of IIS. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Is it possible to install PHP on IIS?

2010-11-16 Thread Richard Quadling
On 16 November 2010 13:21, Jay Blanchard wrote: > [snip] >>> Hi Folks, is it possible to install PHP on IIS? If yes, can someone > please guide me on how to go about doing it? Thanks > [/snip] > > http://www.wampserver.com/en/ > Jay, if that had been wimpserver ... -- Richard Quadling Twitter :

RE: [PHP] Is it possible to install PHP on IIS?

2010-11-16 Thread Jay Blanchard
[snip] >> Hi Folks, is it possible to install PHP on IIS? If yes, can someone please guide me on how to go about doing it? Thanks [/snip] http://www.wampserver.com/en/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Is it possible to install PHP on IIS?

2010-11-16 Thread Bastien
On 2010-11-16, at 6:55 AM, Richard Quadling wrote: > On 16 November 2010 06:46, Himani Aggarwal wrote: >> Hi Folks, is it possible to install PHP on IIS? If yes, can someone please >> guide me on how to go about doing it? Thanks >> > > PHP on IIS. Certainly. > > http://docs.php.net/manual/e

Re: [PHP] Is it possible to install PHP on IIS?

2010-11-16 Thread Richard Quadling
On 16 November 2010 06:46, Himani Aggarwal wrote: > Hi Folks, is it possible to install PHP on IIS? If yes, can someone please > guide me on how to go about doing it? Thanks > PHP on IIS. Certainly. http://docs.php.net/manual/en/install.windows.iis7.php : IIS7 specific instructions. http://docs.

Re: [PHP] Is it possible to install PHP on IIS?

2010-11-15 Thread Aman Singh
Himani, See http://blogs.iis.net/bills/archive/2006/09/19/how-to-install-php-on-iis7-_2800_rc1_2900_.aspx?WT.mc_id=soc-c-in-loc--cfp. Also, see http://blogs.iis.net/donraman/archive/2009/10/07/installing-php-on-windows.aspx?WT.mc_id=soc-c-in-loc--cfp On Tue, Nov 16, 2010 at 12:16 PM, Himani Aggarw

Re: [PHP] Is it possible to send POST vars through aheaderredirect?

2009-02-05 Thread Shawn McKenzie
tedd wrote: > At 1:18 PM -0600 2/5/09, Shawn McKenzie wrote: >> tedd wrote: >>> At 2:52 AM -0700 2/5/09, TS wrote: I want my script to run and redirect with the var to another page without the user seeing it. Currently, I am using GET and header("Location: http://

Re: [PHP] Is it possible to send POST vars through a headerredirect?

2009-02-05 Thread tedd
At 1:18 PM -0600 2/5/09, Shawn McKenzie wrote: tedd wrote: At 2:52 AM -0700 2/5/09, TS wrote: I want my script to run and redirect with the var to another page without the user seeing it. Currently, I am using GET and header("Location: http://domain/?somevar=somevalue";) That would, by

Re: [PHP] Is it possible to send POST vars through a headerredirect?

2009-02-05 Thread Shawn McKenzie
tedd wrote: > At 2:52 AM -0700 2/5/09, TS wrote: >> I want my script to run and redirect with >> the var to another page without the user seeing it. Currently, I am using >> GET and >> >> header("Location: http://domain/?somevar=somevalue";) > > That would, by definition, allow the user to see it.

RE: [PHP] Is it possible to send POST vars through a header redirect?

2009-02-05 Thread tedd
At 2:52 AM -0700 2/5/09, TS wrote: I want my script to run and redirect with the var to another page without the user seeing it. Currently, I am using GET and header("Location: http://domain/?somevar=somevalue";) That would, by definition, allow the user to see it. If you want to pass a varia

RE: [PHP] Is it possible to send POST vars through a header redirect?

2009-02-05 Thread TS
ilto:a...@ashleysheridan.co.uk] Sent: Wednesday, February 04, 2009 12:58 PM To: Mike Roberts Cc: TS; php-general@lists.php.net Subject: RE: [PHP] Is it possible to send POST vars through a header redirect? Just look at the headers of EVERY email that comes from the mailing list, as they contain the

RE: [PHP] Is it possible to send POST vars through a header redirect?

2009-02-04 Thread Ashley Sheridan
Just look at the headers of EVERY email that comes from the mailing list, as they contain the unsubscribe email address. On Wed, 2009-02-04 at 09:47 -0500, Mike Roberts wrote: > Ladies and Gentlemen. > I am a recruiter who joined this list to understand a little about PHP. I > respected the bou

Re: [PHP] Is it possible to send POST vars through a header redirect?

2009-02-04 Thread Shawn McKenzie
[mailto:stut...@gmail.com] >> Enviada em: quarta-feira, 4 de fevereiro de 2009 07:52 >> Para: TS >> Cc: php-general@lists.php.net >> Assunto: Re: [PHP] Is it possible to send POST vars through a header >> redirect? >> >> 2009/2/3 TS : >>> I'

Re: [PHP] Is it possible to send POST vars through a header redirect?

2009-02-04 Thread Morris
Not possible to send POST in header if your aim is to hide vars from users. Could think about dynamically send POST using Javascript. form.send(); This requires some JS knowledge about how to exchange data between PHP and JS 2009/2/4 tedd > At 9:47 AM -0500 2/4/09, Mike Roberts wrote: > >> Lad

RE: [PHP] Is it possible to send POST vars through a header redirect?

2009-02-04 Thread tedd
At 9:47 AM -0500 2/4/09, Mike Roberts wrote: Ladies and Gentlemen. I am a recruiter who joined this list to understand a little about PHP. I respected the boundaries, and never tried to recruit you. Now I am asking for a courtesy in return. I have tried several ways and several times to be ex

RE: [PHP] Is it possible to send POST vars through a header redirect?

2009-02-04 Thread Mike Roberts
Ladies and Gentlemen. I am a recruiter who joined this list to understand a little about PHP. I respected the boundaries, and never tried to recruit you. Now I am asking for a courtesy in return. I have tried several ways and several times to be excluded from the list, but I still get emails.

Re: [PHP] Is it possible to send POST vars through a header redirect?

2009-02-04 Thread Stuart
Para: TS > Cc: php-general@lists.php.net > Assunto: Re: [PHP] Is it possible to send POST vars through a header redirect? > > 2009/2/3 TS : >> I'm trying to send vars via POST somehow. Is this possible? >> >> Currently I'm doing >> >> header("L

Re: [PHP] Is it possible to send POST vars through a header redirect?

2009-02-04 Thread Stuart
2009/2/3 TS : > I'm trying to send vars via POST somehow. Is this possible? > > Currently I'm doing > > header("Location: http://domain/index.php?var=3";); > > but, want to send POST or some other method that doesn't stick with the > session. I'm not sure what you mean by "stick with the session"

Re: [PHP] Is it possible to send POST vars through a header redirect?

2009-02-03 Thread VamVan
On Tue, Feb 3, 2009 at 2:54 PM, Jim Lucas wrote: > TS wrote: > > I'm trying to send vars via POST somehow. Is this possible? > > > > Currently I'm doing > > > > header("Location: http://domain/index.php?var=3";); > > > > but, want to send POST or some other method that doesn't stick with the > se

Re: [PHP] Is it possible to send POST vars through a header redirect?

2009-02-03 Thread Kyle Terry
On Tue, Feb 3, 2009 at 2:54 PM, Jim Lucas wrote: > TS wrote: >> I'm trying to send vars via POST somehow. Is this possible? >> >> Currently I'm doing >> >> header("Location: http://domain/index.php?var=3";); >> >> but, want to send POST or some other method that doesn't stick with the >> session.

Re: [PHP] Is it possible to send POST vars through a header redirect?

2009-02-03 Thread Jim Lucas
TS wrote: > I'm trying to send vars via POST somehow. Is this possible? > > Currently I'm doing > > header("Location: http://domain/index.php?var=3";); > > but, want to send POST or some other method that doesn't stick with the > session. > > Thanks, T > > No, it is not possible. You will

RE: [PHP] Is it possible to restart Windows Apache (service) on a PHP script?

2007-10-22 Thread Daevid Vincent
ssage- > From: Daevid Vincent [mailto:[EMAIL PROTECTED] > Sent: Monday, October 22, 2007 1:26 PM > To: php-general@lists.php.net > Subject: RE: [PHP] Is it possible to restart Windows Apache > (service) on a PHP script? > > What we do is setup 'sudo' to run certain c

RE: [PHP] Is it possible to restart Windows Apache (service) on a PHP script?

2007-10-22 Thread Daevid Vincent
What we do is setup 'sudo' to run certain commands (or a shell/ruby script for example), then have PHP/Apache exec() the script via sudo (or use a DBUS call to a 'root' enabled ruby daemon), which then restarts apache or whatever we want. Be VERY careful with the way you do this or you can give cr

Re: [PHP] Is it possible to restart Windows Apache (service) on a PHP script?

2007-10-22 Thread Peter Ford
You could try using exec to set up an "AT" job with a short delay which will then run 'net apache restart' - I'm not a total windows guru so I can't give you the exact recipe... Something like exec('AT 12:00 "net apache restart"'); Check the documentation on the AT command... One possible extra

Re: [PHP] Is it possible to restart Windows Apache (service) on a PHP script?

2007-10-21 Thread Louie Miranda
Thanks for your suggestions. But, both did not worked. Louie On 10/19/07, Philip Thompson <[EMAIL PROTECTED]> wrote: > > On 10/19/07, Robert Degen <[EMAIL PROTECTED]> wrote: > > > > Why don't you try a > > > > passthru('net apache restart') > > > > perhabs another parameter order, but I think

Re: [PHP] Is it possible to restart Windows Apache (service) on a PHP script?

2007-10-19 Thread Philip Thompson
On 10/19/07, Robert Degen <[EMAIL PROTECTED]> wrote: > > Why don't you try a > > passthru('net apache restart') > > perhabs another parameter order, but I think It won't work. > Stopping it might work, but restarting... > > > > On Fr, Okt 19, 2007 at 04:32:45 +0800, Louie Miranda wrote: > > Is it

Re: [PHP] Is it possible to restart Windows Apache (service) on a PHP script?

2007-10-19 Thread Robert Degen
Why don't you try a passthru('net apache restart') perhabs another parameter order, but I think It won't work. Stopping it might work, but restarting... On Fr, Okt 19, 2007 at 04:32:45 +0800, Louie Miranda wrote: > Is it possible to restart Windows Apache (service) on a PHP script? > > i

Re: [PHP] Is it possible to disable eval()?

2007-08-16 Thread hshh
Thank you. It is already enough for me. It works. On 8/16/07, Steffen Ebermann <[EMAIL PROTECTED]> wrote: > On Thu, Aug 16, 2007 at 09:50:30PM +0800, hshh wrote: > > I try to disable eval() function in php script, but failed. > > In php.ini disable_functions=eval is not work, but other functions.

Re: [PHP] Is it possible to disable eval()?

2007-08-16 Thread Steffen Ebermann
On Thu, Aug 16, 2007 at 09:50:30PM +0800, hshh wrote: > I try to disable eval() function in php script, but > failed. In php.ini disable_functions=eval is not work, > but other functions. > So, is it possible to disable eval()? Thanks. It don't work because eval() isn't a function. The Suhosin p

Re: [PHP] Is it possible to stop an image from being cached?

2007-07-27 Thread Richard Heyes
Dan wrote: ... You should also look at this: http://www.mnot.net/cache_docs/ Very informative. -- Richard Heyes +44 (0)844 801 1072 http://www.websupportsolutions.co.uk Knowledge Base and HelpDesk software that can cut the cost of online support -- PHP General Mailing List (http://www.php.n

Re: [PHP] Is it possible to stop an image from being cached?

2007-07-26 Thread Richard Lynch
On Thu, July 26, 2007 6:32 pm, Tijnema wrote: > Also, if you use solution 2, the image will still stay forever in the Not forever. Just until something else being downloaded shoves it out due to the folder size restriction. The browser might even be "smart" and keep oft-used resources in the cac

Re: [PHP] Is it possible to stop an image from being cached?

2007-07-26 Thread Richard Lynch
On Thu, July 26, 2007 4:56 pm, Dan wrote: > Is there any tactic short of changing the name constantly of the image > to > avoid browser caching of an image? You can try to use all the zillion header calls people will send you. Somewhere out there is a really stupid browser that will insist on cac

Re: [PHP] Is it possible to stop an image from being cached?

2007-07-26 Thread Dan
Awesome, seems to work. Thanks Tijnema! - Dan ""Dan"" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] Well, this is only one specific image that constantly changes, the rest of the page is handled regularly. From what you've said if I go with this header("Cache-Control: no-cache,

Re: [PHP] Is it possible to stop an image from being cached?

2007-07-26 Thread Dan
Well, this is only one specific image that constantly changes, the rest of the page is handled regularly. From what you've said if I go with this header("Cache-Control: no-cache, must-revalidate"); // HTTP/1.1 header("Expires: Mon, 26 Jul 1997 05:00:00 GMT"); // Date in the past That will effec

Re: [PHP] Is it possible to stop an image from being cached?

2007-07-26 Thread Tijnema
On 7/27/07, Dan <[EMAIL PROTECTED]> wrote: Is this header you're refering to the header of the page which contains the image, or the image itself? - Dan The image itself. Also note, that if you use my solution 2, you still might get problems, as the page that is calling might be cached, and i

Re: [PHP] Is it possible to stop an image from being cached?

2007-07-26 Thread Dan
Is this header you're refering to the header of the page which contains the image, or the image itself? - Dan "Tijnema" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] On 7/27/07, brian <[EMAIL PROTECTED]> wrote: Tijnema wrote: > On 7/26/07, Dan <[EMAIL PROTECTED]> wrote: > >> I

Re: [PHP] Is it possible to stop an image from being cached?

2007-07-26 Thread Tijnema
On 7/27/07, Chris Aitken <[EMAIL PROTECTED]> wrote: >> header('Cache-Control: no-store, no-cache, must-revalidate, >> Post-Check=0, Pre-Check=0'); >> >> brian > >That's HTTP/1.1 only, but this is what I got from PHP site: >header("Cache-Control: no-cache, must-revalidate"); // HTTP/1.1 >header("E

RE: [PHP] Is it possible to stop an image from being cached?

2007-07-26 Thread Chris Aitken
>> header('Cache-Control: no-store, no-cache, must-revalidate, >> Post-Check=0, Pre-Check=0'); >> >> brian > >That's HTTP/1.1 only, but this is what I got from PHP site: >header("Cache-Control: no-cache, must-revalidate"); // HTTP/1.1 >header("Expires: Mon, 26 Jul 1997 05:00:00 GMT"); // Date in th

Re: [PHP] Is it possible to stop an image from being cached?

2007-07-26 Thread Tijnema
On 7/27/07, brian <[EMAIL PROTECTED]> wrote: Tijnema wrote: > On 7/26/07, Dan <[EMAIL PROTECTED]> wrote: > >> I have a situation where there is a single image let's call it >> somebody.jpg. >> I want to be able to dynamicly create this image using php, basicilly >> I have >> PHP set to handle .jp

Re: [PHP] Is it possible to stop an image from being cached?

2007-07-26 Thread brian
Tijnema wrote: On 7/26/07, Dan <[EMAIL PROTECTED]> wrote: I have a situation where there is a single image let's call it somebody.jpg. I want to be able to dynamicly create this image using php, basicilly I have PHP set to handle .jpg files also, so I then go through and create an image base

RE: [PHP] Is it possible to stop an image from being cached?

2007-07-26 Thread Chris Aitken
> Solution 1: > Send a header() that avoids caching (can't remember it exactly) > Solution 2: > Call the image like this: > > Or if you were creating it with a php script: > My preferred way of doing it, and making sure its reloaded each time is to do it this way... the U variable pretty much gu

Re: [PHP] Is it possible to stop an image from being cached?

2007-07-26 Thread Tijnema
On 7/26/07, Dan <[EMAIL PROTECTED]> wrote: I have a situation where there is a single image let's call it somebody.jpg. I want to be able to dynamicly create this image using php, basicilly I have PHP set to handle .jpg files also, so I then go through and create an image based upon some info I g

Re: [PHP] Is it possible to get the name of the top most calling script?

2007-06-09 Thread Richard Lynch
On Sat, June 9, 2007 7:18 pm, barophobia wrote: > I know that __FILE__ and __LINE__ report on the file and line that > they occur in. What I want is to be able to get the file name and line > of the calling script. The only way I can do this so far is by passing > the values through function argume

Re: [PHP] Is it possible to get the name of the top most calling script?

2007-06-09 Thread Tijnema
On 6/10/07, barophobia <[EMAIL PROTECTED]> wrote: Hello, I know that __FILE__ and __LINE__ report on the file and line that they occur in. What I want is to be able to get the file name and line of the calling script. The only way I can do this so far is by passing the values through function ar

Re: [PHP] is it possible to manipulate vars here..

2006-08-02 Thread Dave Goodchild
On 02/08/06, Jochen Kaechelin <[EMAIL PROTECTED]> wrote: .. to build a url like http://devil.server.com/vitims_page.php?? Not sure what you're trying to do, but switch register_globals OFF. Also, if you are trying to concatenate strings inside the function, use ., not +. -- http://www.web

RE: [PHP] Is it possible to use header() to POST form data?

2005-12-16 Thread Jay Blanchard
[snip] Does anyone know if it's possible to use the header() function to POST form data to a URL? If so what syntax needs to be used? [/snip] You will want to check out http://www.php.net/curl -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Is it possible to use header() to POST form data?

2005-12-15 Thread Curt Zirzow
On Thu, Dec 15, 2005 at 03:02:01PM -0800, pw wrote: > Philip Hallstrom wrote: > >>Does anyone know if it's possible to use the > >>header() function to POST form data to a URL? > >> > >>If so what syntax needs to be used? > > > > > >No, but a quick search for "HTTP POST PHP example" will get you th

Re: [PHP] Is it possible to use header() to POST form data?

2005-12-15 Thread pw
Philip Hallstrom wrote: Does anyone know if it's possible to use the header() function to POST form data to a URL? If so what syntax needs to be used? No, but a quick search for "HTTP POST PHP example" will get you the code you need. Thanks, I googled and, as you said, there was code th

Re: [PHP] Is it possible to use header() to POST form data?

2005-12-15 Thread Philip Hallstrom
Does anyone know if it's possible to use the header() function to POST form data to a URL? If so what syntax needs to be used? No, but a quick search for "HTTP POST PHP example" will get you the code you need. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://ww

Re: [PHP] Is it possible to save a file with UTF-8 encoding and noBOM using PHP?

2005-05-03 Thread Jon M.
Thanks also, Richard! You were right on. Just a note: I just visited the W3C validation service again, and it seems they have recently updated it. It no longer complains if it finds a BOM in your document binary. So it would appear that it's no longer an issue with enough XML parsers to be rel

Re: [PHP] Is it possible to save a file with UTF-8 encoding and noBOMusing PHP?

2005-05-02 Thread Jon M.
(Rasmus wrote:) "If you fwrite UTF-8 data to the file, then it is a UTF-8 file." Thanks Rasmus! Honestly, that is REALLY helpful! I was just coming back here to post that I had found that very same answer. But I am glad to hear it confirmed by the experts. Bottom line: I was just being silly/i

Re: [PHP] Is it possible to save a file with UTF-8 encoding and noBOM using PHP?

2005-04-29 Thread Rasmus Lerdorf
Jon M. wrote: No matter what I do to the strings to encode them in whatever format before using "fwrite", it ALWAYS seems to end up writing the actual file in "iso-8859-1". Isn't the encoding of the characters in PHP's strings, and the encoding of the actual binary file on your hard drive, two

Re: [PHP] Is it possible to save a file with UTF-8 encoding and noBOM using PHP?

2005-04-28 Thread Richard Lynch
On Thu, April 28, 2005 4:14 am, Jon M. said: > No matter what I do to the strings to encode them in whatever format > before > using "fwrite", it ALWAYS seems to end up writing the actual file in > "iso-8859-1". How do you know? What are you using to determine the format of the file? We are cont

Re: [PHP] Is it possible to save a file with UTF-8 encoding and noBOM using PHP?

2005-04-28 Thread Jon Hill
> 1. First I want to know how to make the actual binary file that is written, > to be encoded as UTF-8. This is my PRIMARY question. I think this part is the key. If the string originated from your text editor, then your text editor needs to be in UTF-8 mode. If you are importing the data from a

Re: [PHP] Is it possible to save a file with UTF-8 encoding and noBOM using PHP?

2005-04-28 Thread Jon M.
Wow, nice to hear from the guy who created PHP! :) I need to make 2 things clearer though: 1. First I want to know how to make the actual binary file that is written, to be encoded as UTF-8. This is my PRIMARY question. 2. How to have "fwrite" write the file without the BOM. (to make it m

Re: [PHP] Is it possible to save a file with UTF-8 encoding and no BOM using PHP?

2005-04-24 Thread Richard Lynch
On Fri, April 22, 2005 9:54 pm, Rasmus Lerdorf said: >>>Maybe I'm just being dumb, but I think if you UTF-8 encode your data, >>> and >>>http://php.net/fwrite it, you're gonna get what you want... >>> >>>Dunno about the Byte-Order-Mark part, but I guess you could strip it out >>>of the UTF-8 encode

Re: [PHP] Is it possible to save a file with UTF-8 encoding and no BOM using PHP?

2005-04-22 Thread Rasmus Lerdorf
Jon M. wrote: "Richard Lynch" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] On Thu, April 21, 2005 5:07 pm, Jon M. said: I am trying to have a file that I generated with PHP saved as UTF-8 without the BOM (Byte Order Mark). Does PHP do anything like this? I am a beginner with PHP,

Re: [PHP] Is it possible to save a file with UTF-8 encoding and no BOM using PHP?

2005-04-22 Thread Jon M.
"Richard Lynch" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > On Thu, April 21, 2005 5:07 pm, Jon M. said: >> I am trying to have a file that I generated with PHP saved as UTF-8 >> without >> the BOM (Byte Order Mark). Does PHP do anything like this? I am a >> beginner >> with PHP

Re: [PHP] Is it possible to save a file with UTF-8 encoding and no BOM using PHP?

2005-04-21 Thread Richard Lynch
On Thu, April 21, 2005 5:07 pm, Jon M. said: > I am trying to have a file that I generated with PHP saved as UTF-8 > without > the BOM (Byte Order Mark). Does PHP do anything like this? I am a beginner > with PHP, but very technically experienced otherwise. I'm talking about > the > FILE encoding h

Re: [PHP] Is it possible to pass arguements when using PHP before 4.3.n?[SOLVED]

2004-05-13 Thread Marek Kilimajer
Jay Blanchard wrote: Is it possible to pass arguements when using PHP before 4.3.n when doing command line stuff? I have built a small script that opens a file, reads from it, and returns some results. Instead of changing the fopen line each time I would just like to pass the name of the file to be

RE: [PHP] is it possible to have the following URL?

2003-09-22 Thread Susan Ator
Thank you so much. That worked perfectly. Don't know why I didn't think of trying the anchor tag there. susan -Original Message- From: Erwin Kerk [mailto:[EMAIL PROTECTED] Sent: Monday, September 22, 2003 11:48 AM To: [EMAIL PROTECTED] Subject: Re: [PHP] is it possible t

Re: [PHP] is it possible to have the following URL?

2003-09-22 Thread Erwin Kerk
This should work: https://url_locaion.org/prev_page.php?SID=$SID&uid=$uid&ELEM_ID=$id#tag Erwin Susan Ator wrote: I am passing 3 pieces of information on every URL. For example: https://url_location.org/page.php?SID=$SID&uid=$uid&ELEM_ID=$id I need to be able to return to a previous page usin

Re: [PHP] Is it possible to test an uploaded file to check the type?

2003-07-14 Thread Joel Rees
> Is it possible to check a file in $_FILES['userfile']['tmp_name'] to > make sure it is of a certain format? I want to allow a user to only > upload jpegs or mpegs, and want to check what format the file is in. If there are only a few types, and you know what those types should look like, it sho

Re: [PHP] Is it possible to test an uploaded file to checkthe type?

2003-07-14 Thread Dan Anderson
> Concerning infecting the server, if the files are chmodded without the > executable bit, shouldn't that be considered *safer* > It may seem that mime_content_type() isnt an option. I tried it on a > flash file, and it reported it as text/plain. Well, again, everything is dependent on what yo

Re: [PHP] Is it possible to test an uploaded file to check the type?

2003-07-14 Thread Gerard Samuel
Thank you for your reply. A little background on what Im doing with file uploading. 1. Im allowing registered users to upload avatars for their own usage. 2. Im allowing image uploading for submitted articles by certain registered users. 3. And Im currently constructing a media gallery, where i

Re: [PHP] Is it possible to test an uploaded file to check thetype?

2003-07-14 Thread Dan Anderson
There are some very good reasons to check a file's mime type. For one thing, if you send a user an executable when you meant to send them a jpg, and that executable unleashes a virus, that is no good. Not only will noone visit your site if they know you are a source of viruses, you may get sued f

Re: [PHP] Is it possible to test an uploaded file to check the type?

2003-07-14 Thread Nadim Attari
> So, check $_FILES['userfile']['type'] against a set of allowed file > types, and you're set... What about this: array getimagesize ( string filename [, array imageinfo]) -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Is it possible to test an uploaded file to check the type?

2003-07-14 Thread Marek Kilimajer
David Otton wrote: On Mon, 14 Jul 2003 00:24:03 -0400, you wrote: ... The show-resource.php script just has to set the correct mime type header and stream out the contents of the file. And it is safe to use the browser supplied mime type here. -- PHP General Mailing List (http://www.php.net/) To

Re: [PHP] Is it possible to test an uploaded file to check the type?

2003-07-14 Thread David Otton
On Mon, 14 Jul 2003 00:24:03 -0400, you wrote: >Looking for opinions. Can a spoofed uploaded file hurt a script or a >webserver?? >Reason why Im asking is because, I looked over the magic.mime file on my >server, and I see that it >doesn't support flash files (I may be wrong), of which I curren

Re: [PHP] Is it possible to test an uploaded file to check the type?

2003-07-13 Thread Gerard Samuel
Gerard Samuel wrote: A client-supplied value isn't going to be too useful - it can be spoofed, or may not be present. (I believe a Windows browser would set the mime-type based purely on the file extension, though I haven't tested this myself). Then my apologies. I thought php determined the f

Re: [PHP] Is it possible to test an uploaded file to check the type?

2003-07-13 Thread Gerard Samuel
David Otton wrote: $_FILES['userfile']['type'] The mime type of the file, if the browser provided this information. An example would be "image/gif". So, check $_FILES['userfile']['type'] against a set of allowed file types, and you're set... A client-supplied value isn't going

Re: [PHP] Is it possible to test an uploaded file to check the type?

2003-07-13 Thread David Otton
On Sun, 13 Jul 2003 13:32:00 -0400, you wrote: >The upload process, already collects info on file types when you upload. > From the manual -> > >> $_FILES['userfile']['type'] >> >> The mime type of the file, if the browser provided this >> information. An example would be "image/gif". >> >

Re: [PHP] Is it possible to test an uploaded file to check the type?

2003-07-13 Thread Gerard Samuel
The upload process, already collects info on file types when you upload. From the manual -> $_FILES['userfile']['type'] The mime type of the file, if the browser provided this information. An example would be "image/gif". So, check $_FILES['userfile']['type'] against a set of allowed file

Re: [PHP] Is it possible to test an uploaded file to check the type?

2003-07-13 Thread Marek Kilimajer
If you have compiled php with --enable-mime-magic, you can use mime_content_type() Dan Anderson wrote: Is it possible to check a file in $_FILES['userfile']['tmp_name'] to make sure it is of a certain format? I want to allow a user to only upload jpegs or mpegs, and want to check what format th

Re: [PHP] Is it possible to test an uploaded file to check the type?

2003-07-12 Thread Jason Wong
On Sunday 13 July 2003 01:24, Dan Anderson wrote: > Is it possible to check a file in $_FILES['userfile']['tmp_name'] to > make sure it is of a certain format? I want to allow a user to only > upload jpegs or mpegs, and want to check what format the file is in. If on un*x you can use the 'file' p

Re: [PHP] Is It Possible to Tell PHP To Output x Decimal Places Per Float?

2003-06-09 Thread Jaap van Ganswijk
At 2003-06-09 18:22 -0400, Dan Anderson wrote: >Is it possible to tell PHP when converting a number to a string (i.e. in >an echo or print command) to use x decimal places? > >Specifically, if I > > echo '$' . $some_price; >?> > >And some_price is $1.50, it outputs: > >$1.5 This should work: pr

Re: [PHP] Is It Possible to Tell PHP To Output x Decimal Places PerFloat?

2003-06-09 Thread Lars Torben Wilson
On Mon, 2003-06-09 at 15:22, Dan Anderson wrote: > Is it possible to tell PHP when converting a number to a string (i.e. in > an echo or print command) to use x decimal places? > > Specifically, if I > >echo '$' . $some_price; > ?> > > And some_price is $1.50, it outputs: > > $1.5 > > Tha

RE: [PHP] Is It Possible to Tell PHP To Output x Decimal Places Per Float?

2003-06-09 Thread John W. Holmes
> Is it possible to tell PHP when converting a number to a string (i.e. in > an echo or print command) to use x decimal places? Yes, it is. > Specifically, if I > >echo '$' . $some_price; > ?> > > And some_price is $1.50, it outputs: > > $1.5 > > Thanks in advance, You're welcome. ---

Re: [PHP] Is it possible to "Include" a php source file ?

2003-02-23 Thread Sunfire
yes include("filename.php"); 1. its in the php manual 2. you posted the same question twice already i think (unless 1 was a original post and one was a reply) sorry getting a little tired here its almost 1am here and still working for the last 2 days straight with 0% sleep and 100% caffine.. (sor

Re: [PHP] Is it possible to "Include" a php source file ?

2003-02-23 Thread Leif K-Brooks
A quick manual search would have told you. www.php.net/include Rohin Gosling wrote: First up, I sent this same message a few hours ago, but I do not see it in the news group, and neither does it appear in my sent messages folder. Therefore I am presuming that it never made it to the news group.

Re: [PHP] Is it possible to "Include" a php source file ?

2003-02-23 Thread Joachim Krebs
include() include_once() require() require_once() Look those functions up in the PHP docs. On 23 February 2003 at 21:32:46, Rohin Gosling wrote: > First up, I sent this same message a few hours ago, but I do not see it in > the news group, and neither does it appear in my sent messag

Re: [PHP] is it possible to retrieve email from HOTMAIL

2003-02-19 Thread David Otton
On Wed, 19 Feb 2003 12:57:42 +, you wrote: > >I wonder if it is possible to retrieve emails from an email account >say in hotmail, yahoo, or any other email provider. > http://people.freenet.de/courierdave/ http://httpmail.sourceforge.net/ http://www.geocities.com/ballarke/Projects/HttpMail/H

Re: [PHP] is it possible to retrieve email from HOTMAIL

2003-02-19 Thread Abu Musaab
I wonder if it is possible to retrieve emails from an email account say in hotmail, yahoo, or any other email provider. silly hah ..? Thanx in advance. EXPLAINING MY IDEA (in other words): I mean making a script that goes to my email in, say Hotmail, and get all the messages and store them in

Re: [PHP] is it possible to retrieve email from HOTMAIL

2003-02-19 Thread Jono Bacon
Abu Musaab wrote: I wonder if it is possible to retrieve emails from an email account say in hotmail, yahoo, or any other email provider. silly hah ..? Thanx in advance. _ Add photos to your messages with MSN 8. Get 2 months F

Re: [PHP] Is it possible to do this in PHP ? If it is then, how ?

2002-11-29 Thread Axis Computers
mysql database - Original Message - From: "Marek Kilimajer" <[EMAIL PROTECTED]> To: "PHP" <[EMAIL PROTECTED]> Sent: Friday, November 29, 2002 7:49 AM Subject: Re: [PHP] Is it possible to do this in PHP ? If it is then, how ? > In the browser it might look

Re: [PHP] Is it possible to do this in PHP ? If it is then, how ?

2002-11-29 Thread Marek Kilimajer
In the browser it might look something like this: Pizza place
function add(n) {
document.pizza.num.value=document.pizza.num.value + n;
if(document.pizza.num.value.length!=2) {
document.pizzaimage.src='blank.jpg';
} else {
// alert("Pizza is " +

Re: [PHP] Is it possible to do this in PHP ? If it is then, how ?

2002-11-28 Thread Axis Computers
sage - From: "Marek Kilimajer" <[EMAIL PROTECTED]> To: "PHP" <[EMAIL PROTECTED]> Sent: Wednesday, November 27, 2002 10:34 AM Subject: Re: [PHP] Is it possible to do this in PHP ? If it is then, how ? > Using javascript you can change the src of image. So you

Re: [PHP] Is it possible to do this in PHP ? If it is then, how ?

2002-11-27 Thread Marek Kilimajer
Using javascript you can change the src of image. So you start with blank image, and if onchange event handler finds out the input field has two chars, changes the src of the image to say show_image.php?id=input.value Axis Computers wrote: Hi, I was wondering if this is possible to in PHP ...

  1   2   >