[PHP] copy image from database

2001-12-08 Thread Jan Grafström
Hi! I have images in my DB and want to write them to disk. I tried to copy but nothing happend, the image only pops up in my browser with echo. I want it saved in a directory on my server. - $query = select bin_data,filetype from $table where id=$id; $result = @MYSQL_QUERY($query); $image =

[PHP] phpautodoc

2001-12-08 Thread Malcolm Clark
Trying to get phpautodoc to work: If you saw this line, how would you write it with example values in it for file(s) etc? [php] phpdoc.php [php interpreter options] file(s) [-- -o output path] phpautodoc instructions say the following, but I don't understand: Scans the specified PHP source

[PHP] WDDX

2001-12-08 Thread con pulpa
Hi EVERYONE! I'm running RH7.1 with PHP version 4.04pl1 and Apache1.3.19-5. A simple php script ?php phpinfo(); ? tells me that the library is configured with the '--enable-wddx' and '--with-xml' options. I'm using netscape4.76 and konqueror(kde 2.1.1) browser. Now running a slightly more

[PHP] Text file busy

2001-12-08 Thread Boaz Yahav
HI I'm trying to run a php file in CGI mode and I get : Text file busy I'm running many other files like that for years and this is the 1st time I see such a message. php.net seems to be down for me, any idea? berber -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail:

Re: [PHP] Costum Error Page

