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 Gjersøyen

Re: [PHP] Is it possible???

2013-06-24 Thread Stuart Dallas
On 24 Jun 2013, at 12:59, Karl-Arne Gjersøyen 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 $update_item_amount_in_st

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

[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; click me"; if ( $_GET['var1']=='val1' ) { //change the current post's html title to val1 without using javascript/jquery } ?>

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

[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

[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 file: index.php The above code doesn’t work for me. The namespace alias defined in the main.php file isn’t accessible in the index

[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 file: index.php The above code doesn’t work for me. The namespace alias defined in the main.php file isn’t accessible in the index

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

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'

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 to

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
al Message- 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(&quo

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

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 : > I'm trying to send

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

[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, vis

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

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

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

2007-09-07 Thread Khai
I have several background processes written in PHP. In our design, we have the parent process which check if there is work to process, and if so launch a child process via exec() to do actual work. By design, we want the child process to do just what it was told to do and gracefully terminate

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

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

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

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

[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? Thanks,

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

[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 = o

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

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

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

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

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

[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 ,th

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

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

2005-04-21 Thread Jon M.
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 here -just to be clear. e.g. fopen("what_ever_file",

[PHP] Is it possible to get the whole address (including http:// ) ?

2005-04-21 Thread Labunski
Hello, I know for example how to get http vars or basename, but this time I need to get the whole address, including http:// . Is it possible? Thanks in advance, Lab. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Is it Possible?

2005-02-04 Thread Sagar C Nannapaneni
annapaneni" <[EMAIL PROTECTED]> Cc: Sent: Friday, February 04, 2005 5:36 PM Subject: Re: [PHP] Is it Possible? > Sagar C Nannapaneni wrote: > > I'm calling a php script with tag > > > > for ex: http://localhost/test.php?img=asfd";> > > > &g

Re: [PHP] Is it Possible?

2005-02-04 Thread Erwin Kerk
Sagar C Nannapaneni wrote: I'm calling a php script with tag for ex: http://localhost/test.php?img=asfd";> and the test.php is as follows... test.php --- Theres no problem with this..its working fine. But i want to return some text(or Html)

Re: [PHP] Is it Possible?

2005-02-04 Thread Martin Holm
Sagar C Nannapaneni wrote: I'm calling a php script with tag for ex: http://localhost/test.php?img=asfd";> and the test.php is as follows... test.php --- Theres no problem with this..its working fine. But i want to return some text(or Html)

[PHP] Is it Possible?

2005-02-04 Thread Sagar C Nannapaneni
I'm calling a php script with tag for ex: http://localhost/test.php?img=asfd";> and the test.php is as follows... test.php --- Theres no problem with this..its working fine. But i want to return some text(or Html) the browser along wi

Re: [PHP] Is it possible compile a php script to native binary like perlcc ?

2005-02-02 Thread Richard Lynch
Unreal HSHH wrote: > Is it possible compile a php script to native binary like perlcc ? > That can run the binary and no depend on php. Not truly, but Google for "PHP Compiler" and you should find some alternatives that may fit your needs. Fair Warning: Some will be commercial, some won't. -- L

  1   2   3   >