RE: [PHP] Endless 'while' loops?

2003-11-03 Thread Dave G
GoLive Gurus, The problem has been resolved. I now understand much better how while loops operate, and fixed the problem of the script not parsing. I am now successfully making mailing lists using PHP. While I was banging my head thinking there was something wrong with how I was

Re: [PHP] Extracting random rows

2003-11-03 Thread Marek Kilimajer
Hello, works for me. As a workaround you can pass a random integer to te RAND() function to be used as seed value. Scott wrote: Hello, Below is a boiled-down example of the problem I'm having. I'm trying to extract rows randomly from MySql, but I keep getting the same one. It works if I query

Re: [PHP] Sleep Function

2003-11-03 Thread Marek Kilimajer
It is exactly what you need. And you can lower the sleep time, I think 1 or 2 seconds are just enough. Glenn Gasner wrote: The php.net documentation for the sleep and usleep functions has me confused. I'm using shared hosting and I need to email my whole mailing list while not clogging the

[PHP] Re: Extracting random rows

2003-11-03 Thread Shivanischal
hi, do try this - select * from my_table orer by rand() limit my_max_rows like select * from questions order by rand() limit 5. works for me. i'm surprised too. but if u still want to do it in PHP, do go ahead. warm regards, -shiva Scott [EMAIL PROTECTED] wrote in message news:[EMAIL

Re: [PHP] Japanese entry into MySQL and into emails

2003-11-03 Thread Marek Kilimajer
I have only one advise for you: send yourself an email with the kanji encoding and check the email headers with the headers you set. Dave G wrote: Thank you Edwin, Marek, and Eugene for your responses and advice. For storing the Japanese names in kanji in the database, I've

php-general Digest 3 Nov 2003 11:32:09 -0000 Issue 2393

2003-11-03 Thread php-general-digest-help
php-general Digest 3 Nov 2003 11:32:09 - Issue 2393 Topics (messages 168358 through 168381): Re: passing variables to subsequent pages 168358 by: Chris Shiflett Re: scalar value as array problem 168359 by: John W. Holmes How to run PHP4 and PHP5 side-by-side 168360

Re: [PHP] Mailing List

2003-11-03 Thread Lowell Allen
I would like to setup a mailing list for my company. I have a database containing email address of my clients along with other details. How can I send them mails ? If i write a script containing the mail function and loop the address, I think that might generate a script timeout error. I

RE: [PHP] Web Applications and C++?

2003-11-03 Thread Jay Blanchard
[snip] Inappropirate but intruiging nonetheless. [/snip] Maybe not so inappropriate as you could use C++ dll's ...calling them from PHP, passing variables, etc. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] Japanese entry into MySQL and into emails

2003-11-03 Thread Dave G
The issue of entering Japanese into email from a PHP script has been resolved. A key point was that when creating a header for an email, not only should \r\n be used to separate lines, but immediately preceding \r\n should be a space. The end result was to create a variable that

RE: [PHP] Call to undefined function: xml_parser_create()... but CGI compiled --with-xml

2003-11-03 Thread Dave [Hawk-Systems]
a production box running 4.2.2 recently had a script added to it requiring use of xml functionality. The box was already compiled (a few versions earlier) with the --with-xml option. Since then, have upgraded this box twice (though it is due for another) using config.nice to ensure the same

[PHP] XML DOM

2003-11-03 Thread Ian Williams
I have an XML document as a string $strXml, that looks a little like this: recordset row userid1/userid usernameBob/username passwordRover/username /row row userid2/userid usernameFred/username passwordFido/username /row /recordset

[PHP] How do i replace table names?

2003-11-03 Thread Bas
I want to replace something like this: $sql = CREATE TABLE bas_table ( ); With this: CREATE TABLE hugo_table ( ); And do the same for INSERT INTO... How do i do this? Regards, Bas -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

RE: [PHP] How do i replace table names?

2003-11-03 Thread Jay Blanchard
[snip] I want to replace something like this: $sql = CREATE TABLE bas_table ( ); With this: CREATE TABLE hugo_table ( ); And do the same for INSERT INTO... How do i do this? [/snip] Top of the morning to you Bas! I have a couple of questions for you. 1. Have you read emany/em of

RE: [PHP] time() daylight savings

2003-11-03 Thread Jay Blanchard
[snip] does anybody know how php handles daylight saving issues ? [/snip] I am pretty sure that PHP does not 'handle' daylight savings issues at all, but relies on the server settings for its time base. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

Re: [PHP] Mailing List