2001-12-08 Thread Daniel Urstöger
Thx ! It works, now I can code further ! Ashley M. Kirchner [EMAIL PROTECTED] schrieb im Newsbeitrag [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... Daniel Urstöger wrote: How could I check, which file apache tried to access, and didn´t found ? That would be a pretty nice function for my PHP

[PHP] fopen to check if file exists

2001-12-08 Thread moe
I am using this function: function isAfile($url){ $fp = @fopen($url,r); if ($fp) { //print The file exists!; return 1; } else { //print The file does not exist; return 0; } } to check if a remote file exists... now the problem is that the URL's i am trying to

Re: [PHP] Costum Error Page

2001-12-08 Thread Daniel Urstöger
Opps, sorry, I had a bug, now I have this problem: Browser is showing this URL: http://yourdomain.com/play/404.php and so the REQUEST_URI is: /play/404.php But I would need the requested file, before apache redirected to the 404.php Is this possible as well ? -- PHP General Mailing List

php-general Digest 8 Dec 2001 11:52:20 -0000 Issue 1040

2001-12-08 Thread php-general-digest-help
php-general Digest 8 Dec 2001 11:52:20 - Issue 1040 Topics (messages 77090 through 77110): Re: Finding num of days b/t two dates. 77090 by: Steve Cayford Re: PHP + MySQL problem (strange behavior) 77091 by: Javier Muniz Re: Image problem 77092 by: Andrew Chase

Re: [PHP] Costum Error Page

2001-12-08 Thread Valentin V. Petruchek
Use $QUERY_STRING instead - Original Message - From: Daniel Urstöger [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Saturday, December 08, 2001 1:51 PM Subject: Re: [PHP] Costum Error Page Opps, sorry, I had a bug, now I have this problem: Browser is showing this URL:

Re: [PHP] fopen to check if file exists

2001-12-08 Thread Valentin V. Petruchek
I've tested given url.. If there is no image php script return file = '139'. Check if file content is different from 139. or try to get image size of file: $size = GetImageSize (http://waptopic.supereva.it/loghiesuonerie.it/LogoGen.php?id=1100;); and check what happens if there is no image

[PHP] Re: Getting started - what do I need?

2001-12-08 Thread administrator
Hi there, I found this site very useful for lots of help-me-up-the-learning-curve tutorials. http://perl.about.com/cs/beginningphp/ C:o) Indera wrote: Hello, I have never used php or mysql before and want to know what tools I should use so that I can start learning php and mysql. I

Re: [PHP] Costum Error Page

2001-12-08 Thread Daniel Urstöger
thx for your help .. But I cannot get this running .. Not with getenv nor with the variable itself :( Could you give me a short example ? Would really help me much ! :) thx and cya ... -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional

[PHP] Re: Getting started - what do I need?

2001-12-08 Thread Bharath Bhushan Lohray
Fellows who suggested php triad were right!! It is a good option to downloading PHP, MySQL and Apache!! Php Comprhensive docs.. www.php.net/download-docs.php Php tutorials by v s babu-- http://vsbabu.org/tutorials/php/ (you can download it --very good) Indera [EMAIL PROTECTED] wrote in

[PHP] R: [PHP] fopen to check if file exists

2001-12-08 Thread moe
what do you mean that it returns file= '139'? you are talking about the id? please can you explain me better? Valentin V. Petruchek [EMAIL PROTECTED] wrote in message 002101c17fdf$2ed881a0$[EMAIL PROTECTED] I've tested given url.. If there is no image php script return file = '139'. Check if

Re: [PHP] WDDX

2001-12-08 Thread Rouvas Stathis
Browsers discard whatever tags they don't understand. They don't grok WDDX tags, so only the string is displayed. View source and it all should be there. -Stathis. con pulpa wrote: Hi EVERYONE! I'm running RH7.1 with PHP version 4.04pl1 and Apache1.3.19-5. A simple php script ?php

[PHP] Shopping project with quantity discounts

2001-12-08 Thread Girish Nath
Hi I'm working on a shopping project which involves a complex pricing model with discounts by product quantity threshold as well as customer specific discounts. Has anyone got experience of this or point me in the right direction with regards to the database layout and theory behind this.

[PHP] simple regexp question - validating new line chars

2001-12-08 Thread Krzysztof Jarecki
Hi everyone:) I need to validate a string that comes from a submitted form. There's nothing unusual in it... but the problem part showes up, when I need to validate a new line character... I have tried many diffrent variations of the code and I have ended up on something VERY simple: ?php

RE: [PHP] simple regexp question - validating new line chars

2001-12-08 Thread Jack Dempsey
that's because you're testing to see if '\n' is \n...single quotes mean: interpret the text between literally, so '\n' is a backslash followed by n...doulbe quotes mean: interpolate the value, so \n becomes a newline... -Original Message- From: Krzysztof Jarecki [mailto:[EMAIL

[PHP] Sorting Multidimensional Array..second dimension has 12 elements

2001-12-08 Thread J. Roberts
I have a 2 dimensional array...with the second dimension having 12 elements. What I want to do is sort (and re-sort) they array by one of the 12 elements...keeping data consistent. All of the examples I have read @php.net seem to deal with multidim-arrays that only have one element in them.

[PHP] Re: copy image from database

2001-12-08 Thread Thomas
copy copies file to file, not data to a file (creating files). You should look at using fopen() and fwrite() instead. You may also want to check the returned value from these functions to see if an error occurred. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail:

Re: [PHP] Costum Error Page

2001-12-08 Thread Andrew Brampton
how about you make a phpInfo() page, and set that as 404 error, then you can find the correct variable to use :) Andrew - Original Message - From: Daniel Urstöger [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Saturday, December 08, 2001 12:43 PM Subject: Re: [PHP] Costum Error Page

Re: [PHP] copy image from database

2001-12-08 Thread Andrew Brampton
read the specs on copy() it copys a source file to a destination file... You are not copying files!... You should use something like fwrite to write the contents of $image to a file... Andrew - Original Message - From: Jan Grafström [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Saturday,

[PHP] Flash jpeg/gif/bmp

2001-12-08 Thread lists
Does anyone know of a tool to export a frame of a Flash movie to a flat image file on the client-side? I want users to be able to set the last frame of my flash movie as their wallpaper. The only way I know of doing this is to use PHP to re-build the Flash frame by receiving coordinates from the

Re: [PHP] Costum Error Page

2001-12-08 Thread Rasmus Lerdorf
Just put a phpinfo() call in your 404.php page and see for yourself. On Sat, 8 Dec 2001, Daniel Urstöger wrote: Opps, sorry, I had a bug, now I have this problem: Browser is showing this URL: http://yourdomain.com/play/404.php and so the REQUEST_URI is: /play/404.php But I would need

[PHP] SQL Query Question

2001-12-08 Thread Andrew Brampton
Hi, This isn't a php question, more of a SQL question, but I don't know any where better to send it, and I guess its trival enough for someone here to answer. Anyway, I have a list of members each with a score field. How can I say that Member 3 is ranked 10 out of 100 members for example.

[PHP] update mysql record

2001-12-08 Thread gee
Newbie is trying to edit a mysql record on my local machine using mysql 3.23.34 and PHP 4.04 and nothing gets updated after changes are made. I would be most grateful for any help Thank you Gee. html head /head body table border=0 cellpadding=4 cellspacing=0 width=730 align=center ? echo form

[PHP] How do I check GD version?

2001-12-08 Thread Torkil Johnsen
Cheers all... This mail got rather long, so here are my 3 questions in a short version: 1) What is GD? (fore use with imagecopyresampled function) 2) How can I run a function that will tell me what version of GD is installed on my server, if any version at all? 3) Anyone know of some good hosts

php-general Digest 8 Dec 2001 23:52:35 -0000 Issue 1041

2001-12-08 Thread php-general-digest-help
php-general Digest 8 Dec 2001 23:52:35 - Issue 1041 Topics (messages 77111 through 77131): Re: Costum Error Page 77111 by: Valentin V. Petruchek 77114 by: Daniel Urstöger 77118 by: Papp Gyozo 77125 by: Andrew Brampton 77128 by: Rasmus Lerdorf Re:

Re: [PHP] How do I check GD version?

2001-12-08 Thread Rasmus Lerdorf
This mail got rather long, so here are my 3 questions in a short version: 1) What is GD? (fore use with imagecopyresampled function) GD is an image library. You need GD version 2.0.1 or higher to use imagecopyresampled(). 2) How can I run a function that will tell me what version of GD

[PHP] How to compute time to load page...

2001-12-08 Thread Torkil Johnsen
Hi All... (again) I was just wondering if anyone out there has made a function that will compute how long time (seconds, milliseconds) it will take to load a page? I see some search engines have a function that displays how long time the search took, and I'm looking for the same thing, to

RE: [PHP] How to compute time to load page...

2001-12-08 Thread Jack Dempsey
the search time is different than the page load timegoogle for example can find thousands of records in a tenth of a second, yet it takes longer to get that html result back to your browseryou could estimate page download time by calculating the filesize and using the connection

[PHP] Comparing Dates

2001-12-08 Thread natesanden
I'm trying to do a check on a date, to see if it's after the current date, so basically i'm doing an if(date(d-m-y)15-12-01) { do something } I know that's obviously not the right way to do it, but can someone help me out?

RE: [PHP] Comparing Dates

2001-12-08 Thread Jack Dempsey
you could pass the values to mktime and compare -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Saturday, December 08, 2001 8:17 PM To: [EMAIL PROTECTED] Subject: [PHP] Comparing Dates I'm trying to do a check on a date, to see if it's after the current

Re: [PHP] Costum Error Page

2001-12-08 Thread Daniel Urstöger
Thx ! The one with the phpinfo was a nice tip .. But yeah, I didn´t found the stuff I wanted either .. But now, I already coded a work around :) Seems to work pretty fine ! :) cya ! and thanks for your help ! Andrew Brampton [EMAIL PROTECTED] schrieb im Newsbeitrag

