[PHP] Help With PEAR::DB Connection

2004-09-11 Thread php-list
Hello everyone, I have a problem connecting to the Database. When I execute the code at the bottom, it gives me this message: DB Error: extension not found. It sees the DB file and the parameters are correct. I checked the include path and it was correct. Did I do something wrong? Any help would

[PHP] cURL Help - Posting a Form

2004-09-11 Thread Nick Wilson
hi all, Im trying to get the following php code to output the 'success'/'failure' page from posting a form to a site. The problem is that there is no output at all, so i must be doing somthing silly, but cant work out what! ;-) ## Code $ch = curl_init(); curl_setopt($ch, CURLOPT_URL,

Re: [PHP] Perplexing problem, suggestions or answer needed

2004-09-11 Thread Mag
--- John Holmes [EMAIL PROTECTED] wrote: Mag wrote: Hi, I will be getting input from a textarea and then I am using explode to break the text into an array when it encounters a space. eg: one two three four ninty would be broken into 5 parts of an array. ** The array

Re: [PHP] cURL Help - Posting a Form

2004-09-11 Thread Nick Wilson
* and then Nick Wilson declared hi all, Im trying to get the following php code to output the 'success'/'failure' page from posting a form to a site. The problem is H... it helps if you are submitting to the 'action' url of course sigh -- Nick W -- PHP General Mailing

Re: [PHP] Perplexing problem, suggestions or answer needed

2004-09-11 Thread Wouter van Vliet
On Sat, 11 Sep 2004 03:11:08 -0700 (PDT), Mag [EMAIL PROTECTED] wrote: --- John Holmes [EMAIL PROTECTED] wrote: Mag wrote: Hi, I will be getting input from a textarea and then I am using explode to break the text into an array when it encounters a space. eg: one

[PHP] Re: creating multiple sessions