2003-11-03 Thread David T-G
PHPLover -- ...and then PHPLover said... % % Dear All, % % I would like to setup a mailing list for my company. Then set up a mailing list. % I have a database containing email address of my clients along with other % details. That's good. % How can I send them mails ? I would highly

Re: [PHP] How do i replace table names?

2003-11-03 Thread Bas
No, i mean to replace the names in the string... And then execute them... Jay Blanchard [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] [snip] I want to replace something like this: $sql = CREATE TABLE bas_table ( ); With this: CREATE TABLE hugo_table ( ); And do the same

Re: [PHP] Problems with remote include

2003-11-03 Thread Pablo Zorzoli
On Thu, 2003-10-30 at 17:00, Chris Shiflett wrote: So the server where you're running the PHP script can't connect to the server you specify in your include() call. So, you can now remove PHP from the problem and work on that. [...] Hope that helps. Chris Thank you Chris..i solved the

RE: [PHP] How do i replace table names?

2003-11-03 Thread Jay Blanchard
[snip] No, i mean to replace the names in the string... And then execute them... [snip] *slaps forehead* Duh, just do it? $sqlCreateTable = CREATE TABLE `dumBas` ( ; $sqlCreateTable .= `ai` int(11) NOT NULL AUTO_INCREMENT, ; $sqlCreateTable .= `thing` char(32) default NULL, ; $sqlCreateTable .=

Re: [PHP] How do i replace table names?

2003-11-03 Thread Bas
OKAY, I WANT TO REPLACE IN THE TABLENAME THE TEXT BAS_ WITH DUMMY_ SUCH LIKE THAT CREATE TABLE BAS_DATA BECOMES CREATE TABLE DUMMY_DATA I AM NOT THAT DUMB... I JUST WANT TO REPLACE 1 TABLE PREFIX BY ANOTHER!!! Jay Blanchard [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] [snip] No, i

RE: [PHP] How do i replace table names?

2003-11-03 Thread Jay Blanchard
[snip] OKAY, I WANT TO REPLACE IN THE TABLENAME THE TEXT BAS_ WITH DUMMY_ SUCH LIKE THAT CREATE TABLE BAS_DATA BECOMES CREATE TABLE DUMMY_DATA I AM NOT THAT DUMB... I JUST WANT TO REPLACE 1 TABLE PREFIX BY ANOTHER!!! [/snip] Then do it! And quit top posting! And quit yelling! -- PHP General

Re: [PHP] How do i replace table names?

2003-11-03 Thread zhuravlev alexander
On Mon, Nov 03, 2003 at 04:37:41PM +0100, Bas wrote: OKAY, I WANT TO REPLACE IN THE TABLENAME THE TEXT BAS_ WITH DUMMY_ SUCH LIKE THAT CREATE TABLE BAS_DATA BECOMES CREATE TABLE DUMMY_DATA I AM NOT THAT DUMB... I JUST WANT TO REPLACE 1 TABLE PREFIX BY ANOTHER!!! sed -i.bak -e

RE: [PHP] How do i replace table names?

2003-11-03 Thread Jay Blanchard
[snip] I AM NOT THAT DUMB... I JUST WANT TO REPLACE 1 TABLE PREFIX BY ANOTHER!!! [/snip] http://www.php.net/str_replace -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] References and memory efficiency

2003-11-03 Thread Johnson, Kirk
I've been working on a database wrapper class for a while now, MySQL to be specific. Until now, I've simply had a fetch function that returned an array of all the rows that the database returned, only because I have gotten so tired of always writing the same while loop to iterate

[PHP] Quickform Image validation

2003-11-03 Thread Ian P. Christian
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 I'm using the following class for a form with an image in, but I need to use a function to validate that an image was uploaded with the correct type and that it's not too large. I don't seem to be able to access the information about the file from

Re: [PHP] How do i replace table names?

2003-11-03 Thread John W. Holmes
Bas wrote: I want to replace something like this: $sql = CREATE TABLE bas_table ( ); With this: CREATE TABLE hugo_table ( ); And do the same for INSERT INTO... How do i do this? If you know that bas_ will not appear within your data, then a simple str_replace() will do. $new_data =

[PHP] Problem connecting to remote MySQL Server

2003-11-03 Thread Donald Tyler
Hi, I am publishing a site I have developed and I am having problems with the scripts being able to access the remote MySQL server. When I try to connect using the PHP scripts I just get an error saying that access is denied. I can access it fine from my machine using PHPMyAdmin so I know that

[PHP] Re: Problem connecting to remote MySQL Server

2003-11-03 Thread Rob Adams
Donald Tyler [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Hi, I am publishing a site I have developed and I am having problems with the scripts being able to access the remote MySQL server. When I try to connect using the PHP scripts I just get an error saying that access is

[PHP] JavaScript Newsgroup

2003-11-03 Thread Robb Kerr
What's your favorite JavaScript newsgroup? This group has been invaluable in helping me learn PHP and need the same for JS. Thanx, -- Robb Kerr Digital IGUANA Helping Digital Artists Achieve their Dreams http://www.digitaliguana.com http://www.cancerreallysucks.org -- PHP General Mailing List

Re: [PHP] XML DOM

2003-11-03 Thread Burhan Khalid
Ian Williams wrote: I have an XML document as a string $strXml, that looks a little like this: recordset row userid1/userid usernameBob/username passwordRover/username /row row userid2/userid usernameFred/username passwordFido/username

Re: [PHP] Search and POST and keywords

2003-11-03 Thread Burhan Khalid
Robert Sossomon wrote: [ snipped ] What I would LIKE it to do is pass along the keywords back to itself so that when it is called from within itself it can be on the same search terms. I have made the code do this: input type=\hidden\ name=\url\ value=\$_SERVER[PHP_SELF]\ input type=\hidden\

Re: [PHP] JavaScript Newsgroup

2003-11-03 Thread Burhan Khalid
Robb Kerr wrote: What's your favorite JavaScript newsgroup? This group has been invaluable in helping me learn PHP and need the same for JS. I would highly recommend Evolt ( http://www.evolt.org ) -- I'm a member and a frequent lurker (and sometime poster) on their lists. A lot of expert minds

Re: [PHP] String Array Creation and assigment

2003-11-03 Thread Dan
i found the problem myself, array has to be defined like this: $b=array[0=0]; then $b can be any array of any type of index and values as you wish to assign to it. Dan [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] please help with the following: I tried this first : $b[] = 'Book

[PHP] caveats for upgrade from 4.2.2 to 4.3

2003-11-03 Thread Dave [Hawk-Systems]
any warnings, problems, or other issues we should be aware of... production server, already addressed the register_globals issue Dave -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] How to remove new line character?

2003-11-03 Thread Don Read
On 02-Nov-2003 Koala Yeung wrote: Thanks a lot I'd like to remove newline only. Is there any simple way? rtrim($str, \r\n); Regards, -- Don Read [EMAIL PROTECTED] -- It's always darkest before the dawn. So if you are going to steal the neighbor's

[PHP] mysql_field_type() ...

2003-11-03 Thread René Fournier
...will say if a field is of type ENUM, but not its possible values (including default). Does anyone know how I can fetch possible values of a field type of ENUM? Thanks. ...Rene -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] mysql_field_type() ...

