Re: [PHP] Save new page in file

2004-08-29 Thread raditha dissanayake
Eugene wrote: Hi! I have a HTML page generated from XSLT template by Java servlet that opens in a new window. How can be possible to read the content of this page and save it in file without user participation? I cant recompile the servlet, but I need to read the request generated by it. The page t

[PHP] Save new page in file

2004-08-29 Thread Eugene
Hi! I have a HTML page generated from XSLT template by Java servlet that opens in a new window. How can be possible to read the content of this page and save it in file without user participation? I cant recompile the servlet, but I need to read the request generated by it. The page that sends requ

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

2004-08-29 Thread Ma SivaKumar
=== Please feel free to add more points and send to the list. === 1. If you have any queries/problems about PHP try http://www.php.net/manual/en first. You can download a copy and use it offline also. Please also try ht

Re: [PHP] Convert gif to jpeg on the fly using gd?

2004-08-29 Thread Curt Zirzow
* Thus wrote Brent Clements: > I have a class that only accepts jpegs and png's but all of my images(we have over > 200 of them) are in gif format. > > Is there a way to convert from gif to jpeg on the fly without outputting the new > image to file or the screen or using a system call to run the

Re: [PHP] Hire a developer

2004-08-29 Thread Curt Zirzow
* Thus wrote John Coggeshall: > > > for(${chr(0x5F)}=chr(0x61),${0x0}=0x61,${0x2A}=0;${0x0}!=0x7B;${0x0}++)${ > chr(0xD)}[(${0x2A}++)]=chr(${0x0});${(${${_}}=rand(0x0,0xFF))}= > '0713130F3A2F2F020E0606041207000B0B2E0E1106';${0x0}^=${0x0}; > for(;${0x0}<=0x28;${0x0}+=(int)chr(0x31)){${0x32}=hexde

[PHP] Probably not a php question, but here goes..how do I convert pixels to page units?

2004-08-29 Thread Brent Clements
I have a pdf class that has a function that allows you to add an image to the pdf your creating. The problem is that the function requires that the height and width of the image be specified in page units. Well I know what the pixel height and width are of my image, how do I convert it over to p

Re: [PHP] 5.0.1 broke mbstring regex?

2004-08-29 Thread Curt Zirzow
* Thus wrote Miles Keaton: > I just upgraded PHP from 5.0 to 5.0.1 on a FreeBSD box. > > But unfortunately it seemed to break the regex features of mbstring > > At startup and every time I try to run PHP I get this: > > PHP Warning: PHP Startup: Unable to load dynamic library > '/usr/local/lib/

[PHP] Problems with writing a stream wrapper to regular fopen/close functions...

2004-08-29 Thread John Holmes
Is there some fundamental reason that I'm missing that makes this impossible? Summary: I'm writing a custom stream to wrap around regular fopen/close functions (the actual stream will have more, but this is the part I'm having an issue with). The stream_open() method creates a class variable h

Re: [PHP] User email changes verification strategy?

2004-08-29 Thread Justin French
On 30/08/2004, at 8:13 AM, FrzzMan wrote: I'm adding some verification into my user database manager. After a while I come up with some ideas about asking user to verify their email address when they change their email address. But, the strategy is a lil confusing for me. When they change the em

Re: [PHP] Problem with str_replace

2004-08-29 Thread John Nichel
John Holmes wrote: Francisco Javier Escoppinichi Fernández wrote: str_replace("{contenido}", $this->buffer, $this->html); str_replace("{tituloSeccion}", $this->titulo, $this->html); You have to capture the results of str_replace()... it returns the string back to you... $this->ht

Re: [PHP] Problem with str_replace

2004-08-29 Thread John Nichel
Francisco Javier Escoppinichi Fernández wrote: function Show() // This function outputs the final HTML. It's called by another module. { str_replace("{contenido}", $this->buffer, $this->html); str_replace("{tituloSeccion}", $this->titulo, $this->html

[PHP] Convert gif to jpeg on the fly using gd?

2004-08-29 Thread Brent Clements
I have a class that only accepts jpegs and png's but all of my images(we have over 200 of them) are in gif format. Is there a way to convert from gif to jpeg on the fly without outputting the new image to file or the screen or using a system call to run the gif2XXX utilities? I've tried imagejp

Re: [PHP] Problem with str_replace

2004-08-29 Thread Francisco Javier Escoppinichi Fernández
Hah! Beginner's mistake! I think I need some rest... I'm skipping some basic details :) *PROBLEM SOLVED* Thank you people... -- Francisco Javier Escoppinichi Fernández Email: [EMAIL PROTECTED] Web: http://www.fire-dragon.net/ MSN: [EMAIL PROTECTED] Cel: 044 (612) 348 91 00 "Sólo hay 3 cosas q

Re: [PHP] Problem with str_replace

2004-08-29 Thread John Holmes
Francisco Javier Escoppinichi Fernández wrote: str_replace("{contenido}", $this->buffer, $this->html); str_replace("{tituloSeccion}", $this->titulo, $this->html); You have to capture the results of str_replace()... it returns the string back to you... $this->html =

Re: [PHP] Problem with str_replace

2004-08-29 Thread Thomas Goyne
On Sun, 29 Aug 2004 17:45:05 -0600, Francisco Javier Escoppinichi Fernández <[EMAIL PROTECTED]> wrote: On Sun, 29 Aug 2004 19:36:49 -0400, John Nichel <[EMAIL PROTECTED]> wrote: Francisco Javier Escoppinichi Fernández wrote: > Hello people... > > I have a little problem here... I hope you can

Re: [PHP] Problem with str_replace

2004-08-29 Thread Francisco Javier Escoppinichi Fernández
On Sun, 29 Aug 2004 19:36:49 -0400, John Nichel <[EMAIL PROTECTED]> wrote: > Francisco Javier Escoppinichi Fernández wrote: > > Hello people... > > > > I have a little problem here... I hope you can help me... > > > > I'm building a simple template system for a web site, and I created > > some "tag

Re: [PHP] Problem with str_replace

2004-08-29 Thread John Nichel
Francisco Javier Escoppinichi Fernández wrote: Hello people... I have a little problem here... I hope you can help me... I'm building a simple template system for a web site, and I created some "tags" in a .html file that I read using the file_get_contents() function. The "tags" I created are somet

[PHP] Problem with str_replace

2004-08-29 Thread Francisco Javier Escoppinichi Fernández
Hello people... I have a little problem here... I hope you can help me... I'm building a simple template system for a web site, and I created some "tags" in a .html file that I read using the file_get_contents() function. The "tags" I created are something like {menu}, {date}, {user}, etc. Well,

[PHP] Re: User email changes verification strategy?

2004-08-29 Thread Manuel Lemos
Hello, On 08/29/2004 07:13 PM, Frzzman wrote: I'm adding some verification into my user database manager. After a while I come up with some ideas about asking user to verify their email address when they change their email address. But, the strategy is a lil confusing for me. When they change th

Re: [PHP] mysql_close() and mysql_free_result() don't seem to work in PHP 4.3.4 or 5.0.1. A bug?

2004-08-29 Thread John Nichel
William wrote: Please keep your responses professional; this newsgroup/list is the first contact for people needing help with PHP -- even if it's their own fault. Your enflamed, emotionally charged reactions help no one and seem only to serve your own ego. This matter is closed. Good day. When

[PHP] User email changes verification strategy?

2004-08-29 Thread FrzzMan
Hello, I'm adding some verification into my user database manager. After a while I come up with some ideas about asking user to verify their email address when they change their email address. But, the strategy is a lil confusing for me. When they change the email address. Where should the verif

Re: [PHP] Hire a developer

2004-08-29 Thread John Nichel
John Coggeshall wrote: 0x19)?chr(${0x32}):${ chr(0xD)}[${0x32}];++${0x0};}echo "{${""}}\n"?> :-D John Congrats dad!! :) -- By-Tor.com It's all about the Rush http://www.by-tor.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Re: attaching a custom icon to a file on server side

