it works,
thx
Chris W. Parker [EMAIL PROTECTED] schreef in bericht
news:[EMAIL PROTECTED]
Pablo Zorzoli mailto:[EMAIL PROTECTED]
on Wednesday, October 29, 2003 11:20 AM said:
You cannot do any echo ; before header(location:..); maybe that's
the problem.
The solution would be to turn on
On Wed, 29 Oct 2003 19:27:36 -0600
David Miller [EMAIL PROTECTED] wrote:
I have written PHP code to upload and download files to my
server through my browser.
On the local side I have generated a java applet to do a
few things that I just
can't do with a browser. There are some
(Just FYI)
On Wed, 29 Oct 2003 23:03:55 +0100
Ryan A [EMAIL PROTECTED] wrote:
If I have said it once I have said it a thousand
times..MAC's are evil. Step away from it and leave the
darkness behind.come towards the light and thePC
...[snip]...
Too bad for you...
Just by reading
Why can't you do this using PHP?
Have a php script generate a directory listing the user can choose from
and when the user chooses a picture load that picture.
Jacob
On Thu, 2003-10-30 at 02:27, David Miller wrote:
I have written PHP code to upload and download files to my server through my
- Edwin - wrote:
Just by reading this - http://www.apple.com/macosx/ esp.
these last two sections:
* Solid as a rock
* Developer's dream
would give people reason to consider and even switch...
Mac OS X is fairly stable, I'll give you that. As for developer's
dream, that's a matter of
On Wed, Oct 29, 2003 at 12:47:58PM -0500, Dan wrote:
:
: please help with the following:
:
: I tried this first :
: $b[] = 'Book Worzel, Richard (1989). From Employee to Entrepreneur: how to
: turn your experience into a fortune. Toronto: Key Porter books.';
: $b[] = 'Book Ries, Al and Jack
On Thu, 30 Oct 2003 02:47:47 -0500
Leif K-Brooks [EMAIL PROTECTED] wrote:
- Edwin - wrote:
Just by reading this - http://www.apple.com/macosx/ esp.
these last two sections:
* Solid as a rock
* Developer's dream
would give people reason to consider and even switch...
Mac OS X
In my view, to keep the object oriented approach cleaner you should use
another class for describing your item, like:
class Item {
var $_product_id;
var $_quantity;
function Item($productId, $quantity) {
$this-_product_id = $productId;
$this-_quantity = $quantity;
}
function
PHP Gurus,
Hello, I'm new to this list. I'm very much new to PHP, so my
questions will be very basic.
I have two things I need to do in Japanese:
1. Store people's names in kanji in my MySQL database.
To this end, I've set up an INSERT command without doing
PHP Gurus,
This is my other question which motivated me to join this list.
I've been using the book PHP and MySQL Web Development to
learn how to build dynamically driven sites. For the most part it's
great. But I don't have anyone I know personally that I can ask when I
don't
Hi everyone,
I would like to use apache 2 in a production environment, but initially
there seemed to be some issues with the PHP module. Does anybody know if it
is ok use it now or is it still buggy with apache 2?
Fern
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit:
Dave G wrote:
In the example they give in this book, they use a while loop
(page 670, for anyone who has it). But it's confusing because it looks
like this:
while ( $subscriber = mysql_fetch_row($result))
{
[write and send the email]
}
$subscriber
Unless you want to do string manipulation you don't need mbstring. You
only need to pay atention to these details:
1. Set charset to kanji for your html pages using
header('Content-type: text/html; charset=kangi');
2. In phpMyAdmin choose Japanese with kangi encoding for the interface
language.
I'm just adding a working example to my last post; check the
implementation part at the end of the script;
Cheers, Allex
?php
class Item {
var $_productID;
var $_quantity;
function Item($productID, $quantity) {
$this-_productID = $productID;
On Thu, Oct 30, 2003 at 10:36:37AM +0100, Marek Kilimajer wrote:
:
: Unless you want to do string manipulation you don't need mbstring. You
: only need to pay atention to these details:
: 1. Set charset to kanji for your html pages using
: header('Content-type: text/html; charset=kangi');
a.
I'm sorry, I have never worked with Japanese. ;)
Eugene Lee wrote:
On Thu, Oct 30, 2003 at 10:36:37AM +0100, Marek Kilimajer wrote:
:
: Unless you want to do string manipulation you don't need mbstring. You
: only need to pay atention to these details:
: 1. Set charset to kanji for your html
On Thu, Oct 30, 2003 at 11:22:38AM +0200, Fernando Melo wrote:
:
: I would like to use apache 2 in a production environment, but initially
: there seemed to be some issues with the PHP module. Does anybody know
: if it is ok use it now or is it still buggy with apache 2?
The combination of PHP
max_execution_time does not affect file uploads. Php script and thus
also the timer starts after the upload is finished. max_input_time might
influence it as it is the time allowed for the browser to post the data.
Justin French wrote:
See these three directives in php.ini:
max_execution_time
Dear Friends,
Is it possible to retrieve the first slide from a presentation and display
it as a thumbnail on my site. Users will upload ppt's which should be
displayed in form of thumbnails on my site. On clicking a particular
thumbnail the presentation (.ppt or .pps) file should be displayed.
[snip]
But in the rest of the script I can't find where they declare and fill
this array.
[/snip]
The subscriber array is filled by the query. Since PHP is not a strongly
typed language there is no need to declare the array.
$sql = SELECT `foo`, `bar` FROM `customers` WHERE `status` = 'active';
Please, include the list's address in cc. You will have much higher
chance to get an answer.
Dave G wrote:
With regards to the kanji field in the MySQL database:
Only one field in one table uses kanji. There are seven other
tables. Will setting the character set to
Cpt John W. Holmes wrote:
If you're using sessions in the URL, then it works just fine.
So, if PHP is less than 4.3.3, you need to use setcookie() to reset the
value of the session id yourself. If you're using 4.3.3, then you don't have
to worry about it.
I see, but then I would rather
Hi,
Now GD doesn't support GIF file format, how can I use imageXXX
functions in order to resize/transform/... GIF files?
Are there any tools transforming GIF to JPG/PNG/..?
Thks in advance.
(o_ BENARD Jean-Philippe - Consultant STERIA Infogérance
(o_ (o_ //\
http://www.imagemagick.org/
Edward Dudlik
Those who say it cannot be done
should not interrupt the person doing it.
wishy washy | www.amazon.com/o/registry/EGDXEBBWTYUU
- Original Message -
From: BENARD Jean-philippe [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Thursday, 30 October,
And when will it be considered stable? It's been a while since Apache 2 was
released. PHP needs to speed up for its own good.
-Original Message-
From: Eugene Lee [mailto:[EMAIL PROTECTED]
Sent: 30 October 2003 11:55
To: [EMAIL PROTECTED]
Subject: Re: [PHP] PHP Apache 2
On Thu, Oct
BENARD Jean-philippe wrote:
Hi,
Now GD doesn't support GIF file format, how can I use imageXXX
functions in order to resize/transform/... GIF files?
Are there any tools transforming GIF to JPG/PNG/..?
Use image functions in this order:
imagecreatefromgif - read the gif file
imagecreate -
On 2003.10.30, at 18:46 Asia/Tokyo, Eugene Lee wrote:
On Thu, Oct 30, 2003 at 10:36:37AM +0100, Marek Kilimajer wrote:
:
: Unless you want to do string manipulation you don't need mbstring.
You
: only need to pay atention to these details:
: 1. Set charset to kanji for your html pages using
:
On Thu, 2003-10-30 at 14:53, Fernando Melo wrote:
And when will it be considered stable? It's been a while since Apache 2 was
released. PHP needs to speed up for its own good.
Maybe soon, maybe never. This question is covered in a lot of FAQ's on
the web. Please search google if you are
Fatal error: Call to undefined function: imagecreatefromgif() in ...
New GD version doen't include imagecreatefromgif api because of gif patent
...
Cordialement,
Jean-Philippe BENARD
Consultant STERIA Infogérance
([EMAIL PROTECTED])
-Message d'origine-
De : Marek Kilimajer
How can i read all files line by line? I am running windows. I know that
there is then a \r\n but i don't know how to extract them... Can you help
me?
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
[snip]
How can i read all files line by line? I am running windows. I know that
there is then a \r\n but i don't know how to extract them... Can you
help
me?
[/snip]
start with http://www.php.net/fopen
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit:
--- Luis Lebron [EMAIL PROTECTED] wrote:
I am rebuilding a php application to handle a higher load. The
previous programmer had created a series of dynamically generated
select boxes using a mysql table. Would it be faster or less
resource intensive to create a series of arrays to generate the
Hi,
On 2003.10.30, at 18:11 Asia/Tokyo, Dave G wrote:
PHP Gurus,
Hello, I'm new to this list. I'm very much new to PHP, so my
questions will be very basic.
I have two things I need to do in Japanese:
1. Store people's names in kanji in my MySQL database.
To this
Now sorry... I already know to use fopen... I want a script that parses all
lines from a file... Just like a loop that with every time it is executed,
it echos a line from the file... (this is just a example... else i was using
file_get_contents and nl2br...)
Jay Blanchard [EMAIL PROTECTED] wrote
[snip]
Now sorry... I already know to use fopen... I want a script that parses
all
lines from a file... Just like a loop that with every time it is
executed,
it echos a line from the file... (this is just a example... else i was
using
file_get_contents and nl2br...)
[/snip]
Well, Bas, the fopen
PHP needs to speed up for its own good.
PHP itself is not the issue. Extensions to PHP are what may cause problems. As Filip
said, there are already many discussions about this on the web.
Edward Dudlik
Those who say it cannot be done
should not interrupt the person doing it.
wishy washy |
Try file() function
Bas [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
How can i read all files line by line? I am running windows. I know that
there is then a \r\n but i don't know how to extract them... Can you help
me?
--
PHP General Mailing List (http://www.php.net/)
To
Well, Bas, the fopen and it's associated manual pages describe just how
to do this. Basic example
$theFile = fopen(myfile.foo, r); //open the file for reading
while(!feof($theFile)){ // while the file is not at the end of the file
$theLine = fgets($theFile, 1024); // get a line,
Hello,
I have a stranger behaviour of the function imagecolorallocate.
Normally, this function is used to create a color for an image and the
first call to this function set the background color of the image.
So here is my code :
?php
[snip]...[/snip]
$im = imagecreate(15, 15);
$white =
Hi,
I have just installed APache 2 and PHP 4.3.3 on Linux. and my software that
i want to run on it requires both with IMAP Extension.
How can i enable IMAP Extension???
ALso would like to know if there is any sample application avl. that can
help me check my PHP with mysql.or may be a way by
Ah, man, I just found my problem, and do I ever feel stupid... Thought
I'd share it to highlight the it's right in front of one's nose
feeling:
copy($_FILES['userfile']['tmp_name']...
...was a sample code snippet. I had just copied and pasted it without
changing the userfile partand since
* Thus wrote René Fournier ([EMAIL PROTECTED]):
Ah, man, I just found my problem, and do I ever feel stupid... Thought
I'd share it to highlight the it's right in front of one's nose
feeling:
copy($_FILES['userfile']['tmp_name']...
You should really use:
Hi,
I'm looking for a function that does almost the same as array_unique()
But it must also delete the other duplicate entry.
sample to explain:
array(
'a' = 'one',
'b' = 'one',
'c' = 'zero',
'd' = 'two'
);
I now want the result to be:
array(
'c' = 'zero',
'd' = 'two'
);
This way I will be
I want to be able to set a base class in a settings file, and then have other
classes extend the base class, but PHP won't let me do what I have tried.
I get the following error:
Fatal error: Class cepweb: Cannot inherit from undefined class my_base_class
in /home/me/my_child_class.php on line
I'm looking for a function that does almost the same as array_unique()
But it must also delete the other duplicate entry.
snip
Untested pseudo-PHP follows -
$encountered_elements = array();
foreach($original_array as $key = $val)
if(in_array($val,
The devil will always give you lots of reasons to convert you
Do not always take the smooth path, the rough path sometimes.. is the
right path.
:-D
Cheers,
-Ryan
Oh BTW - Macs are EVIL.
On Thu, 30 Oct 2003 02:47:47 -0500
Leif K-Brooks [EMAIL PROTECTED] wrote:
- Edwin - wrote:
Or... you could use array_count_values() and loop through the array it
produces to find out how many of each duplicate value exists in the
original array.
http://www.php.net/manual/en/function.array-count-values.php
Kevin
-Original Message-
From: Allowee [mailto:[EMAIL PROTECTED]
Shouldn't this line:
class my_child_class extends MY_BASE_CLASSFILE {
Read like this:
class my_child_class extends MY_BASE_CLASS {
After all base_class.php isn't the name of your class, base_class is.
Jackson Miller [EMAIL PROTECTED] wrote:
I want to be able to set a base class in a settings
php is not c, you can't use constants this way.
Jackson Miller wrote:
I want to be able to set a base class in a settings file, and then have other
classes extend the base class, but PHP won't let me do what I have tried.
I get the following error:
Fatal error: Class cepweb: Cannot inherit from
Folks,
I did the fillowing install
./configure --prefix=/www --with-mysql --withmssql=/usr/share/freetds --with
-apxs=/www/bin/apxs --enable-track-vars --with-config-file-path=/www/conf
When I try access the index..php via the web the file it tries to download.
I checked all
of the config
On Thursday 30 October 2003 12:29 pm, Marek Kilimajer wrote:
php is not c, you can't use constants this way.
but why? Is there a work around?
-Jackson
Jackson Miller wrote:
I want to be able to set a base class in a settings file, and then have
other classes extend the base class, but
Why? I guess because php is interpreted language and is parsed only
once, no preprocessor. Workaround is quite easy, use variable:
?php
// settings to be set on install of the app
$MY_BASE_CLASS=base_class;
define(MY_BASE_CLASSFILE,base_class.php);
// require the class file
--- Patrick Fowler [EMAIL PROTECTED] wrote:
When I try access the index.php via the web the file it tries to
download.
Try adding this to your httpd.conf:
AddType application/x-httpd-php .php
Hope that helps.
Chris
=
My Blog
http://shiflett.org/
HTTP Developer's Handbook
I'm looking for a function that does almost the same as array_unique()
But it must also delete the other duplicate entry.
snip
Untested pseudo-PHP follows -
$encountered_elements = array();
foreach($original_array as $key = $val)
if(in_array($val,
On Thursday 30 October 2003 01:27 pm, Marek Kilimajer wrote:
Why? I guess because php is interpreted language and is parsed only
once, no preprocessor. Workaround is quite easy, use variable:
I thought that too, and tried it before posting to the list (it was at the
bottom of my first email).
Hi,
Can someone explain how to extract the body information from a
multipart/mixed part of a mime encoded mail using Pear's mime::decode class?
I can get everything else, but when part is defined as multipart/mixed
it does not have a body because there are more than one part. I assume
that I
On Wed, 2003-10-29 at 17:52, Chris Shiflett wrote:
--- Pablo Zorzoli [EMAIL PROTECTED] wrote:
?
include('http://www.google.com/');
?
That should basically take Google's HTML and make it your own.
The image will obviously not work, but it should otherwise look
like Google's
I'm sure I'm not the first person to find strict checking of whether
or not variable (or array index) is set painful. I've considered
just setting error_reporting() to some lax level on every script I
write for the rest of my life, but have been thinking there might
be a better way.
What I'd like
--- Pablo Zorzoli [EMAIL PROTECTED] wrote:
I've tried with the simlpest example:
---
output.php
?
echo Hello World!;
?
--
test.php
htmlheadtitletesing!/title/head
body
?php
include ('http://***.com/output.php');
?
/body/html
--
Actually, I think the simplest example was
Jackson Miller wrote:
On Thursday 30 October 2003 01:27 pm, Marek Kilimajer wrote:
Why? I guess because php is interpreted language and is parsed only
once, no preprocessor. Workaround is quite easy, use variable:
I thought that too, and tried it before posting to the list (it was at the
On Thu, 2003-10-30 at 17:00, Chris Shiflett wrote:
Maybe it times out? Maybe the server where your PHP script is located
cannot access the server at ***.com? Maybe the output that output.php
generates isn't what you expect?
Basically, because you can include Google's home page successfully,
On Thursday 30 October 2003 02:15 pm, Marek Kilimajer wrote:
Can you show it once again. In your first email you use a constant, not
variable.
Sure. In my first email I said that I had tried with a variable too (but
didn't show the code).
Ex1 gives a cannot inherit from undefined class error
All,
Here's a new one from me. Had to move a project from a friendly linux
environment to an unfriendly windows environment.
The problem:
all the code I've tried to test whether a temp (from a form post) is there
before doing a filesize() on it is failing.
I'm doing a filesize check so absurdly
--- Pablo Zorzoli [EMAIL PROTECTED] wrote:
That's it i cannot wget it from the webserver i get
failed: Connection timed out.
i tried to wgetit from another machine and i get the desired
output.
So the server where you're running the PHP script can't connect to
the server you specify in
From: Chris Hubbard [EMAIL PROTECTED]
The problem:
all the code I've tried to test whether a temp (from a form post) is there
before doing a filesize() on it is failing.
I'm doing a filesize check so absurdly large files aren't copied from the
temp folder to a permanent folder.
(and no I
John,
thanks for the quick response. If it had been a snake it would have bit me.
Thanks. I was trying to do it the hard way.
Chris
-Original Message-
From: CPT John W. Holmes [mailto:[EMAIL PROTECTED]
Sent: Thursday, October 30, 2003 1:20 PM
To: Chris Hubbard; [EMAIL PROTECTED] Php.
Hi there,
I'm having trouble with passing objects as references. What I want to
do is something like this:
class object_1
{
var $my_chld;
var $my_array;
function object_1()
{
$this-my_array = array('id' = 0, 'name'='');
$this-my_child =
On Thursday 30 October 2003 20:37, Mike Migurski wrote:
I'm looking for a function that does almost the same as array_unique()
But it must also delete the other duplicate entry.
snip
Untested pseudo-PHP follows -
$encountered_elements = array();
foreach($original_array as
-Original Message-
From: Mike Migurski [mailto:[EMAIL PROTECTED]
Sent: Thursday, October 30, 2003 1:37 PM
To: Allowee
Cc: [EMAIL PROTECTED]
Subject: Re: [PHP] removing all duplicate values from an array
I'm looking for a function that does almost the same as
array_unique()
array(
'a' = 'one',
'b' = 'one',
'c' = 'zero',
'd' = 'two'
);
through this and am having a hind time with then logic... Could you
explain how the output would be array('c' = 'zero', 'd' = 'two')??
I was being pretty sloppy with the code (should've posted pseudocode to
begin with, my bad) but
I would like to establish a connection between AS400 - Windows NT and PHP, to make
requetes on data base AS400, from forms PHP. I do not know how to make, could you help
me?
-
Do You Yahoo!? -- Une adresse @yahoo.fr gratuite et en français !
Testez le nouveau
Hi!
I have just started to look at the exciting world og PHP and MySQL.
Anyone that can inform me of good books to buy or free tutorials on the net
that can guide me through building a good dynamic website.
Thanx!!!
TEM
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit:
- Edwin - mailto:[EMAIL PROTECTED]
on Wednesday, October 29, 2003 11:26 PM said:
[snip lots of nice things about mac osx]
Yes, I can do those and more on my Mac. And it doesn't even
crash on me even if I do many things at the same time. I
could run it for months!
Yeah but... it's a Mac.
Hi,
There are many great websites, for instance:
http://www.phpdeveloper.org
http://www.phpbuilder.com
http://www.devshed.com
http://www.phpnoise.com/
One of the most vital elements in the life of a PHP programmer is the
manual (http://www.php.net/manual), that answers all the questions you
Chris,
I seriously disagree with you, in my not so humble opinion OS X is
really great. I currently only have Linux installed, but i've just
ordered a PowerBook...
However, I don't see the point in discussing this topic any longer. You
won't change your opinion and Apple afficionados won't
Since i see from your code, you are trying to create an object which
maintains a list (collection) of instances of another object. Is that
correct? Or you are trying to inherit a class from a parent class? Then
it's a little bit different story. If this is the case, just tell me and
I'll
Sorry to continue this, but I just have to know...
On Oct 30, 2003, at 6:32 PM, Chris W. Parker wrote:
But seriously folks... The reason I don't like Macs is not because they
don't perform well but it's because they have a retarded UI. It looks
like crap and it works like crap. They do some of
Tore E. Mackay wrote:
Hi!
I have just started to look at the exciting world og PHP and MySQL.
Anyone that can inform me of good books to buy or free tutorials on the net
that can guide me through building a good dynamic website.
Thanx!!!
TEM
Tore -
I have a few good beginner tutorials up
Anyone that can inform me of good books to buy or free tutorials on
the net
that can guide me through building a good dynamic website.
People seem to think my books are pretty good
(http://www.amazon.com/exec/obidos/ASIN/0321186486/dmcinsiinc-20/002
-8800445-6161652). PHP and MySQL Web
However, I don't see the point in discussing this topic any longer. You
won't change your opinion and Apple afficionados won't change their
opinion either. I would like to suggest that you try Linux, BSD or OS X
before you speak.
On the bright side, Linux, Windows, and Mac OS X all run PHP. And
Hi,
On Fri, 2003-10-31 at 00:48, Tore E. Mackay wrote:
Thanx for your quick reply.
No problem :)
I have had a look at some of the web sites you are refering to and they are
great, but I feel that they have info for the beginners and the advanced. I
need the one in between.
I guess that 60%
Filip de Waard wrote:
Hi,
There are many great websites, for instance:
http://www.phpdeveloper.org
http://www.phpbuilder.com
http://www.devshed.com
http://www.phpnoise.com/
Shameless self-promotional plug of the day:
And also don't forget php|architect (http://www.phparch.com), a magazine
Hi all,
since I felt that my previous message got buried
beneath
this avalanche of postings, I propose it again hoping
someone can give me a clue.
I am istalling php4.3.3 on a linux suse8.1
distribution
withand when I run configure, the script stops right
before the end with a message saying it
Hey guys, you can extend a _class_ from an existing _class_ but not from
a _string_constant_ (Ex1 - MY_BASE_CLASS is evaluated to constant of
type string) neither from a _string_variable_ (Ex2 - $my_base_class_var
is a variable of type string).
To be able to use different base classes with the
On Thu, 30 Oct 2003 22:54:49 +0100, you wrote:
Hi there,
I'm having trouble with passing objects as references. What I want to
do is something like this:
[snip code]
The above code give the output:
instance:
parent: test
where I want it to give:
instance: test
parent: test
I don't pretend
I don't pretend to fully understand PHP references, or the strange and
mysterious ways that they work in regards to PHP objects, but I can tell
you how to acheive the results you desire. Someone else will have to
explain it. :)
snip
If someone sees that I'm leading Gareth astray here, feel free
function sureset($var) {
if(!isset($var) || empty($var))
return '';
else
return $var;
}
Of course, when you've got strict checking on, the above doesn't
work, because if the variable is unset you get caught on the fact
before the function call happens.
One change will make your code
Vijaya_manda [EMAIL PROTECTED] wrote:
Is it possible to retrieve the first slide from a presentation and display
it as a thumbnail on my site. Users will upload ppt's which should be
displayed in form of thumbnails on my site. On clicking a particular
thumbnail the presentation (.ppt or .pps)
In short: not with PHP. You're going to need a program that can read and
render PHP files, and save them as a static image (i.e. gif, jpg, etc).
Al
Apologies, the 2nd sentence should read You're going to need a program that
can read and render PPT files ...
Arrrgh, I hate tpyos! :)
Al
--
Dear List,
I've been struggling with this for some time now and can't for the life of
me figure out why the output is GeorgeGeorge and not GeorgeBush
?php
class StaffDetails {
var $staff_name;
var $staff_surname;
function StaffDetails() {
$this-$staff_name=George;
On Fri, 31 Oct 2003 11:38:47 +0800, you wrote:
I've been struggling with this for some time now and can't for the life of
me figure out why the output is GeorgeGeorge and not GeorgeBush
$this-$staff_name=George;
Try this instead
$this-staff_name=George;
(superfluous $). Same goes for the
* Thus wrote Terence ([EMAIL PROTECTED]):
Dear List,
I've been struggling with this for some time now and can't for the life of
me figure out why the output is GeorgeGeorge and not GeorgeBush
?php
class StaffDetails {
var $staff_name;
var $staff_surname;
function StaffDetails()
92 matches
Mail list logo