2003-11-03 Thread Jay Blanchard
[snip] ...will say if a field is of type ENUM, but not its possible values (including default). Does anyone know how I can fetch possible values of a field type of ENUM? [/snip] You would have to use DESCRIBE. So if DESCRIBE db; //in the mysql table returns --

[PHP] printer functions and pcl

2003-11-03 Thread Mark Newnham
I'm trying to output HP PCL commeands using the printer_write command. For example: $str=sprintf(\033d0D); // Underline Text $str.=Text to print; $str.=sprintf(\033cE); // Reset printer $handle = printer_open('DOMAIN\\PSERVER'); printer_write($handle,$str); printer_close($handle); The

[PHP] Re: mysql_field_type() ...

2003-11-03 Thread Rob Adams
René fournier [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] ...will say if a field is of type ENUM, but not its possible values (including default). Does anyone know how I can fetch possible values of a field type of ENUM? desc $tbl_name; You'll have to parse it, but it will give

[PHP] Dates then 1970

2003-11-03 Thread Mark McCulligh
What function(s) would you use if you want to take someone's birth day and format it on display. I have always used strtotime, then strftime but it doesn't work if someone was born in 1939. strtotime returns -1. What function would you use to take the input string 1939/11/23 and get the

[PHP] Problems using gethostbyname() to resolve *.net.au

2003-11-03 Thread Dan Anderson
Some domain names on .net.au are not being resolved when I use gethostbyname. I can whois them on http://whois.ausregistry.net.au/and fine them, but they can't be pinged. Anybody know why this might be? Thanks in advance, Dan -- PHP General Mailing List (http://www.php.net/) To

Re: [PHP] Problems using gethostbyname() to resolve *.net.au

2003-11-03 Thread Boyan Nedkov
the firewall is configured to block pings from outside - security reasons - so called stealth mode Dan Anderson wrote: Some domain names on .net.au are not being resolved when I use gethostbyname. I can whois them on http://whois.ausregistry.net.au/and fine them, but they can't be pinged.

