[PHP-WIN] Outputing text with an image

2003-03-11 Thread Anthony Ritter
How can I incorporate the text - "This is a square" - under the .jpg file? The following php script outputs the reduced square but no copy. Thank you. Tony Ritter .. -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, vis

RE: [PHP-WIN] Newbie attempting file open...

2003-03-11 Thread William Fisher
Gentlemen, I wanted to thank you as BOTH of your ideas worked (of course). I know that there may be some questionable logic in my methods. But as I mentioned before, I am a newbie. I'm much more at ease behind a drum set! Your expertise helped me out a lot so thanks again. "Svensson, B.A.T.

php-windows Digest 11 Mar 2003 19:43:28 -0000 Issue 1629

2003-03-11 Thread php-windows-digest-help
php-windows Digest 11 Mar 2003 19:43:28 - Issue 1629 Topics (messages 18962 through 18977): Re: Newbie attempting file open... 18962 by: Svensson, B.A.T. (HKG) 18963 by: Svensson, B.A.T. (HKG) 18964 by: Luis Moreira 18970 by: Svensson, B.A.T. (HKG) 189

RE: [PHP-WIN] foreach with mysql

2003-03-11 Thread Kyle Williamson
Why a foreach? while($row = mysql_fetch_array($result)) { echo "$row[name]"; } >= Original Message From <[EMAIL PROTECTED]> = >Hi >I am trying to use a FOREACH command to go through a mysql result with 2 >columns. >They are ID and name >I need the name one the ID one is just for referre

[PHP-WIN] Re: Add slashes saga

2003-03-11 Thread rotsky
I've just been through this! Let's say that your variable containing the name is $lastname, using the following when setting up a form to pass values by POST worked for me: blah...blah...name='lastname' value ='".htmlentities(stripslashes($lastname))."'>. etc etc I actually have a page whe

RE: [PHP-WIN] testing to see if a file exists in a directory

2003-03-11 Thread Chris Kranz
$path_to_file = "http://www.yourwebsite.com/pdf/this_file.pdf; If( file_exists( $path_to_file ) ) { //do stuff } chris kranz fatcuban.com -Original Message- From: Herhuth, Ron [mailto:[EMAIL PROTECTED] Sent: 11 March 2003 16:43 To: [EMAIL PROTECTED] Subject: [PHP-WIN] testing

[PHP-WIN] testing to see if a file exists in a directory

2003-03-11 Thread Herhuth, Ron
How can I check to see if a PDF file exists in a directory on my web server? Thanks, Ron -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP-WIN] Add slashes saga

2003-03-11 Thread Herhuth, Ron
I'm running into the old add slashes problem and I'm hoping someone might be nice enough to help me out. I created a form that lists all the last names in a database. Beside each name I have a checkbox which contains a value of their last name and because the user might select multiple names,

RE: [PHP-WIN] Newbie attempting file open...

2003-03-11 Thread Svensson, B.A.T. (HKG)
Hi Louis, As you mihgt know, the "macro-function" I wrote is know as "create-open". I do understand your point about "why would I like to read from an empty file?". Indeed this might seams strange, but if one think twice about it, it might not be that bad after all with a create open function. S

Re: [PHP-WIN] Newbie attempting file open...

2003-03-11 Thread Luis Moreira
What for ? The option "r" stans for "read". If what William is doing is try to read a file, and then create one if it doesn't exist, to me that doesn't make sense (sorry). If the function would do that it would always return an EMPTY file in the second situation, right ? Now I ask "why in God's

RE: [PHP-WIN] Newbie attempting file open...

2003-03-11 Thread Svensson, B.A.T. (HKG)
Luis, read the code once again -Original Message- From: Luis Moreira To: 'William Fisher ' Cc: [EMAIL PROTECTED] Sent: 2003-03-11 12:03 Subject: Re: [PHP-WIN] Newbie attempting file open... No need. It's the other way around, actually. The option that creates if the the file does not

Re: [PHP-WIN] IE seems to be more stupid than I spected!

2003-03-11 Thread Leonardo Javier Belén
It is really odd but it's true. It seems that IE cannot handle properly the information sent. Has anyone made it work fine?. Leo. AFIP AR - Original Message - From: "H Marc Bower" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Monday, March 10, 2003 12:49 PM Subject: Re: [PHP-WIN] IE see

[PHP-WIN] A bug with Is_Dir function ?

2003-03-11 Thread blackkrusty
Hi, I have a serious problem (bug ?) in my sript. Let see it : The goal of my sript is opening a folder and display it (very common). My sript receive a path called '$path' by POST method when starting. ** $path=$_POST['path']; ** $path is a corr

[PHP-WIN] foreach with mysql

2003-03-11 Thread s.garriock
Hi I am trying to use a FOREACH command to go through a mysql result with 2 columns. They are ID and name I need the name one the ID one is just for referrence. Anyone got the syntax for it? Thanks tons >From Shaun Garriock RGC Webmaster *** The contents of this message are confidential and are

[PHP-WIN] Help with ereg

2003-03-11 Thread fLIPIS
Hi all. I'm trying to deal with Regular Expressions, but somehow it is getting more difficult. I´m trying to do the folowing: Read a text and get all of the PHP code out of it, highlight it and then print all in nice HTML. I'm using this to get the PHP code: ereg("<\?.*\?>",$Text,$PHP_code); It

[PHP-WIN] NEW IN GROUP

2003-03-11 Thread Guilherme Stolfo
hi Personal of the list, I am Brazilian and I added in this list I expect to help you. It has alguem Brazilian? [ ]s, Guilherme Luiz Stolfo Programmer - Design College Adventista TEL.: 5822-6166 R:5273 MSN.: [EMAIL PROTECTED] _ MS

Re: [PHP-WIN] Newbie attempting file open...

2003-03-11 Thread Luis Moreira
No need. It's the other way around, actually. The option that creates if the the file does not exist is "w". The "r" option only reads Luis - Original Message - From: "Svensson, B.A.T. (HKG)" <[EMAIL PROTECTED]> To: "'William Fisher '" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]> Sent: Tuesda

RE: [PHP-WIN] Newbie attempting file open...

2003-03-11 Thread Svensson, B.A.T. (HKG)
You may want to try something like this: $fp = @fopen(,"r"); if ($fp) { print"An old file was opened!"; } else { $fp = @fopen(,"w"); fclose($fp); $fp = @fopen(,"r"); print"New file was created!"; } -Original Message- From: William Fisher To: [EMAIL PROTECTED] Sent: 2003-03-10

RE: [PHP-WIN] Newbie attempting file open...

2003-03-11 Thread Svensson, B.A.T. (HKG)
http://www.php.net/manual/en/function.fopen.php -Original Message- From: William Fisher To: [EMAIL PROTECTED] Sent: 2003-03-10 19:54 Subject: [PHP-WIN] Newbie attempting file open... The Question: It is my understanding that fopen() using the "r" option will either open the indicated fi