php-general Digest 17 Jul 2006 15:26:31 -0000 Issue 4244
Topics (messages 239518 through 239525):
Re: GD to database directly
239518 by: Kevin Waterson
239522 by: Jay Blanchard
Re: Zend Studio, phpMyAdmin, and mysql.sock
239519 by: Robert Cummings
PHP | Flash Query String
239520 by: Sunnrunner
239521 by: Jochem Maas
Re: session_start/session_write_close creates multiple sessioncookie headers.
How to fix this.
239523 by: Chris
Re: Mail que system written in PHP for Linux?
239524 by: Manuel Lemos
Delete an upload
239525 by: Benjamin Adams
Administrivia:
To subscribe to the digest, e-mail:
[EMAIL PROTECTED]
To unsubscribe from the digest, e-mail:
[EMAIL PROTECTED]
To post to the list, e-mail:
[email protected]
----------------------------------------------------------------------
--- Begin Message ---
This one time, at band camp, "Richard Lynch" <[EMAIL PROTECTED]> wrote:
> Assume, for the sake of argument, that your hard drive crashed.
>
> And your backup tape was invalid.
>
> And the weekly backup tape is also invalid.
>
> And, for good measuere, the monthly tape is just so out-of-date, that
> recovering from the crashed hard drive actually looks like an
> attractive option.
In this scenario, it would not matter where your images were stored, however
it would be a simple matter of hot swapping one of the raid drives.
> > LONGBLOB
>
> Not big enough.
4GB is big enough for any sane image
Kind regards
Kevin
--
"Democracy is two wolves and a lamb voting on what to have for lunch.
Liberty is a well-armed lamb contesting the vote."
--- End Message ---
--- Begin Message ---
[snip]
...a lot of stuff started by my original answer...
[/snip]
While this has been a fine debate I find that the discussion has
deteriorated badly. Can we bring it back on point?
There are a lot of us using MySQL (and PostGreSQL) along with PHP and in
practice we have found that storing images in the database to be less
than ideal from both a performance and backup POV. The reasons range
from speed to overhead to ease of use. On our hardware. It not only has
to do with storing and retrieving BLOB data, but also things like
indexing, OS qwirks and the like.
Kevin, you have more than once pointed out using a RAW format for
operating the data system, what exactly do you mean? The database
becomes the OS? If so, how do you set that up? It is something that I am
not totally familiar with. If you are talking about RAW photo data I am
familiar with that.
As far as backup, I have a routine that backs up my databases AND the
images, PDF's, DOC's, and other binary file format items that the data
system points to. That wasn't hard to set up, and it is very reliable. I
never have a problem with integrity.
And finally, benchmarking. There would be three benchmarks to be
conducted and concerned with here, as I have stated before;
PHP and images in the OS's file system
PHP and images in the MySQL database
PHP and images in the OS's file system pointed to by data stored in the
MySQL database.
Usually only two are compared.
--- End Message ---
--- Begin Message ---
On Sun, 2006-07-16 at 13:02, Kevin Waterson wrote:
> This one time, at band camp, "Richard Lynch" <[EMAIL PROTECTED]> wrote:
>
> > Zend has provided a great deal to the PHP community -- Zend basically
> > pays Ze'ev and Andi (and more) to work about half their time on
> > improving PHP Open Source code.
>
> As an ex-Zend employee I find that they are maybe the only ones with this
> arrangement. It is in the best interest of Zend to have the PHP language
> pushed further and (dare I name the beast?) Web 2.0 to be able to push
> thier line of products. What good is a PHP IDE without the PHP language?
>
> I am not putting forward some anti <insert commercial application here>
> scenario,
> but where do folks draw the line?
I don't think you can draw a line. There's black and white and a lot of
gray in between and that gray zone depends on the person, how they feel
on a particular day, etc etc etc. If we want to get dirty with the guts
of this argument many people on this list are asking PHP questions that
will advance their own commercial applications or services. While I
think a Zend specific question isn't quite a PHP question, I do feel
that some of them fall into the gray zone.
Cheers,
Rob.
--
.------------------------------------------------------------.
| InterJinn Application Framework - http://www.interjinn.com |
:------------------------------------------------------------:
| An application and templating framework for PHP. Boasting |
| a powerful, scalable system for accessing system services |
| such as forms, properties, sessions, and caches. InterJinn |
| also provides an extremely flexible architecture for |
| creating re-usable components quickly and easily. |
`------------------------------------------------------------'
--- End Message ---
--- Begin Message ---
Hello,
I have a button flash file. This file needs two parameters that are passed
in through the query string.
Here's my query string.
navButtons.swf?myURL={$menu_channel_id[menu]}&buttonLabel={$menu_text[menu]}
here is the URL that is being passed in
domain.com/index.php?c=21&a=35&w=2&r=Y
the ampersands are making flash think these are separate variables to pass
into flash. Is there a way to make flash send in the above link as a whole
without chopping it up into several separate variables.
I would use some other method besides a query string but, I really need this
to work with it.
Hope that makes sense!
Thanks,
T
--- End Message ---
--- Begin Message ---
Sunnrunner wrote:
> Hello,
>
> I have a button flash file. This file needs two parameters that are passed
> in through the query string.
>
> Here's my query string.
> navButtons.swf?myURL={$menu_channel_id[menu]}&buttonLabel={$menu_text[menu]}
>
> here is the URL that is being passed in
>
> domain.com/index.php?c=21&a=35&w=2&r=Y
>
> the ampersands are making flash think these are separate variables to pass
> into flash. Is there a way to make flash send in the above link as a whole
> without chopping it up into several separate variables.
urlencode the url ...
echo "navButtons.swf?myURL=",
urlencode(domain.com/index.php?c=21&a=35&w=2&r=Y),
"&buttonLabel=ClickMe";
chances are you will have urldecode the value of myURL inside the flash file
in order to use.
>
> I would use some other method besides a query string but, I really need this
> to work with it.
>
> Hope that makes sense!
>
> Thanks,
> T
>
--- End Message ---
--- Begin Message ---
Mathijs wrote:
Chris wrote:
Mathijs wrote:
Hello again,
I Use session_write_close() so the page loads quicker because i use
session on multiple place.
This because session has protection for race conditions.
Now it works very well and i don't have any problems at all.
I only see that there are multiple session cookie headers set.
I Personally think that one is enough :P.
How can i make it so that it just sets just one and not set this
header every time i call session_start or session_write_close.
Because i don't know when the cookie is set.
I think this will be an either/or situation.
Either it only sends one session cookie header and you don't use
session_write_close all over the place..
or, it sends multiple cookies and you do use session_write_close all
over the place.
The internals of php would set this behaviour, not something you can
change without changing the C code.
Hmmm...
I find it kinda strange that it sets the same uniqueId with the same
session name more then once.
It would be logical to just have one.. And overwrite the previous
session cookie.
Any other thing would be an programmers fault in my opinion.
Because you can't have more then one session id per session cookie name.
Also, the browser won't send all the cookies back.
This is just useless overhead.
But it seems that i have to live with it (for now).
I think ill report this as an bug to PHP.
Doubt you'll get very far.
I could open 10 tabs in firefox and I'll have the same session id in
each one, but they'll all be on different pages doing different things.
Even in IE, if I open a new page I'll get the same session id in both
browser windows.
--
Postgresql & php tutorials
http://www.designmagick.com/
--- End Message ---
--- Begin Message ---
Hello,
on 07/15/2006 01:07 AM eastcoastguyz said the following:
> I have a client who's web site needs to send out opt-in e-mail. I
> contacted the web hosting service who they intend to host this with and
> they have a limit of 500 e-mail messages sent per hour. I suspect most
> web hosting services have a limit on this, so I thought about how to
> address this. The e-mail being sent out would be personalized, and
> there could be other processes from this same web site sending out
> e-mail to a list too. So I thought about developing a mail que system
> written in PHP to help with this.
>
> If this already exists, please point me to it. If there is a better way
> to do this, I would be interested to hear it. Thanks!
When you use the mail function in Linux, it uses sendmail or compatible.
In Linux, all MTA are compatible with sendmail. Sendmail is already a
queue system. There does not seem to be much point in duplicating a
sendmail function that it already does better than PHP could. PHP will
certainly will not override your ISP limits.
--
Regards,
Manuel Lemos
Metastorage - Data object relational mapping layer generator
http://www.metastorage.net/
PHP Classes - Free ready to use OOP components written in PHP
http://www.phpclasses.org/
--- End Message ---
--- Begin Message ---
I created a form where users can upload.
I'm working on the section where admins can delete entries.
When I have a user delete an entery, I have it taking out of MySQL
(working fine)
But how do I delete the file that was uploaded?
Thanks for any help
--------------------
Ben
--- End Message ---