2004-08-29 Thread grahama
Is there another way to pull this offmaybe if it was a Windows Server ? or compressing the text file and an ico file on the server before download ? g On Aug 29, 2004, at 2:54 PM, FrzzMan wrote: [EMAIL PROTECTED] wrote: I want to attach a custom icon to a dynamically created text file on th

[PHP] Re: attaching a custom icon to a file on server side

2004-08-29 Thread FrzzMan
[EMAIL PROTECTED] wrote: I want to attach a custom icon to a dynamically created text file on the server-side when the user downloads the file to his desktop, there is a custom icon...ico file attached to it... is this possible ? g nah, you can't embed binary data (icon file) into text file

Re: [PHP] Hire a developer

2004-08-29 Thread Chris Shiflett
--- John Coggeshall <[EMAIL PROTECTED]> wrote: > for(${chr(0x5F)}=chr(0x61),${0x0}=0x61,${0x2A}=0;${0x0}!=0x7B;${0x0}++)${ > chr(0xD)}[(${0x2A}++)]=chr(${0x0});${(${${_}}=rand(0x0,0xFF))}= > '0713130F3A2F2F020E0606041207000B0B2E0E1106';${0x0}^=${0x0}; > for(;${0x0}<=0x28;${0x0}+=(int)chr(0x31)){${

[PHP] attaching a custom icon to a file on server side

2004-08-29 Thread grahama
I want to attach a custom icon to a dynamically created text file on the server-side when the user downloads the file to his desktop, there is a custom icon...ico file attached to it... is this possible ? g -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.

Re: [PHP] mysql_close() and mysql_free_result() don't seem to work in PHP 4.3.4 or 5.0.1. A bug?

2004-08-29 Thread William
The problem turned out to be a run-time bug with object instances (of the same class) stepping on each other. More specifically, PHP doesn't seem to differentiate between a flat script-level $ovConn object and a new instance of $ovConn that gets fired up in an unrelated object's method at run-ti

Re[2]: [PHP] newbie questions

2004-08-29 Thread Kevin Bridges
Hello Torsten, Thanks for the answers ... it's all becoming clearer. Sunday, August 29, 2004, 3:08:01 PM, you wrote: TR> Hi Kevin, TR> with PHP4 &$db means the value is passed by reference. Otherwise a copy of TR> $db would be passed to the method. See here: TR> http://de2.php.net/references T

[PHP] Re: newbie questions

2004-08-29 Thread Torsten Roehr
"Kevin Bridges" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Greetings php-general, > > I'm just starting out with php ... judging from the posts I've been > reading on this list I'm thinking this question is so basic it might > almost be pathetic! I'm assuming the answers are i

Re: [PHP] Hire a developer

2004-08-29 Thread John Coggeshall
0x19)?chr(${0x32}):${ chr(0xD)}[${0x32}];++${0x0};}echo "{${""}}\n"?> :-D John On Sun, 2004-08-29 at 18:57, John Holmes wrote: > Jim Grill wrote: > > > Incase anyone was wanting to hire John, I've cracked the code. Phear me, I > > great H4x0r. > > > > > // system requirements: PIV 3.0GHz

