Re: [PHP] Re: Creating methods runtime

2002-02-22 Thread Mika Tuupola
On Thu, 21 Feb 2002, Matthew J Gray wrote: No there really isn't. I wrote an extension that does it for me, but I am waiting to see what the second zend engine will have for this rather that using my hack. Maybe check the Zend Engine 2 mailing list to see what the future may hold.

Re: [PHP] Telnet

2002-02-22 Thread DrouetL
Hi, you can find all what you want on the following url : http://phpclasses.upperdesign.com/browse.html/class/2/ Personnaly I use the SMTP class from Richard Heyes Laurent

Re: [PHP] Creating methods runtime

2002-02-22 Thread Rasmus Lerdorf
You can sort of fake it using the call handler of the overload extension. -Rasmus On Thu, 21 Feb 2002, Mika Tuupola wrote: Is there a way to create/add methods runtime to a class via constructor or static factory method? I know it is possible to create functions runtime

RE: [PHP] foreach not in reach

2002-02-22 Thread Niklas Lampén
You didn't supply any information about you foreach() loop, but it works like foreach ($array as $string) print $elementbr\n; And explode() returns an array, so I think you need to do it like this: $array = explode(;, $string); array_push($authors, $array); // You could use foreach()

[PHP] Re: foreach not in reach

2002-02-22 Thread David Robley
In article [EMAIL PROTECTED], [EMAIL PROTECTED] says... Question 1: How can I append strings to my authors array? Me thinks this doesn't work :§) ? $authors .= explode(;, $mydata-KW); I'm getting Invalid argument supplied for foreach() Question 2: Once I get this working, I want to (a)

[PHP] header problem

