php-windows Digest 12 Oct 2004 22:47:15 -0000 Issue 2427
Topics (messages 24736 through 24738):
Re: mySQL SQL Expression
24736 by: Nadim Attari
Re: seesion.save_path Problem
24737 by: MikeA
Downloading webpages
24738 by: Morten Pedersen
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 ---
"Susilo" <[EMAIL PROTECTED]> a �crit dans le message de
news:[EMAIL PROTECTED]
> Does Everybody now what is SQL Expression to get part of the string in
> DATE VARIABLE ?
>
> e.g : 11/12/2004
>
> and become to only string '2004' in Table Viewing.
http://dev.mysql.com/doc/mysql/en/Date_and_time_functions.html
find the year() function ...
--- End Message ---
--- Begin Message ---
Yes, I restart it every time. Sometimes I stop, wait, and then start it
just to be sure. To make a long story short, I had other problems and
someone helped me with them and suddenly it works!! Go figure. It might
have been a stack of problems affecting other parms that made it not work
but I am back up again.
Thanks for the response.
Mike
"Frank M. Kromann" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> Did you remember to restart Apache after making changes to php.ini ? This
> is not needed if you are using the CGI sapi.
>
> - Frank
>
> > Environment
> > -------------
> > WinXP Pro SP1
> > PHP 4.3.9
> > Apache 2.0.52
> >
> > I am trying to set the session.save_path in php.ini and I cannot get it
> to
> > work. I have tried
> >
> > session.save_path = "X:/ApacheGroup/Apache2/html/SessionSave"
> > session.save_path = "/ApacheGroup/Apache2/html/SessionSave"
> > session.save_path = 2;/SessionSave
> > session.save_path = 2;SessionSave
> >
> > and other patterns. I'm putting the number in front as that is
> explained in
> > the ini file as the number of nested directories it will go. I don't
> need
> > that but thought that might get it to work. But nothing works. It is
> > defaulting to /. It is writeable.
> >
> > Where am I going wrong????? I am also going to include the rest of
> the
> > [Session] area in case another setting is causing this problem.
> >
> > Thanks for the help.
> >
> > Mike
> >
> >
> >
> > [Session]
> > session.save_handler = files
> > session.save_path = 2;X:/ApacheGroup/Apache2/html/SessionSave
> > session.use_cookies = 1
> > ; session.use_only_cookies = 1
> > session.name = PHPSESSID
> > session.auto_start = 0
> > session.cookie_lifetime = 0
> > session.cookie_path = /
> > session.cookie_domain = "XXXXX"
> > session.serialize_handler = php
> > session.gc_probability = 1
> > session.gc_divisor = 100
> > session.gc_maxlifetime = 1440
> > session.bug_compat_42 = 1
> > session.bug_compat_warn = 1
> > session.referer_check =
> > session.entropy_length = 0
> > session.entropy_file =
> > session.cache_limiter = nocache
> > session.cache_expire = 180
> > session.use_trans_sid = 0
> > session.hash_function = 0
> > session.hash_bits_per_character = 4
> > url_rewriter.tags =
> "a=href,area=href,frame=src,input=src,form=,fieldset="
> >
> > --
> > PHP Windows Mailing List (http://www.php.net/)
> > To unsubscribe, visit: http://www.php.net/unsub.php
> >
--- End Message ---
--- Begin Message ---
I'm attempting to download a webpage (http://finance.yahoo.com/q?s=erts), using the
following code
$fp=fopen($quote_url,'rb');
$contents=fread($fp,500000);
fclose($fp);
but it only downloads part of the webpage (1460 bytes to be exact). Putting the fread
inside a while loop and reading until 0 bytes read eventually gets the entire page.
Anyone know the reason for this, and how to fix it?
--- End Message ---