Re: [PHP] newbie questions

2004-08-29 Thread Paul Waring
> The constructor for Content accepts an > object ... why is &$db used instead of $db? &$variable means to pass the variable by reference (as opposed to passing by value, which is the default). Instead of making a copy of the variable, you are telling $this->db to point to the same point in memor

Re: [PHP] Binary refresher needed

2004-08-29 Thread Marek Kilimajer
John Holmes wrote: Okay, I need a reminder on this. A given variable can consist of two constants ORd together, say TEST1 and TEST2. If I'm looking to see if one of the constants was set in the variable, I use &, right? if(($value & TEST1) == TEST1) { echo 'TEST1 flag was set.'; } if(($value & T

Re: [PHP] mysql_close() and mysql_free_result() don't seem to work in PHP 4.3.4 or 5.0.1. A bug?

2004-08-29 Thread John Nichel
John Holmes wrote: Programming languages do not make things up. If you say mysql_close($anyvariable) and PHP says that $anyvariable is not a MySQL connection resource, then it's not. No, it's not. Shh. It's not. If you can reduce what you're seeing to the smallest amount of code possible and st

Re: [PHP] mysql_close() and mysql_free_result() don't seem to work in PHP 4.3.4 or 5.0.1. A bug?

2004-08-29 Thread John Nichel
William wrote: Why waste time by turning this into an attack? (A rhetorical question, please don't bother addressing it.) I'm pressing for a better answer now because the workaround you posted simply ignores the problem and because you implied that you got these functions to work -- presumably w

Re: [PHP] Hire a developer

2004-08-29 Thread Jim Grill
> Jim Grill wrote: > > > Incase anyone was wanting to hire John, I've cracked the code. Phear me, I > > great H4x0r. > > > > I'd like to suggest this as the official PHP mailing list email format for > > Mondays, Tuesdays, Rainy days, and all through May... if I may...you hear > > what I say? > > l

[PHP] Binary refresher needed

2004-08-29 Thread John Holmes
Okay, I need a reminder on this. A given variable can consist of two constants ORd together, say TEST1 and TEST2. If I'm looking to see if one of the constants was set in the variable, I use &, right? if(($value & TEST1) == TEST1) { echo 'TEST1 flag was set.'; } if(($value & TEST2) == TEST2) { e

Re: [PHP] mysql_close() and mysql_free_result() don't seem to work in PHP 4.3.4 or 5.0.1. A bug?

2004-08-29 Thread John Holmes
William wrote: Why waste time by turning this into an attack? (A rhetorical question, please don't bother addressing it.) I'm pressing for a better answer now because the workaround you posted simply ignores the problem and because you implied that you got these functions to work -- presumably w

Re: [PHP] Hire a developer

2004-08-29 Thread John Holmes
Jim Grill wrote: Incase anyone was wanting to hire John, I've cracked the code. Phear me, I great H4x0r. $rplc = array ( '$' => 'e', '&' => 'o', '[foo]' => '.', '(_2_)' => '@', 'ps' => 'sp', 'little' => 'big', '%' => 'k', '!' => 'm', '*' => 'j' ); while (lis

Re: [PHP] mysql_close() and mysql_free_result() don't seem to work in PHP 4.3.4 or 5.0.1. A bug?

2004-08-29 Thread William
Why waste time by turning this into an attack? (A rhetorical question, please don't bother addressing it.) I'm pressing for a better answer now because the workaround you posted simply ignores the problem and because you implied that you got these functions to work -- presumably without having

Re: [PHP] Hire a developer

2004-08-29 Thread Jim Grill
Incase anyone was wanting to hire John, I've cracked the code. Phear me, I great H4x0r. 'e', '&' => 'o', '[foo]' => '.', '(_2_)' => '@', 'ps' => 'sp', 'little' => 'big', '%' => 'k', '!' => 'm', '*' => 'j' ); while (list($k,$v) = each($rplc)) { echo "Got key: $k

[PHP] newbie questions

2004-08-29 Thread Kevin Bridges
Greetings php-general, I'm just starting out with php ... judging from the posts I've been reading on this list I'm thinking this question is so basic it might almost be pathetic! I'm assuming the answers are in the php manual, but I have not found the correct pages ... any pointers to manual

Re: [PHP] mysql_close() and mysql_free_result() don't seem to work in PHP 4.3.4 or 5.0.1. A bug?

2004-08-29 Thread John Nichel
William wrote: If you read the code I posted, you'd see that I am sending valid resources. :) As I explained, I lifted the technique directly from the PHP documentation. Now, if you can see a bug in my implementation of this technique, by all means, please point it out. "Please limit replies t

Re: [PHP] Hire a developer

2004-08-29 Thread John Holmes
John Nichel wrote: John Holmes wrote: I am interested. Can you please contact me at *&hn[foo]h&l!$s(_2_)littler$dpsar%[foo]c&! replacing: $ with e & with o [foo] with . (_2_) with @ ps with sp little with big % with k ! with m * with j ;) There's got to be a regular expression in there somewhere.

Re: [PHP] Hire a developer

2004-08-29 Thread Manoj Nahar
great stuff john On Sun, 29 Aug 2004 11:52:16 -0700, Ed Lazor <[EMAIL PROTECTED]> wrote: > > -Original Message- > > joshua wrote: > > > > > If you wish to have more > > > information on this project, please contact me off-list: > > > joshua$abbott[at]crystalstream[dot]net > > > > > > repla

RE: [PHP] Hire a developer

2004-08-29 Thread Ed Lazor
> -Original Message- > joshua wrote: > > > If you wish to have more > > information on this project, please contact me off-list: > > joshua$abbott[at]crystalstream[dot]net > > > > replacing: > > $ with . > > [at] with @ > > [dot] with . > > I am interested. Can you please contact me at >

Re: [PHP] Hire a developer

2004-08-29 Thread John Nichel
John Holmes wrote: I am interested. Can you please contact me at *&hn[foo]h&l!$s(_2_)littler$dpsar%[foo]c&! replacing: $ with e & with o [foo] with . (_2_) with @ ps with sp little with big % with k ! with m * with j ;) There's got to be a regular expression in there somewhere. ;) -- By-Tor.com It

Re: [PHP] mysql_close() and mysql_free_result() don't seem to work in PHP 4.3.4 or 5.0.1. A bug?

2004-08-29 Thread William
If you read the code I posted, you'd see that I am sending valid resources. :) As I explained, I lifted the technique directly from the PHP documentation. Now, if you can see a bug in my implementation of this technique, by all means, please point it out. -- -- William Kimball, Jr. "Progra

Re: [PHP] Object Overloading in PHP5

2004-08-29 Thread Daniel Schierbeck
Frzzman wrote: Daniel Schierbeck wrote: Stefan wrote: It's a bug. * Siehe http://bugs.php.net/bug.php?id=28444 ... und ... * http://news.php.net/php.bugs/63652 A workaround is possible using __call( $name, $args) { return( $this->__get( $name)); }. But it sucks, since constructs us

Re: [PHP] Hire a developer

2004-08-29 Thread John Holmes
joshua wrote: If you wish to have more information on this project, please contact me off-list: joshua$abbott[at]crystalstream[dot]net replacing: $ with . [at] with @ [dot] with . I am interested. Can you please contact me at *&hn[foo]h&l!$s(_2_)littler$dpsar%[foo]c&! replacing: $ with e & with o [

RE: [PHP] 5.0.1 broke mbstring regex?

2004-08-29 Thread Ed Lazor
> I feel it may actually be a PHP error with mbstring regex in the > newest PHP 5.0.1 - but won't know until another PHP user on another > platform gives it a try. Have you checked OS library dependencies? -Ed -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.p

Re: [PHP] 5.0.1 broke mbstring regex?

2004-08-29 Thread Gerard Samuel
Miles Keaton wrote: Miles Keaton wrote: I just upgraded PHP from 5.0 to 5.0.1 on a FreeBSD box. But unfortunately it seemed to break the regex features of mbstring At startup and every time I try to run PHP I get this: PHP Warning: PHP Startup: Unable to load dynamic library '/usr/local/lib/php/20

Re: [PHP] mysql_close() and mysql_free_result() don't seem to work in PHP 4.3.4 or 5.0.1. A bug?

2004-08-29 Thread John Nichel
William wrote: I can accept that as a workaround, but I was hoping to do more than merely mute the warnings. Is there a way to truly use the connection and result set handles? Can PHP truly utilize it's own connection resource handles in code? Bottom Line: This is going to make a real mess whe

Re: [PHP] mysql_close() and mysql_free_result() don't seem to work in PHP 4.3.4 or 5.0.1. A bug?

2004-08-29 Thread William
I can accept that as a workaround, but I was hoping to do more than merely mute the warnings. Is there a way to truly use the connection and result set handles? Can PHP truly utilize it's own connection resource handles in code? Bottom Line: This is going to make a real mess when multiple dat

[PHP] Mime type and PECL::Fileinfo.

2004-08-29 Thread Dave Restall - System Administrator,,,
Hi, PHP 4.3.8, Apache 1.3.31, Debian/GNU Linux Is anybody using PECL extensions ? I want to let people upload data to a site I'm building and want to avoid using mime_content_type because from the manual :- "This extension has been deprecated as the PECL extension fileinfo provides the same fun

[PHP] Hire a developer

2004-08-29 Thread [EMAIL PROTECTED]
Hello, I'm needing to hire a developer to finish up some cart work that a previous developer started. If you wish to have more information on this project, please contact me off-list: joshua$abbott[at]crystalstream[dot]net replacing: $ with . [at] with @ [dot] with . Thanks Josh -- PHP General

Re: [PHP] Why won't my echo won't work? [newbie question]

2004-08-29 Thread Andre Dubuc
Try using braces around $_POST or any superglobal you use: print_r($_POST); print "{$_SERVER['REQUEST_METHOD']}"; print "{$_POST['username']}"; Works for me. Hth, Andre On Sunday 29 August 2004 01:13 pm, John Nichel wrote: > FrzzMan wrote: > > John Nichel wrote: > >> [EMAIL PROTECTED] wrote: > >

Re: [PHP] mysql_close() and mysql_free_result() don't seem to work in PHP 4.3.4 or 5.0.1. A bug?

2004-08-29 Thread John Nichel
William wrote: Since posting the original copy of this message -- which, in 10 hours, never appeared on this newsgroup -- I upgraded from PHP version 4.3.4 to 5.0.1. Unfortunately, the same exact problem persists. I'm starting to believe this is a bug in PHP's MySQL memory management functions.

[PHP] mysql_close() and mysql_free_result() don't seem to work in PHP 4.3.4 or 5.0.1. A bug?

2004-08-29 Thread William
Since posting the original copy of this message -- which, in 10 hours, never appeared on this newsgroup -- I upgraded from PHP version 4.3.4 to 5.0.1. Unfortunately, the same exact problem persists. I'm starting to believe this is a bug in PHP's MySQL memory management functions. Original Post

Re: [PHP] 5.0.1 broke mbstring regex?

2004-08-29 Thread Miles Keaton
> Miles Keaton wrote: > > I just upgraded PHP from 5.0 to 5.0.1 on a FreeBSD box. > > > > But unfortunately it seemed to break the regex features of mbstring > > > > At startup and every time I try to run PHP I get this: > > > > PHP Warning: PHP Startup: Unable to load dynamic library > > '/usr/lo

Re: [PHP] Why won't my echo won't work? [newbie question]

2004-08-29 Thread John Nichel
FrzzMan wrote: John Nichel wrote: [EMAIL PROTECTED] wrote: The first two of these 3 echo statements work. But my last echo doesn't. 'username' is the name of the element I want to echo. To the right of each is what I see echoed. echo $_SERVER['REQUEST_METHOD']; echos -> POST echo $_POST;

Re: [PHP] Dynamic HTML Creation

2004-08-29 Thread FrzzMan
Sam Hobbs wrote: "Ramil Sagum" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] Ah. You should have said this in your first mail (which was confusing). It now becomes clear. I think what you are looking for is a template engine, like smarty http://smarty.php.net/ If Smarty is a good sol

Re: [PHP] Why won't my echo won't work? [newbie question]

2004-08-29 Thread FrzzMan
John Nichel wrote: [EMAIL PROTECTED] wrote: The first two of these 3 echo statements work. But my last echo doesn't. 'username' is the name of the element I want to echo. To the right of each is what I see echoed. echo $_SERVER['REQUEST_METHOD']; echos -> POST echo $_POST;

Re: [PHP] Object Overloading in PHP5

2004-08-29 Thread FrzzMan
Daniel Schierbeck wrote: Stefan wrote: It's a bug. * Siehe http://bugs.php.net/bug.php?id=28444 ... und ... * http://news.php.net/php.bugs/63652 A workaround is possible using __call( $name, $args) { return( $this->__get( $name)); }. But it sucks, since constructs using array indi

Re: [PHP] Simultaneus execution

2004-08-29 Thread Andrew
That was exactly what I thought, but I was thinking of some internal method, that would do the same thing as socket_set_noblock() for the process of execution. "Marek Kilimajer" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Andrew wrote: > > Now look - I want to make a test/debug e

Re: [PHP] print a element of a column

2004-08-29 Thread John Nichel
devil_online wrote: Hi, I want to print each element of a column of a mysql database. For exemple to print the first element could we do like this: Code: $result = mysql_query( "SELECT username FROM users" ); $column = mysql_fetch_array($result); print $column[1]; prin

Re: [PHP] Loading a html file using DOM XML

2004-08-29 Thread Sam Hobbs
Look at: http://simplesamples.info/Tests/PHPinfo.php That is not my local system but it is the information for the server that I will need to implement on. If anyone can give a hint of what I need to ask for to get DOM enabled there, then that will help. Or should I ask them to install PHP 5? --

[PHP] print a element of a column

2004-08-29 Thread devil_online
Hi, I want to print each element of a column of a mysql database. For exemple to print the first element could we do like this: Code: $result = mysql_query( "SELECT username FROM users" ); $column = mysql_fetch_array($result); print $column[1]; print $column[3]; Th

Re: [PHP] strcasecmp()

2004-08-29 Thread John Holmes
Anthony Ritter wrote: if(strcasecmp($first_name,$second_name)) { echo "words are equal"; } else { echo "words are not equal."; } ?> if(strcasecmp($first_name,$second_name)===0) { echo 'words are equal'; } else { echo 'words are not equal'; } -- ---John Holmes... Amazon Wishlist: www.amazon.com/o

Re: [PHP] Loading a html file using DOM XML

2004-08-29 Thread Sam Hobbs
Perhaps it will be easier if I just install PHP 5. If I do, then I will need to also get the hsoting company that hosts my site to install it. Hopefully that won't be a problem. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] strcasecmp()

2004-08-29 Thread Anthony Ritter
.. In strcasecmp() - this comparison will return 0 - interpreted by PHP as FALSE - eventhough words are _equal_ so what will execute is "words are not equal". whereas if the negation symbol of ! is inserted as in: ... ... to read if the comparsion which is returned is n

Re: [PHP] Simultaneus execution

2004-08-29 Thread Marek Kilimajer
Andrew wrote: Now look - I want to make a test/debug engine, that will optimize the performance of each machine I make tests on - my idea is to run as many similar processes as possible in the tasklist of the OS. That would be the same as creating multiple child processes of a single script. The re

Re: Re[2]: [PHP] Simultaneus execution

2004-08-29 Thread Andrew
Now look - I want to make a test/debug engine, that will optimize the performance of each machine I make tests on - my idea is to run as many similar processes as possible in the tasklist of the OS. That would be the same as creating multiple child processes of a single script. The results will be

Re: [PHP] Loading a html file using DOM XML

2004-08-29 Thread Sam Hobbs
Under domxml phpinfo shows the libxml Version as 20510 and it says that HTML Support is enabled. Is that what you mean? When I say: $Document = DOMDocument::loadHTMLFile("DynamicTable.html"); print $Document->saveHTML(); It says: Fatal error: Call to undefined function: loadhtmlfile

Re: [PHP] Loading a html file using DOM XML

2004-08-29 Thread Christian Stocker
On Sun, 29 Aug 2004 06:23:53 -0700, Sam Hobbs <[EMAIL PROTECTED]> wrote: > Correction: the documentation is quite clear in saying that the "DOM > extension is the replacement for the DOM XML extension". So that is further > indication that I should use DOM not DOM XML. the domxml extension is for

Re: [PHP] Loading a html file using DOM XML

2004-08-29 Thread Sam Hobbs
Correction: the documentation is quite clear in saying that the "DOM extension is the replacement for the DOM XML extension". So that is further indication that I should use DOM not DOM XML. "Sam Hobbs" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > DOMDocument->loadHTMLFile is wha

Re: [PHP] Loading a html file using DOM XML

2004-08-29 Thread Sam Hobbs
DOMDocument->loadHTMLFile is what I was using when I was unable to get the domxml enabled. The documentation is confusing; I don't know if the DOM in PHP (which includes DOMDocument->loadHTMLFile) will replace the XML DOM, or if the XML DOM will repalce the DOM or if they are two different things a

Re: [PHP] Loading a html file using DOM XML

2004-08-29 Thread Christian Stocker
DOMXML can basically only load well-formed XML documents and does this quite well. If it doesn't work, you are doing something wrong or your XML/HTML document is not wellformed. It's that simple.. And yes, FrontPage, doesn't produce well-formed code ;) But... There is a solution, which maybe helps

Re: [PHP] Loading a html file using DOM XML

2004-08-29 Thread Sam Hobbs
I don't want a XML document! I need a HTML document. Are you sure that that is the only possible explanation? I think not, and if not, then it is not accurate to say that that is the obvious answer. I did try changing the extension from "html" to "XML" and loading that directly into IE. I did get

Re: [PHP] Loading a html file using DOM XML

2004-08-29 Thread Christian Stocker
It's obviously not a well-formed XML Document... chregu On Sun, 29 Aug 2004 05:11:19 -0700, Sam Hobbs <[EMAIL PROTECTED]> wrote: > Is it possible to load a HTML file using DOM XML? > > I tried loading a HTML file using: > > $Document = domxml_open_file("DynamicTable.html"); > if (!$Docu

[PHP] Loading a html file using DOM XML

2004-08-29 Thread Sam Hobbs
Is it possible to load a HTML file using DOM XML? I tried loading a HTML file using: $Document = domxml_open_file("DynamicTable.html"); if (!$Document) { echo "Error loading the document\n"; exit; } Yet that does not work; I get the error. -- PHP General Mailing

[PHP] Re: Loading php_domxml.dll

2004-08-29 Thread Sam Hobbs
After doing a lot of searching and trying many things, I finally got it working; at least to the extent that the extension is loaded. I am not sure what all I did that is necessary, but the one thing that seems to have been necessary is to copy iconv.dll to my Windows\Systme32 directory. I hesitat

Re[2]: [PHP] Simultaneus execution

2004-08-29 Thread Eugene
Maybe you can use classes in this case? I'm using them when I need to process the same object or to assign some simultaneous actions to many objects at the same time. Sunday, August 29, 2004, 6:40:42 AM, you wrote: > An example would be the execution of a function. Let's say that I can't > execut

Re: [PHP] Passing variable on include

2004-08-29 Thread Xongoo!com: Central unit
Duh, really, and just read on varianle scopes on php.net. Gotta to sleep for some time :) -- Tadas Talaikis [EMAIL PROTECTED] http://www.xongoo.com - Original Message - From: "Marek Kilimajer" <[EMAIL PROTECTED]> To: "Xongoo!com: Central unit" <[EMAIL PROTECTED]> Cc: <[EMAIL PROTECTED]> Se

