php-general Digest 21 Nov 2007 12:39:37 - Issue 5140
Topics (messages 264887 through 264901):
Should I put pictures into a database?
264887 by: Ronald Wiplinger
264888 by: Bastien Koert
264893 by: Børge Holen
264894 by: Jonas Geiregat
Basic question - PHP
Okay, I understand that, thanks all for your help.
I'am used to always using an absolute path, I don't know why this time I
didn't use one.
By the way, that was interesting to understand the underground php
behavior.
2007/11/21, Jochem Maas [EMAIL PROTECTED]:
Andrés Robinet wrote:
Sorry Buddie But Session dose not serialize the Object Please Have a look at
the Code Again I have tried it with PHP 5.2
IT dose not call __sleep function. only when you have serialize it calls it.
On Nov 21, 2007 3:23 AM, Julien Pauli [EMAIL PROTECTED] wrote:
Sorry but it goes throught
On Wednesday 21 November 2007 03:14:43 Ronald Wiplinger wrote:
I have an application, where I use pictures. The size of the picture is
about 90kB and to speed up the preview, I made a thumbnail of each
picture which is about 2.5 to 5kB.
I use now a directory structure of ../$a/$b/$c/pictures
Op 21-nov-07, om 03:45 heeft Bastien Koert het volgende geschreven:
Well, this was just hashed out last week, again.
Its a personal thing. I am against it, having seen the slowdown and
database bloat caused when this is done. I prefer a pointer to the
image to be stored in the table and
Casey,
There is no SVG support in PHP, as far as I know.
Thank you. That clears things up. I'll just go with PNGs then.
--
Dave M G
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
2007. 11. 21, szerda keltezéssel 14.12-kor chetan rane ezt írta:
Sorry Buddie But Session dose not serialize the Object Please Have a look at
the Code Again I have tried it with PHP 5.2
IT dose not call __sleep function. only when you have serialize it calls it.
AFAIK session does serialize
Maybe too late. Here are some simple starting points.
If you want to send pictures as MMS messages, you will need to use an
SMS gateway. How different the protocols are for SMS and MMS, I don't
know. But I've used www.clickatel.com's SMS gateway happily. So, you
might want to start there.
Hi, a basic question:
I want to send a CSV file and some other parameters. In my FORM I have
method=POST input type=file and action=http://php;; It sends it to
the php file but I don't want the php to be visualized (in fact it just
works with the data and inserts in database). I want to keep
chetan rane wrote:
Sorry Buddie But Session dose not serialize the Object Please Have a look at
the Code Again I have tried it with PHP 5.2
IT dose not call __sleep function. only when you have serialize it calls it.
this is completely untrue. during the shutdown phase objects
in the $_SESSION
pere roca [EMAIL PROTECTED] schrieb im Newsbeitrag
news:[EMAIL PROTECTED]
Hi, a basic question:
I want to send a CSV file and some other parameters. In my FORM I have
method=POST input type=file and action=http://php;; It sends it to
the php file but I don't want the php to be visualized
Hey folks,
Does anyone have any resources or links to resources concerning
obtaining book data via Amazons web services?
Any help/pointers appreciated.
Scott.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
pere roca wrote:
Hi, a basic question:
I want to send a CSV file and some other parameters. In my FORM I have
method=POST input type=file and action=http://php;; It sends it to
the php file but I don't want the php to be visualized (in fact it just
works with the data and inserts in
On Wednesday 21 November 2007, Dave M G wrote:
Casey,
There is no SVG support in PHP, as far as I know.
Thank you. That clears things up. I'll just go with PNGs then.
I think you missed the point. SVG is just text. It's XML. You can
manipulate it with SimpleXML or the DOM API functions
On Wed, 21 Nov 2007 14:06:17 +0100, Jochem Maas [EMAIL PROTECTED]
wrote:
pere roca wrote:
Hi, a basic question:
I want to send a CSV file and some other parameters. In my FORM I have
method=POST input type=file and action=http://php;; It sends it
to
the php file but I don't want the php
[snip]
Seems to me Pere want's to do an upload without reloading the whole
page.
[/snip]
The problem is that you cannot upload files using Ajax alone. But you
can do it without a reload, requires an invisible IFRAME and a little
technique. Search Google for several different articles on this.
--
On Wed, 21 Nov 2007 08:38:18 -0600, Jay Blanchard [EMAIL PROTECTED]
wrote:
[snip]
Seems to me Pere want's to do an upload without reloading the whole
page.
[/snip]
The problem is that you cannot upload files using Ajax alone. But you
can do it without a reload, requires an invisible IFRAME
Hi,
I'm been googling to see if I can find information on how programmers handle
concurrency in a multi-user PHP/MySQL environment. Here's a snippet of my
app.
I have a form where users can maintain client information such as Name,
Address, telephone, email, etc I've been wondering how
Thanks for the answer,
you are right, Jay, I don't want nor reload the page nor a new .php page
(the one that works with the data I post) appears. It's difficult to believe
that a so dummy thing is not working in php (without Ajax)!
I found this URL explaining ajax/php for uploading files.
You can try this one http://swfupload.mammon.se/ (I didn't try that yet...
but planning to do so shortly)
Rob
-Original Message-
From: pere roca ristol [mailto:[EMAIL PROTECTED]
Sent: Wednesday, November 21, 2007 12:04 PM
To: Jay Blanchard
Cc: T.Lensselink; Jochem Maas;
T.Lensselink wrote:
On Wed, 21 Nov 2007 08:38:18 -0600, Jay Blanchard [EMAIL PROTECTED]
wrote:
[snip]
Seems to me Pere want's to do an upload without reloading the whole
page.
[/snip]
The problem is that you cannot upload files using Ajax alone. But you
can do it without a reload,
I don't think it is valid to have an opening tag and a closing tag with
nothing in between. So an initial or and a final /or, as you recall
it, should become or/.
Second, I'm not sure I understand what you want to accomplish. From the
example document you added is this the result you expect:
And
Jonas, that's what I want to get (and is valid).
Thanks,
...
And
PropertyIsEqualTo
PropertyNamegenus/PropertyName
Literalontophaugs332/Literal
/PropertyIsEqualTo
Or
PropertyIsEqualTo
PropertyNamegenus/PropertyName
Literalontophaugs332/Literal
/PropertyIsEqualTo
Don Proshetsky wrote:
I'm been googling to see if I can find information on how programmers handle
concurrency in a multi-user PHP/MySQL environment. Here's a snippet of my
app.
I have a form where users can maintain client information such as Name,
Address, telephone, email, etc I've
Stut wrote:
Don Proshetsky wrote:
I'm been googling to see if I can find information on how programmers
handle concurrency in a multi-user PHP/MySQL environment. Here's a
snippet of my app.
I have a form where users can maintain client information such as
Name, Address, telephone, email,
Colin Guthrie wrote:
T.Lensselink wrote:
On Wed, 21 Nov 2007 08:38:18 -0600, Jay Blanchard [EMAIL PROTECTED]
wrote:
[snip]
Seems to me Pere want's to do an upload without reloading the whole
page.
[/snip]
The problem is that you cannot upload files using Ajax alone. But you
can do it
At 10:14 AM +0800 11/21/07, Ronald Wiplinger wrote:
I have an application, where I use pictures. The size of the picture is
about 90kB and to speed up the preview, I made a thumbnail of each
picture which is about 2.5 to 5kB.
I use now a directory structure of ../$a/$b/$c/pictures
I wonder if
2007. 11. 21, szerda keltezéssel 18.38-kor Dimiter Ivanov ezt írta:
On Nov 21, 2007 2:29 AM, Børge Holen [EMAIL PROTECTED] wrote:
On Wednesday 21 November 2007 00:53:14 Jochem Maas wrote:
Stephen Johnson wrote:
Who says you can't please them all... ;)
Erin Brokovich.
nah you
Daniel Brown [EMAIL PROTECTED] wrote:
On Nov 21, 2007 11:38 AM, Dimiter Ivanov [EMAIL PROTECTED] wrote:
On Nov 21, 2007 2:29 AM, Børge Holen [EMAIL PROTECTED] wrote:
On Wednesday 21 November 2007 00:53:14 Jochem Maas wrote:
Stephen Johnson wrote:
Who says you can't please
On Nov 21, 2007 11:38 AM, Dimiter Ivanov [EMAIL PROTECTED] wrote:
On Nov 21, 2007 2:29 AM, Børge Holen [EMAIL PROTECTED] wrote:
On Wednesday 21 November 2007 00:53:14 Jochem Maas wrote:
Stephen Johnson wrote:
Who says you can't please them all... ;)
Erin Brokovich.
nah you
I got a strange problem here, here are the setup details first as this seems
to be a server problem more than a php problem but it is still related to
php configuration:
Server: Win2003 (latest)
WebServer: IIS6 (latest)
PHP: php5.2.2.1
MySQL: mysql.5
Sites installed in server that may have
Hi gang:
So that I can get my head around this, are all of you saying there is
no Ajax equivalent of:
form action=index.php enctype=multipart/form-data method=post
input type=hidden name=MAX_FILE_SIZE value=2048000
input name=userfile type=file
input type=hidden name=stage value=1
input
On Nov 21, 2007 2:29 AM, Børge Holen [EMAIL PROTECTED] wrote:
On Wednesday 21 November 2007 00:53:14 Jochem Maas wrote:
Stephen Johnson wrote:
Who says you can't please them all... ;)
Erin Brokovich.
nah you sure? why cant i remember that.
must be that early altzheimers syndrome or
I use a custom file system that caches large amounts of data in RAM.
That way it's really fast and as easy to use as normal file system calls.
--
Michael McGlothlin
Southwest Plumbing Supply
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Zoltán Németh [EMAIL PROTECTED] wrote:
2007. 11. 21, szerda keltezéssel 18.38-kor Dimiter Ivanov ezt írta:
On Nov 21, 2007 2:29 AM, Børge Holen [EMAIL PROTECTED] wrote:
On Wednesday 21 November 2007 00:53:14 Jochem Maas wrote:
Stephen Johnson wrote:
Who says you can't please
That's correct as far as I know... Ajax would require javascript had access
to the data stream of the file you are trying to upload... and that would be
a security issue for browsers (or was it because the multipart/form-data
encoding? Don't kill me if I'm totally wrong).
All in all, the only way
[snip]
That is correct. Without an IFRAME you cannot upload a file without a
refresh.
[/snip]
Take Two. You could also open another window, but that kinda defeats the
purpose.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Jay Blanchard wrote:
[snip]
So that I can get my head around this, are all of you saying there is
no Ajax equivalent of:
form action=index.php enctype=multipart/form-data method=post
input type=hidden name=MAX_FILE_SIZE value=2048000
input name=userfile type=file
input type=hidden
have a look at www.helkvist.org he has some php classes for MMS
bastien Date: Wed, 21 Nov 2007 11:38:37 +0100 From: [EMAIL PROTECTED] To:
[EMAIL PROTECTED] CC: php-general@lists.php.net Subject: Re: [PHP] Sending
Pictures to Cell Phones Maybe too late. Here are some simple starting
points.
[snip]
So that I can get my head around this, are all of you saying there is
no Ajax equivalent of:
form action=index.php enctype=multipart/form-data method=post
input type=hidden name=MAX_FILE_SIZE value=2048000
input name=userfile type=file
input type=hidden name=stage value=1
input
-Original Message-
From: Wolf [mailto:[EMAIL PROTECTED]
Sent: Wednesday, November 21, 2007 2:05 PM
To: Zoltán Németh
Cc: Børge Holen; php-general@lists.php.net; Dimiter Ivanov
Subject: Re: [PHP] two small issues with php mail OT
Zoltán Németh [EMAIL PROTECTED] wrote:
At 11:32 AM -0600 11/21/07, Jay Blanchard wrote:
[snip]
huh? if I post a file to a script that returns a 204 status and nothing
else then the page should not change in the browser.
[/snip]
True, the missing piece is that the post cannot move the file up to the
server.
Ahhh, so that's it.
My
[snip]
huh? if I post a file to a script that returns a 204 status and nothing
else then the page should not change in the browser.
[/snip]
True, the missing piece is that the post cannot move the file up to the
server.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit:
[snip]
have a look at www.helkvist.org he has some php classes for MMS
[/snip]
Site cannot be found
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
[snip]
Ahhh, so that's it.
My twitchy little brain was thinking if I can send arguments to the
server via ajax, then why can't I send multipart/form-data? After
all, data is data right?
It might be too cpu intensive, but I can imagine js breaking down an
image file in packets and then sending
Michael McGlothlin wrote:
I use a custom file system that caches large amounts of data in RAM.
That way it's really fast and as easy to use as normal file system calls.
It's called a relational database ;)
Seriously.
Databases like MySQL do not handle BLOB's with any sensible control hence
tedd wrote:
At 12:23 PM -0600 11/21/07, Jay Blanchard wrote:
[snip]
But, take a look at this:
http://www.captain.at/ajax-file-upload.php
They look like their blowing the same wind.
[/snip]
Yep, look at all of the gotchas.
Well, I wasn't able to get it to work -- I couldn't find
Jay Blanchard wrote:
[snip]
huh? if I post a file to a script that returns a 204 status and nothing
else then the page should not change in the browser.
[/snip]
True, the missing piece is that the post cannot move the file up to the
server.
I was referring to a standard POST not using
At 12:23 PM -0600 11/21/07, Jay Blanchard wrote:
[snip]
But, take a look at this:
http://www.captain.at/ajax-file-upload.php
They look like their blowing the same wind.
[/snip]
Yep, look at all of the gotchas.
Well, I wasn't able to get it to work -- I couldn't find where to
change the FF
Hello,
I am trying to increase my knowledge and understanding of OO and OO
Design Patterns. I'd like to request a critique of a program that
extracts MySQL table information and translates it into XML. In the
program, I tried to accomplish a few things:
1. Correct use of ADOdb
2.
At 11:49 AM -0600 11/21/07, Jay Blanchard wrote:
[snip]
Ahhh, so that's it.
My twitchy little brain was thinking if I can send arguments to the
server via ajax, then why can't I send multipart/form-data? After
all, data is data right?
It might be too cpu intensive, but I can imagine js
[snip]
But, take a look at this:
http://www.captain.at/ajax-file-upload.php
They look like their blowing the same wind.
[/snip]
Yep, look at all of the gotchas.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
my bad
http://hellkvist.org/software/
bastien Subject: RE: [PHP] Sending Pictures to Cell Phones Date: Wed, 21 Nov
2007 11:36:58 -0600 From: [EMAIL PROTECTED] To: [EMAIL PROTECTED]; [EMAIL
PROTECTED]; [EMAIL PROTECTED] CC: php-general@lists.php.net [snip] have a
look at www.helkvist.org
-Original Message-
From: Jay Blanchard [mailto:[EMAIL PROTECTED]
Sent: Wednesday, November 21, 2007 3:24 PM
To: tedd; Jochem Maas
Cc: Colin Guthrie; php-general@lists.php.net
Subject: RE: [PHP] Re: uploading files... necessary Ajax?
[snip]
But, take a look at this:
Simeon F. Willbanks wrote:
Hello,
I am trying to increase my knowledge and understanding of OO and OO
Design Patterns. I'd like to request a critique of a program that
extracts MySQL table information and translates it into XML. In the
program, I tried to accomplish a few things:
1.
At 8:03 PM +0100 11/21/07, Jochem Maas wrote:
tedd wrote:
Well, I wasn't able to get it to work -- I couldn't find where to change
the FF settings (Mac).
type 'about:config' into the address bar :-)
I know I'll get a big argument from all of you about this, but
sometimes I can be pretty
On Nov 21, 2007 11:08 AM, Mathieu Dumoulin [EMAIL PROTECTED]
wrote:
I got a strange problem here, here are the setup details first as this
seems
to be a server problem more than a php problem but it is still related to
php configuration:
Server: Win2003 (latest)
WebServer: IIS6 (latest)
Simeon F. Willbanks wrote:
Jochem,
Thanks for the tips.
no worries, for the rest you stuff looks tidy and
making use of phpDoc comments and using CS consistently
are both recommended!
with regard to OO I didn't really see enough [complexity]
to be able to offer any worthwhile feedback - but
-Original Message-
From: Philip Thompson [mailto:[EMAIL PROTECTED]
Sent: Wednesday, November 21, 2007 4:43 PM
To: php-general@lists.php.net
Subject: Re: [PHP] Session problem
On Nov 21, 2007 11:08 AM, Mathieu Dumoulin [EMAIL PROTECTED]
wrote:
I got a strange problem here, here
Hello,
So I've been trying to compile PHP6 with MySQL 4.1.20 and it seems, I
keep getting compile errors. It complains for MYSQL_TYPE_VARCHAR.
I don't want to use the MySQLND, because we use MySQL 4.1.20 with
old_password = 1 ... so any suggestions on how to compile PHP 6 CVS
with MySQL 4.1?
--
By the way... I remember there were to ways of installing PHP over IIS. One
was adding it for ALL websites and the other way was adding it on a site by
site basis. I'd recommend doing the second method.
Notice that this has nothing to do with ISAPI vs CGI, it is just an option
in IIS settings
Hayden Livingston wrote:
Hello,
So I've been trying to compile PHP6 with MySQL 4.1.20 and it seems, I
keep getting compile errors. It complains for MYSQL_TYPE_VARCHAR.
Since php6 is alpha code, ask the -internals list.
--
Postgresql php tutorials
http://www.designmagick.com/
--
PHP General
Hi all,
Do I have to worry about the ZVAL overflow vulnerability if I don't
use unserialize() in my code? Or is it used behind the scenes whether
I call it directly or not?
I have a web server running PHP 4.4.4 with only one custom
application running on it. The server is dedicated to this
Larry,
Thank you for responding.
I think you missed the point. SVG is just text. ... There's no need
for SVG support per se, as SimpleXML provides all you need anyway.
I did miss the point - thanks for setting me straight.
However, I'm still unsure about using SVGs. On the one hand, what
Does anyone know of an image gallery I can use on multiple pages of a
website. I'd like to be able to click on the thumbnails and see a larger
image.
Hopefully something simple and easy to install.
thanks,
Lisa A
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit:
On Wednesday 21 November 2007, Dave M G wrote:
Larry,
Thank you for responding.
I think you missed the point. SVG is just text. ... There's no need
for SVG support per se, as SimpleXML provides all you need anyway.
I did miss the point - thanks for setting me straight.
However, I'm
Michael McGlothlin wrote:
I use a custom file system that caches large amounts of data in RAM.
That way it's really fast and as easy to use as normal file system calls.
It's called a relational database ;)
Seriously.
Databases like MySQL do not handle BLOB's with any sensible control hence
On Thu, 2007-11-22 at 06:22 +, Lester Caine wrote:
Michael McGlothlin wrote:
I use a custom file system that caches large amounts of data in RAM.
That way it's really fast and as easy to use as normal file system calls.
It's called a relational database ;)
Seriously.
Databases like
68 matches
Mail list logo