On 8/30/06, Stut <[EMAIL PROTECTED]> wrote:
Peter Lauri wrote:
> I have some images stored in a database (only file name and other relevant
> information, rest stored in file system).
>
> I use the following html to access them:
>
>
>
> At some pages I have the same image, so that tag will be se
On 8/29/06, Rafael Mora <[EMAIL PROTECTED]> wrote:
Hi!
i want to send a file or output stream in a .php, but first compress it, I
tryed the example to compress files but how do i do to send as answer to the
http request??
Unlike my recent posts, this could be a candidate for using ob_*
There
Please remove your 'this message is for the sole use of the person...'
thing or simply use a different account to ask questions..
On 8/29/06, Miguel Guirao <[EMAIL PROTECTED]> wrote:
Hi all,
I'm using ob_start() in order to save the content of a web page into a
variable string and then save i
Has anyone created an RSS feed creator in PHP? I could make one fast
enough, but ...
John
--
John Taylor-Johnston
-
"If it's not Open Source, it's Murphy's Law."
'''Cégep de Sherbrooke:
ô¿ôhttp://www.cegepsherbr
On 8/30/06, Jay Blanchard <[EMAIL PROTECTED]> wrote:
[snip]
Are there free shopping carts that would work with
PHP 5.0.X + and MySQL 4.1.X + and /or PostgresQL 8.1+ ?
[/snip]
Yes.
Just in case:
Try google: 'php mysql shopping' cart or
'php pgsql shopping cart'
--
PHP General Mailing List (
On 8/30/06, Shu Hung (Koala) <[EMAIL PROTECTED]> wrote:
On 8/31/06, Peter Lauri <[EMAIL PROTECTED]> wrote:
>
> Koala,
>
> There is no difference with the php generated javascript and javascript on
> a
> static html page.
>
> Take a look at the source code of the page that has been generated in th
put this at the top of your script "ob_start();" or before any output.
On 8/31/06, Shu Hung (Koala) <[EMAIL PROTECTED]> wrote:
On 8/31/06, Peter Lauri <[EMAIL PROTECTED]> wrote:
>
> Koala,
>
> There is no difference with the php generated javascript and javascript
on
> a
> static html page.
>
>
On 8/31/06, Peter Lauri <[EMAIL PROTECTED]> wrote:
Koala,
There is no difference with the php generated javascript and javascript on
a
static html page.
Take a look at the source code of the page that has been generated in the
browser, and if that one looks as it should, it is probably your
ja
Koala,
There is no difference with the php generated javascript and javascript on a
static html page.
Take a look at the source code of the page that has been generated in the
browser, and if that one looks as it should, it is probably your javascript
that is not doing what it should :)
And if t
Hello,
I'm writing a script to generate a javascript. The javascript would
generate a banner when it is sourced. This javascript is sourced
by another html like this:
However, Sometimes the javascript doesn't show anything at all. it
seems that the php generated javascript cannot be loaded som
On 8/30/06, Miguel Guirao <[EMAIL PROTECTED]> wrote:
> Once the file has been created and saved as I doc file (not a doc
format!),
> I e-mail it!
>
> When the client gets the e-mail, he/she should open the file either by
> saving the file to the local system or openning the file directly from the
[snip]
Are there free shopping carts that would work with
PHP 5.0.X + and MySQL 4.1.X + and /or PostgresQL 8.1+ ?
[/snip]
Yes.
You do have access to Google, right?
http://www.google.com/search?hl=en&lr=&q=free+open+source+shopping+cart+
php+5+mysql
--
PHP
Are there free shopping carts that would work with
PHP 5.0.X + and MySQL 4.1.X + and /or PostgresQL 8.1+ ?
--
Member - Liberal International
This is [EMAIL PROTECTED] Ici [EMAIL PROTECTED]
God Queen and country! Beware Anti-Christ rising!
New Brunswick kick out the Harper Puppet and VOT
I have a php app that runs on php4. I am writing some unit tests now using
SimpleTest but some of the libraries that I have to pull in for testing are
failing. For example, my db library sets some params:
$dname="mydatabase";
$usr="me";
..etc
I then have some mysql functions that connect using
I think the stations.zip is empty... Try this:
Between your scripting and the readfile() put a sleep(2); between so it waits 2
seconds before pushing the data.
And I also suggest:
while()
{
fwrite($da, "$somevar1:$somevar2");
}
fclose($da);
Header()
(try sleep(2); here)
readfile();
---
I can download it, but when I see the file I downloaded has 0 bytes, and I
have readfile("stations.zip");
On 8/30/06, Peter Lauri <[EMAIL PROTECTED]> wrote:
But can you download it correctly? Is it just the download box that shows
0 bytes?
Or is it so that you actually is doing what you do
But can you download it correctly? Is it just the download box that shows 0
bytes?
Or is it so that you actually is doing what you do below readfile() without any
argument? So that you are actually downloading something empty? :)
/Peter
-Original Message-
From: Rafael Mora [mailto:[E
Miguel Guirao wrote:
include("evm_mailer.php"); //The class I'm using for sending e-mails, from
www.phpclasses.org
ob_start(); // Start Output Buffer functionality
//**
function sendcorreo($from,$doc,$dept
On Wed, 30 Aug 2006 21:46:18 +0700
"Peter Lauri" <[EMAIL PROTECTED]> wrote:
> function is_utf8_start($b) {
> return (($b & 0x80) == 0) || ($b & 0x40);
> }
> [/snip]
>
> :) I think I will go with the mb_substr function, it works for me :)
Yeah, I guess that's the right thing to do. Othe
At 4:34 PM +0200 8/30/06, Jochem Maas wrote:
tedd wrote:
At 2:19 PM +0200 8/30/06, Paul Scott wrote:
On Wed, 2006-08-30 at 13:10 +0100, Ross wrote:
(ii) what is the technique called
Read up on MVC (Model View Controller) and the front end controller
design pattern.
Wikipedia is a goo
OK, here is the code behind my problem:
include("evm_mailer.php"); //The class I'm using for sending e-mails, from
www.phpclasses.org
ob_start(); // Start Output Buffer functionality
//**
function sendcor
we have a 'Matt' that's actually a 'Dave' (or is it the other way around),
now we have a 'Bogdan' who is propably a 'Boban'.
Im sure there are other examples.
Seems we attract multiple personality disorder cases around here.
Good catch :)
Boban is my nickname that everybody calls me, Bogda
do, not try.
http://us3.php.net/strip_tags
tedd
Thanx, you've been lots of help :) But I wanted to clean out unwanted
tags, not all of them. I found this class:
http://phpclasses.waaf.net/browse/package/2189.html
that is supposed to do the job, in case someone else has same problem.
-
Hi!!
What I do is just this:
$_ar = array();
while($_field = mysql_fetch_row($_result))
{$_aloft["$_field[0]"] = "$_field[1]";}
while(list($_key,$_val) = each($_ar))
On 8/30/06, Christopher Watson <[EMAIL PROTECTED]> wrote:
I'm looking for a native method for taking all of the value
[snip]
Actually this is false. I don't know what I was thinking. The high bit
will be set in all bytes of a UTF-8 byte sequence. If it's not it's an
ASCII character.
The bytes are actually layed out as follows [1]:
U- ___ U-007F: 0xxx
U-0080 ___ U-07FF: 110x
tedd wrote:
> At 4:12 PM +0200 8/30/06, Bogdan Ribic wrote:
>> Hi all,
>>
>> I need to check html that is entered by user for unsafe content (ie
>> javascript, vbscript, onmouseover etc) and still keep "safe" tags. Is
>> there any easy way for that?
>>
>> Boban.
>
>
> Try strip_tags().
do, not
Bogdan Ribic wrote:
> Hi all,
>
> I need to check html that is entered by user for unsafe content (ie
> javascript, vbscript, onmouseover etc) and still keep "safe" tags. Is
> there any easy way for that?
PRTFM: http://php.net/striptags
>
> Boban.
we have a 'Matt' that's actually a 'Dave' (o
At 4:12 PM +0200 8/30/06, Bogdan Ribic wrote:
Hi all,
I need to check html that is entered by user for unsafe content
(ie javascript, vbscript, onmouseover etc) and still keep "safe"
tags. Is there any easy way for that?
Boban.
Try strip_tags().
http://us3.php.net/strip_tags
tedd
--
-
I'm looking for a native method for taking all of the values from one
column of a query result and creating an array of those values.
Procedurally, I'd tend to want to do this:
query("SELECT my_id FROM my_table");
while ($row = $query_result->fetchRow())
$my_id_array[] = $row['my_id'];
?>
Hec
tedd wrote:
> At 2:19 PM +0200 8/30/06, Paul Scott wrote:
>> On Wed, 2006-08-30 at 13:10 +0100, Ross wrote:
>>> (ii) what is the technique called
>>
>> Read up on MVC (Model View Controller) and the front end controller
>> design pattern.
>>
>> Wikipedia is a good start.
>>
>> --Paul
>
> Interest
On Wed, 30 Aug 2006 10:08:36 -0400
Michael B Allen <[EMAIL PROTECTED]> wrote:
> On Wed, 30 Aug 2006 18:34:20 +0700
> "Peter Lauri" <[EMAIL PROTECTED]> wrote:
>
> > Hi group,
> >
> > I want to limit the number of characters that are shown in a script. The
> > characters happen to be Thai, and the
At 2:19 PM +0200 8/30/06, Paul Scott wrote:
On Wed, 2006-08-30 at 13:10 +0100, Ross wrote:
(ii) what is the technique called
Read up on MVC (Model View Controller) and the front end controller
design pattern.
Wikipedia is a good start.
--Paul
Interesting that someone finally put a name to
Hi all,
I need to check html that is entered by user for unsafe content (ie
javascript, vbscript, onmouseover etc) and still keep "safe" tags. Is
there any easy way for that?
Boban.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
On Wed, 30 Aug 2006 18:34:20 +0700
"Peter Lauri" <[EMAIL PROTECTED]> wrote:
> Hi group,
>
> I want to limit the number of characters that are shown in a script. The
> characters happen to be Thai, and the page is encoded in UTF-8. Everything
> works, except when I want to cut the text (just take
Do this.
1. Create a script called hello.php with the following content:
2. Enter http://yoururl/hello.php?string=Hello
3. The page will say "Hello"
The content after the ? will be treated as GET variables in the http request
to the server. You can use this to change behavior of a script depe
[snip]
There is a site which has interesting behaviour.
http://myurl.co.uk/index.php?p=latest
when I click the links the variable and the end changes changing the
page.
http://myurl.co.uk/index.php?p=news
Can someone tell me
(i) how is this achived
(ii) what is the technique called
(iii) does
Hi!!
Well it works now, but with another issue, when I download it, it says that
it size is 0 bytes!!
i fwrite the file in a while, is it correct?
header()...
while()
{
fwrite($da, "$somevar1:$somevar2");
}
fclose($da);
readfile();
thanks
On 8/30/06, Peter Lauri <[EMAIL PROTECTED]> wrote:
Angelo Zanetti wrote:
thanks for the reply, I've got the classes now how do I know which
character set to use for the TM to be shown correctly?
Character sets can be a nasty business...
You were using the ISO-8859-1 character set in your headers. TM doesn't
exist in that character set. That's
On Wed, 2006-08-30 at 13:10 +0100, Ross wrote:
> (ii) what is the technique called
Read up on MVC (Model View Controller) and the front end controller
design pattern.
Wikipedia is a good start.
--Paul
All Email originating from UWC is covered by disclaimer
http://www.uwc.ac.za/portal/uwc2006/
Ross wrote:
> There is a site which has interesting behaviour.
>
> http://myurl.co.uk/index.php?p=latest
>
> when I click the links the variable and the end changes changing the page.
>
> http://myurl.co.uk/index.php?p=news
>
> Can someone tell me
>
> (i) how is this achived
index.php --->
(
Peter Lauri wrote:
> Hi group,
>
> I want to limit the number of characters that are shown in a script. The
> characters happen to be Thai, and the page is encoded in UTF-8. Everything
> works, except when I want to cut the text (just take start of string).
>
> I do:
>
> echo substr($thaistring,
There is a site which has interesting behaviour.
http://myurl.co.uk/index.php?p=latest
when I click the links the variable and the end changes changing the page.
http://myurl.co.uk/index.php?p=news
Can someone tell me
(i) how is this achived
(ii) what is the technique called
(iii) does it have
Hi group,
I want to limit the number of characters that are shown in a script. The
characters happen to be Thai, and the page is encoded in UTF-8. Everything
works, except when I want to cut the text (just take start of string).
I do:
echo substr($thaistring, 0, 30);
The beginning of the string
Thanks. I went for the version where I use the path to the file instead :)
/Peter
-Original Message-
From: Stut [mailto:[EMAIL PROTECTED]
Sent: Wednesday, August 30, 2006 5:02 PM
To: Peter Lauri
Cc: php-general@lists.php.net
Subject: Re: [PHP] Not using cached version
Peter Lauri wrote:
Peter Lauri wrote:
I have some images stored in a database (only file name and other relevant
information, rest stored in file system).
I use the following html to access them:
At some pages I have the same image, so that tag will be seen on multiple
places on the same page. So what I am cu
Rafael Mora wrote:
> Hi!
>
> i want to send a file or output stream in a .php, but first compress it, I
> tryed the example to compress files but how do i do to send as answer to
> the
> http request??
trye the other example
>
> Rafa
>
--
PHP General Mailing List (http://www.php.net/)
To un
Hi,
I have some images stored in a database (only file name and other relevant
information, rest stored in file system).
I use the following html to access them:
At some pages I have the same image, so that tag will be seen on multiple
places on the same page. So what I am curious is why all
Manuel Lemos wrote:
Hello,
on 08/29/2006 09:04 AM Angelo Zanetti said the following:
I have various PHP CRONTAB scripts that run and send automated emails to
people, the subject often contains the "TM" character: ™, in most of the
email clients the character shows correctly but in some we
Miguel Guirao wrote:
I'm using ob_start() in order to save the content of a web page into a
variable string and then save it into a file in the file system. Every thing
is done OK. The only workaround I'm doing is adding a .doc file extension
when saving the file, in order to open the file in Wor
Hi group,
I have noticed that GD-lib does not support BMP images. In the user comment
on the manual page there is a note that one can use bmp2png function to
convert that (http://cetus.sakura.ne.jp/softlab/b2p-home/) This is not
applicable for me when I do not want to run any outside scripts.
50 matches
Mail list logo