[PHP] Mail Delivery Acknowledgement

2003-11-03 Thread imran
Thank you for contacting me Your e-mail has been forwarded to the appropriate person Mr. Imran Asghar. We welcome all comments and suggestions. Due to the high volume of e-mails received, not all e-mails are responded to directly. All e-mails that are responded to are handled in the order

Re: [PHP] Quickform Image validation

2003-11-03 Thread Ian P. Christian
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On Monday 03 November 2003 6:54 pm, Pablo Goose wrote: Hi Ian. If you're trying to access an uploaded file then you have to use the $_FILES array. How is that you had hoped to access this information from outside the $_FILES array? It seems to

Re: [PHP] Problems using gethostbyname() to resolve *.net.au

2003-11-03 Thread Dan Anderson
the firewall is configured to block pings from outside - security reasons - so called stealth mode No, you are wrong. gethostbyname($hostname) correctly resolves my servers, and I have disabled pings for security reasons. gethostbyname($hostname) has nothing to do with pings as a matter of

Re: [PHP] Problems using gethostbyname() to resolve *.net.au

2003-11-03 Thread Rob Adams
Dan Anderson [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] the firewall is configured to block pings from outside - security reasons - so called stealth mode No, you are wrong. If you're going to ask for help, you should take it in whatever form it comes. Perhaps he wasn't

[PHP] Re: Mail Delivery Acknowledgement

2003-11-03 Thread Comex
[EMAIL PROTECTED] [EMAIL PROTECTED]: Thank you for contacting me Your e-mail has been forwarded to the appropriate person Mr. Imran Asghar. We welcome all comments and suggestions. Due to the high volume of e-mails received, not all e-mails are responded to directly. All e-mails that

Re: [PHP] Problems using gethostbyname() to resolve *.net.au

2003-11-03 Thread Dan Anderson
If you're going to ask for help, you should take it in whatever form it comes. Perhaps he wasn't answering your primary question, but just stating how it is possible to not have a ping request returned by a valid address. In which case he is quite right. I am thankful he answered my

Re: [PHP] Problems using gethostbyname() to resolve *.net.au

2003-11-03 Thread Boyan Nedkov
[snip] ... I can whois them on http://whois.ausregistry.net.au/and fine them, but they can't be pinged. Anybody know why this might be? [snip] I'm just answering your question why they can't be pinged. You are perfectly right that 'gethostbyname($hostname) has nothing to do with pings as a

[PHP] Mail Delivery Acknowledgement

2003-11-03 Thread imran
Thank you for contacting me Your e-mail has been forwarded to the appropriate person Mr. Imran Asghar. We welcome all comments and suggestions. Due to the high volume of e-mails received, not all e-mails are responded to directly. All e-mails that are responded to are handled in the order

Re: [PHP] Dates then 1970

2003-11-03 Thread John W. Holmes
Mark McCulligh wrote: What function(s) would you use if you want to take someone's birth day and format it on display. I have always used strtotime, then strftime but it doesn't work if someone was born in 1939. strtotime returns -1. What function would you use to take the input string 1939/11/23

php-general Digest 3 Nov 2003 23:46:16 -0000 Issue 2394

2003-11-03 Thread php-general-digest-help
php-general Digest 3 Nov 2003 23:46:16 - Issue 2394 Topics (messages 168382 through 168426): Re: Mailing List 168382 by: Lowell Allen 168390 by: David T-G Re: Web Applications and C++? 168383 by: Jay Blanchard Re: Japanese entry into MySQL and into emails

Re: [PHP] mysql_field_type() ...

2003-11-03 Thread John W. Holmes
Jay Blanchard wrote: [snip] ...will say if a field is of type ENUM, but not its possible values (including default). Does anyone know how I can fetch possible values of a field type of ENUM? [/snip] You would have to use DESCRIBE. So if Even better is DESC table_name column_name; so you only

[PHP] Showing high and low flash clips

2003-11-03 Thread daniel
Hi there, i'm stumped on a problem, i am trying to create an admin tool, which will database files which are ftp'd to the server first. A drop down list of flash files are viewed, and they are seperated into high and low clips with a language key joined to them. They are stored in the database

Re: [PHP] Showing high and low flash clips

