[PHP] how to select a file on a random basis?

2002-05-19 Thread Andy
Hi there, I would like to pick a file out of a directory by random. There are 400 files and I just want to pick on of those by random. Is there a way with rand() and file ? Thanx for any hint, Andy -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/

Re: [PHP] Variable won't work in function, even when I global it?

2002-05-19 Thread Paul Roberts
try eval("?>$footertext"); also take the code out of the function and try it, you may need to global some more variables. Paul Roberts [EMAIL PROTECTED] - Original Message - From: "Leif K-Brooks" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Monday, May 20

Re: [PHP] Variable won't work in function, even when I global it?

2002-05-19 Thread Miguel Cruz
So in function checkmember(), do you now have: global $REMOTE_ADDR, $userinfo, $loggedin, $time_start, $getlayout; ?? miguel On Mon, 20 May 2002, Leif K-Brooks wrote: > No good as in "that doesn't solve it". Thanks for trying to help. > > Miguel Cruz wrote: > > >No good as in "that does

Re: [PHP] Variable won't work in function, even when I global it?

2002-05-19 Thread Miguel Cruz
No good as in "that doesn't solve it" or as in "I sure wish it didn't have to be that way"? miguel On Mon, 20 May 2002, Leif K-Brooks wrote: > No good. :-( > > Miguel Cruz wrote: > > >Okay, I'm pretty sure your problem is this: > > > >All those variables referenced in $footertext ($REMOTE_A

Re: [PHP] Variable won't work in function, even when I global it?

2002-05-19 Thread Leif K-Brooks
No good. :-( Miguel Cruz wrote: >Okay, I'm pretty sure your problem is this: > >All those variables referenced in $footertext ($REMOTE_ADDR, $userinfo, >etc.) need to be brought into the local context in the function calling >eval(), using the global keyword. Otherwise they won't be available

Re: [PHP] Variable won't work in function, even when I global it?

2002-05-19 Thread Miguel Cruz
Okay, I'm pretty sure your problem is this: All those variables referenced in $footertext ($REMOTE_ADDR, $userinfo, etc.) need to be brought into the local context in the function calling eval(), using the global keyword. Otherwise they won't be available. miguel On Mon, 20 May 2002, Leif K-B

Re: [PHP] Variable won't work in function, even when I global it?

2002-05-19 Thread Leif K-Brooks
Ok, I guess I'll send it. Thanks for trying to help. Here it is: $ip = $REMOTE_ADDR; $query = mysql_query("select COUNT(*) as rowexists from ips where ip = '$ip'"); $result = mysql_fetch_array($query); if(($result['rowexists'] == 0) && ($loggedin)){ mysql_query("INSERT I

RE: [PHP] Can someone check this mysql code

2002-05-19 Thread Balaji Ankem
Try this.. > $answers="$band, $middlename, $pot"; > $date=date ("l dS of F Y h:i:s A"); > > $sql = "INSERT INTO prizeline VALUES ('', 'email', 'name', 'address', 'answers', > 'date');"; -Balaji -Original Message- From: Miguel Cruz [mailto:[EMAIL PROTECTED]] Sent: Monday, May 20,

Re: [PHP] Variable won't work in function, even when I global it?

2002-05-19 Thread Miguel Cruz
Rather than continuing to shroud this in mystery, could you at least give us a taste of what is in $footertext? miguel On Mon, 20 May 2002, Leif K-Brooks wrote: > I won't send the whole value of $footertext, it's too long. Yes, it > contains the contents of the footer file. I have tried dis

Re: [PHP] Variable won't work in function, even when I global it?

2002-05-19 Thread Leif K-Brooks
I won't send the whole value of $footertext, it's too long. Yes, it contains the contents of the footer file. I have tried displaying it before the function and it works fine. Martin Towell wrote: >what's that value of $footertext? > is it the actual contents of the footer file? >have

Re: [PHP] Can someone check this mysql code

2002-05-19 Thread Miguel Cruz
On Mon, 20 May 2002, PhilipNZ Staff wrote: > My code below don't want to insert the code into the database what am I > doing wrong? > > > $answers="$band, $middlename, $pot"; > $date=date ("l dS of F Y h:i:s A"); > > $sql = "INSERT INTO `prizeline` (`id`, `email`, `name`, `address`, `answe

Re: [PHP] Arrays and Forms

2002-05-19 Thread Miguel Cruz
Your code looks fine. Are you sure you haven't edited away significant parts of it when posting to the list? Maybe a somewhere? miguel On Sun, 19 May 2002, Navid Y. wrote: > I'm having trouble sending array values through forms. > Will the following syntax create a variable called $product['d

Re: [PHP] Variable won't work in function, even when I global it?

2002-05-19 Thread Leif K-Brooks
I know that. Footertext prints out the footer for my site. The bottom of my layout. Also, as I said, I even tried printing $footertext. Thanks for trying to help, though. Miguel Cruz wrote: >I don't know what $footertext looks like, but I can tell you that just >eval()ing a chunk of text

RE: [PHP] Variable won't work in function, even when I global it?

2002-05-19 Thread Martin Towell
what's that value of $footertext? is it the actual contents of the footer file? have you tried displaying the contents of $footertext just before you call checkmember()? does it contain what you're expecting? -Original Message- From: Leif K-Brooks [mailto:[EMAIL PROTECTED]

Re: [PHP] Variable won't work in function, even when I global it?

2002-05-19 Thread Miguel Cruz
I don't know what $footertext looks like, but I can tell you that just eval()ing a chunk of text won't have any apparent effect. When you eval() code in a string, that code has to either return() something, or have direct effects on its own (such as calling functions or setting values). eval(

Re: [PHP] MSIE & GZIP problem?

2002-05-19 Thread Miguel Cruz
On Sun, 19 May 2002, Jason Caldwell wrote: > I have several browsers installed; NS4.x, NS6.02, Opera 6.x, and MSIE 6.0 -- > I'm using gzip compression on my site through the ob_gzhandler. My pages > seem to load fine, however, ONLY in MSIE when I REFRESH (i.e.. with the > Refresh Button) the page

[PHP] Variable won't work in function, even when I global it?

2002-05-19 Thread Leif K-Brooks
On my website, I open my header (and footer) file with fileopen and then eval() it. I know I should include them, but I knew nothing about php when I did this. Anyway, I'm working on "groups" for my website. They will be a kind of club. At the top of every group page, I include a group f

Re: [PHP] Re: Running php program when mail received

2002-05-19 Thread CDitty
I get this error and the program code outputted to the screen. Failed loading /usr/local/Zend/lib/ZendOptimiser.so: /usr/local/Zend/lib/ZendOptimiser.so: cannot open shared object file: No such file or directory I just looked in that directory and there is a ZendOptimizer.so file. I copied

[PHP] Re: Running php program when mail received

2002-05-19 Thread Manuel Lemos
On 05/20/2002 12:38 AM, Cditty wrote: > Hello all. I am trying to write a small program that will run everytime > an email is received at a certain mailbox on my sever. I had this > running at one time, but for some reason, it will not run. I am not > getting any errors and I can't figure ou

[PHP] multiply by 2

2002-05-19 Thread Martin Towell
I was doing some timing of a function on the weekend and in one of the loops, I had to multiply a variable by 2 - easy enough - $i*2 but then I remembered that in C, it's quicker to do a left shift - so $i<<1 but this actually took longer to execute in php than the $i*2 - can anyone confirm my t

Re: [PHP] Arrays and Forms

2002-05-19 Thread Jason Wong
On Monday 20 May 2002 07:05, Navid Y. wrote: > Hello Everyone, > > I'm having trouble sending array values through forms. > Will the following syntax create a variable called $product['desc'] on > the next page? > If not, what am I doing wrong here? > > Note: I tried this but it didn't work! When

[PHP] Running php program when mail received

2002-05-19 Thread CDitty
Hello all. I am trying to write a small program that will run everytime an email is received at a certain mailbox on my sever. I had this running at one time, but for some reason, it will not run. I am not getting any errors and I can't figure out what is going on. Below is the code that I

php-general Digest 20 May 2002 03:20:44 -0000 Issue 1355

2002-05-19 Thread php-general-digest-help
php-general Digest 20 May 2002 03:20:44 - Issue 1355 Topics (messages 98364 through 98410): Re: Non cachable php for use as an 98364 by: Hugh Bothwell regex: string begins with NEITER http NOR cid NOR mailto 98365 by: kras 98366 by: Ray Hunter 98367 by: kra

[PHP] Re: Why not working

2002-05-19 Thread David Robley
In article <001c01c1ff9a$0e4369b0$b700a8c0@yoda>, [EMAIL PROTECTED] says... > This should send me an e-mail with the form info then send a thank you > letter to the subscriber. > It does the first, but not second, any ideas? > > > $MailToAddress = "[EMAIL PROTECTED]"; > $MailSubject = "Joine

[PHP] Re: job payment.

2002-05-19 Thread Jule
Hey everybody, thanks a lot for all the info i got, i know it's kindof a stragne question, but i really had no idea to expect what to earn or to be offered in a situation like the one i'm in now. Now i know what to compare with and how to deal with everything and i think i'm set on job-instruc

[PHP] Re: finding postion of any chat occur first

2002-05-19 Thread Hugh Bothwell
"Prachait Saxena" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > I have a string like $str="Hello World > <<"; > and i want to find the first occurance of any one of the char in " " or "<" > > $sp=strpos($str,">") > Did not work, beacuse in this I can give onl

Re: [PHP] mysql_fetch_array errors

2002-05-19 Thread Richard Archer
At 9:38 PM -0400 19/5/02, Justin Latham wrote: >insists that any query I do is not a valid result resource when I try to use >it in a mysql_fetch_array command. I know that both php and the database So what errors are being returned by all the mysql_* calls? Error messages are their to help th

[PHP] Re: Shoutcast

2002-05-19 Thread Hugh Bothwell
"Johan EkströM" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > Anyone that has knowledge about this program, regarding it's XML output and > php fetching that info and placing it on a php-page for user's to view? Take a look at some of the scripts from http:/

[PHP] mysql_fetch_array errors

2002-05-19 Thread Justin Latham
I am trying to clone my webserver because I am switching ISPs. So I copied the MySQL database, and then I copied the php pages. But my new server insists that any query I do is not a valid result resource when I try to use it in a mysql_fetch_array command. I know that both php and the database

[PHP] Why not working

2002-05-19 Thread dean
This should send me an e-mail with the form info then send a thank you letter to the subscriber. It does the first, but not second, any ideas?

[PHP] Re: job payment.

2002-05-19 Thread Hugh Bothwell
"Jule" <[EMAIL PROTECTED]> wrote in message 02051916383210.28871@localhost">news:02051916383210.28871@localhost... > I got an offer to do some php/mysql design > for a local company, basically what it's going > to be is to take the current Access DB and > make it acessible through a webpage (that

[PHP] fopen thru proxy problem

2002-05-19 Thread Peter
howdy, using the script below can see why I am getting the following error? Warning: fopen("Resource id #1", "http://www.phpbuilder.com/rss_feed.php?type=general&limit=10";) - No error in c:\phpdev\www\test.php on line 46 file could not be opened print( "HTTP\n"); $prox = "proxy_number" $date

RE: [PHP] while loop question - problem (new set of eyes needed)

2002-05-19 Thread David Freeman
> while($row = mysql_fetch_array($result)) > { So, your while loop is based on values of $row. > $row = mysql_fetch_array($result); Now within your while loop you've altered the value of $row - poor thing is probably a tad confused. CYA, Dave -- PHP General Mailing List (http:/

RE: [PHP] while loop question - problem (new set of eyes needed)

2002-05-19 Thread Martin Towell
Line 13 is re-assigning $result, the save variable you're using in line 1! 1 while($row = mysql_fetch_array($result)) 2 { 3$pri = $row['pri']; 4$fg = $row['fg']; 5$molw = $row['molw']; 6$density = $row['density']; 7$denstype = $row['denstype']; 8$pctd = $row['pct

Re: [PHP] PHP Skinning Problem

2002-05-19 Thread Justin French
Not sure about the query string thing... what version are you running? If you have register_globals Off in your php.ini (as discussed MANY times on this list), $skin won't be set... it'll be $_SESSION['skin']. Simple changes: Justin French Indent.com.au on 20/05/02 9:08 AM, Darren Edwards

Re: [PHP] while loop question - problem (new set of eyes needed)

2002-05-19 Thread Julie Meloni
LPR> LPR> while($row = mysql_fetch_array($result)) LPR> { LPR> $pri = $row['pri']; LPR> $fg = $row['fg']; LPR> $molw = $row['molw']; LPR> $density = $row['density']; LPR> $denstype = $row['denstype']; LPR> $pctd = $row['pctd

Re: [PHP] Arrays and Forms

2002-05-19 Thread Jason Morehouse
Try: On Mon, 20 May 2002 11:05:07 +1200, Navid Y. wrote: > Hello Everyone, > > I'm having trouble sending array values through forms. Will the > following syntax create a variable called $product['desc'] on the next > page? > If not, what am I doing wrong here? > > Note: I tried this but i

[PHP] Re: while loop question - problem (new set of eyes needed)

2002-05-19 Thread Lee P Reilly
I see the problem. No reply neccessary. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] while loop question - problem (new set of eyes needed)

2002-05-19 Thread Lee P Reilly
Hi, I wonder if someone could have a quick look at this for me? It's a simple while loop, but it's not acting the way (I think) it should. If I break down the while loop, it reads: // $result contains 3 rows while($row = mysql_fetch_array($result)

RE: [PHP] Why would this command just Die!

2002-05-19 Thread David Freeman
> INSERT INTO prizeline (id, email, name, address, answers, > date) VALUES ('', '[EMAIL PROTECTED]', 'newman', > '12 Newman ave Auckland', 'In Season, James, John', 'Monday > 20th of May 2002 10:22:05 AM')There has been an error If you want 'id' to be assigned by the database (I'm assumi

[PHP] PHP Skinning Problem

2002-05-19 Thread Darren Edwards
Can some one please tell me why this PHP command brings back an Undefined variable: QUERY_STRING on line 1. The script is below, by the way it is PHP on windows not unix. Also can some one please tell me why this is bringing back a problem on a windows server. -- PHP General Mailing Li

[PHP] Arrays and Forms

2002-05-19 Thread Navid Y.
Hello Everyone, I'm having trouble sending array values through forms. Will the following syntax create a variable called $product['desc'] on the next page? If not, what am I doing wrong here? Note: I tried this but it didn't work! When I tried doing it without using an array, but rather with a

[PHP] Re: Why would this command just Die!

2002-05-19 Thread Jason Morehouse
To see the actual error try: "or die (mysql_error())". On Mon, 20 May 2002 10:27:20 +1200, Php Developers wrote: > This command just dies! > > I have checked sql connection ... ok the insert into line ... ok > > Pfft it just don't wanna work > > > > $answers="$band, $middlename, $pot";

Re: [PHP] Why would this command just Die!

2002-05-19 Thread Julie Meloni
PD> $answers="$band, $middlename, $pot"; PD> $date=date ("l dS of F Y h:i:s A"); PD> $sql = "INSERT INTO prizeline (id, email, name, address, answers, date) VALUES ('', '$email', '$name', '$address', '$answers', '$date')"; PD> echo $sql; PD> mysql_query($sql) or die ("There has been an e

[PHP] MSIE & GZIP problem?

2002-05-19 Thread Jason Caldwell
I have several browsers installed; NS4.x, NS6.02, Opera 6.x, and MSIE 6.0 -- I'm using gzip compression on my site through the ob_gzhandler. My pages seem to load fine, however, ONLY in MSIE when I REFRESH (i.e.. with the Refresh Button) the page seems to lose it's table or table format, and ever

[PHP] Why would this command just Die!

2002-05-19 Thread Php Developers
This command just dies! I have checked sql connection ... ok the insert into line ... ok Pfft it just don't wanna work ## Out put on page ## INSERT INTO prizeline (id, email, name, address, answers, date) VALUES ('', '[EMAIL PROTECTED]', 'newman', '12 Newman ave Auckland', 'In Season, Ja

RE: [PHP] Sessions and Arrays

2002-05-19 Thread Navid Y.
Jason, I did try it before asking, else I wouldn't have any reason to ask. It didn't work for me, but I thought that maybe I was missing something. So your answer is yes, it is possible? I guess I'll have to keep testing my application. Thanks for your time, I really appreciate it. Navid -O

Re: [PHP] Can someone check this mysql code

2002-05-19 Thread Kevin Waterson
On Mon, 20 May 2002 08:57:16 +1200 "PhilipNZ Staff" <[EMAIL PROTECTED]> wrote: > My code below don't want to insert the code into the database what am I doing wrong? > > > $answers="$band, $middlename, $pot"; > $date=date ("l dS of F Y h:i:s A"); > > $sql = "INSERT INTO `prizeline` (`id`,

Re: [PHP] Sessions and Arrays

2002-05-19 Thread Jason Wong
On Monday 20 May 2002 04:31, Navid Y. wrote: > Hello Everyone, > > How do I send a single array, with many values, through sessions? > For example, I might have the following: [snip] Why? don't you just try it? Surely it's quicker to write some simple test code than to ask on the list? > By re

[PHP] Can someone check this mysql code

2002-05-19 Thread PhilipNZ Staff
My code below don't want to insert the code into the database what am I doing wrong?

[PHP] job payment.

2002-05-19 Thread Jule
Hey guys, I got an offer to do some php/mysql design for a local company, basically what it's going to be is to take the current Access DB and make it acessible through a webpage (that's the basic info they gave me). How much should i except to get paid for this, and what is an acceptable amount,

[PHP] Sessions and Arrays

2002-05-19 Thread Navid Y.
Hello Everyone, How do I send a single array, with many values, through sessions? For example, I might have the following: By registering just the "product" array, will I have all of the values of that array available to me throughout the entire session? Or will I have to register each array v

[PHP] Re: ob_gzhandler encoding ???

2002-05-19 Thread Jason Caldwell
Will browsers that receive gzip encoded pages, transmit gzip encoded POST or GET data back? Jason "Jason Caldwell" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > Does anyone know how I can test (and see) if my ob_gzhandler() is working? > > I've written the

Re: [PHP] I feel so stupid asking this question....LOL

2002-05-19 Thread Jason Wong
On Monday 20 May 2002 03:08, vins wrote: > How do i alternate the row color again. > You get so used to dreamweaver doing everything for you and now when > dreamweaver doesn't want to work back to notepage. > But to remember how to alternate row colors... Search the archives, this was discuss

Re: [PHP] I feel so stupid asking this question....LOL

2002-05-19 Thread Richard Baskett
Well within a loop you can do something like this: Just make sure that $i is being incremented each time through the loop and there you go! :) Rick Be kind. Everyone you meet is fighting a hard battle - John Watson > From: "vins" <[EMAIL PROTECTED]> > Organization: Personal > Reply-To: "vins

Re: [PHP] Trouble with recocnizing jpeg files. Some work, some do not

2002-05-19 Thread andy
I thought this is a secure way to find out if the file is a jpeg or not. So you are suggesting to passit to the unix command file? How does that work. Maybe you can make a small example or give a small hint on what to look for on google. Sound interesting! I tryed to to perform a createfromjpeg c

[PHP] Shoutcast

2002-05-19 Thread Johan Ekström
Anyone that has knowledge about this program, regarding it's XML output and php fetching that info and placing it on a php-page for user's to view? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] I feel so stupid asking this question....LOL

2002-05-19 Thread vins
How do i alternate the row color again. You get so used to dreamweaver doing everything for you and now when dreamweaver doesn't want to work back to notepage. But to remember how to alternate row colors... I'm lost. PLZ PLZ PLZ PLZ LOL :) -- PHP General Mailing List (http://www.php.net

[PHP] PHP parsing XML from Shoutcast

2002-05-19 Thread Johan Ekström
Anyone that has knowledge about this program, regarding it's XML output and php fetching that info and placing it on a php-page for user's to view? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] finding postion of any one char occur first

2002-05-19 Thread Prachait Saxena
Hello I have a string like $str="Hello World > <<"; and i want to find the first occurance of any one of the char in " " or "<" $sp=strpos($str,">") Did not work, beacuse in this I can give only one char Can i give filter in this as "[ >]" If yes then how? Or any other idea to get this ...

[PHP] finding postion of any chat occur first

2002-05-19 Thread Prachait Saxena
Hello I have a string like $str="Hello World > <<"; and i want to find the first occurance of any one of the char in " " or "<" $sp=strpos($str,">") Did not work, beacuse in this I can give only one char Can i give filter in this as "[ >]" If yes then how? Or any other idea to get this ...

Re: [PHP] ob_gzhandler encoding ???

2002-05-19 Thread Miguel Cruz
I doubt that'll work, as I don't think the gzhandler code will send gzipped data without a successful negotiation with the client (which can't happen at the command line). As others have suggested, the easiest way is probably to use lynx's --mime_header option. miguel On Sun, 19 May 2002, Jason

[PHP] ob_gzhandler encoding ???

2002-05-19 Thread Jason Caldwell
Does anyone know how I can test (and see) if my ob_gzhandler() is working? I've written the following script, and run it from the command line to "see" the output -- hoping it's encoded -- it isn't -- so I want to make sure I'm doing it right. some HTML code I save then run the file:

Re: [PHP] copy after upload pblm (?path?)

2002-05-19 Thread Miguel Cruz
1) You probably need to move the file from the temporary directory to somewhere in your own personal directory hierarchy. 2) http://php.net/move_uploaded_file miguel On Sun, 19 May 2002, arnaud gonzales wrote: > Hi all, > I' m trying to copy an uploaded file: > > if(!empty($fichier)) {

Re: [PHP] Trouble with recocnizing jpeg files. Some work, some donot

2002-05-19 Thread Miguel Cruz
On Sun, 19 May 2002, andy wrote: > I do have trouble with finding out if a file is a jpeg or not. This is the > command I am using: > > $_FILES[picture_location][type] > > works fine exept in one case: With Photoshop 6.0 I do open the jpeg (which > workes fine) an save as jpeg as another file

[PHP] copy after upload pblm (?path?)

2002-05-19 Thread arnaud gonzales
Hi all, I' m trying to copy an uploaded file: if(!empty($fichier)) { $nom = $HTTP_POST_FILES["fichier"]["name"]; $type = $HTTP_POST_FILES["fichier"]["type"]; $taille = $HTTP_POST_FILES["fichier"]["size"]; $nom_tmp = $HTTP_POS

Re: [PHP] regex: string begins with NEITER http NOR cid NOR mailto

2002-05-19 Thread kras
There you are $html = preg_replace ("'href=(\"|)(?)'si", "href=\"".$bejsnejm."\\2\"", $html); $html = preg_replace ("'(src|background|href)=(\"|)(?!http)([.]*?[^\"]*?)(\"| >)'si", "\\1=\"".$bejsnejm."/\\3\"", $html); of course it fails. kras > Show some code... > > Thanks, > > Ray "

RE: [PHP] regex: string begins with NEITER http NOR cid NOR mailto

2002-05-19 Thread Ray Hunter
Show some code... Thanks, Ray "BigDog" Hunter -Original Message- From: kras [mailto:[EMAIL PROTECTED]] Sent: Sunday, May 19, 2002 9:53 AM To: [EMAIL PROTECTED] Subject: [PHP] regex: string begins with NEITER http NOR cid NOR mailto Hello! I have got a big problem: I have html con

[PHP] regex: string begins with NEITER http NOR cid NOR mailto

2002-05-19 Thread kras
Hello! I have got a big problem: I have html content in $html variable, which contains href, src and background tags. Those tags may contain relative adressess and absolute addressess which begin with http(s): or cid: (mail inline attachements) and mailto: I have also variable $basewwwservernam

[PHP] Re: Non cachable php for use as an

2002-05-19 Thread Hugh Bothwell
"Henry" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > Hello All, > > I want to return a gif from a php script. I want it to not be cachable > "anywhere" not browsers, proxys etc. Actualy what I want to do is pass an > existing .gif file as the output and do s

php-general Digest 19 May 2002 14:18:19 -0000 Issue 1354

2002-05-19 Thread php-general-digest-help
php-general Digest 19 May 2002 14:18:19 - Issue 1354 Topics (messages 98309 through 98363): Re: random quote script with flat file? (PHP Vault: Random Quote Script) 98309 by: Evan Nemerson 98311 by: Timothy J. Luoma Re: PHPBB2 98310 by: Ashley M. Kirchner 98

[PHP] Trouble with recocnizing jpeg files. Some work, some do not

2002-05-19 Thread andy
Hi there, I do have trouble with finding out if a file is a jpeg or not. This is the command I am using: $_FILES[picture_location][type] works fine exept in one case: With Photoshop 6.0 I do open the jpeg (which workes fine) an save as jpeg as another file name. Then upload the new file. This

[PHP] A new GUI client for mySQL

2002-05-19 Thread Ritesh Nadhani
greetings... Webyog has released mySQLyog, a win32 based Query analyzer. Its FREE and gives all the features that a mysql developer can ask for by a query analyzer. please visit www.webyog.com you can execute query of results of more than 10 records, supports multiple query execution and you c

Re: [PHP] Help with file read

2002-05-19 Thread Jason Wong
On Sunday 19 May 2002 18:21, Josh Edwards wrote: > Can someone look and help > > I have a function that returns the date in this format > [10/Apr/2002:01:17:27 +1000] but I'm having trouble returning the last date > in the file. [snip] > $lastdate = getmydate($fcontents[count($fcontents)-1]);

Re: [PHP] refresh (part of) a page?

2002-05-19 Thread Jason Wong
On Sunday 19 May 2002 18:03, savaidis wrote: > I want to refrech a part of my page (or the whole page) using PHP. > Periodically, using a time delay. > Should I use frames? You cannot refresh part of a page without resending the whole page. You can use frames. > Also I tried to use "header (...

[PHP] Re: How to encode e-mail attachments, work with MIME

2002-05-19 Thread Manuel Lemos
Hello, On 05/19/2002 08:52 AM, Jason Morehouse wrote: > Though I use php quite a bit for non-web scripting, for incoming e-mail > you may be better off using perl. > > Check the MailTools modules @ CPAN: > > http://search.cpan.org/search?dist=MailTools > > Specifically at Mail::Internet > http

[PHP] Re: How to encode e-mail attachments, work with MIME

2002-05-19 Thread Manuel Lemos
Hello, On 05/19/2002 04:33 AM, Carlos Fernando Scheidecker Antunes wrote: > Hello all, > > I'm trying to write an script to fetch e-mail and save whatever attachments there >are. > > Are there any articles or anywhere I can read about it? You may find here these two classes that seem to do wh

[PHP] Re: How to encode e-mail attachments, work with MIME

2002-05-19 Thread Jason Morehouse
Though I use php quite a bit for non-web scripting, for incoming e-mail you may be better off using perl. Check the MailTools modules @ CPAN: http://search.cpan.org/search?dist=MailTools Specifically at Mail::Internet http://search.cpan.org/doc/MARKOV/MailTools-1.44/Mail/Internet.pm Good luck,

[PHP] Help with file read

2002-05-19 Thread Josh Edwards
Can someone look and help I have a function that returns the date in this format [10/Apr/2002:01:17:27 +1000] but I'm having trouble returning the last date in the file. $totalhits = count($fcontents); $filename = ("combined_log"); //open file $fcontents = file($filename); //read into arra

Re: [PHP] Augmenting an old date

2002-05-19 Thread Andre Dubuc
Thanks Tom, for the excellent help! Seems like 'strtotime' function was what was needed! Regards, Andre On Sunday 19 May 2002 01:06 am, you wrote: > Hi > A slightly more efficeint way :) > > $start = "2002-01-01"; > $expire = date("Y-m-d",strtotime("$start +30 days")); > echo $expire.""; > ?>

[PHP] refresh (part of) a page?

2002-05-19 Thread savaidis
I want to refrech a part of my page (or the whole page) using PHP. Periodically, using a time delay. Should I use frames? Also I tried to use "header (...)" calling the same page with different name (and then back to the same page) but I got the warning: "header already send". I tried also "Loca

[PHP] PFDLib Function Problem

2002-05-19 Thread Maurice Kevenaar
Hi, I'm making an script to make an PDF file width 2 windows fonts (Times new Roman and BmOCRB). When I add the second font the PDF file issn't created. here ar my font dec. $font = pdf_findfont($pdf, "Times new roman", "winansi", 1); if ($font) { pdf_setfont($pdf, $font, 12); } et

Re: [PHP] Compressing my web pages?

2002-05-19 Thread Jason Wong
On Sunday 19 May 2002 14:27, Jason Caldwell wrote: > I'm using IIS5.0 -- and PHP 4.2.1 -- I think there is a compression setting > within IIS whereby the pages (before they are sent) are compressed, to be > decompressed and then displayed by the browser (pending, of course, if that > browser suppo

Re: [PHP] PHPBB2

2002-05-19 Thread Justin French
Clearly the BB is designed to fill a page... it seems to have a minimum width, given the colums, images, etc etc that you can't really avoid... I'm not clear on the terms/licensing of the BB, but I'd try a mixture of: 1. editing the code(s) it looks like the "forums" column can be shrunk dow

[PHP] Non cachable php for use as an

2002-05-19 Thread Henry
Hello All, I want to return a gif from a php script. I want it to not be cachable "anywhere" not browsers, proxys etc. Actualy what I want to do is pass an existing .gif file as the output and do some database manipulation whilst I do so. A bit like a hit counter type system. Any help as to w

[PHP] How to encode e-mail attachments, work with MIME

2002-05-19 Thread Carlos Fernando Scheidecker Antunes
Hello all, I'm trying to write an script to fetch e-mail and save whatever attachments there are. Are there any articles or anywhere I can read about it? Thanks, Carlos Fernando Scheidecker Antunes Linux User #207984

Re: [PHP] ob_gzhandler? (compression)

2002-05-19 Thread Miguel Cruz
Even Lynx does. miguel On Sun, 19 May 2002, Gerard Samuel wrote: > If Im not mistaken, all the current and recent Micro$oft, Netscape & > friends support it. > > Jason Caldwell wrote: > > >Is there a listing somewhere that shows which web browsers support > >"gz-encoded" web pages? > > > >Tha

Re: [PHP] ob_gzhandler? (compression)

2002-05-19 Thread Gerard Samuel
If Im not mistaken, all the current and recent Micro$oft, Netscape & friends support it. Jason Caldwell wrote: >Is there a listing somewhere that shows which web browsers support >"gz-encoded" web pages? > >Thanks >Jason > > > > > -- PHP General Mailing List (http://www.php.net/) To unsub

[PHP] ob_gzhandler? (compression)

2002-05-19 Thread Jason Caldwell
Is there a listing somewhere that shows which web browsers support "gz-encoded" web pages? Thanks Jason -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: Output_Buffering ??

2002-05-19 Thread Jason Caldwell
Forget the question -- I found the link I needed: http://www.php.net/manual/en/function.ob-start.php "Jason Caldwell" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > Can someone explain output_buffering to me? I looked on php.net -- but > cannot find refere

[PHP] Output_Buffering ??

2002-05-19 Thread Jason Caldwell
Can someone explain output_buffering to me? I looked on php.net -- but cannot find reference to it -- it's a setting in the PHP.INI file. In my *production* .ini version, the output_buffering tag is set to 4096 (4k) -- what exactly is the intent of this tag? What brought this question up was wh