[PHP] Is it possible???

2013-06-24 Thread Karl-Arne Gjersøyen
$item_amount_in_store = 223; $update_amount = 7; $update_item_amount_in_store += $update_amount; $update_amoint_in_store is now 227; Why? That should be 230! Karl

Re: [PHP] Is it possible???

2013-06-24 Thread Stuart Dallas
On 24 Jun 2013, at 12:59, Karl-Arne Gjersøyen karlar...@gmail.com wrote: $item_amount_in_store = 223; $update_amount = 7; $update_item_amount_in_store += $update_amount; $update_amoint_in_store is now 227; Why? That should be 230! Because you're using $item_amount_in_store and

Re: [PHP] Is it possible???

2013-06-24 Thread raphael khaiat
Hi, Shouldn't it be: $item_amount_in_store = 223; $update_amount = 7; $item_amount_in_store += $update_amount; $update_amoint_in_store is now 227; The 3rd line seems wrong as you didn't use the same variable. -- Raphaël Khaïat 06.72.89.57.29 On Mon, Jun 24, 2013 at 1:59 PM, Karl-Arne

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-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.php,

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 nickpa...@gmail.com 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:

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

2012-02-13 Thread Haluk Karamete
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; ?php //assume exec-PHP already active $current_page_url_here = get_current_url(); echo a

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 change the html title from the WYSIWYG editor?

2012-02-13 Thread Daniel Brown
On Mon, Feb 13, 2012 at 15:50, Haluk Karamete halukkaram...@gmail.com 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; ?php //assume exec-PHP already active

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 halukkaram...@gmail.com 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

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 !DOCTYPE html html dir=ltr lang=en-US head meta charset=UTF-8 / titlethe wordpress page

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 halukkaram...@gmail.com 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

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 phps...@gmail.com wrote: Bastien Koert On 2012-02-13, at 5:34

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

2010-11-18 Thread Richard Quadling
On 16 November 2010 13:30, Jay Blanchard jblanch...@pocket.com 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

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

2010-11-16 Thread Richard Quadling
On 16 November 2010 06:46, Himani Aggarwal incrediblehim...@gmail.com 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

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 rquadl...@gmail.com wrote: On 16 November 2010 06:46, Himani Aggarwal incrediblehim...@gmail.com 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

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 Richard Quadling
On 16 November 2010 13:21, Jay Blanchard jblanch...@pocket.com 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

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 Rico Secada
On Tue, 16 Nov 2010 12:16:25 +0530 Himani Aggarwal incrediblehim...@gmail.com 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

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 jblanch...@pocket.com 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

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

2010-11-15 Thread Himani Aggarwal
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

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

2010-11-15 Thread Aman Singh
Aggarwal incrediblehim...@gmail.com 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] Is it possible to create a global namespace alias?

2010-10-04 Thread Matt Palermo
Is it possible to create a global namespace alias in PHP or does the alias have to be defined in EVERY file that I use? Here is an example: file: main.php ?php use \this\is\my\custom\namespace\Item as nsItem; ? file: index.php ?php require_once “main.php”; // Attempt to use namespace

[PHP] Is it possible to create a global namespace alias?

2010-10-03 Thread Matt Palermo
Is it possible to create a global namespace alias in PHP or does the alias have to be defined in EVERY file that I use? Here is an example: file: main.php ?php use \this\is\my\custom\namespace\Item as nsItem; ? file: index.php ?php require_once “main.php”; // Attempt to use namespace

[PHP] pecl/oauth - possible to send HTTP request myself?

2010-08-26 Thread Marc Abramowitz
The typical way to use pecl/oauth seems to use OAuth::fetch which does everything including sending the HTTP request using curl or php streams. I'd like to be able to use pecl/oauth to do everything up to and including calculating the signature but then send the request using different code.

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

2009-02-05 Thread TS
] 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 unsubscribe email address

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

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. If you

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 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://domain/?somevar=somevalue;)

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

2009-02-04 Thread Stuart
2009/2/3 TS sunnrun...@gmail.com: 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

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

2009-02-04 Thread Stuart
@lists.php.net Assunto: Re: [PHP] Is it possible to send POST vars through a header redirect? 2009/2/3 TS sunnrun...@gmail.com: 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

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