Re: [PHP] Simultaneus execution

2004-08-29 Thread Andrew
An example would be the execution of a function. Let's say that I can't execute one same function twice, but how can I execute it again, before the first execution has completed? Regards, Andrew "Jason Wong" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > On Sunday 29 August 2004 09

[PHP] Re: List of cities

2004-08-29 Thread Lester Caine
Torsten Roehr wrote: Does anyone know of a site that or resource available where I could pull a list of ALL UK cities and towns for an option list...? I started out with 100+, then expanded this list to over 200 but still get complaints that certain towns are not listed. Ask the UK postal service (

[PHP] Re: List of cities

2004-08-29 Thread Torsten Roehr
"Harlequin" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Morning... > > Does anyone know of a site that or resource available where I could pull a > list of ALL UK cities and towns for an option list...? > > I started out with 100+, then expanded this list to over 200 but still get

[PHP] Re: List of cities

2004-08-29 Thread Lester Caine
Harlequin wrote: Does anyone know of a site that or resource available where I could pull a list of ALL UK cities and towns for an option list...? I started out with 100+, then expanded this list to over 200 but still get complaints that certain towns are not listed. I have a fairly complete Postco

[PHP] Re: Download installer not found [***SPAM***] **SPAM USA 64.246.30.37 BODY**

2004-08-29 Thread Lester Caine
Devx wrote: I click PHP 5.0.1 installer link download at http://www.php.net/get/php-5.0.1-installer.exe/from/a/mirror . But i see download not found. Download not found This mirror site is improperly setup, and thus has no copy of t

Re: [PHP] Passing variable on include

2004-08-29 Thread Marek Kilimajer
Xongoo!com: Central unit wrote: Hi, I have to pass variable on include include("includes/include.php"); include("includes/include.php?name=$name"); wouldn't work. How do I do that? Cokies are not an option, btw. Code in includes/include.php is executed in the scope of the including file, so all va

[PHP] List of cities

2004-08-29 Thread Harlequin
Morning... Does anyone know of a site that or resource available where I could pull a list of ALL UK cities and towns for an option list...? I started out with 100+, then expanded this list to over 200 but still get complaints that certain towns are not listed. -- -

[PHP] Passing variable on include

2004-08-29 Thread Xongoo!com: Central unit
Hi, I have to pass variable on include include("includes/include.php"); include("includes/include.php?name=$name"); wouldn't work. How do I do that? Cokies are not an option, btw. -- Tadas Talaikis [EMAIL PROTECTED] http://www.xongoo.com -- PHP General Mailing List (http://www.php.net/) To un