[PHP] [Success Story] PHP 4.3.2+ Apache 1.3.x + MySQL 4.0.x + mod_auth_mysql

2003-06-11 Thread Rénald CASAGRAUDE
Hello, When I installed php-4.3.2 I realised that phpinfo() from mod_php said : Client API version => 3.23.56 And from CLI, he said : Client API version => 4.0.x (this one is the mysql-client version installed) And Browse link from PhpMyAdmin didn't worked, apache died, from the apache error log:

Re: [PHP] timing header("Location: " )

2002-07-25 Thread Rénald CASAGRAUDE
On Thursday, July 25, 2002, at 01:02 PM, JJ Harrison wrote: > Is it possible to make the browser wait say, 5 seconds before > redirection by > outputting headers? I know you can do it with meta tags but not how by > outputting headers http://www.php.net/manual/en/function.sleep.php R. -- P

Re: [PHP] Parse Error(Newbie)

2002-05-23 Thread Rénald CASAGRAUDE
On jeudi, mai 23, 2002, at 01:27 , Nick Wilson wrote: >> I get a parse error on line 114 can anyone see the problem? >> >> Sorry if it is something obvious :} >> for ($i=0; $i <$num_results; $i++) >> >> 110. { >> 111. $row = mysql_fetch_array($result); >> 112. echo ''; > > Have you tried escaping

Re: [PHP] Directory check

2002-04-08 Thread Rénald CASAGRAUDE
Le lundi 8 avril 2002, à 04:15 PM, Hiroshi Ayukawa a écrit : > Does anyone know how to check a directory exiasts? RTFM !! try this : if (file_exists($dir) && is_dir($dir)) { echo $dir.' is a directory !'; } -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http

Re: [PHP] MAC file upload

2002-04-08 Thread Rénald CASAGRAUDE
Le lundi 8 avril 2002, à 03:45 PM, Erik Price a écrit : >> When you download the file It loses the file association. It's for a >> company >> I do work for that uses a lot of .ai and .psd files. > Hi ! Have you tried with : $filesize = filesize($your_file); header("Content-type: ".$your_mime

Re: [PHP] what's the best way to do redirect within PHP

2002-04-08 Thread Rénald CASAGRAUDE
Le lundi 8 avril 2002, à 04:00 PM, Wo Chang a écrit : > What is the best way to do redirect after a > php file did some processing? Function header() ??? R. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] PHP - Forced header downloads

2002-03-20 Thread Rénald CASAGRAUDE
Ian Wayne wrote: > [...] > > /*retrieve filename from url*/ > $current=$REQUEST_URI; > $url=parse_url($current); > $fileq=$url[query]; > $file=$fileq.".mov"; > > /*force download*/ > header("Content-type:application/octet-stream\n"); > header("Content-disposition:attachment; filename=\"$file\"\

Re: [PHP] eregi()

2002-03-19 Thread Rénald CASAGRAUDE
Vlad Kulchitski wrote: > > Hi, > > Can any1 send a small script of how to valiade a username using eregi(). > > I want username to consist only a-zA-Z1-0, "_", and "-" > > I can't get it to work correctly $pattern = "[a-zA-Z0-9_\-]+"; this is meaning : One word containing a-z or A-Z or 0-9 or

Re: [PHP] regular expression

2002-03-19 Thread Rénald CASAGRAUDE
Kris Vose wrote: > > How would you write a regular expression that defines a phone number: ex. >(123)123-1234. > > In other words how would you check to see if there were three numerics surrounded by >(), then > three numerics with a "-", then four numerics. with posix regular expression, fo