2004-09-11 Thread Torsten Roehr
John Gostick [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Hi, I've encountered a situation where I need to have two or more SEPARATE sessions running in separate windows. The reasons are complicated, so I'll keep things simple by just explaining the problem! Unfortunately my

Re: [PHP] Help With PEAR::DB Connection

2004-09-11 Thread James Kaufman
On Sat, Sep 11, 2004 at 01:48:43AM -0500, [EMAIL PROTECTED] wrote: Hello everyone, I have a problem connecting to the Database. When I execute the code at the bottom, it gives me this message: DB Error: extension not found. It sees the DB file and the parameters are correct. I checked the

[PHP] gettext does not translate

2004-09-11 Thread Christian David
Hello! I wrote this skript, but gettext returns only the english string. I could not find a bug at bugs.php.net, so I think I forgot something. I have Debian Linux, PHP Version 4.3.4 and Gettext 0.14.1 (PHP and Gettext as debian pakages) gettext.php in /var/www/gymbay/ ?php // Set language to

Re: [PHP] create and read array

2004-09-11 Thread John Taylor-Johnston
John, The long expanation is I'm indexing 2000 records to make a list of each author, and which record I can find them in. It's a bibliography thing. I want to do this, but I don't know how to code it: $array(); $myconnection = mysql_connect($server,$user,$pass);

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

2004-09-11 Thread John Taylor-Johnston
Thanks. As a newbie, something I like to try also is making a second file with phps as the extension. Sometimes reading my code in colour helps me see things better. Sometimes I forget a semi-colon ; and will see the problem immediately. Ma Sivakumar wrote:

Re: [PHP] Perplexing problem, suggestions or answer needed

2004-09-11 Thread Mag
Hello John, The reason is I am trying to chain some programs, the idea is to take the first part (in the original example ninty, then redirect to the second script passing that value...after the second script finishes it redirects back to the first script which will pass the

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

2004-09-11 Thread Greg Donald
On Sat, 11 Sep 2004 10:41:49 -0400, John Taylor-Johnston [EMAIL PROTECTED] wrote: Thanks. As a newbie, something I like to try also is making a second file with phps as the extension. Sometimes reading my code in colour helps me see things better. Sometimes I forget a semi-colon ; and will

Re: [PHP] gettext does not translate

2004-09-11 Thread Yann Larrive
Did you restart apache after creating your mo file ? Look at the first comment on http://ca3.php.net/gettext You might be facing this issue. Yann On September 11, 2004 10:08, Christian David wrote: Hello! I wrote this skript, but gettext returns only the english string. I could not find

[PHP] Re: no-store and no-cache = no files in browsers cache ?

2004-09-11 Thread Christian David
Bart Coninckx wrote: header('Cache-Control:no-store,no-cache,must-revalidate');// HTTP/1.1 header('Cache-Control:post-check=0,pre-check=0');//damnableIE5 You overwrite the first Cache-Control command, use: header(Cache-Control: post-check=0, pre-check=0, false); Now both Cache-Control

Re: [PHP] gettext does not translate

2004-09-11 Thread Christian David
Yann Larrive wrote: Did you restart apache after creating your mo file ? You are right, thank you. But there where another mistake, too. My system doesn't like de_DE, it wants to have [EMAIL PROTECTED]. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

[PHP] Class dependencies

2004-09-11 Thread Ed Lazor
I'm creating classes that rely on the presence of other classes that I've created. Does PHP5 provide a way to specify these dependencies or a way to check these dependencies when the class is instantiated? For example, class Automobile would fail to instantiate if class Tire wasn't available. I

[PHP] Re: how to redirect ?

2004-09-11 Thread Alexander Kleshchevnikov
Hey! I think you used header() after put out some data or php installed on server as CGI. Because send header possible only if php installed as apache module. You can use custom function which use javascript for redirection. But it works if browser of client support javascript: function

[PHP] Re: how to redirect ?

2004-09-11 Thread Alexander Kleshchevnikov
Hey! I think you used header() after put out some data or php installed on server as CGI. Because send header possible only if php installed as apache module. You can use custom function which use javascript for redirection. But it works if browser of client support javascript: function

Re: [PHP] Class dependencies

2004-09-11 Thread Curt Zirzow
* Thus wrote Ed Lazor: I'm creating classes that rely on the presence of other classes that I've created. Does PHP5 provide a way to specify these dependencies or a way to check these dependencies when the class is instantiated? For example, class Automobile would fail to instantiate if

[PHP] Re: create and read array

2004-09-11 Thread Alexander Kleshchevnikov
Maybe you want this: while ($data = mysql_fetch_assoc($news)) { $sql += INSERT INTO newtable VALUES ($data['AUS'], $data['id']);\r\n; } If you nevertheless want save the data in array you can use a two-dimensional array $authors: $authors = array(); while ($data = mysql_fetch_assoc($news))

[PHP] Re: create and read array

2004-09-11 Thread M. Sokolewicz
Alexander Kleshchevnikov wrote: Maybe you want this: while ($data = mysql_fetch_assoc($news)) { $sql += INSERT INTO newtable VALUES ($data['AUS'], $data['id']);\r\n; } I seriously recommend using .= on strings instead of +=. += DOES work, that's true, but it's not INTENDED to be used on

[PHP] Enabling PHP5's SOAP on Windows

2004-09-11 Thread John Smith
How can I enable PHP5's native SOAP, without presumably compiling PHP5 from source? I don't see an extension for it in php.ini John __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com -- PHP

Re: [PHP] Re: how to redirect ?

2004-09-11 Thread Paul Waring
I think you used header() after put out some data or php installed on server as CGI. Because send header possible only if php installed as apache module. Not so - I've used header('Location: http://www.xyz.com/'); with PHP as a CGI binary under both Apache 1 and Apahce 2 without problems. Paul

Re: [PHP] Enabling PHP5's SOAP on Windows

2004-09-11 Thread Curt Zirzow
* Thus wrote John Smith: How can I enable PHP5's native SOAP, without presumably compiling PHP5 from source? I don't see an extension for it in php.ini This should work as long as php is installed properly: extension=php_soap.dll Curt -- The above comments may offend you. flame at will. --

Re: [PHP] GD Library list

2004-09-11 Thread Curt Zirzow
* Thus wrote bskolb: Does anyone know if there is a mailing list for gdlib? Can't seem to find in Google. This is there homepage: http://www.boutell.com/gd/ I dont see any list there though. Curt -- The above comments may offend you. flame at will. -- PHP General Mailing List

RE: [PHP] Class dependencies

2004-09-11 Thread Ed Lazor
-Original Message- What you can do is something like this: 1 function __autoload($class_name) { 2 static $_stack = array(); 3 4 // push the calls of autoload here 5 array_push($_stack, $class_name); 6 7 if ( [EMAIL PROTECTED]($class_name.php) || 8

RE: [PHP] Enabling PHP5's SOAP on Windows

2004-09-11 Thread Ed Lazor
Add to php.ini Extension=php_soap.dll I didn't see a line in php.ini to uncomment, but I found a page that confirmed this: http://www.experts-exchange.com/Web/Web_Languages/PHP/PHP_Windows/Q_21080398 .html -Original Message- From: John Smith [mailto:[EMAIL PROTECTED] Sent:

[PHP] Re: gettext does not translate

2004-09-11 Thread Catalin Trifu
Hi, I had really bad headaches with gettext some time ago and since then I decided to no longer use it. It's unreliable on heavy loads (mixed english + translated texts), moving the scritps to another machine means more headache, it relies on system calls which are not isolated, which

[PHP] Re: Class dependencies

2004-09-11 Thread Greg Beaver
Ed Lazor wrote: I'm creating classes that rely on the presence of other classes that I've created. Does PHP5 provide a way to specify these dependencies or a way to check these dependencies when the class is instantiated? For example, class Automobile would fail to instantiate if class Tire

[PHP] Re: gettext does not translate

2004-09-11 Thread Christian David
Catalin Trifu wrote: moving the scritps to another machine means more headache, it relies on system calls which are not isolated, which means scritps can step on each others toes. Myadviceisstayawayofgettext. Thanks for your advice! I have tested the script on the Webserver, and fortunately

[PHP] antique PHP problem

2004-09-11 Thread Lowell Allen
I'm doing a project on a server with an old version of PHP -- 4.0.6 on Apache 1.3.22 on FreeBSD and I'm having a problem with session variables. From code in a script that receives a post: - session_start(); $HTTP_SESSION_VARS[m_name] = get_magic_quotes_gpc() ?

[PHP] Convert textarea post data from plain text to html using php..how?

2004-09-11 Thread Brent Clements
Do you guys happen to have an easy easy to do this? I need to convert plain text submitted via a textarea form field to html formatted text. Is there a way to do this with php? Thanks, Brent

Re: [PHP] Convert textarea post data from plain text to html using php..how?

2004-09-11 Thread Jason Wong
On Sunday 12 September 2004 07:01, Brent Clements wrote: Do you guys happen to have an easy easy to do this? I need to convert plain text submitted via a textarea form field to html formatted text. Is there a way to do this with php? $htmltext = htmlp$plaintext/p/html; Season to taste.

[PHP] Upgrade from 4.3.6 to 5; strategy

2004-09-11 Thread [EMAIL PROTECTED]
Anyone have any good advice for an upgrade strategy from php4.3.6 to php5.0.1? I have a MAC OSX 10.3.5 system that I use for my test machine and an Open BSD system for my production machine. The production machine is also semi-managed hosting system (virtual server). Can I expect my current

Re: [PHP] Upgrade from 4.3.6 to 5; strategy

2004-09-11 Thread Robert Cummings
On Sat, 2004-09-11 at 19:35, [EMAIL PROTECTED] wrote: Anyone have any good advice for an upgrade strategy from php4.3.6 to php5.0.1? I have a MAC OSX 10.3.5 system that I use for my test machine and an Open BSD system for my production machine. The production machine is also semi-managed

[PHP] Evaluating form posts

2004-09-11 Thread PHP Mailing list account
Hello everyone, I had an apache server running with php 5. Now I installed unix on that pc and apache and php 5. I am using some forms on web pages and get their values by writing $foo = $_POST[foo]; Since I 'upgraded' to unix i am getting a double backslash for each backslash entered

RE: [PHP] Convert textarea post data from plain text to html using php..how?

2004-09-11 Thread Ed Lazor
-Original Message- On Sunday 12 September 2004 07:01, Brent Clements wrote: Do you guys happen to have an easy easy to do this? I need to convert plain text submitted via a textarea form field to html formatted text. Is there a way to do this with php? $htmltext =

[PHP] CSS not picked up

2004-09-11 Thread Jeff Swanberg
I have the following in my CSS (loaded on the main site page): /* FOOTER */ .footer { font-family: Tahoma, Trebuchet MS; font-size: 9px; color: #BFBFBF; text-decoration: none; border: none; line-height: 1.25em; font-weight: bold; } .footer

[PHP] ftp_nlist()

2004-09-11 Thread Karol Krizka
Hello, I have the following class for ftp: -- class FTP { var $host; var $port; var $username; var $password; var $connection; function FTP($host=localhost,$port=21,$user=anonymous,$password=) { $this-host=$host; $this-port=$port; $this-username=$user;

Re: [PHP] CSS not picked up

2004-09-11 Thread Jason Davidson
Possibly you dont have those fonts to see them? Jason Jeff Swanberg [EMAIL PROTECTED] wrote: I have the following in my CSS (loaded on the main site page): /* FOOTER */ .footer { font-family: Tahoma, Trebuchet MS; font-size: 9px; color: #BFBFBF;

Re: [PHP] CSS not picked up

2004-09-11 Thread Jeff Swanberg
Nope, I have them all. Any other ideas??? Do I need to load the style.css on every sub-page or just on the main page? Perhaps the style sheet is cached so, after I upload a new one, I need to do something to flush the cache? js Jason Davidson [EMAIL PROTECTED] wrote in message

Re: [PHP] Upgrade from 4.3.6 to 5; strategy

2004-09-11 Thread Tim Best
:-P duh... Wasn't sure if php4 code would run under php5. From the sounds of your response, I guess it will process 4.3.x code... /T on 9/11/04 18:47, Robert Cummings at [EMAIL PROTECTED] wrote: On Sat, 2004-09-11 at 19:35, [EMAIL PROTECTED] wrote: Anyone have any good advice for an

Re: [PHP] Upgrade from 4.3.6 to 5; strategy

2004-09-11 Thread Robert Cummings
On Sat, 2004-09-11 at 22:43, Tim Best wrote: :-P duh... Wasn't sure if php4 code would run under php5. From the sounds of your response, I guess it will process 4.3.x code... For the most part you should get very few errors. You will probably get a lot of warnings, but they will probably

[PHP] Re: create and read array

2004-09-11 Thread Chris Martin
Alexander Kleshchevnikov wrote: Maybe you want this: while ($data = mysql_fetch_assoc($news)) { $sql += INSERT INTO newtable VALUES ($data['AUS'], $data['id']);\r\n; } If you nevertheless want save the data in array you can use a two-dimensional array $authors: $authors = array(); while ($data

[PHP] get_class_vars

2004-09-11 Thread Sam Hobbs
Using the code shown below, I get nothing from get_class_vars but I do get very useful results from get_class_methods. I realize that this is how it is supposed to be, but it would be useful to be able to get the property members of the class. The reason I want to see the properties of

Re: [PHP] CSS not picked up

2004-09-11 Thread raditha dissanayake
div class=footer style=position:absolute; top:680px; left:60px; width:500; height:2; vertical-align:bottom; z-index:1; copy; 2004 Keatley Photography - a href=mailto:[EMAIL PROTECTED][EMAIL PROTECTED]/a - 206 240-5543 /div/td/tr There is no PHP here. -- Raditha Dissanayake.