2009-02-04 Thread Mike Roberts
- From: TS [mailto:sunnrun...@gmail.com] Sent: Tuesday, February 03, 2009 5:47 PM To: php-general@lists.php.net Subject: [PHP] Is it possible to send POST vars through a header redirect? I'm trying to send vars via POST somehow. Is this possible? Currently I'm doing header(Location: http://domain

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

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

2009-02-04 Thread Jônatas Zechim
Try curl -Mensagem original- De: Stuart [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 sunnrun...@gmail.com: I'm trying

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 tedd.sperl...@gmail.com At 9:47 AM -0500 2/4/09, Mike

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

2009-02-04 Thread Jônatas Zechim
U can do it by using a session, or using a XML request via JS to save the vars. -Mensagem original- De: Morris [mailto:morris...@gmail.com] Enviada em: quarta-feira, 4 de fevereiro de 2009 16:00 Para: tedd Cc: Mike Roberts; php-general@lists.php.net Assunto: Re: [PHP] Is it possible

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

2009-02-04 Thread Shawn McKenzie
: 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 sunnrun...@gmail.com: 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

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

2009-02-04 Thread Ashley Sheridan
@lists.php.net Subject: [PHP] Is it possible to send POST vars through a header redirect? 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

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 li...@cmsws.com 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 need to look

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 li...@cmsws.com 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

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

2009-02-03 Thread 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. Thanks, T -- PHP General Mailing List (http://www.php.net/) To unsubscribe,

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

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

2007-10-22 Thread Daevid Vincent
:[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 commands (or a shell/ruby script for example), then have PHP/Apache exec

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 It won't work.

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 possible to

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

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

2007-10-19 Thread Louie Miranda
Is it possible to restart Windows Apache (service) on a PHP script? i have installed PHP/Apache on a Windows machine. Added the ext windows32 service. But could not find any how to or information online. Please help! -- Louie Miranda ([EMAIL PROTECTED]) http://www.axishift.com Security Is A

[PHP] Is it possible to create a php.so

2007-09-07 Thread Khai
? Is there any other caching implementation that we can use? Is it possible to compile PHP so that the core of it is in a dynamically linked library (I am running in a Linux/Unix environment)? Can I turn my PHP code into a dynamic link library ? Thanks Khai -- PHP General Mailing List (http

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

2007-08-17 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. So,

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

2007-08-16 Thread hshh
Hi, 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. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

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

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

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: img src=image.jpg?arandomstringhereeachtime Or if you were creating it with a php script: img src=image.php?img=image.jpgarandomstringhereeachtime My preferred way of doing it,

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 based

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 effect

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 have a

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: ?php header(Cache-Control: no-cache, must-revalidate); // HTTP/1.1 header(Expires:

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

2007-07-26 Thread Dan
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 get from a database call and then use

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

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

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 .jpg files also,

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 cache

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

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: ?php header(Cache-Control: no-cache, must-revalidate); // HTTP/1.1 header(Expires: Mon, 26 Jul 1997 05:00:00 GMT); // Date in the past ?

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

2007-06-09 Thread barophobia
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 arguments. Is there any way around this?

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

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

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

2006-08-02 Thread Jochen Kaechelin
.. to build a url like http://devil.server.com/vitims_page.php?? // a,b,c,d are coming from a form // and are defined in a dropdown of the form // there are no form fields which can be filled by the user // a maybe Germany, England // b maybe Support, Training // register_globals =

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

[PHP] Is this possible with php

2006-03-06 Thread Mace Eliason
Hi, I really don't think this is possible from what I know of php, but I thought I would as the experts. Is it possible to have php create directories and move files on a local machine. I have created a web portal

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

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

2005-12-15 Thread pw
Hello, 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? Thanks, Peter -- 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 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:

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

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 the code you need.

Re: [PHP] PHP CLI - possible for mass mailing?

2005-09-27 Thread Torgny Bjers
Denis Gerasimov wrote: We are working on a PHP project that implements mass mailing to a large number of its subscribers (expected 100,000-200,000 users; not spam mailing BTW). So I am wondering if it is possible to use PHP CLI binary for this purpose and if there are any problems with PHP

RE: [PHP] PHP CLI - possible for mass mailing?

2005-09-27 Thread Jim Moseby
-Original Message- From: Denis Gerasimov [mailto:[EMAIL PROTECTED] Sent: Tuesday, September 27, 2005 1:45 AM To: PHP General Mailing List Subject: [PHP] PHP CLI - possible for mass mailing? Hello List, We are working on a PHP project that implements mass mailing

[PHP] PHP CLI - possible for mass mailing?

2005-09-26 Thread Denis Gerasimov
Hello List, We are working on a PHP project that implements mass mailing to a large number of its subscribers (expected 100,000-200,000 users; not spam mailing BTW). So I am wondering if it is possible to use PHP CLI binary for this purpose and if there are any problems with PHP in this case

[PHP] Domain Info Possible?

2005-09-15 Thread Chirantan Ghosh
Hello, I was wondering if there was way to generate domain statistics by any PHP script? I just need some basic info like: Monthly Traffic( Sites, Kbytes, Visits, Pages, Files, Hits ) Example: http://server18.internetserver.com/stats/1800homecare/ If it is possible can I also create a Log In

Re: [PHP] Domain Info Possible?

2005-09-15 Thread Jordan Miller
do you have log files? the page you linked to was generated by webalizer. is there a reason you can't use that (or Awstats, or something similar)? you probably don't need to reinvent the wheel here... though you may need to tweak your webserver to put more information in the log files so

[PHP] is it possible.

2005-07-29 Thread jenny mathew
hello group, i have a problem and hope anybody here will be able to hep me out. i have a downloads folder in my server which contains all the files in zipped form to be downloaded by members.members are authenticated by entering username and password.and when they click to download the files

Re: [PHP] is it possible.

2005-07-29 Thread André Medeiros
When deppending on authentication, never link the files directly. You can create a download.php file that gets an ID through the URL, checks if the user is authenticated and then read the file. You will need these functions: http://pt.php.net/file_get_contents http://pt.php.net/header Header()

Re: [PHP] is it possible.

2005-07-29 Thread jenny mathew
i used following code for downloading file.whenever the members cicked the file for downloading ,the download request (with the variable containing file id) was send to download.php .The download.php on recieving the file id fetches the url of the fileand redirects to the file url using

Re: [PHP] is it possible.

2005-07-29 Thread Gorm
You could copy the file to a temp-file file_id.zip and delete it after download. But perhaps it is possible to just have the file in cache ? jenny mathew wrote: i used following code for downloading file.whenever the members cicked the file for downloading ,the download request (with the

Re: [PHP] is it possible.

2005-07-29 Thread Matt Darby
jenny mathew wrote: hello group, i have a problem and hope anybody here will be able to hep me out. i have a downloads folder in my server which contains all the files in zipped form to be downloaded by members.members are authenticated by entering username and password.and when they click to

Re: [PHP] is this possible in PHP?

2005-05-04 Thread disguised.jedi
-It note with your root password on it. Is such a thing possible in PHP.. or does any such script exists? Definitely. If you take the right approach! I'd use a database. You could certainly find a class or script that could accomplish the database lookup that would get what you wanted. I'd start

Re: [PHP] is this possible in PHP?

2005-05-04 Thread Richard Collyer
[EMAIL PROTECTED] wrote: I'd make a script that went through the httpd.conf file with DOM and pulled out all the virtual hosts. Either that or looked at the home directory listings for each site. If this is what you were getting at (seeing as you mentioned root access and what-not), then read

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

2005-05-03 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

[PHP] is this possible in PHP?

2005-05-03 Thread Dasmeet Singh
? Is such a thing possible in PHP.. or does any such script exists? Thanks in advance! Dasmeet SayOrange.com How to choose the best web hosting? http://www.sayorange.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] is this possible in PHP?

2005-05-03 Thread Kim Madsen
a list of all the websites hosted on my server..eg: abc.com xyz.om And any additional info if possible? Is such a thing possible in PHP.. or does any such script exists? If You´re running Apache, parse the httpd.conf and echo the line containing ServerName? -- Med venlig hilsen / best

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

Re: [PHP] is this possible in PHP?

2005-05-03 Thread Rasmus Lerdorf
if possible? Is such a thing possible in PHP.. or does any such script exists? Generally, no. You would need some black magic that probed the guts of your web server for this information. And by black magic I mean some low-level C code. A bit of grey magic I wrote almost exactly 9 years ago

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

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

  1   2   3   4   >