Re: [PHP] How to compute time to load page...

2001-12-08 Thread Andrew Forgue
Or this: at the beginning of your script, get the time using microtime then at the bottom, you could get the time again, subtract the difference and voila, thats how long the execution time of your script is. -ajf - Original Message - From: Jack Dempsey [EMAIL PROTECTED] To: Torkil

Re: [PHP] SQL Query Question

2001-12-08 Thread Jason G.
Assuming you have the variable member_id (for the member in question)... Get the score for that member and store it to $score... SELECT score FROM members WHERE id=$member_id Then to determine rank, just do this... SELECT COUNT(*)+1 as rank FROM members WHERE SCORE$score; -Jason Garber

Re: [PHP] Comparing Dates

2001-12-08 Thread Alex Shi
Absolutely you are doing in the right way:) But pls make sure that string comparison is from left to right. For example, 16 is larger than 15-12-01. Alex - Original Message - From: [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Saturday, December 08, 2001 8:16 PM Subject: [PHP]

Re: [PHP] How to compute time to load page...

2001-12-08 Thread Alex Shi
Basically I agree with you. But the second time to get time must be done after the page is rendered on local browser. So I suggest to use Javascript for the second time to get time, and pass the first time value into a js function. Alex - Original Message - From: Andrew Forgue [EMAIL

[PHP] session woes

2001-12-08 Thread Gaylen Fraley
I have a friend who is using an ISP that uses php4.0.3pl1 . It appears that session_register is not working between pages. In script A, the session var gets registered and shows registered using session_is_registered('testvar'); However, when script B is called, a session-start is issued and

Re: [PHP] How to compute time to load page...

2001-12-08 Thread Jason G.
What about the small difference there will be between server time and local time? -Jason Garber At 10:40 PM 12/8/2001 -0500, Alex Shi wrote: Basically I agree with you. But the second time to get time must be done after the page is rendered on local browser. So I suggest to use Javascript for

Re: [PHP] How to compute time to load page...

2001-12-08 Thread Alex Shi
This is an Einstein problem :)) Maybe we need a time server However, we can have an alternative solution to get round turn time. Let's say on page A there's a link to a backend script. When the link is clicked, then use javascript to pick up current time T1 and pass it to the script. This

Re: [PHP] Costum Error Page

2001-12-08 Thread Papp Gyozo
there is an example in the apache docs or httpd.conf samples how to pass to error script the original request uri, ins't there any? - Original Message - From: Ashley M. Kirchner [EMAIL PROTECTED] To: Daniel Urstger [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Sent: Saturday,

Re: [PHP] WDDX

2001-12-08 Thread Papp Gyozo
What do you get as result from a 'Show source...' in your browser? AFAIK, NS4.76 does not display unrecognized HTML element, and it treats your script's output as HTML source. try: ?php print (htmlspecialchars(wddx_serialize_value($one_var))); ? - Original Message - From: con