thanks alto for replying
humayoo
csnyder <[EMAIL PROTECTED]> wrote:
On 8/6/07, birgunj birgunj wrote:
> Dear All,
>
> i want to write script to download file.how do i display download bar in php
> like when download file from any site, it download bar appear, it show
> size of file,time et
thanks alto for replying. but how to set header for this to display correct
contents.
humayoo
Tim Lieberman <[EMAIL PROTECTED]> wrote:
On Aug 6, 2007, at 1:24 PM, csnyder wrote:
> On 8/6/07, birgunj birgunj wrote:
>> Dear All,
>>
>> i want to write script to download file.how do i displ
Dear,
Thanks alot for replying.if i want to upload file, will upload bar will show
in any browser or i have to write script for showing upload bar?
humayoo
Jon Baer <[EMAIL PROTECTED]> wrote:
There is already a download progress bar in every known browser last
time I checked ;-)
Hi there:
I've noticed a lot of web sites using this technique. I know this
stuff always changes, but one potential caveat: the last I knew,
search engines were either ignoring or ranking down anything after
the .php in the URL when people use this structure.
Meaning, essentially,
On 8/6/07, Jon Baer <[EMAIL PROTECTED]> wrote:
>
> Would be something like:
>
> @/news/([0-9]+)?/([0-9]+)?/([0-9]+)?@
Hi Jon,
That works great. Thanks.
> But I think it should either be a completely valid date or now by default.
Perhaps. I think it could make sense to have some parameters optio
At 10:16 PM -0400 8/6/07, Elliotte Harold wrote:
Paul Houle wrote:
There's an easy way to get 'friendly' URLs in PHP. There are two
tricks involved:
(1) It seems to be a bit obscure that if you have a PHP script at
http://somewhere.com/myscript.php
the same script is called if you visit
ht
Ahh ... named patterns, how extremely ugly :-)
$date = "/2007/08/06";
preg_match("/(?P[0-9]{4})\/(?P[0-9]{2})\/(?P[0-9]
{2})/", $date, $match);
print_r($match);
- Jon
On Aug 6, 2007, at 9:56 PM, csnyder wrote:
On 8/6/07, Michael B Allen <[EMAIL PROTECTED]> wrote:
Hey,
It so happens I'm wo
Paul Houle wrote:
There's an easy way to get 'friendly' URLs in PHP. There are two tricks
involved:
(1) It seems to be a bit obscure that if you have a PHP script at
http://somewhere.com/myscript.php
the same script is called if you visit
http://somewhere.com/myscript.php/some/subdirectorie
On 8/6/07, Michael B Allen <[EMAIL PROTECTED]> wrote:
> Hey,
>
> It so happens I'm working on a CMS component and the 'Many pages one
> script' discussion has inspired me to add mod_rewrite capability. I
> have a catch-all RewriteRule that just sends everything through
> index.php at the top of whi
Would be something like:
@/news/([0-9]+)?/([0-9]+)?/([0-9]+)?@
But I think it should either be a completely valid date or now by
default.
Also isn't there a mode to preg_match or a version in which you can
get named parameters?
- Jon
On Aug 6, 2007, at 9:46 PM, Michael B Allen wrote:
Rob Marscher rmarscher-at-beaffinitive.com |nyphp dev/internal group
use| wrote:
On Aug 6, 2007, at 7:28 PM, inforequest wrote:
For me (a search engine optimizer) the core questions come later...
how does that MVC front controller handle "exceptions" like:
/news/2007 (missing params) -> shou
There is already a download progress bar in every known browser last
time I checked ;-) Why replicate?
On Aug 6, 2007, at 3:24 PM, csnyder wrote:
On 8/6/07, birgunj birgunj <[EMAIL PROTECTED]> wrote:
Dear All,
i want to write script to download file.how do i display download
bar in php
Hey,
It so happens I'm working on a CMS component and the 'Many pages one
script' discussion has inspired me to add mod_rewrite capability. I
have a catch-all RewriteRule that just sends everything through
index.php at the top of which I have a "handler table" that maps the
REQUEST_URI to a handle
Bare minimum w/ CakePHP (4 files/scripts: model, controller, view,
route) + provided you have a db with a table called "articles":
1) /models/article.php
public class Article extends AppModel {}
2) /controllers/news_controller.php
public class NewsController extends AppController {
function
You would still need an end time of course but this is doable if you
adjust the 2nd param to strtotime (ie every Wednesday, etc)
http://us3.php.net/manual/en/function.strtotime.php
What you really do is iterate over the call w/ your db and of course
this is better to do w/ a transaction or s
On Aug 6, 2007, at 7:28 PM, inforequest wrote:
For me (a search engine optimizer) the core questions come later...
how does that MVC front controller handle "exceptions" like:
/news/2007 (missing params) -> should 301 to default URL like /news/
2007/01/01/ or throw a 404
Unless you have a separ
There's an easy way to get 'friendly' URLs in PHP. There are two tricks
involved:
(1) It seems to be a bit obscure that if you have a PHP script at
http://somewhere.com/myscript.php
the same script is called if you visit
http://somewhere.com/myscript.php/some/subdirectories.gif
http://somewh
I need a script for repeating events. I need the ability to add repeating
events to a database and to retrieve repeating events for a specific day --
that¹s it. No fancy day/week/month views. No multi-user groups. No alarms,
approval cycles, etc. Just add/edit event & list event for a specific day
Elliotte Harold wrote:
Kenneth Downs wrote:
Again, I'm not clear on what you are trying to serve. We probably
have to back up to the beginning and erase the assumption that PHP
has a one-to-one correspondence between a URL (or page) and a PHP
file. Having erased that, we have to ask what ki
Elliotte Harold elharo-at-metalab.unc.edu |nyphp dev/internal group use|
wrote:
Kenneth Downs wrote:
Again, I'm not clear on what you are trying to serve. We probably
have to back up to the beginning and erase the assumption that PHP
has a one-to-one correspondence between a URL (or page) a
Elliotte Harold wrote:
Here's a simple example: a news site backed by a database. URLs like
http://www.example.com/news/2007/07/05
http://www.example.com/news/2007/07/06
http://www.example.com/news/2007/07/07
http://www.example.com/news/2007/07/08
...
return pages which contain that day's headl
Elliotte Harold wrote:
David Krings wrote:
Elliotte Harold wrote:
Edward Potter wrote:
h, I have never found this to be a problem. Using includes, you
can pull in .php code from anywhere, even pages with a .php extension
may be 99.99% html, with a just a single include('foo.php') in it.
Kenneth Downs wrote:
Again, I'm not clear on what you are trying to serve. We probably have
to back up to the beginning and erase the assumption that PHP has a
one-to-one correspondence between a URL (or page) and a PHP file.
Having erased that, we have to ask what kind of content you are tr
Hans Zaunere lists-at-zaunere.com |nyphp dev/internal group use| wrote:
Jon Baer wrote on Sunday, August 05, 2007 9:19 PM:
I have to say that after spending a long time w/ Dynamo / Tomcat /
Struts and mod_rewrite that eventually I got down to learning the
routing mechanism of frameworks (MVC
David Krings wrote:
Elliotte Harold wrote:
Edward Potter wrote:
h, I have never found this to be a problem. Using includes, you
can pull in .php code from anywhere, even pages with a .php extension
may be 99.99% html, with a just a single include('foo.php') in it.
Keeps things super strea
On Aug 6, 2007, at 1:24 PM, csnyder wrote:
On 8/6/07, birgunj birgunj <[EMAIL PROTECTED]> wrote:
Dear All,
i want to write script to download file.how do i display download
bar in php
like when download file from any site, it download bar appear, it
show
size of file,time etc.
can any
On 8/6/07, PaulCheung <[EMAIL PROTECTED]> wrote:
> I just need pointing in the right direction. Does anybody know where I
> should be looking for in information on secure login/logon (using PHP 5 and
> DOES NOT USE COOKIES) with coding examples?
Perhaps you are confused re: cookies. Session cookie
On 8/6/07, birgunj birgunj <[EMAIL PROTECTED]> wrote:
> Dear All,
>
> i want to write script to download file.how do i display download bar in php
> like when download file from any site, it download bar appear, it show
> size of file,time etc.
>
> can any body help me how to do this.
>
> thanks
On 8/5/07, Elliotte Harold <[EMAIL PROTECTED]> wrote:
>
> Surely by now there's a better way? How do I overcome the one file per
> URL assumption that PHP makes?
I've tried at least four different ways around this over the years,
and I use mod_rewrite for everything but trivial apps.
Here are the
On Aug 5, 2007, at 2:42 PM, Hans Zaunere wrote:
AliasMatch /(.*) "/var/www/www.something.com/index.php"
http://httpd.apache.org/docs/2.0/mod/mod_alias.html#aliasmatch
I wonder why the major php frameworks don't mention this as an
option? It seems from the documentation that it can't go
in
On Aug 5, 2007, at 10:09 PM, Michael B Allen wrote:
It seems you must require_once the class of the object stored in
the session before
calling session_start.
I was recently playing around with the memcache extension to see what
happens if you get something that hasn't been defined and got
Elliotte Harold wrote:
I'm considering a simple site that I may design in PHP. PHP is
probably the simplest solution except for one thing: it carries a very
strong coupling between pages and scripts.
This may be implied by examples, but it is simply not true. PHP, like
any other generalized
PaulCheung wrote:
I just need pointing in the right direction. Does anybody know where I
should be looking for in information on secure login/logon (using PHP 5
and DOES NOT USE COOKIES) with coding examples?
When you say "secure login", do you mean changing over to https? Do you
want to use
Jon Baer wrote on Sunday, August 05, 2007 9:19 PM:
> I have to say that after spending a long time w/ Dynamo / Tomcat /
> Struts and mod_rewrite that eventually I got down to learning the
> routing mechanism of frameworks (MVC) and find it to be extremely
> flexible and very well thought out + cou
I just need pointing in the right direction. Does anybody know where I
should be looking for in information on secure login/logon (using PHP 5 and
DOES NOT USE COOKIES) with coding examples?
Here is what I am trying to accomplish. I have a website where anybody may
enter, except certain restri
35 matches
Mail list logo