Re: [PHP] PHP/MySQL fatal error

2004-08-28 Thread Jason Wong
On Saturday 28 August 2004 09:43, gc wrote: Hi all, I'm Gene Candelaria and I'm a PHP and MySQL newbie. You have started a new thread by taking an existing posting and replying to it while you changed the subject. That is bad, because it breaks threading. Whenever you reply to a message, your

[PHP] Dynamic HTML Creation

2004-08-28 Thread Sam Hobbs
Is it possible to use the DOM to add (HTML) elements to a page at the time the page is being shown? The HTML and VBScript shown below is a simplified version of what I need to do but of course I need to do it in PHP. Since PHP is server-side (right?) perhaps it is not possible. HTML HEAD

Re: [PHP] Dynamic HTML Creation

2004-08-28 Thread Justin Patrin
On Fri, 27 Aug 2004 23:17:29 -0700, Sam Hobbs [EMAIL PROTECTED] wrote: Is it possible to use the DOM to add (HTML) elements to a page at the time the page is being shown? The HTML and VBScript shown below is a simplified version of what I need to do but of course I need to do it in PHP. Since

Re: [PHP] Dynamic HTML Creation

2004-08-28 Thread Ramil Sagum
On Fri, 27 Aug 2004 23:17:29 -0700, Sam Hobbs [EMAIL PROTECTED] wrote: Is it possible to use the DOM to add (HTML) elements to a page at the time the page is being shown? The HTML and VBScript shown below is a simplified version of what I need to do but of course I need to do it in PHP. Since

Re: [PHP] Dynamic HTML Creation

2004-08-28 Thread Jason Davidson
its possible to add HTML elements with DOM, im not sure what it has to do with php though? Jason Sam Hobbs [EMAIL PROTECTED] wrote: Is it possible to use the DOM to add (HTML) elements to a page at the time the page is being shown? The HTML and VBScript shown below is a simplified version

Re: [PHP] backslashes

2004-08-28 Thread Thomas Goyne
On Fri, 27 Aug 2004 18:29:50 -0400, Ryan Schefke [EMAIL PROTECTED] wrote: Thomas, I'm not sure what your point is. Please expand. Ryan Do you really see nothing wrong with announcing to all users that they can run arbitrary SQL with your script? well, the where clause in mysql is relativly

[PHP] Open a stream to the shell..

2004-08-28 Thread Joel Kitching
Hello, is it possible to open a stream in which I can write commands and read output from them to a shell like bash? I want to do this because this program can not be completed with just a `backtick` or shell_exec() command, as it's somewhat user-interactive. As an example, let's say I want to

Re: [PHP] Problem with sessions

2004-08-28 Thread gregosh
Yes, that indeed was a typo but only in my message above. It's not the problem with the script Uzytkownik Andre Dubuc [EMAIL PROTECTED] napisal w wiadomosci news:[EMAIL PROTECTED] Hi, Looking at your code, I noticed that either you're missing the closing double quote to close off the Location

[PHP] Variable variables

2004-08-28 Thread JanBro
Hi List, I'm using PHP5 with global variables off. I've got around 20 dynamically generated forms with a total of 300 different variables sent thru these forms. I'd like to use variable variables, but according to the manual this is not possible. Now comes my Questoin, how do I receive my

Re: [PHP] Variable variables

2004-08-28 Thread Marek Kilimajer
JanBro wrote: Hi List, I'm using PHP5 with global variables off. I've got around 20 dynamically generated forms with a total of 300 different variables sent thru these forms. I'd like to use variable variables, but according to the manual this is not possible. Now comes my Questoin, how do I

Re: [PHP] Running system command or exec as differnet Users

2004-08-28 Thread Marek Kilimajer
Paul Danko wrote: Is it possible to run a command on the system using the system() or exec() commands run as a specific user if I have the username and password? i.e. [EMAIL PROTECTED]su userNo1 [EMAIL PROTECTED]/home/server/executeScript all in a php system() or exec() call..

[PHP] mail filtering ... procmail + php query

2004-08-28 Thread vivek athalye
hi, after looking at the imap functions...i was wondering how the mail filtering works... afaik procmail does that...but is there any std way / php functions to set the filters? i know the filtering depends on mail server...but if we assume that it is done using procmail... is it somehow

[PHP] Sessions NOT working - somebody please help me!

2004-08-28 Thread gregosh
Sorry for posting this problem again but it's been really driving me crazy. I've reinstalled Apache and PHP for the 5th time and the result is still the same - sessions work only when using a href=b.phpclick/a link. When using header(location: b.php); the session information is lost and a new

