[PHP] Q about php with gd

2001-12-16 Thread Joelmon2001
Hello, just wondering if I want to get the most out of gd 2+ with php does it require freetype 2+? Or can I get away with freetype 1.35? Thanks Joel

Re: [PHP] using variables

2001-12-16 Thread Tom Rogers
Hi you need: img src=?echo $ulo? or img src=?=$ulo? Tom At 05:39 PM 16/12/01, David Killingsworth wrote: I'm trying to determing why this won't work. I wish to assign graphics to variables then call them within the HTML on my .php pages. --test.php-- ? $ulo = /images/ulo.gif; ?

php-general Digest 16 Dec 2001 08:49:09 -0000 Issue 1055

2001-12-16 Thread php-general-digest-help
php-general Digest 16 Dec 2001 08:49:09 - Issue 1055 Topics (messages 77827 through 77859): Re: Newbie-student Database PHP Question 77827 by: Webleycity Re: Need high bandwidth provider for my Asian community site 77828 by: Webleycity 77842 by: Webleycity Webcam

[PHP] DOM XML Issues with 4.1.0?

2001-12-16 Thread Mark
Hello. I developed a pretty cool website whose content is entirely specified in XML, and use PHP DOM to convert it to HTML (XSL would be a bit painful). Now, with PHP 4.0.6 and libxml2-2.4.7, everything worked fine, except that there was a huge memory leak somewhere in the PHP

RE: [PHP] Web Based Control Panel for Hosting

2001-12-16 Thread xk8org
I have used Alabanza and also CPanel (cpanel.net). Wouldn't touch Alabanza again as it's very expensive. I think there is a freeware one called webmin out there somewhere too Ade --- i n o v i c a h o s t i n g . c o m -- Powerful hosting from www.inovicahosting.com

[PHP] php snmp compile error

2001-12-16 Thread kancha
I've downloaded php 4.1.0 and ucd-snmp 4.2.3. I was able to compile snmp successfully. Then i tried to compile php with snmp support. Followign is my configure parameters ./configure --with-apxs=/usr/sbin/apxs --enable-calendar --with-pgsql --with-snmp --enable-ucd-snmp-hack --enable-wddx

[PHP] Why don't ...

2001-12-16 Thread Yoel Benitez Fonseca
Hi! The following code fragment tries to read a sequence of digits from a file but it doesn't work, only the first character is read, Which is my error?. $str = ; while( ($c = fgetc($this-m_file)) ereg([0-9], $c) ){ $str .= $c; } Thank you in

[PHP] sytax to remove specifc item in string-indexed array???

2001-12-16 Thread Vincent Ma
Hi everyone: I would like to know how to specific item in array. For the add new item to array, we know just : $array += array($key = $value); How to remove specific item in array??? I tried -- $array -= ($key = $value); Don't work... _. Before, i saw some code in other

Re: [PHP] sytax to remove specifc item in string-indexed array???

2001-12-16 Thread Michael Sims
At 05:53 PM 12/14/2001 +1100, Vincent Ma wrote: Hi everyone: I would like to know how to specific item in array. For the add new item to array, we know just : $array += array($key = $value); How to remove specific item in array??? unset(array[specific_item_index]); ...has always

[PHP] CHEEP WEBSPACE OFFERS HERE

2001-12-16 Thread Webleycity
good prices here on http://www.webleycity.co.uk/offers/index.html -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]

[PHP] PHP script not paring in CGI!!!

2001-12-16 Thread Thomas Edison Jr.
Hi, I'm running a Solaris OS. I have written a CGO function to call common header footer for pages. All HTML pages are running well with it, however, a PHP3 page is not!! It's contents are not showing up. Nothing i showing up! What do i do? T. Edison jr. = Rahul S. Johari (Director)