2003-11-03 Thread Boyan Nedkov
Suppose we have a recordset $rs returned by query like that: SELECT mediaID, filename, languageID FROM yabady a INNER JOIN yohoho b on a.ID = b.ID ORDER BY mediaID then to build the array you can write: for ($i = 0; $i = $rs-getRowCount() - 1; $i++) { $row = $rs-getRow(); $data = array('mediaID'

[PHP] Mail Delivery Acknowledgement

2003-11-03 Thread imran
Thank you for contacting me Your e-mail has been forwarded to the appropriate person Mr. Imran Asghar. We welcome all comments and suggestions. Due to the high volume of e-mails received, not all e-mails are responded to directly. All e-mails that are responded to are handled in the order

[PHP] Apache1.3.28 vs PHP4.3.3

2003-11-03 Thread orlandopozo
hello, I tried to configure php as module SAPI of the apache web server, I put this line: LoadModule php4_module D:/PHP4.3.3/sapi/php4apache.dll AddModule mod_php4.c AddType application/x-httpd-php .php When I tested the configuration, I got this error: Cannot remove module mod_php4.c: not

[PHP] verify my ISP

2003-11-03 Thread John Taylor-Johnston
How can I verify if my ISP really does have PHP on a server I am using. They say if I want PHP, I must pay an extra $15 per month. Is there somehting I can put in my .htaccess to verify and maybe do this? IfModule mod_php4.c AddType application/x-httpd-php .php .php4 .php3 .phtml

[PHP] [Newbie Guide] For the benefit of new members

2003-11-03 Thread tech
= This message is for the benefit of new subscribers and those new to PHP. Please feel free to add more points and send to the list. == 1. If you have any queries/problems about PHP

Re: [PHP] verify my ISP

2003-11-03 Thread Mykroft Holmes IV
John Taylor-Johnston wrote: How can I verify if my ISP really does have PHP on a server I am using. They say if I want PHP, I must pay an extra $15 per month. Is there somehting I can put in my .htaccess to verify and maybe do this? IfModule mod_php4.c AddType

[PHP] Uploading Files!

2003-11-03 Thread Dimitri Marshall
Hi there, I'm new to this new PHP thing and man it's frusterating. Anyway, I'm not gonna tell you my life story, but I just need to know how to allow users to upload files to my server . I've already made a form with the input name=whatever type=file and then a program that should get the varibles

Re: [PHP] verify my ISP

2003-11-03 Thread John Taylor-Johnston
Thanks Adam, :=) First thing I tried. Oh well. John How can I verify if my ISP really does have PHP on a server I am using. They say if I want PHP, I must pay an extra $15 per month. Is there somehting I can put in my .htaccess to verify and maybe do this? IfModule mod_php4.c

AW: [PHP] Uploading Files!

2003-11-03 Thread Daniel Diehl
Hi Dimitri, I'm new to this new PHP thing and man it's frusterating. Anyway, I'm not gonna tell you my life story, but I just need to know how to allow users to upload files to my server . I've already made a form with the input name=whatever type=file and then a program that should get the

Re: [PHP] Uploading Files!

2003-11-03 Thread Rob Burris
Dimitri Marshall wrote: Hi there, I'm new to this new PHP thing and man it's frusterating. Anyway, I'm not gonna tell you my life story, but I just need to know how to allow users to upload files to my server . I've already made a form with the input name=whatever type=file and then a program

[PHP] Moodle.Org

2003-11-03 Thread John Taylor-Johnston
Moodle.Org, an OpenSource project, needs help. We need someone to help program a module to import WebCT quiz data into Moodle. Any takers with a big heart for a worthwhile educational project? John :=) -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

[PHP] Style.css

2003-11-03 Thread PHPLover
I am going throught the CVS of PHP and happened to see the Style.css file. I found that background-color of body,html is set to White instead of #ff which i feel is not a valid CSS. Am i right ? Thanks Regards, ___ PHPLover Göd döësn't pläy dícë. - Älbërt Ëínstëín

Re: [PHP] Style.css

2003-11-03 Thread Ashley M. Kirchner
PHPLover wrote: I am going throught the CVS of PHP and happened to see the Style.css file. I found that background-color of body,html is set to White instead of #ff which i feel is not a valid CSS. Am i right ? Why is it not valid? It's valid even in the proposed spec for CSS3 (their

[PHP] PHP 4.3.4 Released

2003-11-03 Thread Ilia Alshanetsky
PHP 4.3.4 has been released. The focus of this release was the resolution of bugs and at the time of release some 70 bugs were resolved. All users are encouraged to upgrade to 4.3.4. PHP 4.3.4 contains, among others, following important fixes: * Fixed disk_total_space() and disk_free_space()

[PHP] Search and POST and keywords

2003-11-03 Thread Robert Sossomon
I have been modifying the quote system I have been writing like mad and have hit another brick wall of sorts. I am trying to do a couple of things... The search is now up and running on just a DESCRIPTION field. Anything else at this point is unwieldy. It works perfectly however I am trying to