$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
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
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
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,
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,
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:
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
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
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
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
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
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
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
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
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
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
[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
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
[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
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
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
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
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
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
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
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.
]
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
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
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
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
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;)
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
@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
-
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
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
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
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
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
: 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
@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
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.
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
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
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,
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
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
:[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
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.
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
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
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
? 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
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,
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
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
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
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,
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
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
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
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:
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
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
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,
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
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,
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
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
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
?
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?
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
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
.. 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 =
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 +.
--
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
[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
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
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:
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
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.
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
-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
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
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
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
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
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()
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
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
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
-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
[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
(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
?
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
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
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
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
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
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
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 - 100 of 360 matches
Mail list logo