[PHP] now who can help me about cach my query every certain time:(

2001-12-16 Thread Alawi
now who can help me about cach my query every certain time:( I mean the first user requst the page and php will run query for this first time after that I want other user to have the result that the first user have it !! untill the ten minutes end I want the query to run again this

Re: [PHP] now who can help me about cach my query every certain time:(

2001-12-16 Thread Jack Dempsey
Alawi wrote: now who can help me about cach my query every certain time:( I mean the first user requst the page and php will run query for this first time after that I want other user to have the result that the first user have it !! untill the ten minutes end I want the query to run again

[PHP] Re: Webcam on websites? Ugh!!!

2001-12-16 Thread Hugh Bothwell
Webleycity [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... A client wants a webcam on his site. Does any body know what script is used and how it works. The camera should come with a prog to take a snapshot. Write a batch file that takes a snapshot, then

[PHP] Re: now who can help me about cach my query every certain time:(

2001-12-16 Thread Manuel Lemos
Hello, Alawi wrote: now who can help me about cach my query every certain time:( I mean the first user requst the page and php will run query for this first time after that I want other user to have the result that the first user have it !! untill the ten minutes end I want the query

[PHP] need some help

2001-12-16 Thread Melva Garcia
I am looking for a mentor to help me along with using php and mysql i am a designer for over 9 years now..and will in return help you with anything pertaining to layout and design i have alot of dumb questions pertianing to php and mysql dba can someone help me i would appreciate any help I can

Re: [PHP] Need high bandwidth provider for my Asian community site

2001-12-16 Thread Hugh Bothwell
Webleycity [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... If one creates a file outside the web space on a server. How doe's one connect to this from a HTML or PHP page? As I understand it. It is not as simple as normal html link. From an HTML page, it's

Re: [PHP] Why don't ...

2001-12-16 Thread Michael Sims
At 09:14 AM 12/16/2001 -0500, Yoel Benitez Fonseca wrote: Hi! The following code fragment tries to read a sequence of digits from a file but it doesn't work, only the first character is read, Which is my error?. $str = ; while( ($c = fgetc($this-m_file)) ereg([0-9],

[PHP] Language detection and change

2001-12-16 Thread Gary Crighton
Hi, I know the following code displays my page in the language set in the users browser. ? $lang=substr($HTTP_ACCEPT_LANGUAGE,0,2); ? However while I do initially want the page to load in the language of the browser setting I also need to be able to allow the user to change the language and

Re: [PHP] Why don't ...

2001-12-16 Thread Rasmus Lerdorf
Is your second character perhaps a 0? That while loop is going to end as soon as it gets a character that evaluates to 0. Write it like this instead: while(!feof($this-m_file)) { $c = fgetc($this-m_file); if(is_numeric($c)) $str .= $c; } -Rasmus On Sun, 16 Dec 2001, Yoel Benitez

[PHP] Problem with Code

2001-12-16 Thread Phillip B. Bruce
Hi, I have a couple of questions before I get to my problem. 1. Is there any documentation that explains the differences between the versions of PHP? 2. Does it matter when writing php code that you specifiy the file name in the following manner? test.php3 test.php4 or

[PHP] HTML to Plain TXT Parser (RegEx Help Needed)

2001-12-16 Thread ISE
Hello, I am working on a a script that reads in an HTML file, and outputs formatted plain text. Not a significant task, but one area that I am having difficulty with is gracefully converting the 'A' element. The desired outcome is text that maintains the link reference in brackets:

Re: [PHP] Problem with Code

2001-12-16 Thread Jack Dempsey
1. http://www.php.net/ChangeLog-4.php 2. and yes, you have to specify the exact filename...your issue is that include_once is not a function in php3, if that code is infact from a php3 file... Phillip B. Bruce wrote: Hi, I have a couple of questions before I get to my problem. 1.

Re: [PHP] Problem with Code

2001-12-16 Thread Attila Strauss
Hi, I have a couple of questions before I get to my problem. 1. Is there any documentation that explains the differences between the versions of PHP? sure. have a look at the changelog http://www.php.net/ChangeLog-4.php 2. Does it matter when writing php code that you

[PHP] problem finding out original filename while using php to upload.

2001-12-16 Thread Neil M
I am using php to upload image files. heres my code .. ? if (is_uploaded_file($photo_file)) { clearstatcache (); $size = filesize ( $photo_file ) ; if ( $size 1024000 ) { print (BR ERROR - File is too big ! File uploads should be below 1024 k ( 1mb ) BR); exit ; }

[PHP] Can I do this (how?)?

2001-12-16 Thread jtjohnston
Can I do this? Can someone help please? I have a mess of variables I HTML from a couple of different scripts, so I combined them into fields_to_include.inc And now, I do this: $news = mysql_query('select * from ccl where ... blah blah ... order by AU asc'); while ($data =

php-general Digest 16 Dec 2001 21:16:17 -0000 Issue 1056

2001-12-16 Thread php-general-digest-help
php-general Digest 16 Dec 2001 21:16:17 - Issue 1056 Topics (messages 77860 through 77883): DOM XML Issues with 4.1.0? 77860 by: Mark Re: Web Based Control Panel for Hosting 77861 by: xk8org php snmp compile error 77862 by: kancha Why don't ... 77863 by:

[PHP] large object problem

2001-12-16 Thread David H
Hi all, I am trying to findout what is wrong with this script can anyone help? $dbconn = pg_connect (cnnection string) or die ( Error: .pg_errormessage ($dbconn)) ;

[PHP] URL checking

2001-12-16 Thread trx
Hi, I'm very much a newbie! I'm trying to set up a site which will automatically test links in a large link directory and show date and time of last check and whether or not a link to the external URL was dead or alive at the time. On looking at the PHP manual it is not completely obvious which

[PHP] Question for you MySQL gurus...

2001-12-16 Thread Deron
I have a huge project I am in the midst of developing (something similar to www.allmusicguide.com except exclusively for Metal/Hard Rock). I have set up my MySQL tables/PHP code for the most part. My question is 2 part: Of you all, do you use a GUI platform such as MySQL Manager or MySQLGUI,

[PHP] Re: Question for you MySQL gurus...

2001-12-16 Thread Deron
Let me add that I do currently use PHPMyAdmin. As cool as it is I juts want to see what others are using to make sure I am not missing out on anything! Deron www.metalages.com Deron [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... I have a huge project I am in

Re: [PHP] Searching for a new provider

2001-12-16 Thread Indera
Ah, I thought that I may have missed something when I was reviewing the features. Thank you. Indera R'Twick Niceorgaw wrote: Just name of one of Aletia's servers --- R'twick Niceorgaw 98C Cedar Lane Highland Park, NJ 08904 USA 732-246-1434 (R)

[PHP] PHP object-oriented features

2001-12-16 Thread Colin Tucker
Hi there, Just wondering if there is any plans for more work on the PHP OO features, and/or the parser in relation to these features. Generally I find the PHP OO features to be quite useful, but there is some major limitations which often frustrate me at times, for example: $result =

RE: [PHP] using variables

2001-12-16 Thread Gerard Onorato
David, Your code should read: html body img src=? echo($ulo); ? /body /html -Original Message- From: David Killingsworth [mailto:[EMAIL PROTECTED]] Sent: Sunday, December 16, 2001 2:39 AM To: [EMAIL PROTECTED] Subject: [PHP] using variables I'm trying to determing why this won't

RE: [PHP] PHP object-oriented features

2001-12-16 Thread Martin Towell
I totally agree with you!! From what someone told me, the new version of the Zend engine will fully support OOP (but don't quote me on this as I haven't had time to look at the Zend site to confirm this) - I'm looking forward to seeing it. This would make PHP a really powerful language then!!

[PHP] php.ini

2001-12-16 Thread Jeremiah Jester
Does it matter where my php.ini file is located on a windows2000 system? Does it always need to be on the root of the volume where the files are being served or can it be located on another volume? Thanks, JJ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL

[PHP] mysql_query() problem

2001-12-16 Thread Brian Rue
Hi, I'm getting the error Warning: Supplied argument is not a valid MySQL result resource from this code: function validateUser($username,$password) { $conn = connectToMySQL(); mysql_select_db($db_name,$conn); $query=select * from members where username='.$username.' AND

[PHP] Re: i get a warning after upgrading to 4.1.0 (repost)

2001-12-16 Thread Phillip Oertel
John Lim wrote: This is a known bug with persistent database connections. Switching to non-persistent connections or ISAPI avoids this problem. thanks ! -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL

[PHP] Re: php.ini

2001-12-16 Thread jtjohnston
In Win98 at least it should be in C:\Windows. php.ini could also be run out of the directory where the *.php is running. Jeremiah Jester wrote: Does it matter where my php.ini file is located on a windows2000 system? Does it always need to be on the root of the volume where the files are

[PHP] Re: pictures width and height

2001-12-16 Thread Phillip Oertel
Tommy Straetemans wrote: Is there a way to check the height and width from a picture that I upload? yes, easy. but you need gdlib installed. ?php phpinfo(); ? will tell you. from the documentation: The GetImageSize() function will determine the size of any GIF, JPG, PNG, SWF, PSD or

[PHP] picture gallery

2001-12-16 Thread Jeremiah Jester
does anyobody have a simply php image gallery script they could share with me? Using for my personal site. Thanks, JJ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list

Re: [PHP] Opinions, please

2001-12-16 Thread Ray Gaylog
Well, One way is to log that the user is online into a database...or a flat file. I have done this before using a database (very easy), however I have not used a file yet..but it is possible. Use fopen() routines and fclose() for the low level file access. Another method is to use cookies..the

Re: [PHP] problem finding out original filename while using php to upload.

2001-12-16 Thread Ray Gaylog
Well..to determine the format the file file..you may find some sort of routine to check..but why not create one? I mean, in windows, the extension determines the file format right? So do a loop that starts from the last character, and goes back one until you reach the . (dot). Based on that you

[PHP] printf()?

2001-12-16 Thread Ray Gaylog
Hi.. I've been using PHP for just a little while, however I have noticed somthing. In the doc's I've noticed you can do this: printf(line1 \n line2 \n); Now..this should (like C) print two seperate lines..however It doesn't. To print this on seperate lines I must put a BR in there. Any

RE: [PHP] printf()?

2001-12-16 Thread Jason Murray
HTML doesn't pay attention to line breaks, thats why you're needing a BR... Jason -- Jason Murray [EMAIL PROTECTED] Web Developer, Melbourne IT Work now, freak later! -Original Message- From: Ray Gaylog [mailto:[EMAIL PROTECTED]] Sent: Monday, December 17, 2001 3:49 PM To:

RE: [PHP] printf()?

2001-12-16 Thread Mark Charette
-Original Message- From: Ray Gaylog [mailto:[EMAIL PROTECTED]] I've been using PHP for just a little while, however I have noticed somthing. In the doc's I've noticed you can do this: printf(line1 \n line2 \n); Now..this should (like C) print two seperate lines..however It

[PHP] Re: URL checking

2001-12-16 Thread Phillip Oertel
Trx wrote: Hi, I'm very much a newbie! I'm trying to set up a site which will automatically test links in a large link directory and show date and time of last check and whether or not a link to the external URL was dead or alive at the time. the curl library will let you do this. query

[PHP] Re: Problem with Code

2001-12-16 Thread Phillip Oertel
Phillip B. Bruce wrote: 1. Is there any documentation that explains the differences between the versions of PHP? php4 : much more fun ! go use it ! the documentation will tell you on each function page in which php version the fuction was first available. 2. Does it matter when writing

Re: [PHP] how to reinitialise an MySQL_fetch_array

2001-12-16 Thread Frederick L. Steinkopf
Use the function mysql_data_seek(result variable, row number) so in your case it would be: mysql_data_seek($result2, 0); You should also consider suppressing the warning for an empty set by placing a '@' in front of the function - Original Message - From: Ivan Carey [EMAIL PROTECTED] To:

Re: [PHP] Unable to return object references from functions

2001-12-16 Thread Manuel Lemos
Hello, Tom Rogers wrote: Hi again Got a bit sidetracked ... here is your original code :) Thanks, I managed to make it work for me similarly to that. Now, a different problem, I already have array variable with a object. Is there a way to make a function return a reference to that object

[PHP] Re: large object problem

2001-12-16 Thread Manuel Lemos
Hello, David H wrote: Hi all, I am trying to findout what is wrong with this script can anyone help? $dbconn = pg_connect (cnnection string) or die ( Error: .pg_errormessage ($dbconn)) ;

Re: [PHP] Unable to return object references from functions

2001-12-16 Thread Tom Rogers
Hi What is the scope of the array that holds the object ? Maybe a bit of code to show what you are after :) Tom At 03:37 PM 17/12/01, Manuel Lemos wrote: Hello, Tom Rogers wrote: Hi again Got a bit sidetracked ... here is your original code :) Thanks, I managed to make it work for me

[PHP] Re: problem finding out original filename while using php to upload.

2001-12-16 Thread Daniel Grace
Neil M [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... I am using php to upload image files. heres my code .. ? if (is_uploaded_file($photo_file)) { clearstatcache (); $size = filesize ( $photo_file ) ; if ( $size 1024000 ) { print (BR ERROR -

[PHP] HTTP Authentication problems

2001-12-16 Thread Daniel Grace
Hello, I'm working on a website for what will eventually be free PHP/MySQL/Apache/DNS/etc hosting (see: http://hosting.venura.net , no requests for accounts will be entertained right now), and am having problems trying to get HTTP Authentication working. I had it working a month or so ago, but

Re: [PHP] Unable to return object references from functions

2001-12-16 Thread Manuel Lemos
Hello, Tom Rogers wrote: Hi What is the scope of the array that holds the object ? global Maybe a bit of code to show what you are after :) It is to implement another function that will return a reference (not a copy) of a object stored in a global array passing the index of the array.

Re: [PHP] picture gallery

2001-12-16 Thread steph
Jester, did you try hotscripts.com?? They have plenty of gallery scripts there. Steph - Original Message - From: Jeremiah Jester [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Sunday, December 16, 2001 8:44 PM Subject: [PHP] picture gallery does anyobody have a simply php image

[PHP] User Authentication

2001-12-16 Thread Daniel Grace
Hello, I'm working on a website for what will eventually be free PHP/MySQL/Apache/DNS/etc hosting (see: http://hosting.venura.net , no requests for accounts will be entertained right now), and am having problems trying to get HTTP Authentication working. I had it working a month or so ago, but

[PHP] Re: Question for you MySQL gurus...

2001-12-16 Thread David
have you tried MySQL Front? it\'s a really nice win32 client, check it out from: http://www.anse.de/mysqlfront/ screenshot: http://www.anse.de/mysqlfront/images/mysqlfront.gif I have a huge project I am in the midst of developing (something similar to www.allmusicguide.com except exclusively

[PHP] Re: PHP4.1.0 Apache1.3.22 under WinXP

2001-12-16 Thread Daniel Grace
Christian Calloway [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... Hi everyone, I'm having troubles getting Apache to recognize .php files, and thus parse them. I followed the instructions included with the PHP4.1.0 distribution, and have PHP loaded as an

[PHP] Re: mysql_query() problem

2001-12-16 Thread Yasuo Ohgaki
Brian Rue wrote: Hi, I'm getting the error Warning: Supplied argument is not a valid MySQL result resource from this code: function validateUser($username,$password) { $conn = connectToMySQL(); mysql_select_db($db_name,$conn); $query=select * from members where

[PHP] Goofy interactions between $this and vars in classs. 4.1.0

2001-12-16 Thread Mark
Hi! I'm having some goofy interactions between $this pointers in classes and variables. Case in Point: if I have the following code: ?php class Y { var $children; function addValue($in_value) { $this-children[] = $in_value; } function

[PHP] TN3270?

2001-12-16 Thread brendan
does anyone know of how or where I can find info on, accessing a IBM mainframe which uses the TN3270 protocol via a socket? TN3270 isnt ordinary telnet so I assume the existing telnet socket info isnt helpful ta brendan -- PHP General Mailing List (http://www.php.net/) To unsubscribe,

[PHP] PHP as a web browser?

2001-12-16 Thread David Yee
Is it possible to have PHP act like a web browser, accept cookies and post data (for login)? I'm not sure exactly where to start- I know you can use fopen/file to retrieve url's but I'm not too sure about the other steps. I would like to write and run such a php script as a cron job and have it