Re: [PHP] Sessions NOT working - somebody please help me!

2004-08-28 Thread Jason Wong
On Saturday 28 August 2004 18:52, gregosh wrote: Sorry for posting this problem again but it's been really driving me crazy. I've reinstalled Apache and PHP for the 5th time and the result is still the same - sessions work only when using a href=b.phpclick/a link. When using header(location:

Re: [PHP] Sessions NOT working - somebody please help me!

2004-08-28 Thread gregosh
U¿ytkownik Jason Wong [EMAIL PROTECTED] napisa³ w wiadomo¶ci news:[EMAIL PROTECTED] On Saturday 28 August 2004 18:52, gregosh wrote: Sorry for posting this problem again but it's been really driving me crazy. I've reinstalled Apache and PHP for the 5th time and the result is still the same

Re: [PHP] mail filtering ... procmail + php query

2004-08-28 Thread Jason Wong
On Saturday 28 August 2004 18:36, vivek athalye wrote: after looking at the imap functions...i was wondering how the mail filtering works... afaik procmail does that... If by filtering you mean imap_search() then that works in a completely different way to procmail. but is there any std way

[PHP] Re: Open a stream to the shell..

2004-08-28 Thread M. Sokolewicz
As of PHP 4.3.0 you can use the proc_* functions (proc_open proc_close in PHP 4.3.0+ and proc_get_status, proc_nice and proc_terminate as of PHP 5). If you don't have access to that, you can use the following: use shell_exec to create a process, and make it send all output to some temporary

[PHP] Bouncer Test

2004-08-28 Thread Aidan Lister
Hello, Another test to ensure we don't have any automatic replies or bouncing addresses. Please don't reply, or you will be removed. Thanks -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Object Overloading in PHP5

2004-08-28 Thread Daniel Schierbeck
Do you guys have any idea why this code: ?php class Foo { private $elem = array(); public function __get ($prop) { if (isset($this-elem[$prop])) { return

[PHP] Re: Variable variables

2004-08-28 Thread M. Sokolewicz
Janbro wrote: Hi List, I'm using PHP5 with global variables off. I've got around 20 dynamically generated forms with a total of 300 different variables sent thru these forms. I'd like to use variable variables, but according to the manual this is not possible. Now comes my Questoin, how do I

Re: [PHP] Dynamic Function with return?

2004-08-28 Thread Michal Migurski
This code works. It calls the function and receives the appropriate return value. But, is there a better way of doing this? It seems a bit round-a-bout. Two options, details in the manual: call_user_func() or create_function().

Re: [PHP] Object Overloading in PHP5

2004-08-28 Thread Stefan
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 indices are impossible as

Re: [PHP] Object Overloading in PHP5

2004-08-28 Thread Daniel Schierbeck
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 indices are impossible as

Re: [PHP] PHP Oficial Certification

2004-08-28 Thread Chris Shiflett
--- Yann Larrivee [EMAIL PROTECTED] wrote: I personally dont beleive in this. It is juste another way to make money ;) Every body in the indeustry should know that. Disclaimer: I assisted in the creation of the Zend PHP Certification. You're right - this is another way to make money. However,

Re: [PHP] PHP Oficial Certification

2004-08-28 Thread Chris Shiflett
--- Yann Larrivee [EMAIL PROTECTED] wrote: Sorry another reply, there use to be the .geek php certification that was annonced on php.net then was removed right off like 2 days after) Was it cause of some pressure of a companie and group of people? You tell me. OK, I will. No. It was not

Re: [PHP] PHP Oficial Certification

2004-08-28 Thread Chris Shiflett
--- John Nichel [EMAIL PROTECTED] wrote: Know what helps me get php jobs? A resume that details almost 6 years of php programming. Disclaimer: I assisted in the creation of the Zend PHP Certification. This is a very good point. However, and I'm speaking from experience, how do you verify

Re: [PHP] PHP Oficial Certification

2004-08-28 Thread Chris Shiflett
--- Curt Zirzow [EMAIL PROTECTED] wrote: OSS doesn't make a person better programmer, you can easily write an OSS app and still lack any knowledge of proper writting. As a PHP security advocate for the last few years, I can tell you that Curt is absolutely correct. In fact, poor open source

RE: [PHP] PHP Oficial Certification

2004-08-28 Thread Chris Shiflett
--- Dan Joseph [EMAIL PROTECTED] wrote: Its good that there's a PHP Cert, PHP/Zend should endorse one. http://www.zend.com/store/education/certification/zend-php-certification.php Chris = Chris Shiflett - http://shiflett.org/ PHP Security - O'Reilly Coming Fall 2004 HTTP Developer's

Re: [PHP] PHP Oficial Certification

2004-08-28 Thread Chris Shiflett
--- John Nichel [EMAIL PROTECTED] wrote: I'm not big on certs myself. How many MCSE's have we seen who can't find the power switch? ;) This was a big concern for me when working with Zend on their certification. Especially in the open source communities, certifications are not considered to

Re: [PHP] PHP Oficial Certification

2004-08-28 Thread John Nichel
Chris Shiflett wrote: --- John Nichel [EMAIL PROTECTED] wrote: I'm not big on certs myself. How many MCSE's have we seen who can't find the power switch? ;) This was a big concern for me when working with Zend on their certification. Especially in the open source communities, certifications are

Re: [PHP] PHP Oficial Certification

2004-08-28 Thread Yann Larrivee
Well i think in a way that getting programmers certified is one thing. I also think that there might be a need for software certification. Where it would validate that the standars have been fallowed, check the quality of the code, check for security, check for proper docummentation (comments,

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

2004-08-28 Thread Bestman4unowwa
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; echos - Array echo $_POST['username'];

RE: [PHP] PHP/MySQL fatal error

2004-08-28 Thread gc
Please accept my appologies, it won't happen again. I didn't realize. I must have missed this in the welcome message. gene -Original Message- From: Jason Wong [mailto:[EMAIL PROTECTED] Sent: Friday, August 27, 2004 11:00 PM To: [EMAIL PROTECTED] Subject: Re: [PHP] PHP/MySQL fatal error

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

2004-08-28 Thread John Nichel
[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; echos - Array echo

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

2004-08-28 Thread Bestman4unowwa
John, Thanks for the reply. It is done in software called ToolBook, runs in windows. The toolbook translates to dhtml and then is executed froma browser. The command in toolbook for the data is: Set HTTP POST parameter username to ahttptest I don't expect anyone to know ToolBook, but

Re: [PHP] PHP Oficial Certification

2004-08-28 Thread Chris Shiflett
--- John Nichel [EMAIL PROTECTED] wrote: I understand where you're coming from, and I'm sure with your involvement in the project it will be top notch. I've always been impressed with your work, and am eagerly awaiting your O'Reilly book. ;) Thanks for the compliments. :-) I'm behind

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

2004-08-28 Thread John Nichel
[EMAIL PROTECTED] wrote: John, Thanks for the reply. It is done in software called ToolBook, runs in windows. The toolbook translates to dhtml and then is executed froma browser. The command in toolbook for the data is: Set HTTP POST parameter username to ahttptest I don't expect anyone to know

Re: [PHP] PHP Oficial Certification

2004-08-28 Thread John Nichel
Chris Shiflett wrote: --- John Nichel [EMAIL PROTECTED] wrote: I understand where you're coming from, and I'm sure with your involvement in the project it will be top notch. I've always been impressed with your work, and am eagerly awaiting your O'Reilly book. ;) Thanks for the compliments.

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

2004-08-28 Thread Bestman4unowwa
Thanks, I'll give it a try. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

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

2004-08-28 Thread Bestman4unowwa
John, Thanks for your help. I got it all to work. In my toolbook set parameter stmt I needed to put quotes around username - username. No where is this documented in ToolBook. Thnaks for your help! Dennis -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

Re: [PHP] Variable variables

2004-08-28 Thread Justin Patrin
On Sat, 28 Aug 2004 11:43:13 +0200, JanBro [EMAIL PROTECTED] wrote: Hi List, I'm using PHP5 with global variables off. I've got around 20 dynamically generated forms with a total of 300 different variables sent thru these forms. I'd like to use variable variables, but according to the

Re: [PHP] Dynamic HTML Creation

2004-08-28 Thread Sam Hobbs
Justin Patrin [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] On Fri, 27 Aug 2004 23:17:29 -0700, Sam Hobbs [EMAIL PROTECTED] wrote: Is it possible to use the DOM to add (HTML) elements to a page at the time the page is being shown? The HTML and VBScript shown below is a simplified

Re: [PHP] Dynamic HTML Creation

2004-08-28 Thread Sam Hobbs
Ramil Sagum [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Yes, it is possible. And you are right, PHP is a server side language. In addition to PHP, use a client-side scripting language (like JavaScript). JavaScript also has functions for accessing the DOM (createElement and

[PHP] html tabs

2004-08-28 Thread Michael Gale
Hello I was working on a web site that will be using TABS, the page will have three TABS. All the data will be dynamic on all the pages, the first tab will be a search page. After submit is hit the page will be reloaded to display the results. Each result will be a link to detailed

Re: [PHP] Dynamic HTML Creation

2004-08-28 Thread Sam Hobbs
Read the original question again; it is quite clear about the relevance to PHP. Jason Davidson [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] its possible to add HTML elements with DOM, im not sure what it has to do with php though? -- PHP General Mailing List

Re: [PHP] Dynamic HTML Creation

2004-08-28 Thread Jason Davidson
I suppose it was too much to ask for some clearification. I hope someone else helps you. Good luck, by they way, the difference between VBScript and Javascript is monumental when using Gecko based browsers. Jason Sam Hobbs [EMAIL PROTECTED] wrote: Read the original question again; it is

Re: [PHP] html tabs

2004-08-28 Thread Brent Clements
One suggestion that I have is to use curl to get the web page that you want, put that into a buffer variable and then when you click on the link to the second page, you would then output the variable to the page. -Brent - Original Message - From: Michael Gale [EMAIL PROTECTED] To:

[PHP] Newbie. Posting to backend MySQL database

2004-08-28 Thread Aidan
Please help, I'm tearing what remains of my hair out here. I've got a MySQL database where I've defined one of the table fields as an integer. Using PSP I've passed a session variable and can echo it to the screen using ?php echo intval($clin_id) ?. So the session variable exists and can be

[PHP] Re: Newbie. Posting to backend MySQL database

2004-08-28 Thread M. Sokolewicz
Aidan wrote: Please help, I'm tearing what remains of my hair out here. I've got a MySQL database where I've defined one of the table fields as an integer. Using PSP I've passed a session variable and can echo it to the screen using ?php echo intval($clin_id) ?. So the session variable exists and

Re: [PHP] Re: Newbie. Posting to backend MySQL database

2004-08-28 Thread Jason Davidson
If you just need to put it in the database, you dont need a form to do that.. just open a connection to your db, and query it in. read about mysql functions in the php manual.. specifically mysql_connect, mysql_select_db and mysql_query , i beleive there is a functional example of all you need

[PHP] UPdated chm and extended chm docs?

2004-08-28 Thread CSN
When are the chm (last updated Apr. 18, 2004) and extended chm (last updated Sep. 6, 2003) docs likely to be updated? CSN __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com -- PHP General

[PHP] SOAP speed

2004-08-28 Thread FrzzMan
Hello, I'm developing some site that will share the same UserDB, because these site are quite large in scale so I decided to host it on different servers. Each site will have it own cache of active user on the site, so the user wont' have to be authenticated every request (will be a pain in the

Re: [PHP] SOAP speed

2004-08-28 Thread Brent Clements
This isn't really answer to your question, but to possibly simplify your authentication mechanism, you ought to take a look at the pear package Liveuser which allows you to have somewhat of a distributed authentication architecture. Check out http://pear.php.net/package/LiveUser -Brent -

RE: [PHP] PHP Oficial Certification

2004-08-28 Thread Ed Lazor
-Original Message- Of course, we tried very hard to make this one have a fair amount of value but not just be difficult for the sake of being difficult. Why not offer multiple PHP certifications varied by topic and complexity? Will certs expire? =) -- PHP General Mailing List

RE: [PHP] PHP Oficial Certification

2004-08-28 Thread Ed Lazor
Well i think in a way that getting programmers certified is one thing. I also think that there might be a need for software certification. Where it would validate that the standars have been fallowed, check the quality of the code, check for security, check for proper docummentation

[PHP] Fatal error: Call to undefined function

2004-08-28 Thread gc
Let me try this again, I'm Gene Candelaria and I'm a PHP and MySQL newbie. I have a feeling a lot of you may have seen this before. I'm teaching myself PHP/MySQL and trying to setup a guestbook. I'm running latest versions of Apache, PHP and MySql on WIN 2000. PHP is installed from the zip file.

[PHP] php and SMS

2004-08-28 Thread grahama
I want to send SMS Text messages to cell phones from my server app I would also like cell phones to be able to send text messages back to my app how does one go about doing this ? Can I do a 'get' or a 'post' to some kind of sms gateway url ? does anyone know what the costs are for something

Re: [PHP] Fatal error: Call to undefined function

2004-08-28 Thread Justin Patrin
On Sat, 28 Aug 2004 16:57:27 -0700, gc [EMAIL PROTECTED] wrote: Let me try this again, I'm Gene Candelaria and I'm a PHP and MySQL newbie. I have a feeling a lot of you may have seen this before. I'm teaching myself PHP/MySQL and trying to setup a guestbook. I'm running latest versions of

Re: [PHP] php and SMS

2004-08-28 Thread Chris Shiflett
--- [EMAIL PROTECTED] wrote: I want to send SMS Text messages to cell phones from my server app I would also like cell phones to be able to send text messages back to my app how does one go about doing this? This was done recently for Midnight Madness. The information given by the

Re: [PHP] php and SMS

2004-08-28 Thread raditha dissanayake
[EMAIL PROTECTED] wrote: I want to send SMS Text messages to cell phones from my server app I would also like cell phones to be able to send text messages back to my app how does one go about doing this ? Can I do a 'get' or a 'post' to some kind of sms gateway url ? Goto kannel.org and

[PHP] Simultaneus execution

2004-08-28 Thread Andrew
Hello guys, Do anyone have an idea how to execute 2 different functions in the same moment, no matter if they're system or custom ones. For example, how can I execute 2 different loops simultaneously? -- Regards, Andrew [EMAIL PROTECTED] -- PHP

Re: [PHP] Fatal error: Call to undefined function

2004-08-28 Thread John Nichel
gc wrote: snip-a-roo It's been awhile since I've done php on Windows, but I think you have to uncomment the mysql dll in the php.ini file (make sure you're editing the right one as per phpinfo), and restart your web server. -- By-Tor.com It's all about the Rush http://www.by-tor.com -- PHP

RE: [PHP] Fatal error: Call to undefined function

2004-08-28 Thread gc
Thanks, John. I have the line uncommented, am editing php.ini in my winnt directory and have restarted the server. No magic, yet. Thanks again. g -Original Message- From: John Nichel gc wrote: snip-a-roo It's been awhile since I've done php on Windows, but I think you have to

[PHP] Loading php_domxml.dll

2004-08-28 Thread Sam Hobbs
I am using PHP 4.3.4 with Windows XP and Apache 2. I can't get php_domxml.dll loaded. I have searched for answers and tried many things. The file: S:\Software\php-4.3.4-Win32\extensions\php_domxml.dll exists. In my php.ini, I have tried setting extension_dir to many values, including:

RE: [PHP] Fatal error: Call to undefined function

2004-08-28 Thread Philip Olson
It's been awhile since I've done php on Windows, but I think you have to uncomment the mysql dll in the php.ini file (make sure you're editing the right one as per phpinfo), and restart your web server. Thanks, John. I have the line uncommented, am editing php.ini in my winnt

Re: [PHP] Simultaneus execution

2004-08-28 Thread Jason Wong
On Sunday 29 August 2004 09:56, Andrew wrote: Do anyone have an idea how to execute 2 different functions in the same moment, no matter if they're system or custom ones. For example, how can I execute 2 different loops simultaneously? I'm curious at what you're trying to achieve. Could you

RE: [PHP] Fatal error: Call to undefined function

2004-08-28 Thread gc
Thanks for the help, Phollip. Yes, I did read and follow the instructions in the manual and the faq. I did edit my path and restarted my system. Same result. g -Original Message- From: Philip Olson [mailto:[EMAIL PROTECTED] Sent: Saturday, August 28, 2004 7:11 PM To: gc Cc: [EMAIL

Re: [PHP] Dynamic HTML Creation

2004-08-28 Thread Ramil Sagum
On Sat, 28 Aug 2004 12:30:48 -0700, Sam Hobbs [EMAIL PROTECTED] wrote: This is for osCommerce, which is a shopping cart system written in PHP. Many of it's pages (the HTML) are not modifiable directly using a WYSIWYG editor, which make the content difficult to modify, especially for

[PHP] 5.0.1 broke mbstring regex?

2004-08-28 Thread 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/20040412/mbstring.so' -

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

2004-08-28 Thread DevX
Hi, I click PHP 5.0.1 installer http://www.php.net/get/php-5.0.1-installer.exe/from/a/mirror 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 the

Re: [PHP] Dynamic HTML Creation

2004-08-28 Thread Sam Hobbs
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 solution that