2002-02-22 Thread Michael P. Carel
Hi , I have a problem in using the Header() function. I want to automatically redirect the page into another php script after a form completion but im receiving this error Warning: Cannot add header information - headers already sent by .. Heres the script line: header(Location:

Re: [PHP] header problem

2002-02-22 Thread Rasmus Lerdorf
You can't redirect after sending output unless you use Javascript or some other weirdness. Redirections are done before any output. -Rasmus On Fri, 22 Feb 2002, Michael P. Carel wrote: Hi , I have a problem in using the Header() function. I want to automatically redirect the page into

Re: [PHP] pulling text to insert in table

2002-02-22 Thread [EMAIL PROTECTED]
Hi Thanks. In some cases I would have Microsoft Excel files wich I will save as csv files. Can content be pulled from a csv in the same method. Thanks Mohamed - Original Message - From: Nick Wilson [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Friday, February 22, 2002 9:43 AM

[PHP] Zend

2002-02-22 Thread Ornella Fasolo
Hallo, I would like to try Zend studio server as possible support for the development team. Until now i found only a Zend for php4.0.5, 4.0.6 4.1.0. Does anybody know where can i find a Zend server compatible with php4.0.4 ? thanks best regards Ornella Fasolo -- PHP General Mailing List

[PHP] Win32 compilation problems...

2002-02-22 Thread Frdric Vissault
Hello, I'm new in use of php! I have some problems to compile Win32 Php! I want to include socket module in php and i don't because i have some compilation errors. Is there anybody who can help me? cheers! Fred

Re: [PHP] pulling text to insert in table

2002-02-22 Thread Nick Wilson
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 * and then Administration@myclassguide declared Hi Thanks. In some cases I would have Microsoft Excel files wich I will save as csv files. Can content be pulled from a csv in the same method. No idea Mohamed but presuming they're

[PHP] function that extracts numbers from a string

2002-02-22 Thread DigitalKoala
Hi folks, Is there a function that extracts numbers from a string? I can do this with ereg but it's quite slow when you have a long list of variables to get through... thanks! dk -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] function that extracts numbers from a string

2002-02-22 Thread Andrey Hristov
Try with preg_match_all() PCRE functions are up to 25% faster than POSIX(ereg). Best regards, Andrey Hristov - Original Message - From: DigitalKoala [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Friday, February 22, 2002 1:44 PM Subject: [PHP] function that extracts numbers from a

Re: [PHP] Telnet

2002-02-22 Thread bvr
You can send mail using PHP's mail() function. On windows this works with regular SMTP (mail server), on UNIX it executes a binary (local delivery agent) that may handle the message as desired. If you really want to sent through a telnet service, you can fsockopen() to the telnet server

Re: [PHP] overwriting PHP_SELF and PHP_AUTH_xxxx

2002-02-22 Thread Michael Romagnoli
I have a special set of information retrieved from a while loop that I would like a person to be able to edit and send back into a MySQL table. I know all of the basic MySQL commands for doing such, but the PHP side to get the input from the form to go in is really stumping me. This is what I

[PHP] Getting the data for MySQL and then putting it back with PHP - at a loss!

2002-02-22 Thread Michael Romagnoli
I have a special set of information retrieved from a while loop that I would like a person to be able to edit and send back into a MySQL table. I know all of the basic MySQL commands for doing such, but the PHP side to get the input from the form to go in is really stumping me. This is what I

Re: [PHP] Any way to display a changing value?

2002-02-22 Thread bvr
Hi! You could use a plain form and JavaScript to do this. It's fairly simple and it makes for nice little progress bars and graphs and other 'realtime' info. A few tips: - first output the form (completely) - use *implicit* flushing when outputting your JS. - use a new SCRIPT .. /SCRIPT

Re: [PHP] Getting the data for MySQL and then putting it back withPHP - at a loss!

2002-02-22 Thread george Pitcher
Michael, Been there recently! You want to use variable variables: $index=0; for (index=0; $index $rowcount; $index++){ $formvar='formvar'.$index; $formvar=$$formvar; Do the last two lines for each piece of data you want to handle. Think about how you are isolating the formvars on the

Re: [PHP] Getting the data for MySQL and then putting it back withPHP - at a loss!

2002-02-22 Thread Andrey Hristov
Better is: $index=0; for (index=0; $index $rowcount; $index++){ $formvar=${'formvar'.$index}; } - Original Message - From: george Pitcher [EMAIL PROTECTED] To: Michael Romagnoli [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Sent: Friday, February 22, 2002 2:40 PM Subject: Re: [PHP]

[PHP] Bad char Translation

2002-02-22 Thread -oOo HONU oOo-
Hi, I've got a text file containing blés, Châteaux ... (without quotes) I'm reading this file like this $FileName = Test.txt; $FileHand = fopen($FileName, rb); $Data = fread($FileHand, filesize($FileName)); fclose($FileHand); print_r($Data); Under Linux, by asking the script throught an HTTP

Re: [PHP] XML compliance with forms and trans_sid when using sessions

2002-02-22 Thread James Nord
Lars Torben Wilson wrote: On Thu, 2002-02-21 at 14:11, James Nord wrote: Unfortunatly I know some that need to leave it. If you would state exactly what the problem with the slash being there is, perhaps we could help you. The HTML renderer that comes with Java (jfc) renders the '' due to

RE: [PHP] Getting the data for MySQL and then putting it back withPHP - at a loss!

2002-02-22 Thread Michael R @ Spy
Yeah, but, where does $rowcount come from, $or? Are you just renaming the variable? Thanks for your help! -Mike -Original Message- From: george Pitcher [mailto:[EMAIL PROTECTED]] Sent: Friday, February 22, 2002 7:40 AM To: Michael Romagnoli Cc: [EMAIL PROTECTED] Subject: Re:

RE: [PHP] Getting the data for MySQL and then putting it back withPHP - at a loss!

2002-02-22 Thread Michael R @ Spy
So, then I have a sql command for updating the data with $formvar? I would work $domain into this because $domain is the unique identifier? Like this: $index=0; for (index=0; $index $rowcount; $index++){ $formvar=${'formvar'.$index}; $sql = UPDATE table2 SET domain =

[PHP] sanity check - apache/php module safe implementation

2002-02-22 Thread Dave
End goals - avoid using CGI - restrict PHP programs to user directory - allow PHP from http to manipulate files/links/uploads/etc... Apache main config sets user and group to nobody Apache Virtual Host for site contains # restrict web pages root in specific sub-directory DocumentRoot

Re: [PHP] Next and Preview Row

2002-02-22 Thread Andrey Hristov
My dump: # phpMyAdmin MySQL-Dump # http://phpwizard.net/phpMyAdmin/ # # Host: 192.168.1.11:3306 Database : test # # # Table structure for table 'some' # CREATE TABLE some ( id varchar(6) NOT NULL, descr varchar(250) NOT NULL ); # #

[PHP] difference between php3 and php4

2002-02-22 Thread toni baker
Warning: Supplied argument is not a valid MySQL result resource in c:\program files\apache group\apache\cgi-bin\emp.php3 on line 10 $db = mysql_connect(localhost, , ); mysql_select_db(employee,$db); $result = mysql_query(SELECT * FROM employees,$db); echo table border=0; echo tr; echo td

php-general Digest 22 Feb 2002 15:49:40 -0000 Issue 1187

2002-02-22 Thread php-general-digest-help
php-general Digest 22 Feb 2002 15:49:40 - Issue 1187 Topics (messages 85810 through 85856): Transparent sid 85810 by: Richard Baskett Any way to display a changing value? 85811 by: Leif K-Brooks 85843 by: bvr Referencing a parent class' variables 85812 by:

Re: [PHP] Re: difference between php3 and php4

2002-02-22 Thread Andrey Hristov
This error comes when trying to fetch data from a result set but there is no such because there was a problem with the query. Try var_dump($res) and you will see - 0. 0 is not a valid number for resource of type mysql or any other resource. To prevent this every time when using a resource

RE: [PHP] Re: difference between php3 and php4

2002-02-22 Thread Rick Emery
The warning means the query failed in mysql. Perhaps it failed in the connect. You do not need the number of rows. To determine what the problem is, ALWAYS include a die() clause: $db = mysql_connect(localhost, , ) or die(Error: .mysql_error()); mysql_select_db(employee,$db) or die(Error:

RE: [PHP] overwriting PHP_SELF and PHP_AUTH_xxxx

2002-02-22 Thread Tim Ward
Forgive me if I'm treating pseudo as real but surely print trtd ... value='$cancel[$or]' ... /td; should be print trtd ... value='{$cancel[$or]}' ... /td; same goes for the array element in the sql statement Tim Ward Internet chess www.chessish.com http://www.chessish.com

Re: [PHP] PHP-4.1.1 and freetype 2

2002-02-22 Thread Ernie Dipko
Thanks Rasmus... You have pointed me in the right directionupon further inspection of my config.status I see that gdImageStringFTEX=no, and looking in the config.log I found... configure:21579: checking for gdImageStringFTEx in -lgd configure:21598: gcc -o onftest -g -O2

[PHP] Re: Uploading Files with PHP

2002-02-22 Thread Lerp
Hi Jim, here's how I do it. I test for the file size on the processing page as well, if it's too large I redraw out the upload form. //test for file extension type if needed //determine file size -- if too big ( greater 50kb) then redirect $siz = filesize($userfile); if ($siz = 51200){

[PHP] imagecreate with Windows .exe installer

2002-02-22 Thread Mike Brackenridge
php4 installed with Apache on Windows ME, using as localhost. I am trying to use imagecreate with a version of php4 that was installed with the binary .exe installer, php seems to be installed OK. I have changed the .ini file line: ;extension=php_gd.dll To extension=php_gd.dll But I get an

[PHP] Online Billing System

2002-02-22 Thread [-^-!-%-
Hello, I'm looking for a good online billing system, something that offers reocurring billing, announcements, online invoice viewing, and the works. I would prefer something in php with mysql backend. What do you recommend? Thanks for your help. -john __John

RE: [PHP] imagecreate with Windows .exe installer

2002-02-22 Thread Hunter, Ray
You need to have that dll installed on your system. You need to download php-version.zip file that contains all of the dlls in it to run with. Ray Hunter Firmware Engineer ENTERASYS NETWORKS -Original Message- From: Mike Brackenridge [mailto:[EMAIL PROTECTED]] Sent: Friday, February

[PHP] Re: function that extracts numbers from a string

2002-02-22 Thread Murray Chamberlain
look on php.net for preg_replace and functions like that, they use regular expressions to replace characters Digitalkoala [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... Hi folks, Is there a function that extracts numbers from a string? I can do this with

Re: [PHP] imagecreate with Windows .exe installer

2002-02-22 Thread Andrey Hristov
Did you restarted the Apache service? Regards, Andrey Hristov - Original Message - From: Mike Brackenridge [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Friday, February 22, 2002 7:00 PM Subject: [PHP] imagecreate with Windows .exe installer php4 installed with Apache on Windows ME,

[PHP] resolving php tags in a string

2002-02-22 Thread neko
I have a question: I normally use include to include a file, which often has php tags that are then interpreted and resolved. However, in one case I am reading a text file into a string (fread), then running nl2br() on it to present it (with an echo command). However, I wish to also resolve any

Re: [PHP] resolving php tags in a string

2002-02-22 Thread Andrey Hristov
get all from the string which is between the tags and use the substring with eval(); Best regards, Andrey Hristov - Original Message - From: neko [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Friday, February 22, 2002 5:42 AM Subject: [PHP] resolving php tags in a string I have a

Re: [PHP] PHP-4.1.1 and freetype 2

2002-02-22 Thread Rasmus Lerdorf
Perhaps you have another libgd on your system that the -lgd in that test program is picking up? On Fri, 22 Feb 2002, Ernie Dipko wrote: Thanks Rasmus... You have pointed me in the right directionupon further inspection of my config.status I see that gdImageStringFTEX=no, and looking in

[PHP] php3/php4 difference

2002-02-22 Thread toni baker
$numresult=mysql_query($sql) or die( 4 QUERY ERR $sql); echo numresult = $numresult; $numrows=mysql_num_rows($numresult); mysql_free_result($numresult); echo P align='left'You have selected .$numrows . record(s).; When I run the script above on php4 windows I get the following

[PHP] Re: Uploading Files with PHP

2002-02-22 Thread Lerp
Ammendment: Actually, I was just looking at one of my photoupload processes and I actually removed the MAX_FILE out of the upload form and only tested the file size on the processing page like in the previous message. Cheers, Joe :) Lerp [EMAIL PROTECTED] wrote in message [EMAIL

Re: [PHP] Apache 2.0.32 + PHP from CVS not working

2002-02-22 Thread Rasmus Lerdorf
From the list, the APR API is done. So there should be no further issues getting it to work.(As in, you should no longer have to jump through hoops every month or release, just to keep up with apr). Well, this is simply not true. Things are still changing. -Rasmus -- PHP General Mailing

[PHP] JaneBUILDER

2002-02-22 Thread Richard Baskett
Does anyone have any experience with JaneBUILDER? http://www.seejanecode.com It looks quite interesting and I was wondering what other people thought of it? Rick I will permit no man to narrow and degrade my soul by making me hate him. - Booker T. Washington -- PHP General Mailing List

[PHP] random question

2002-02-22 Thread Robert J. Cissell
this is slightly o-t, but does anyone live in/near DC or the surrounding areas that i could ask questions of? thanks. robert

[PHP] php 4.1.1 vs 4.0.6

2002-02-22 Thread Ezra Nugroho
Guys, I need to upgrade a server with 4.0.3 server because of some new ldap features that I need. I am deciding between 4.0.6 and 4.1.1 (or maybe 4.1.2 if it's comming soon). I heard that there is some significant difference between 4.0.x and 4.1.x What is the main difference between 4.0.6 and

[PHP] Guestbook question

2002-02-22 Thread James Taylor
I have a really simple guestbook that allows someone to post to the book, then it displays all the entries. Well, there are too many entries now for just one page and it looks kinda wacky, so I wanted to do something where it only displays 10 entries per page, then there are links for pages

Re: [PHP] Sendmail, I've had enough of it!

2002-02-22 Thread Anas Mughal
I had suffered a little bit with sendmail myself last week. It took me some reading, and I got it working the second day. Here is a useful link: http://www.samag.com/documents/s=1168/sam0002f/0002f.htm Also, check out the book titled Essential System Administration. That should be all you need

RE: [PHP] Sendmail, I've had enough of it!

2002-02-22 Thread Rick Emery
Go with QMAIL Lots of support (mailing lists, web-sites). Several books written on it. Easier to set-up than sendmail. Very configurable. Written by same gent that wrote ezmlm mailing list application (ezmlm handles the PHP mailing lists). goto: http://cr.yp.to/qmail.html -Original

[PHP] Miliseconds with PHP4

2002-02-22 Thread William Lovaton
Hello there, I want to know the execution time of some scripts I made, I'm using the difference of seconds (time() function) between the start and the end of the script. But, I would like to get a greater precision... so, I was wondering if there is a chance to get miliseconds. TIA William

Re: [PHP] Sendmail, I've had enough of it!

2002-02-22 Thread James Taylor
Ha, I shouldn't even bother posting this as it's pretty irrelevant for this list but... forget qmail, go with Postfix :) Qmail doesn't have one centralized config file, and it gets annoying having to edit this one, then this one, then make this file, etc. Plus, I usually try to avoid Dan

[PHP] PRE-formated text into DATABASE

2002-02-22 Thread Dani
Hi there, I'm tryng to make an online form which update the content of a database. I have tried it and it works BUT the user has to include all of the HTML tags otherwise the text which is pulled out (displayed on the webpage) from the database loose the pre-formated form. All the paragraphs

RE: [PHP] Miliseconds with PHP4

2002-02-22 Thread Dave
seach the manual for microtime() -Original Message- From: William Lovaton [mailto:[EMAIL PROTECTED]] Sent: Friday, February 22, 2002 2:56 PM To: [EMAIL PROTECTED] Subject: [PHP] Miliseconds with PHP4 Hello there, I want to know the execution time of some scripts I made, I'm using the

Re: [PHP] Miliseconds with PHP4

2002-02-22 Thread R'twick Niceorgaw
microtime() ? -- R'twick Niceorgaw E-Mail: [EMAIL PROTECTED] Tel: 617-761-3936 (W) 732-801-3826 (C) 617-328-6423 (R) -- - Original Message - From: William Lovaton

Re: [PHP] Miliseconds with PHP4

2002-02-22 Thread John Fishworld
how out of interest ? Hello there, I want to know the execution time of some scripts I made, I'm using the difference of seconds (time() function) between the start and the end of the script. But, I would like to get a greater precision... so, I was wondering if there is a chance to

RE: [PHP] Next and Preview Row

2002-02-22 Thread Darren Gamble
Good day, It should be pointed out that even with this syntax, the database will still scour all of the rows in the table. The only savings is that the database won't return all of these rows due to the limit statement. It might be more efficient to use min and max to determine which row in

[PHP] bbcode

2002-02-22 Thread Leif K-Brooks
I'm planning to make a forum built into my site. I know all of the forums have bbcode, and I doubt they all programmed it themselves. Is there somewhere I can get the code for bbcode? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] Miliseconds with PHP4

2002-02-22 Thread SHEETS,JASON (Non-HP-Boise,ex1)
I was looking for the same type of information a few weeks ago, I eventually found what I was looking for in the phpbb system. Here is the code that they used. //put right after your first opening PHP tag $mtime = microtime(); // page creation timers $mtime = explode( ,$mtime);

[PHP] Finding Hostname of Browser Client.

2002-02-22 Thread Keith Sloan
I have a friend with a PhotoLibrary web site. I am trying to automate some of his work. I tried to create a PHP script/program? that would check for missing files and upload. I am testing on my laptop with loopback. It all works if I give the ftp routine that does the ftp_connect a hostname

[PHP] Re: php 4.1.1 vs 4.0.6

2002-02-22 Thread CC Zona
In article [EMAIL PROTECTED], [EMAIL PROTECTED] (Ezra Nugroho) wrote: I am deciding between 4.0.6 and 4.1.1 (or maybe 4.1.2 if it's comming soon). I heard that there is some significant difference between 4.0.x and 4.1.x What is the main difference between 4.0.6 and 4.1.1 ? Are the 4.1.x

[PHP] Array HELL!!!!

2002-02-22 Thread jas
I don't know what it is but I am having a hell of a time trying to get some results of a query setup into an array or variable (too much of a newbie to know which) that can be passed to a confirmation page before deleting the record from a table. I have given up working on this but for those of

[PHP] Re: Guestbook question

2002-02-22 Thread Matthew J Gray
Take a look at mysql_data_seek() Matt James Taylor wrote: I have a really simple guestbook that allows someone to post to the book, then it displays all the entries. Well, there are too many entries now for just one page and it looks kinda wacky, so I wanted to do something where it only

[PHP] Next and Preview Row

2002-02-22 Thread Mark Lo
Dear All, I am using PHP + MYSQL. I have a question that I need some expert to help. That is: How do I find out a next and preview row values by using PHP and MYSQL. For examples, Row 10ID00010need this value Row 11ID00025have this value on hand Row 12ID00063

Re: [PHP] Next and Preview Row

2002-02-22 Thread Chris Boget
How do I find out a next and preview row values by using PHP and MYSQL. For examples, Take a look at the function mysql_result(); Chris -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Next and Preview Row

2002-02-22 Thread Raymond Gubala
The solution I have been using is to do three queries similar to the below SELECT * FROM table WHERE field='ID00025' SELECT * FROM table WHERE field'ID00025' ORDER BY field DESC LIMIT 0,1 SELECT * FROM table WHERE field'ID00025' ORDER BY field ASC LIMIT 0,1 If you whish more row returned

Re: [PHP] Next and Preview Row

2002-02-22 Thread Chris Boget
The solution I have been using is to do three queries similar to the below SELECT * FROM table WHERE field='ID00025' SELECT * FROM table WHERE field'ID00025' ORDER BY field DESC LIMIT 0,1 SELECT * FROM table WHERE field'ID00025' ORDER BY field ASC LIMIT 0,1 If you whish more row returned

Re: [PHP] Next and Preview Row

2002-02-22 Thread Chris Boget
It seems worst to me because in your case mysql has to retrieve all the rows. If it's a table with 1 million records or more, this should hurt ;) As I said, it was pseudo code. Now, imagine that you were just getting the records for a particular user? a particular application? Where there

Re: [PHP] Next and Preview Row

2002-02-22 Thread Fournier Jocelyn [Presence-PC]
Hi, It seems worst to me because in your case mysql has to retrieve all the rows. If it's a table with 1 million records or more, this should hurt ;) Regards, Jocelyn Fournier Presence-PC - Original Message - From: Chris Boget [EMAIL PROTECTED] To: Raymond Gubala [EMAIL PROTECTED];

Re: [PHP] Next and Preview Row

2002-02-22 Thread Fournier Jocelyn [Presence-PC]
Yes, but how to get ONLY the 3 records you need ? Because often in an application, you don't care about the other records. In this case AFAIK, there is no other solution than issuing at least two queries : SELECT * FROM table WHERE field='ID00025' ORDER BY field DESC LIMIT 2 SELECT * FROM table

[PHP] Click class

2002-02-22 Thread Dani
Hi! I have just visited a webiste and I have notice that user can't really see the .php extension at the end of the URL address. And when I look at the link address it's got 'class=click' . Could someone help me to understand this please? td bgcolor=#ffimg

Re: [PHP] Click class

2002-02-22 Thread Edward van Bilderbeek - Bean IT
to me it just seems that that site is using a frameset... and changing one frame, doesn't change the body of the parentframe... and that frame is being just for the URL shown. The class='click' thing is just used for layout purpose... check out CSS (Cascading Style Sheets) for more

Re: [PHP] Click class

2002-02-22 Thread Thalis A. Kalfigopoulos
On Sat, 23 Feb 2002, Dani wrote: Hi! I have just visited a webiste and I have notice that user can't really see the .php extension at the end of the URL address. And when I look at the link address it's got 'class=click' . Could someone help me to understand this please? td

Re: [PHP] Click class

2002-02-22 Thread Dani
Thanks guys! Thalis A. Kalfigopoulos wrote: On Sat, 23 Feb 2002, Dani wrote: Hi! I have just visited a webiste and I have notice that user can't really see the .php extension at the end of the URL address. And when I look at the link address it's got 'class=click' . Could

RE: [PHP] PRE-formated text into DATABASE

2002-02-22 Thread Kevin Stone
The function, nl2br() swaps end-line characters for HTML br tags. This is usually adequate for this situation. Though the default end-line character (\n or \r) can differ between operating systems, I have yet to experience a major problem. -Kevin -Original Message- From: Dani

[PHP] Newbie question...

2002-02-22 Thread Ben Turner
This may be a bit off topic but I am trying to install the pdflib package for Linux so I can make pdfs through php and I was wondering if anyone might know the command to download a file via CRT from an http source. I apologize to the OT but I cant seem to get much of anything to work for me.

Re: [PHP] Array HELL!!!!

2002-02-22 Thread William Lovaton
El vie, 22-02-2002 a las 04:54, jas escribió: I don't know what it is but I am having a hell of a time trying to get some results of a query setup into an array or variable (too much of a newbie to know which) that can be passed to a confirmation page before deleting the record from a table.

[PHP] Re: JaneBUILDER

2002-02-22 Thread l0t3k
it seems interesting. but look real carefully at the PHP snippet gif on the features page (under the find Icon) g Richard Baskett [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... Does anyone have any experience with JaneBUILDER? http://www.seejanecode.com It

Re: [PHP] Re: JaneBUILDER

2002-02-22 Thread Richard Baskett
Oh that's too funny.. Their code is screwed up *grin* plus the code it exports.. Don¹t care much for the tabbing, but that could probably be fixed, but.. Oh man that is funny. Thanks! :) Rick If I accept you as you are, I will make you worse; however, if I treat you as though you are what you

[PHP] Re: Newbie question...

2002-02-22 Thread J Smith
Try wget if it's installed. If not, lynx, a shell-based web browser, is installed on quite a few machines. J Ben Turner wrote: This may be a bit off topic but I am trying to install the pdflib package for Linux so I can make pdfs through php and I was wondering if anyone might know

[PHP] Displaying image from MySql DB

2002-02-22 Thread Mullin, Reginald
Hi Guys, I have some images stored in my MySql database that I'd like to display on the bottom of my HTML page. However, whenever I attempt to display the images using the follow code: $getPhoto = mysql_fetch_object($result); $Type = $getPhoto-type; Header(Content-type: $Type); $Body =

Re: [PHP] PHP-4.1.1 and freetype 2

2002-02-22 Thread Ernie Dipko
Yea...I thought of that too, I searched the the entire file system for *libgd*, removed everything and then tried to ./configure php, to make sure it failed, it did, then I reinstalled gd and reran the configure, it worked just as before, gdImageStringFTEX=no and same error in the

[PHP] Re: Displaying image from MySql DB

2002-02-22 Thread Jim Winstead
Reginald Mullin [EMAIL PROTECTED] wrote: Now I understand why I'm getting the error. What I'd like to know is how to get around it? Basically what I want is the image in the DB to be displayed like any regular image would be on an HTML page, i.e. img src=imageGoesHere height=x width=x

Re: [PHP] PHP-4.1.1 and freetype 2

2002-02-22 Thread Ernie Dipko
Do I need Wes's patch for gdImageStringFTEX to work??? I was mistaken, I thought the patch only fixed the anti-aliasing problem? Rasmus Lerdorf [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... Perhaps you have another libgd on your system that the -lgd in that

Re: [PHP] PHP-4.1.1 and freetype 2

2002-02-22 Thread Rasmus Lerdorf
It does only fix the anti-aliasing problem. ImageFtText() works fine. On Fri, 22 Feb 2002, Ernie Dipko wrote: Do I need Wes's patch for gdImageStringFTEX to work??? I was mistaken, I thought the patch only fixed the anti-aliasing problem? Rasmus Lerdorf [EMAIL PROTECTED] wrote in message

Re: [PHP] bbcode

2002-02-22 Thread Jeff Sheltren
Why not download a forum, such as phpbb (www.phpbb.com) and check out their code? =) Jeff At 03:41 PM 2/22/2002 -0500, Leif K-Brooks wrote: I'm planning to make a forum built into my site. I know all of the forums have bbcode, and I doubt they all programmed it themselves. Is there somewhere

[PHP] Paypal Integration

2002-02-22 Thread karthikeyan
Hi, Anybody here in this list have successfully integrated paypal to their websites. Like sending item info to the paypal site and getting response code and based on that do some action stuff. I have also searched through archives http://interchange.redhat.com/ some one this list

[PHP] sometimes browser just recieves half the page

2002-02-22 Thread John Ericson
Im programming a page where I have a java-tree-menu that gets generated from a db. The code works perfectly but sometimes when a browser reads the page I just get half of the page. I have noticed this behaivour on many different browsers such as mozilla, netscape, galeon, explorer and even wget

[PHP] PHP-cvs + Apache 2.0.32 + glibc 2.2.5 + gcc3 = problem?

2002-02-22 Thread Austin Gonyou
Ok..found something interesting. PHP + Apache 2.0.32 does not run on glibc 2.2.5. (fyi 2.2.5 was compiled with 3.0.3 and my kernel, and binutils, and openssl) I tarred up an installation of Apache 2.0.32 I made from a different machine running 2.2.4, compiled from 2.96, as well as the php

[PHP] Date Question: finding 1st Monday of sept.

2002-02-22 Thread Jeff Bearer
Hello, I'm trying to find out how to calculate some dates, and the part I'm having problems with is finding the date of the first Monday in September. I'm looking into the strtotime() function which works some great magic with dates, but I can't figure out how to use the day of the week syntax

[PHP] Re: Date Question: finding 1st Monday of sept.

2002-02-22 Thread Jeff Bearer
Nevermind, I figured it out, didn't see that you could pass a timestamp to strtotime. Thanks. On Fri, 2002-02-22 at 14:22, Jeff Bearer wrote: Hello, I'm trying to find out how to calculate some dates, and the part I'm having problems with is finding the date of the first Monday in

Re: [PHP] PHP-4.1.1 and freetype 2

2002-02-22 Thread Ernie Dipko
I am sorry, and hate to keep bugging, but I am confused. If in order to have ImageFTText() work I need HAVE_GD_STRINGFTEX in the php_config.h. and gdImageStringFTEx is not part of the patch, where is gdImageStringFTEx... I just searched all the gd header files (grep -i StringFTEX gd*.h) then

[PHP] how to build an array

2002-02-22 Thread jtjohnston
I guess it's because I didn't really follow Niklas' post, so I'll ask the first part of yesterday's question again, if someone can help me think my way through it. I've been looking at http://www.php.net/manual/en/ref.array.php but don't really get HOW to build an array from my MySQL data. I'm

[PHP] Re: how to build an array

2002-02-22 Thread Jim Winstead
Jtjohnston [EMAIL PROTECTED] wrote: Where/How do I start in building a new array? .= doesn't work: $authors .= explode(;, $mydata-KW); '.=' doesn't work because that does a string append. you just want: $authors = explode(;, $mydata-KW); then you can sort the array using sort().

Re: [PHP] login determines content on page

2002-02-22 Thread djo
On Fri, 22 Feb 2002 21:38:16 -0500, you wrote: I'd to know how difficult it is to achieve the following: Create login page, when the submit button is clicked, the user info is checked against a database as to whether is login info is valid. if it is valid, a page is displayed that lists all

[PHP] Re: sometimes browser just recieves half the page

2002-02-22 Thread Gary
John Ericson wrote: Im programming a page where I have a java-tree-menu that gets generated from a db. The code works perfectly but sometimes when a browser reads the page I just get half of the page. I have noticed this behaivour on many different browsers such as mozilla, netscape,

Re: [PHP] Re: how to build an array

2002-02-22 Thread Steven Walker
Also, for adding items onto an array use array_push() Steven J. Walker Walker Effects www.walkereffects.com [EMAIL PROTECTED] On Friday, February 22, 2002, at 07:41 PM, Jim Winstead wrote: Jtjohnston [EMAIL PROTECTED] wrote: Where/How do I start in building a new array? .= doesn't work:

[PHP] Not Quite: how to build an array

2002-02-22 Thread jtjohnston
OK. I use: while ($mydata = mysql_fetch_object($news)) { $authors = explode(;, $mydata-AS); } Then why Invalid argument supplied for foreach() Am I indeed building an array as I go through my database? foreach($authors as $author) { #echo sort($author).br\n; echo $authorbr\n; }

Re: [PHP] Re: how to build an array

2002-02-22 Thread jtjohnston
Yeah but, this doesn't work either? I'm trying :) $news = mysql_query(select AS from $table); while ($mydata = mysql_fetch_object($news)) { # $authors = explode(;, $mydata-AS); array_push ($authors, explode(;, $mydata-AS)); } foreach($authors as $author) { echo $authorbr\n; } --

Re: [PHP] login determines content on page

2002-02-22 Thread jtjohnston
What's the difference between if (isset($submit_happening)) and if $submit_happening) John [EMAIL PROTECTED] wrote: On Fri, 22 Feb 2002 21:38:16 -0500, you wrote: I'd to know how difficult it is to achieve the following: Create login page, when the submit button is clicked, the user info

Re: [PHP] login determines content on page

2002-02-22 Thread Rasmus Lerdorf
Well, if $submit_happening is set to 0, 0 or false then if($submit_happening) will evaluate to false while if(isset($submit_happening)) will evaluate to true As the documentation (please read http://www.php.net/isset) isset() returns true if the variable exists and false if it doesn't. -Rasmus

  1   2   >